stream-chat-react-native-core 9.0.0-beta.26 → 9.0.0-beta.28

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 (273) hide show
  1. package/lib/commonjs/components/Attachment/Giphy/Giphy.js +19 -7
  2. package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
  3. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +3 -3
  4. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
  5. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerGenericContent.js +24 -16
  6. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerGenericContent.js.map +1 -1
  7. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
  8. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  9. package/lib/commonjs/components/Channel/Channel.js +1 -1
  10. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  11. package/lib/commonjs/components/ChannelList/hooks/useChannelActionItems.js +0 -15
  12. package/lib/commonjs/components/ChannelList/hooks/useChannelActionItems.js.map +1 -1
  13. package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +15 -13
  14. package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
  15. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +2 -0
  16. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  17. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +1 -0
  18. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  19. package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +11 -9
  20. package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
  21. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +5 -4
  22. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  23. package/lib/commonjs/components/Indicators/LoadingIndicator.js +3 -3
  24. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  25. package/lib/commonjs/components/Message/Message.js +2 -10
  26. package/lib/commonjs/components/Message/Message.js.map +1 -1
  27. package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +39 -5
  28. package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
  29. package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +11 -7
  30. package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js.map +1 -1
  31. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +1 -1
  32. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  33. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +18 -8
  34. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  35. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +3 -1
  36. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  37. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +2 -1
  38. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  39. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +0 -1
  40. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
  41. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +8 -0
  42. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  43. package/lib/commonjs/components/Poll/components/PollInputDialog.js +1 -1
  44. package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
  45. package/lib/commonjs/components/Poll/components/PollOption.js +15 -5
  46. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
  47. package/lib/commonjs/components/ThreadList/ThreadList.js +3 -1
  48. package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
  49. package/lib/commonjs/components/UIComponents/BottomSheetModal.js +141 -40
  50. package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
  51. package/lib/commonjs/components/UIComponents/BottomSheetModal.utils.js +53 -0
  52. package/lib/commonjs/components/UIComponents/BottomSheetModal.utils.js.map +1 -0
  53. package/lib/commonjs/components/UIComponents/StreamBottomSheetModalFlatList.js +9 -5
  54. package/lib/commonjs/components/UIComponents/StreamBottomSheetModalFlatList.js.map +1 -1
  55. package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js +1 -1
  56. package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js.map +1 -1
  57. package/lib/commonjs/components/ui/Button/hooks/useButtonStyles.js +1 -1
  58. package/lib/commonjs/components/ui/Button/hooks/useButtonStyles.js.map +1 -1
  59. package/lib/commonjs/contexts/bottomSheetContext/BottomSheetContext.js.map +1 -1
  60. package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js +4 -4
  61. package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
  62. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  63. package/lib/commonjs/contexts/themeContext/utils/theme.js +1 -0
  64. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  65. package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js +4 -4
  66. package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
  67. package/lib/commonjs/i18n/en.json +3 -2
  68. package/lib/commonjs/i18n/es.json +3 -2
  69. package/lib/commonjs/i18n/fr.json +3 -2
  70. package/lib/commonjs/i18n/he.json +3 -2
  71. package/lib/commonjs/i18n/hi.json +3 -2
  72. package/lib/commonjs/i18n/it.json +3 -2
  73. package/lib/commonjs/i18n/ja.json +3 -2
  74. package/lib/commonjs/i18n/ko.json +3 -2
  75. package/lib/commonjs/i18n/nl.json +3 -2
  76. package/lib/commonjs/i18n/pt-br.json +3 -2
  77. package/lib/commonjs/i18n/ru.json +3 -2
  78. package/lib/commonjs/i18n/tr.json +3 -2
  79. package/lib/commonjs/version.json +1 -1
  80. package/lib/module/components/Attachment/Giphy/Giphy.js +19 -7
  81. package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
  82. package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +3 -3
  83. package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
  84. package/lib/module/components/AttachmentPicker/components/AttachmentPickerGenericContent.js +24 -16
  85. package/lib/module/components/AttachmentPicker/components/AttachmentPickerGenericContent.js.map +1 -1
  86. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
  87. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  88. package/lib/module/components/Channel/Channel.js +1 -1
  89. package/lib/module/components/Channel/Channel.js.map +1 -1
  90. package/lib/module/components/ChannelList/hooks/useChannelActionItems.js +0 -15
  91. package/lib/module/components/ChannelList/hooks/useChannelActionItems.js.map +1 -1
  92. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +15 -13
  93. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
  94. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +2 -0
  95. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  96. package/lib/module/components/ChannelPreview/ChannelPreviewView.js +1 -0
  97. package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  98. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +11 -9
  99. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
  100. package/lib/module/components/ImageGallery/components/ImageGrid.js +5 -4
  101. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  102. package/lib/module/components/Indicators/LoadingIndicator.js +3 -3
  103. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  104. package/lib/module/components/Message/Message.js +2 -10
  105. package/lib/module/components/Message/Message.js.map +1 -1
  106. package/lib/module/components/Message/MessageItemView/MessageContent.js +39 -5
  107. package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
  108. package/lib/module/components/Message/MessageItemView/MessageItemView.js +11 -7
  109. package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
  110. package/lib/module/components/Message/MessageItemView/MessageReplies.js +1 -1
  111. package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  112. package/lib/module/components/Message/MessageItemView/MessageStatus.js +18 -8
  113. package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  114. package/lib/module/components/Message/hooks/useCreateMessageContext.js +3 -1
  115. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  116. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +2 -1
  117. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  118. package/lib/module/components/MessageMenu/MessageUserReactions.js +0 -1
  119. package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
  120. package/lib/module/components/Poll/components/MultipleVotesSettings.js +8 -0
  121. package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  122. package/lib/module/components/Poll/components/PollInputDialog.js +1 -1
  123. package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
  124. package/lib/module/components/Poll/components/PollOption.js +15 -5
  125. package/lib/module/components/Poll/components/PollOption.js.map +1 -1
  126. package/lib/module/components/ThreadList/ThreadList.js +3 -1
  127. package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
  128. package/lib/module/components/UIComponents/BottomSheetModal.js +141 -40
  129. package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
  130. package/lib/module/components/UIComponents/BottomSheetModal.utils.js +53 -0
  131. package/lib/module/components/UIComponents/BottomSheetModal.utils.js.map +1 -0
  132. package/lib/module/components/UIComponents/StreamBottomSheetModalFlatList.js +9 -5
  133. package/lib/module/components/UIComponents/StreamBottomSheetModalFlatList.js.map +1 -1
  134. package/lib/module/components/ui/Avatar/ChannelAvatar.js +1 -1
  135. package/lib/module/components/ui/Avatar/ChannelAvatar.js.map +1 -1
  136. package/lib/module/components/ui/Button/hooks/useButtonStyles.js +1 -1
  137. package/lib/module/components/ui/Button/hooks/useButtonStyles.js.map +1 -1
  138. package/lib/module/contexts/bottomSheetContext/BottomSheetContext.js.map +1 -1
  139. package/lib/module/contexts/messageComposerContext/MessageComposerContext.js +4 -4
  140. package/lib/module/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
  141. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  142. package/lib/module/contexts/themeContext/utils/theme.js +1 -0
  143. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  144. package/lib/module/hooks/messagePreview/useMessagePreviewText.js +4 -4
  145. package/lib/module/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
  146. package/lib/module/i18n/en.json +3 -2
  147. package/lib/module/i18n/es.json +3 -2
  148. package/lib/module/i18n/fr.json +3 -2
  149. package/lib/module/i18n/he.json +3 -2
  150. package/lib/module/i18n/hi.json +3 -2
  151. package/lib/module/i18n/it.json +3 -2
  152. package/lib/module/i18n/ja.json +3 -2
  153. package/lib/module/i18n/ko.json +3 -2
  154. package/lib/module/i18n/nl.json +3 -2
  155. package/lib/module/i18n/pt-br.json +3 -2
  156. package/lib/module/i18n/ru.json +3 -2
  157. package/lib/module/i18n/tr.json +3 -2
  158. package/lib/module/version.json +1 -1
  159. package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts +1 -1
  160. package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
  161. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerGenericContent.d.ts.map +1 -1
  162. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
  163. package/lib/typescript/components/ChannelList/hooks/useChannelActionItems.d.ts.map +1 -1
  164. package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts +2 -2
  165. package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts.map +1 -1
  166. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
  167. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +1 -1
  168. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -1
  169. package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts +2 -2
  170. package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
  171. package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts +3 -3
  172. package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
  173. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts.map +1 -1
  174. package/lib/typescript/components/Indicators/LoadingIndicator.d.ts.map +1 -1
  175. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  176. package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
  177. package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts +1 -1
  178. package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts.map +1 -1
  179. package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
  180. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  181. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
  182. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
  183. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
  184. package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
  185. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
  186. package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
  187. package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts +5 -1
  188. package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
  189. package/lib/typescript/components/UIComponents/BottomSheetModal.utils.d.ts +28 -0
  190. package/lib/typescript/components/UIComponents/BottomSheetModal.utils.d.ts.map +1 -0
  191. package/lib/typescript/components/UIComponents/StreamBottomSheetModalFlatList.d.ts.map +1 -1
  192. package/lib/typescript/components/ui/Avatar/ChannelAvatar.d.ts.map +1 -1
  193. package/lib/typescript/contexts/bottomSheetContext/BottomSheetContext.d.ts +1 -0
  194. package/lib/typescript/contexts/bottomSheetContext/BottomSheetContext.d.ts.map +1 -1
  195. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +4 -2
  196. package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
  197. package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +1 -0
  198. package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -1
  199. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +1 -0
  200. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  201. package/lib/typescript/hooks/messagePreview/useMessagePreviewText.d.ts.map +1 -1
  202. package/lib/typescript/i18n/en.json +3 -2
  203. package/lib/typescript/i18n/es.json +3 -2
  204. package/lib/typescript/i18n/fr.json +3 -2
  205. package/lib/typescript/i18n/he.json +3 -2
  206. package/lib/typescript/i18n/hi.json +3 -2
  207. package/lib/typescript/i18n/it.json +3 -2
  208. package/lib/typescript/i18n/ja.json +3 -2
  209. package/lib/typescript/i18n/ko.json +3 -2
  210. package/lib/typescript/i18n/nl.json +3 -2
  211. package/lib/typescript/i18n/pt-br.json +3 -2
  212. package/lib/typescript/i18n/ru.json +3 -2
  213. package/lib/typescript/i18n/tr.json +3 -2
  214. package/lib/typescript/utils/i18n/Streami18n.d.ts +3 -2
  215. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  216. package/package.json +1 -1
  217. package/src/components/Attachment/Giphy/Giphy.tsx +19 -7
  218. package/src/components/Attachment/__tests__/Giphy.test.js +33 -1
  219. package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +3 -3
  220. package/src/components/AttachmentPicker/components/AttachmentPickerGenericContent.tsx +23 -13
  221. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +3 -1
  222. package/src/components/Channel/Channel.tsx +1 -1
  223. package/src/components/ChannelList/hooks/__tests__/useChannelActionItems.test.tsx +12 -45
  224. package/src/components/ChannelList/hooks/useChannelActionItems.tsx +1 -19
  225. package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +10 -8
  226. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +3 -1
  227. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +1 -1
  228. package/src/components/ChannelPreview/ChannelPreviewView.tsx +3 -2
  229. package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +8 -7
  230. package/src/components/ChannelPreview/__tests__/ChannelDetailsBottomSheet.test.tsx +1 -1
  231. package/src/components/ChannelPreview/__tests__/ChannelLastMessagePreview.test.tsx +32 -0
  232. package/src/components/ChannelPreview/__tests__/ChannelSwipableWrapper.test.tsx +5 -2
  233. package/src/components/ImageGallery/components/ImageGrid.tsx +3 -1
  234. package/src/components/Indicators/LoadingIndicator.tsx +7 -5
  235. package/src/components/Message/Message.tsx +2 -12
  236. package/src/components/Message/MessageItemView/MessageContent.tsx +44 -7
  237. package/src/components/Message/MessageItemView/MessageItemView.tsx +15 -7
  238. package/src/components/Message/MessageItemView/MessageReplies.tsx +1 -1
  239. package/src/components/Message/MessageItemView/MessageStatus.tsx +16 -5
  240. package/src/components/Message/MessageItemView/__tests__/MessageContent.test.js +72 -1
  241. package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.js +52 -1
  242. package/src/components/Message/hooks/useCreateMessageContext.ts +3 -0
  243. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +1 -0
  244. package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap +1 -1
  245. package/src/components/MessageMenu/MessageUserReactions.tsx +1 -5
  246. package/src/components/Poll/components/MultipleVotesSettings.tsx +8 -0
  247. package/src/components/Poll/components/PollInputDialog.tsx +1 -1
  248. package/src/components/Poll/components/PollOption.tsx +25 -9
  249. package/src/components/ThreadList/ThreadList.tsx +1 -1
  250. package/src/components/UIComponents/BottomSheetModal.tsx +237 -53
  251. package/src/components/UIComponents/BottomSheetModal.utils.ts +82 -0
  252. package/src/components/UIComponents/StreamBottomSheetModalFlatList.tsx +14 -5
  253. package/src/components/UIComponents/__tests__/BottomSheetModal.utils.test.ts +111 -0
  254. package/src/components/ui/Avatar/ChannelAvatar.tsx +5 -1
  255. package/src/components/ui/Button/hooks/useButtonStyles.ts +1 -1
  256. package/src/contexts/bottomSheetContext/BottomSheetContext.tsx +1 -0
  257. package/src/contexts/messageComposerContext/MessageComposerContext.tsx +1 -1
  258. package/src/contexts/messageContext/MessageContext.tsx +4 -2
  259. package/src/contexts/themeContext/utils/theme.ts +2 -0
  260. package/src/hooks/messagePreview/useMessagePreviewText.tsx +5 -6
  261. package/src/i18n/en.json +3 -2
  262. package/src/i18n/es.json +3 -2
  263. package/src/i18n/fr.json +3 -2
  264. package/src/i18n/he.json +3 -2
  265. package/src/i18n/hi.json +3 -2
  266. package/src/i18n/it.json +3 -2
  267. package/src/i18n/ja.json +3 -2
  268. package/src/i18n/ko.json +3 -2
  269. package/src/i18n/nl.json +3 -2
  270. package/src/i18n/pt-br.json +3 -2
  271. package/src/i18n/ru.json +3 -2
  272. package/src/i18n/tr.json +3 -2
  273. package/src/version.json +1 -1
@@ -164,8 +164,9 @@
164
164
  "Change in Settings": "Cambia in Impostazioni",
165
165
  "Create a poll and let everyone vote": "Crea un sondaggio e lascia che tutti votino",
166
166
  "Open Camera": "Apri fotocamera",
167
- "Pick a document to share it with everyone": "Scegli un documento da condividere con tutti",
168
- "Pick document": "Scegli documento",
167
+ "Open Files": "Apri file",
168
+ "Select files to share": "Seleziona file da condividere",
169
+ "Take a photo and share": "Scatta una foto e condividila",
169
170
  "Take a video and share": "Registra un video e condividilo",
170
171
  "You have not granted access to your camera": "Non hai concesso l’accesso alla fotocamera",
171
172
  "{{count}} Reactions_many": "{{count}} reazioni",
@@ -164,8 +164,9 @@
164
164
  "Change in Settings": "設定で変更",
165
165
  "Create a poll and let everyone vote": "投票を作成してみんなに投票してもらう",
166
166
  "Open Camera": "カメラを開く",
167
- "Pick a document to share it with everyone": "みんなと共有するドキュメントを選択",
168
- "Pick document": "ドキュメントを選択",
167
+ "Open Files": "ファイルを開く",
168
+ "Select files to share": "共有するファイルを選択",
169
+ "Take a photo and share": "写真を撮って共有",
169
170
  "Take a video and share": "動画を撮影して共有",
170
171
  "You have not granted access to your camera": "カメラへのアクセスが許可されていません",
171
172
  "{{count}} Reactions_many": "{{count}}件のリアクション",
@@ -164,8 +164,9 @@
164
164
  "Change in Settings": "설정에서 변경",
165
165
  "Create a poll and let everyone vote": "투표를 만들어 모두가 투표하게 하세요",
166
166
  "Open Camera": "카메라 열기",
167
- "Pick a document to share it with everyone": "모두와 공유할 문서를 선택하세요",
168
- "Pick document": "문서 선택",
167
+ "Open Files": "파일 열기",
168
+ "Select files to share": "공유할 파일 선택",
169
+ "Take a photo and share": "사진을 찍고 공유",
169
170
  "Take a video and share": "동영상을 촬영하고 공유",
170
171
  "You have not granted access to your camera": "카메라 접근 권한이 없습니다",
171
172
  "{{count}} Reactions_many": "{{count}}개의 반응",
@@ -164,8 +164,9 @@
164
164
  "Change in Settings": "Wijzigen in Instellingen",
165
165
  "Create a poll and let everyone vote": "Maak een peiling en laat iedereen stemmen",
166
166
  "Open Camera": "Camera openen",
167
- "Pick a document to share it with everyone": "Kies een document om het met iedereen te delen",
168
- "Pick document": "Document kiezen",
167
+ "Open Files": "Bestanden openen",
168
+ "Select files to share": "Selecteer bestanden om te delen",
169
+ "Take a photo and share": "Maak een foto en deel deze",
169
170
  "Take a video and share": "Maak een video en deel deze",
170
171
  "You have not granted access to your camera": "Je hebt geen toegang tot je camera verleend",
171
172
  "{{count}} Reactions_many": "{{count}} reacties",
@@ -164,8 +164,9 @@
164
164
  "Change in Settings": "Alterar nos Ajustes",
165
165
  "Create a poll and let everyone vote": "Crie uma enquete e deixe todos votarem",
166
166
  "Open Camera": "Abrir camera",
167
- "Pick a document to share it with everyone": "Escolha um documento para compartilhar com todos",
168
- "Pick document": "Escolher documento",
167
+ "Open Files": "Abrir arquivos",
168
+ "Select files to share": "Selecione arquivos para compartilhar",
169
+ "Take a photo and share": "Tire uma foto e compartilhe",
169
170
  "Take a video and share": "Grave um video e compartilhe",
170
171
  "You have not granted access to your camera": "Você não concedeu acesso à sua câmera",
171
172
  "{{count}} Reactions_many": "{{count}} reações",
@@ -164,8 +164,9 @@
164
164
  "Change in Settings": "Изменить в настройках",
165
165
  "Create a poll and let everyone vote": "Создайте опрос и дайте всем проголосовать",
166
166
  "Open Camera": "Открыть камеру",
167
- "Pick a document to share it with everyone": "Выберите документ, чтобы поделиться им со всеми",
168
- "Pick document": "Выбрать документ",
167
+ "Open Files": "Открыть файлы",
168
+ "Select files to share": "Выберите файлы для отправки",
169
+ "Take a photo and share": "Сделайте фото и поделитесь",
169
170
  "Take a video and share": "Снимите видео и поделитесь",
170
171
  "You have not granted access to your camera": "Вы не предоставили доступ к вашей камере",
171
172
  "{{count}} Reactions_many": "{{count}} реакций",
@@ -164,8 +164,9 @@
164
164
  "Change in Settings": "Ayarlar'da değiştir",
165
165
  "Create a poll and let everyone vote": "Bir anket oluşturun ve herkesin oy vermesine izin verin",
166
166
  "Open Camera": "Kamerayı aç",
167
- "Pick a document to share it with everyone": "Herkesle paylaşmak için bir belge seçin",
168
- "Pick document": "Belge seç",
167
+ "Open Files": "Dosyaları ",
168
+ "Select files to share": "Paylaşmak için dosyaları seç",
169
+ "Take a photo and share": "Fotoğraf çek ve paylaş",
169
170
  "Take a video and share": "Video çek ve paylaş",
170
171
  "You have not granted access to your camera": "Kameranıza erişim izni vermediniz",
171
172
  "{{count}} Reactions_many": "{{count}} tepki",
@@ -299,8 +299,9 @@ export declare class Streami18n {
299
299
  "Change in Settings": string;
300
300
  "Create a poll and let everyone vote": string;
301
301
  "Open Camera": string;
302
- "Pick a document to share it with everyone": string;
303
- "Pick document": string;
302
+ "Open Files": string;
303
+ "Select files to share": string;
304
+ "Take a photo and share": string;
304
305
  "Take a video and share": string;
305
306
  "You have not granted access to your camera": string;
306
307
  "{{count}} Reactions_many": string;
@@ -1 +1 @@
1
- {"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAIlD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAahD,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,OAAO,iBAAiB,CAAC;AAgGzB,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAsBF,KAAK,oBAAoB,GAAG,OAAO,KAAK,GAAG,OAAO,cAAc,CAAC;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA2B;IAE1C;;OAEG;IACG,cAAc;;;;IAmBpB;;OAEG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,OAAO,CAAC,OAAO,cAAc,CAAC,EAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IA+BtC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;IASvD;;;OAGG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM;IAsBlC,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW5D,8BAA8B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW/D,iBAAiB,CAAC,SAAS,EAAE,SAAS;CAQvC"}
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": "9.0.0-beta.26",
4
+ "version": "9.0.0-beta.28",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -22,7 +22,7 @@ import { Button } from '../../ui/';
22
22
 
23
23
  export type GiphyPropsWithContext = Pick<
24
24
  MessageContextValue,
25
- 'handleAction' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
25
+ 'handleAction' | 'isMyMessage' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
26
26
  > &
27
27
  Pick<MessagesContextValue, 'additionalPressableProps' | 'giphyVersion'> & {
28
28
  attachment: Attachment;
@@ -34,6 +34,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
34
34
  attachment,
35
35
  giphyVersion,
36
36
  handleAction,
37
+ isMyMessage,
37
38
  onLongPress,
38
39
  onPress,
39
40
  onPressIn,
@@ -53,7 +54,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
53
54
  },
54
55
  } = useTheme();
55
56
 
56
- const styles = useStyles();
57
+ const styles = useStyles({ isMyMessage });
57
58
 
58
59
  const uri = image_url || thumb_url;
59
60
 
@@ -122,7 +123,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
122
123
  }
123
124
  }}
124
125
  testID='giphy-attachment'
125
- style={styles.container}
126
+ style={[styles.container, container]}
126
127
  {...additionalPressableProps}
127
128
  >
128
129
  <GiphyImage attachment={attachment} giphyVersion={giphyVersion} />
@@ -134,10 +135,12 @@ const areEqual = (prevProps: GiphyPropsWithContext, nextProps: GiphyPropsWithCon
134
135
  const {
135
136
  attachment: { actions: prevActions, image_url: prevImageUrl, thumb_url: prevThumbUrl },
136
137
  giphyVersion: prevGiphyVersion,
138
+ isMyMessage: prevIsMyMessage,
137
139
  } = prevProps;
138
140
  const {
139
141
  attachment: { actions: nextActions, image_url: nextImageUrl, thumb_url: nextThumbUrl },
140
142
  giphyVersion: nextGiphyVersion,
143
+ isMyMessage: nextIsMyMessage,
141
144
  } = nextProps;
142
145
 
143
146
  const imageUrlEqual = prevImageUrl === nextImageUrl;
@@ -165,6 +168,11 @@ const areEqual = (prevProps: GiphyPropsWithContext, nextProps: GiphyPropsWithCon
165
168
  return false;
166
169
  }
167
170
 
171
+ const isMyMessageEqual = prevIsMyMessage === nextIsMyMessage;
172
+ if (!isMyMessageEqual) {
173
+ return false;
174
+ }
175
+
168
176
  return true;
169
177
  };
170
178
 
@@ -178,7 +186,8 @@ export type GiphyProps = Partial<GiphyPropsWithContext> & {
178
186
  * UI component for card in attachments.
179
187
  */
180
188
  export const Giphy = (props: GiphyProps) => {
181
- const { handleAction, onLongPress, onPress, onPressIn, preventPress } = useMessageContext();
189
+ const { handleAction, isMyMessage, onLongPress, onPress, onPressIn, preventPress } =
190
+ useMessageContext();
182
191
  const { additionalPressableProps, giphyVersion } = useMessagesContext();
183
192
 
184
193
  return (
@@ -187,6 +196,7 @@ export const Giphy = (props: GiphyProps) => {
187
196
  additionalPressableProps,
188
197
  giphyVersion,
189
198
  handleAction,
199
+ isMyMessage,
190
200
  onLongPress,
191
201
  onPress,
192
202
  onPressIn,
@@ -199,14 +209,16 @@ export const Giphy = (props: GiphyProps) => {
199
209
 
200
210
  Giphy.displayName = 'Giphy{messageItemView{giphy}}';
201
211
 
202
- const useStyles = () => {
212
+ const useStyles = ({ isMyMessage }: Pick<GiphyPropsWithContext, 'isMyMessage'>) => {
203
213
  const {
204
214
  theme: { semantics },
205
215
  } = useTheme();
206
216
  return useMemo(() => {
207
217
  return StyleSheet.create({
208
218
  container: {
209
- backgroundColor: semantics.chatBgOutgoing,
219
+ backgroundColor: isMyMessage
220
+ ? semantics.chatBgAttachmentOutgoing
221
+ : semantics.chatBgAttachmentIncoming,
210
222
  borderRadius: primitives.radiusLg,
211
223
  maxWidth: 256, // TODO: Not sure how to fix this
212
224
  overflow: 'hidden',
@@ -240,5 +252,5 @@ const useStyles = () => {
240
252
  lineHeight: primitives.typographyLineHeightTight,
241
253
  },
242
254
  });
243
- }, [semantics]);
255
+ }, [isMyMessage, semantics]);
244
256
  };
@@ -14,7 +14,7 @@ import { MessageProvider } from '../../../contexts/messageContext/MessageContext
14
14
  import { MessagesProvider } from '../../../contexts/messagesContext/MessagesContext';
15
15
  import { OverlayProvider } from '../../../contexts/overlayContext/OverlayProvider';
16
16
 
17
- import { ThemeProvider } from '../../../contexts/themeContext/ThemeContext';
17
+ import { mergeThemes, ThemeProvider } from '../../../contexts/themeContext/ThemeContext';
18
18
  import { getOrCreateChannelApi } from '../../../mock-builders/api/getOrCreateChannel';
19
19
  import { useMockedApis } from '../../../mock-builders/api/useMockedApis';
20
20
  import { generateGiphyAttachment } from '../../../mock-builders/generator/attachment';
@@ -36,6 +36,8 @@ const streami18n = new Streami18n({
36
36
  });
37
37
 
38
38
  describe('Giphy', () => {
39
+ const lightTheme = mergeThemes({ scheme: 'light' });
40
+
39
41
  const getAttachmentComponent = (props, messageContextValue = {}) => {
40
42
  const message = generateMessage();
41
43
  return (
@@ -115,6 +117,36 @@ describe('Giphy', () => {
115
117
  });
116
118
  });
117
119
 
120
+ it('uses the outgoing attachment background for outgoing giphys', async () => {
121
+ render(getAttachmentComponent({ attachment }, { isMyMessage: true }));
122
+
123
+ await waitFor(() => {
124
+ const style = screen.getByTestId('giphy-attachment').props.style;
125
+ expect(style).toEqual(
126
+ expect.arrayContaining([
127
+ expect.objectContaining({
128
+ backgroundColor: lightTheme.semantics.chatBgAttachmentOutgoing,
129
+ }),
130
+ ]),
131
+ );
132
+ });
133
+ });
134
+
135
+ it('uses the incoming attachment background for incoming giphys', async () => {
136
+ render(getAttachmentComponent({ attachment }, { isMyMessage: false }));
137
+
138
+ await waitFor(() => {
139
+ const style = screen.getByTestId('giphy-attachment').props.style;
140
+ expect(style).toEqual(
141
+ expect.arrayContaining([
142
+ expect.objectContaining({
143
+ backgroundColor: lightTheme.semantics.chatBgAttachmentIncoming,
144
+ }),
145
+ ]),
146
+ );
147
+ });
148
+ });
149
+
118
150
  it('"giphy" attachment size should be customisable', async () => {
119
151
  attachment.giphy = giphy;
120
152
  render(getAttachmentComponent({ attachment, giphyVersion: 'fixed_height' }));
@@ -201,7 +201,7 @@ export const AttachmentCameraPicker = (
201
201
  onPress={openCameraPicker}
202
202
  height={height}
203
203
  buttonText={t('Open Camera')}
204
- description={t('Take a video and share')}
204
+ description={t(videoOnly ? 'Take a video and share' : 'Take a photo and share')}
205
205
  />
206
206
  );
207
207
  };
@@ -216,8 +216,8 @@ export const AttachmentFilePicker = (props: AttachmentPickerContentProps) => {
216
216
  Icon={FilePickerIcon}
217
217
  onPress={pickFile}
218
218
  height={height}
219
- buttonText={t('Pick document')}
220
- description={t('Pick a document to share it with everyone')}
219
+ buttonText={t('Open Files')}
220
+ description={t('Select files to share')}
221
221
  />
222
222
  );
223
223
  };
@@ -21,12 +21,20 @@ const useStyles = () => {
21
21
  paddingHorizontal: primitives.spacing2xl,
22
22
  paddingBottom: primitives.spacing3xl,
23
23
  },
24
- infoContainer: { flex: 1, alignItems: 'center', justifyContent: 'center' },
24
+ infoContainer: {
25
+ flex: 1,
26
+ gap: primitives.spacingSm,
27
+ alignItems: 'center',
28
+ justifyContent: 'center',
29
+ },
30
+ actionContainer: {
31
+ gap: primitives.spacingMd,
32
+ alignItems: 'center',
33
+ justifyContent: 'center',
34
+ },
25
35
  text: {
26
36
  fontSize: primitives.typographyFontSizeMd,
27
37
  color: semantics.textSecondary,
28
- marginTop: 8,
29
- marginHorizontal: 24,
30
38
  textAlign: 'center',
31
39
  maxWidth: 200,
32
40
  },
@@ -54,13 +62,13 @@ export const AttachmentPickerGenericContent = (props: AttachmentPickerGenericCon
54
62
  theme: {
55
63
  semantics,
56
64
  attachmentPicker: {
57
- content: { container, text, infoContainer },
65
+ content: { actionContainer, container, text, infoContainer },
58
66
  },
59
67
  },
60
68
  } = useTheme();
61
69
 
62
70
  const ThemedIcon = useCallback(
63
- () => <Icon width={22} height={22} stroke={semantics.textTertiary} />,
71
+ () => <Icon width={32} height={32} stroke={semantics.textTertiary} />,
64
72
  [Icon, semantics.textTertiary],
65
73
  );
66
74
 
@@ -76,15 +84,17 @@ export const AttachmentPickerGenericContent = (props: AttachmentPickerGenericCon
76
84
  >
77
85
  <View style={[styles.infoContainer, infoContainer]}>
78
86
  <ThemedIcon />
79
- <Text style={[styles.text, text]}>{description}</Text>
87
+ <View style={[styles.actionContainer, actionContainer]}>
88
+ <Text style={[styles.text, text]}>{description}</Text>
89
+ <Button
90
+ variant={'secondary'}
91
+ type={'outline'}
92
+ size={'md'}
93
+ label={buttonText}
94
+ onPress={onPress}
95
+ />
96
+ </View>
80
97
  </View>
81
- <Button
82
- variant={'secondary'}
83
- type={'outline'}
84
- size={'lg'}
85
- label={buttonText}
86
- onPress={onPress}
87
- />
88
98
  </View>
89
99
  );
90
100
  };
@@ -1,5 +1,7 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
- import { FlatList, StyleSheet } from 'react-native';
2
+ import { StyleSheet } from 'react-native';
3
+
4
+ import { FlatList } from 'react-native-gesture-handler';
3
5
 
4
6
  import Animated, { LinearTransition, ZoomIn, ZoomOut } from 'react-native-reanimated';
5
7
 
@@ -575,7 +575,7 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
575
575
  asyncMessagesLockDistance = 50,
576
576
  asyncMessagesMinimumPressDuration = 500,
577
577
  asyncMessagesSlideToCancelDistance = 75,
578
- audioRecordingSendOnComplete = true,
578
+ audioRecordingSendOnComplete = false,
579
579
  AttachButton = AttachButtonDefault,
580
580
  Attachment = AttachmentDefault,
581
581
  attachmentPickerBottomSheetHeight = disableAttachmentPicker ? 72 : 333,
@@ -90,31 +90,19 @@ describe('useChannelActionItems', () => {
90
90
  it('returns default channel action items', () => {
91
91
  const { result } = renderHook(() => useChannelActionItems({ channel }));
92
92
 
93
- expect(result.current).toHaveLength(4);
93
+ expect(result.current).toHaveLength(3);
94
94
  expect(result.current.map((item) => item.action)).toEqual([
95
95
  channelActions.muteChannel,
96
- channelActions.archive,
97
96
  channelActions.leave,
98
97
  expect.any(Function),
99
98
  ]);
100
- expect(result.current.map((item) => item.id)).toEqual([
101
- 'mute',
102
- 'archive',
103
- 'leave',
104
- 'deleteChannel',
105
- ]);
99
+ expect(result.current.map((item) => item.id)).toEqual(['mute', 'leave', 'deleteChannel']);
106
100
  expect(result.current.map((item) => item.type)).toEqual([
107
- 'standard',
108
101
  'standard',
109
102
  'destructive',
110
103
  'destructive',
111
104
  ]);
112
- expect(result.current.map((item) => item.placement)).toEqual([
113
- 'swipe',
114
- 'both',
115
- 'sheet',
116
- 'sheet',
117
- ]);
105
+ expect(result.current.map((item) => item.placement)).toEqual(['swipe', 'sheet', 'sheet']);
118
106
  });
119
107
 
120
108
  it('uses custom getChannelActionItems with context and defaultItems when provided', () => {
@@ -178,25 +166,18 @@ describe('getChannelActionItems', () => {
178
166
 
179
167
  expect(actionItems.map((item) => item.action)).toEqual([
180
168
  channelActions.muteChannel,
181
- channelActions.archive,
182
169
  channelActions.leave,
183
170
  expect.any(Function),
184
171
  ]);
185
- expect(actionItems.map((item) => item.id)).toEqual([
186
- 'mute',
187
- 'archive',
188
- 'leave',
189
- 'deleteChannel',
190
- ]);
172
+ expect(actionItems.map((item) => item.id)).toEqual(['mute', 'leave', 'deleteChannel']);
191
173
  expect(actionItems.map((item) => item.type)).toEqual([
192
- 'standard',
193
174
  'standard',
194
175
  'destructive',
195
176
  'destructive',
196
177
  ]);
197
178
  });
198
179
 
199
- it('returns direct-chat variants for mute, block and archive states', () => {
180
+ it('returns direct-chat variants for mute and block states', () => {
200
181
  const channelActions = createChannelActions();
201
182
  const actionItems = buildDefaultChannelActionItems({
202
183
  actions: channelActions,
@@ -208,34 +189,20 @@ describe('getChannelActionItems', () => {
208
189
  t: (value) => value,
209
190
  });
210
191
 
211
- expect(actionItems.map((item) => item.id)).toEqual([
212
- 'mute',
213
- 'block',
214
- 'archive',
215
- 'leave',
216
- 'deleteChannel',
217
- ]);
192
+ expect(actionItems.map((item) => item.id)).toEqual(['mute', 'block', 'leave', 'deleteChannel']);
218
193
  expect(actionItems.map((item) => item.action)).toEqual([
219
194
  channelActions.unmuteUser,
220
195
  channelActions.unblockUser,
221
- channelActions.unarchive,
222
196
  channelActions.leave,
223
197
  expect.any(Function),
224
198
  ]);
225
199
  expect(actionItems.map((item) => item.label)).toEqual([
226
200
  'Unmute User',
227
201
  'Unblock User',
228
- 'Unarchive Chat',
229
202
  'Leave Chat',
230
203
  'Delete Chat',
231
204
  ]);
232
- expect(actionItems.map((item) => item.placement)).toEqual([
233
- 'sheet',
234
- 'sheet',
235
- 'sheet',
236
- 'sheet',
237
- 'sheet',
238
- ]);
205
+ expect(actionItems.map((item) => item.placement)).toEqual(['sheet', 'sheet', 'sheet', 'sheet']);
239
206
  });
240
207
 
241
208
  it('omits delete action when current user is not the channel creator', () => {
@@ -249,10 +216,10 @@ describe('getChannelActionItems', () => {
249
216
  t: (value) => value,
250
217
  });
251
218
 
252
- expect(actionItems.map((item) => item.id)).toEqual(['mute', 'archive', 'leave']);
219
+ expect(actionItems.map((item) => item.id)).toEqual(['mute', 'leave']);
253
220
  });
254
221
 
255
- it('uses group variants for mute and archive labels and placements', () => {
222
+ it('uses group mute variants for labels and placements', () => {
256
223
  const channelActions = createChannelActions();
257
224
  const actionItems = buildDefaultChannelActionItems({
258
225
  actions: channelActions,
@@ -268,9 +235,9 @@ describe('getChannelActionItems', () => {
268
235
  expect(actionItems[0].label).toBe('Unmute Group');
269
236
  expect(actionItems[0].placement).toBe('swipe');
270
237
 
271
- expect(actionItems[1].action).toBe(channelActions.unarchive);
272
- expect(actionItems[1].label).toBe('Unarchive Group');
273
- expect(actionItems[1].placement).toBe('both');
238
+ expect(actionItems[1].action).toBe(channelActions.leave);
239
+ expect(actionItems[1].label).toBe('Leave Group');
240
+ expect(actionItems[1].placement).toBe('sheet');
274
241
  });
275
242
 
276
243
  it('shows delete confirmation and calls deleteChannel on destructive confirm', async () => {
@@ -12,7 +12,7 @@ import { useIsDirectChat } from './useIsDirectChat';
12
12
 
13
13
  import { useTheme, useTranslationContext } from '../../../contexts';
14
14
  import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
15
- import { Archive, IconProps, Mute, BlockUser, Delete, Sound } from '../../../icons';
15
+ import { IconProps, Mute, BlockUser, Delete, Sound } from '../../../icons';
16
16
  import { ArrowBoxLeft } from '../../../icons/leave';
17
17
 
18
18
  export type ChannelActionHandler = () => Promise<void> | void;
@@ -56,10 +56,8 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
56
56
  ) => {
57
57
  const {
58
58
  actions: {
59
- archive,
60
59
  deleteChannel,
61
60
  leave,
62
- unarchive,
63
61
  muteChannel,
64
62
  unmuteChannel,
65
63
  muteUser,
@@ -67,7 +65,6 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
67
65
  blockUser,
68
66
  unblockUser,
69
67
  },
70
- isArchived,
71
68
  isDirectChat,
72
69
  muteActive,
73
70
  t,
@@ -128,21 +125,6 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
128
125
  });
129
126
  }
130
127
 
131
- actionItems.push({
132
- action: isArchived ? unarchive : archive,
133
- Icon: (props) => <ChannelActionsIcon Icon={Archive} {...props} />,
134
- id: 'archive',
135
- label: isDirectChat
136
- ? isArchived
137
- ? t('Unarchive Chat')
138
- : t('Archive Chat')
139
- : isArchived
140
- ? t('Unarchive Group')
141
- : t('Archive Group'),
142
- placement: isDirectChat ? 'sheet' : 'both',
143
- type: 'standard',
144
- });
145
-
146
128
  actionItems.push({
147
129
  action: leave,
148
130
  Icon: (props) => <ChannelActionsIcon Icon={ArrowBoxLeft} {...props} />,
@@ -4,23 +4,25 @@ import type { FlatListProps } from 'react-native';
4
4
 
5
5
  import { Pressable } from 'react-native-gesture-handler';
6
6
 
7
- import { Channel } from 'stream-chat';
7
+ import type { Channel } from 'stream-chat';
8
8
 
9
9
  import { ChannelPreviewMutedStatus } from './ChannelPreviewMutedStatus';
10
10
  import { ChannelPreviewTitle } from './ChannelPreviewTitle';
11
11
  import { useIsChannelMuted } from './hooks/useIsChannelMuted';
12
12
 
13
- import { useBottomSheetContext, useTheme, useTranslationContext } from '../../contexts';
13
+ import { useBottomSheetContext } from '../../contexts/bottomSheetContext/BottomSheetContext';
14
14
  import { useSwipeRegistryContext } from '../../contexts/swipeableContext/SwipeRegistryContext';
15
- import { useStableCallback } from '../../hooks';
15
+ import { useTheme } from '../../contexts/themeContext/ThemeContext';
16
+ import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
17
+ import { useStableCallback } from '../../hooks/useStableCallback';
16
18
  import { primitives } from '../../theme';
17
- import { ChannelActionItem } from '../ChannelList/hooks/useChannelActionItems';
19
+ import type { ChannelActionItem } from '../ChannelList/hooks/useChannelActionItems';
18
20
  import { useChannelMembersState } from '../ChannelList/hooks/useChannelMembersState';
19
21
  import { useChannelMuteActive } from '../ChannelList/hooks/useChannelMuteActive';
20
22
  import { useChannelOnlineMemberCount } from '../ChannelList/hooks/useChannelOnlineMemberCount';
21
23
  import { useIsDirectChat } from '../ChannelList/hooks/useIsDirectChat';
22
- import { ChannelAvatar } from '../ui';
23
- import { StreamBottomSheetModalFlatList } from '../UIComponents';
24
+ import { ChannelAvatar } from '../ui/Avatar/ChannelAvatar';
25
+ import { StreamBottomSheetModalFlatList } from '../UIComponents/StreamBottomSheetModalFlatList';
24
26
 
25
27
  export type ChannelDetailsHeaderProps = { channel: Channel };
26
28
 
@@ -55,7 +57,7 @@ export const ChannelDetailsHeader = ({ channel }: ChannelDetailsHeaderProps) =>
55
57
 
56
58
  return (
57
59
  <View style={styles.headerContainer}>
58
- <ChannelAvatar channel={channel} size={'lg'} />
60
+ <ChannelAvatar channel={channel} size={'xl'} />
59
61
  <View style={styles.metaContainer}>
60
62
  <View style={styles.titleContainer}>
61
63
  <ChannelPreviewTitle channel={channel} />
@@ -141,7 +143,7 @@ const useStyles = () => {
141
143
  flexDirection: 'row',
142
144
  padding: primitives.spacingSm,
143
145
  gap: primitives.spacingSm,
144
- backgroundColor: semantics.backgroundCoreElevation1,
146
+ backgroundColor: 'transparent',
145
147
  ...header.container,
146
148
  },
147
149
  headerMeta: {
@@ -104,7 +104,9 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
104
104
  return (
105
105
  <View style={styles.container}>
106
106
  <PollIcon height={16} width={16} stroke={semantics.textSecondary} />
107
- <Text style={styles.subtitle}>{pollLabel}</Text>
107
+ <Text ellipsizeMode='tail' numberOfLines={1} style={styles.subtitle}>
108
+ {pollLabel}
109
+ </Text>
108
110
  </View>
109
111
  );
110
112
  }
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { StyleSheet, Text } from 'react-native';
3
3
 
4
- import { ChannelPreviewProps } from './ChannelPreview';
4
+ import type { ChannelPreviewProps } from './ChannelPreview';
5
5
  import type { ChannelPreviewViewPropsWithContext } from './ChannelPreviewView';
6
6
 
7
7
  import { useTheme } from '../../contexts/themeContext/ThemeContext';