stream-chat-react-native-core 3.10.1 → 4.0.0-beta.2

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 (623) hide show
  1. package/lib/commonjs/components/Attachment/Card.js +18 -15
  2. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/Gallery.js +8 -15
  4. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/Giphy.js +3 -3
  6. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  7. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +21 -45
  8. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  9. package/lib/commonjs/components/AutoCompleteInput/{CommandsItem.js → AutoCompleteSuggestionCommandIcon.js} +21 -94
  10. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -0
  11. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +145 -0
  12. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -0
  13. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +248 -0
  14. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -0
  15. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +223 -0
  16. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -0
  17. package/lib/commonjs/components/Avatar/GroupAvatar.js +3 -9
  18. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  19. package/lib/commonjs/components/Channel/Channel.js +293 -208
  20. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  21. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +5 -5
  22. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  23. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -5
  24. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  25. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +9 -31
  26. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  27. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +35 -0
  28. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -0
  29. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -0
  30. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  31. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +2 -1
  32. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  33. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +32 -20
  34. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  35. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +8 -7
  36. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  37. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +16 -7
  38. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  39. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +2 -1
  40. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  41. package/lib/commonjs/components/Chat/hooks/useIsOnline.js +12 -5
  42. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  43. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -2
  44. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  45. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +14 -16
  46. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  47. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  48. package/lib/commonjs/components/Message/Message.js +144 -851
  49. package/lib/commonjs/components/Message/Message.js.map +1 -1
  50. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +39 -38
  51. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  52. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +4 -2
  53. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  54. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +24 -16
  55. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  56. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +122 -0
  57. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -0
  58. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +5 -1
  59. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  60. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +27 -13
  61. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  62. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +19 -20
  63. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  64. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +7 -3
  65. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  66. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +52 -80
  67. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  68. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +42 -14
  69. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  70. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +1 -5
  71. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  72. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +294 -0
  73. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -0
  74. package/lib/commonjs/components/Message/hooks/useMessageActions.js +559 -0
  75. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -0
  76. package/lib/commonjs/components/Message/utils/messageActions.js +17 -15
  77. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  78. package/lib/commonjs/components/MessageInput/CooldownTimer.js +78 -0
  79. package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -0
  80. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +2 -2
  81. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  82. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +2 -2
  83. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  84. package/lib/commonjs/components/MessageInput/InputButtons.js +16 -21
  85. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  86. package/lib/commonjs/components/MessageInput/MessageInput.js +90 -62
  87. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  88. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +71 -0
  89. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -0
  90. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +1 -0
  91. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  92. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js +63 -0
  93. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -0
  94. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js +57 -0
  95. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -0
  96. package/lib/commonjs/components/MessageList/DateHeader.js +2 -2
  97. package/lib/commonjs/components/MessageList/DateHeader.js.map +1 -1
  98. package/lib/commonjs/components/MessageList/InlineDateSeparator.js +2 -2
  99. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  100. package/lib/commonjs/components/MessageList/MessageList.js +75 -42
  101. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  102. package/lib/commonjs/components/MessageList/hooks/useMessageList.js +16 -3
  103. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  104. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js +2 -1
  105. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  106. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +10 -5
  107. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  108. package/lib/{module/components/MessageOverlay/MessageActions.js → commonjs/components/MessageOverlay/MessageActionList.js} +33 -85
  109. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -0
  110. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +131 -0
  111. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -0
  112. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +83 -70
  113. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  114. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +38 -0
  115. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
  116. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +1 -0
  117. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  118. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +37 -0
  119. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
  120. package/lib/commonjs/components/Thread/Thread.js +13 -4
  121. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  122. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +9 -1
  123. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  124. package/lib/commonjs/components/docs/ListProps.md +1 -1
  125. package/lib/commonjs/components/index.js +107 -55
  126. package/lib/commonjs/components/index.js.map +1 -1
  127. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +68 -0
  128. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -0
  129. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  130. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  131. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  132. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +155 -0
  133. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -0
  134. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +144 -0
  135. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -0
  136. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
  137. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  138. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +112 -78
  139. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  140. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -5
  141. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  142. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  143. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  144. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  145. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
  146. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  147. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +31 -24
  148. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  149. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +61 -0
  150. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -0
  151. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +19 -32
  152. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  153. package/lib/commonjs/contexts/themeContext/utils/theme.js +25 -9
  154. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  155. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  156. package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
  157. package/lib/commonjs/emoji-data/compiled.js +0 -315
  158. package/lib/commonjs/emoji-data/compiled.js.map +1 -1
  159. package/lib/commonjs/emoji-data/emojiNames.js +0 -105
  160. package/lib/commonjs/emoji-data/emojiNames.js.map +1 -1
  161. package/lib/commonjs/emoji-data/emojis.js +0 -175
  162. package/lib/commonjs/emoji-data/emojis.js.map +1 -1
  163. package/lib/commonjs/i18n/en.json +9 -3
  164. package/lib/commonjs/i18n/fr.json +9 -3
  165. package/lib/commonjs/i18n/hi.json +9 -3
  166. package/lib/commonjs/i18n/it.json +9 -3
  167. package/lib/commonjs/i18n/ja.json +9 -0
  168. package/lib/commonjs/i18n/ko.json +9 -0
  169. package/lib/commonjs/i18n/nl.json +9 -3
  170. package/lib/commonjs/i18n/ru.json +9 -3
  171. package/lib/commonjs/i18n/tr.json +10 -4
  172. package/lib/commonjs/icons/Pin.js +42 -0
  173. package/lib/commonjs/icons/Pin.js.map +1 -0
  174. package/lib/commonjs/icons/PinHeader.js +38 -0
  175. package/lib/commonjs/icons/PinHeader.js.map +1 -0
  176. package/lib/commonjs/icons/Unpin.js +38 -0
  177. package/lib/commonjs/icons/Unpin.js.map +1 -0
  178. package/lib/commonjs/icons/index.js +39 -0
  179. package/lib/commonjs/icons/index.js.map +1 -1
  180. package/lib/commonjs/mock-builders/api/sendMessage.js +4 -1
  181. package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
  182. package/lib/commonjs/mock-builders/generator/channel.js +1 -0
  183. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  184. package/lib/commonjs/mock-builders/mock.js +2 -2
  185. package/lib/commonjs/mock-builders/mock.js.map +1 -1
  186. package/lib/commonjs/native.js +1 -7
  187. package/lib/commonjs/native.js.map +1 -1
  188. package/lib/commonjs/utils/date.js +13 -0
  189. package/lib/commonjs/utils/date.js.map +1 -0
  190. package/lib/commonjs/utils/utils.js +9 -7
  191. package/lib/commonjs/utils/utils.js.map +1 -1
  192. package/lib/commonjs/version.json +1 -1
  193. package/lib/module/components/Attachment/Card.js +18 -15
  194. package/lib/module/components/Attachment/Card.js.map +1 -1
  195. package/lib/module/components/Attachment/Gallery.js +8 -15
  196. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  197. package/lib/module/components/Attachment/Giphy.js +3 -3
  198. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  199. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +21 -45
  200. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  201. package/lib/module/components/AutoCompleteInput/{CommandsItem.js → AutoCompleteSuggestionCommandIcon.js} +21 -94
  202. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -0
  203. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +145 -0
  204. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -0
  205. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +248 -0
  206. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -0
  207. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +223 -0
  208. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -0
  209. package/lib/module/components/Avatar/GroupAvatar.js +3 -9
  210. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  211. package/lib/module/components/Channel/Channel.js +293 -208
  212. package/lib/module/components/Channel/Channel.js.map +1 -1
  213. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +5 -5
  214. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  215. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -5
  216. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  217. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +9 -31
  218. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  219. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +35 -0
  220. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -0
  221. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -0
  222. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  223. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +2 -1
  224. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  225. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +32 -20
  226. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  227. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +8 -7
  228. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  229. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +16 -7
  230. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  231. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +2 -1
  232. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  233. package/lib/module/components/Chat/hooks/useIsOnline.js +12 -5
  234. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  235. package/lib/module/components/ImageGallery/ImageGallery.js +1 -2
  236. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  237. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +14 -16
  238. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  239. package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  240. package/lib/module/components/Message/Message.js +144 -851
  241. package/lib/module/components/Message/Message.js.map +1 -1
  242. package/lib/module/components/Message/MessageSimple/MessageContent.js +39 -38
  243. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  244. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +4 -2
  245. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  246. package/lib/module/components/Message/MessageSimple/MessageFooter.js +24 -16
  247. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  248. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +122 -0
  249. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -0
  250. package/lib/module/components/Message/MessageSimple/MessageReplies.js +5 -1
  251. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  252. package/lib/module/components/Message/MessageSimple/MessageSimple.js +27 -13
  253. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  254. package/lib/module/components/Message/MessageSimple/MessageStatus.js +19 -20
  255. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  256. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +7 -3
  257. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  258. package/lib/module/components/Message/MessageSimple/ReactionList.js +52 -80
  259. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  260. package/lib/module/components/Message/MessageSimple/utils/renderText.js +42 -14
  261. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  262. package/lib/module/components/Message/hooks/useCreateMessageContext.js +1 -5
  263. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  264. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +294 -0
  265. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -0
  266. package/lib/module/components/Message/hooks/useMessageActions.js +559 -0
  267. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -0
  268. package/lib/module/components/Message/utils/messageActions.js +17 -15
  269. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  270. package/lib/module/components/MessageInput/CooldownTimer.js +78 -0
  271. package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -0
  272. package/lib/module/components/MessageInput/FileUploadPreview.js +2 -2
  273. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  274. package/lib/module/components/MessageInput/ImageUploadPreview.js +2 -2
  275. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  276. package/lib/module/components/MessageInput/InputButtons.js +16 -21
  277. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  278. package/lib/module/components/MessageInput/MessageInput.js +90 -62
  279. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  280. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +71 -0
  281. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -0
  282. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +1 -0
  283. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  284. package/lib/module/components/MessageInput/hooks/useCooldown.js +63 -0
  285. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -0
  286. package/lib/module/components/MessageInput/hooks/useCountdown.js +57 -0
  287. package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -0
  288. package/lib/module/components/MessageList/DateHeader.js +2 -2
  289. package/lib/module/components/MessageList/DateHeader.js.map +1 -1
  290. package/lib/module/components/MessageList/InlineDateSeparator.js +2 -2
  291. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  292. package/lib/module/components/MessageList/MessageList.js +75 -42
  293. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  294. package/lib/module/components/MessageList/hooks/useMessageList.js +16 -3
  295. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  296. package/lib/module/components/MessageList/utils/getDateSeparators.js +2 -1
  297. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  298. package/lib/module/components/MessageList/utils/getGroupStyles.js +10 -5
  299. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  300. package/lib/{commonjs/components/MessageOverlay/MessageActions.js → module/components/MessageOverlay/MessageActionList.js} +33 -85
  301. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -0
  302. package/lib/module/components/MessageOverlay/MessageActionListItem.js +131 -0
  303. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -0
  304. package/lib/module/components/MessageOverlay/MessageOverlay.js +83 -70
  305. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  306. package/lib/module/components/MessageOverlay/OverlayBackdrop.js +38 -0
  307. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
  308. package/lib/module/components/MessageOverlay/OverlayReactionList.js +1 -0
  309. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  310. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +37 -0
  311. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
  312. package/lib/module/components/Thread/Thread.js +13 -4
  313. package/lib/module/components/Thread/Thread.js.map +1 -1
  314. package/lib/module/components/Thread/components/ThreadFooterComponent.js +9 -1
  315. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  316. package/lib/module/components/docs/ListProps.md +1 -1
  317. package/lib/module/components/index.js +107 -55
  318. package/lib/module/components/index.js.map +1 -1
  319. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +68 -0
  320. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -0
  321. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  322. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  323. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  324. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +155 -0
  325. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -0
  326. package/lib/module/contexts/channelsStateContext/useChannelState.js +144 -0
  327. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -0
  328. package/lib/module/contexts/messageContext/MessageContext.js +2 -2
  329. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  330. package/lib/module/contexts/messageInputContext/MessageInputContext.js +112 -78
  331. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  332. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -5
  333. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  334. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  335. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  336. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  337. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
  338. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  339. package/lib/module/contexts/overlayContext/OverlayProvider.js +31 -24
  340. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  341. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +61 -0
  342. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -0
  343. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +19 -32
  344. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  345. package/lib/module/contexts/themeContext/utils/theme.js +25 -9
  346. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  347. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  348. package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
  349. package/lib/module/emoji-data/compiled.js +0 -315
  350. package/lib/module/emoji-data/compiled.js.map +1 -1
  351. package/lib/module/emoji-data/emojiNames.js +0 -105
  352. package/lib/module/emoji-data/emojiNames.js.map +1 -1
  353. package/lib/module/emoji-data/emojis.js +0 -175
  354. package/lib/module/emoji-data/emojis.js.map +1 -1
  355. package/lib/module/i18n/en.json +9 -3
  356. package/lib/module/i18n/fr.json +9 -3
  357. package/lib/module/i18n/hi.json +9 -3
  358. package/lib/module/i18n/it.json +9 -3
  359. package/lib/module/i18n/ja.json +9 -0
  360. package/lib/module/i18n/ko.json +9 -0
  361. package/lib/module/i18n/nl.json +9 -3
  362. package/lib/module/i18n/ru.json +9 -3
  363. package/lib/module/i18n/tr.json +10 -4
  364. package/lib/module/icons/Pin.js +42 -0
  365. package/lib/module/icons/Pin.js.map +1 -0
  366. package/lib/module/icons/PinHeader.js +38 -0
  367. package/lib/module/icons/PinHeader.js.map +1 -0
  368. package/lib/module/icons/Unpin.js +38 -0
  369. package/lib/module/icons/Unpin.js.map +1 -0
  370. package/lib/module/icons/index.js +39 -0
  371. package/lib/module/icons/index.js.map +1 -1
  372. package/lib/module/mock-builders/api/sendMessage.js +4 -1
  373. package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
  374. package/lib/module/mock-builders/generator/channel.js +1 -0
  375. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  376. package/lib/module/mock-builders/mock.js +2 -2
  377. package/lib/module/mock-builders/mock.js.map +1 -1
  378. package/lib/module/native.js +1 -7
  379. package/lib/module/native.js.map +1 -1
  380. package/lib/module/utils/date.js +13 -0
  381. package/lib/module/utils/date.js.map +1 -0
  382. package/lib/module/utils/utils.js +9 -7
  383. package/lib/module/utils/utils.js.map +1 -1
  384. package/lib/module/version.json +1 -1
  385. package/lib/typescript/components/Attachment/Card.d.ts +2 -0
  386. package/lib/typescript/components/Attachment/Gallery.d.ts +3 -2
  387. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +7 -1
  388. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +4 -0
  389. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +8 -0
  390. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +10 -0
  391. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +22 -0
  392. package/lib/typescript/components/Channel/Channel.d.ts +11 -10
  393. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  394. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -68
  395. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -126
  396. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +7 -0
  397. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +1 -1
  398. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +12 -0
  399. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +1 -0
  400. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
  401. package/lib/typescript/components/Message/Message.d.ts +3 -2
  402. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
  403. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +8 -0
  404. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
  405. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +1 -1
  406. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +1 -0
  407. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +2 -1
  408. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +1 -0
  409. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  410. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +15 -0
  411. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +26 -0
  412. package/lib/typescript/components/Message/utils/messageActions.d.ts +22 -21
  413. package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +10 -0
  414. package/lib/typescript/components/MessageInput/InputButtons.d.ts +1 -1
  415. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
  416. package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts +1 -0
  417. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +9 -0
  418. package/lib/typescript/components/MessageInput/hooks/useCountdown.d.ts +8 -0
  419. package/lib/typescript/components/MessageList/MessageList.d.ts +2 -1
  420. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +1 -0
  421. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +12 -0
  422. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +20 -0
  423. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +4 -4
  424. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +6 -0
  425. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +12 -0
  426. package/lib/typescript/components/index.d.ts +11 -7
  427. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +9 -0
  428. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +28 -30
  429. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -1
  430. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +41 -0
  431. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +20 -0
  432. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +2 -6
  433. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +15 -6
  434. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  435. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +8 -11
  436. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +15 -106
  437. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +10 -3
  438. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +25 -0
  439. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +15 -14
  440. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +24 -8
  441. package/lib/typescript/contexts/utils/getDisplayName.d.ts +2 -2
  442. package/lib/typescript/i18n/en.json +9 -3
  443. package/lib/typescript/i18n/fr.json +9 -3
  444. package/lib/typescript/i18n/hi.json +9 -3
  445. package/lib/typescript/i18n/it.json +9 -3
  446. package/lib/typescript/i18n/ja.json +9 -0
  447. package/lib/typescript/i18n/ko.json +9 -0
  448. package/lib/typescript/i18n/nl.json +9 -3
  449. package/lib/typescript/i18n/ru.json +9 -3
  450. package/lib/typescript/i18n/tr.json +10 -4
  451. package/lib/typescript/icons/Pin.d.ts +3 -0
  452. package/lib/typescript/icons/PinHeader.d.ts +3 -0
  453. package/lib/typescript/icons/Unpin.d.ts +3 -0
  454. package/lib/typescript/icons/index.d.ts +3 -0
  455. package/lib/typescript/native.d.ts +1 -9
  456. package/lib/typescript/utils/Streami18n.d.ts +9 -6
  457. package/lib/typescript/utils/date.d.ts +2 -0
  458. package/lib/typescript/utils/utils.d.ts +8 -10
  459. package/package.json +5 -3
  460. package/src/components/Attachment/Card.tsx +5 -1
  461. package/src/components/Attachment/Gallery.tsx +5 -10
  462. package/src/components/Attachment/Giphy.tsx +3 -3
  463. package/src/components/Attachment/__tests__/Attachment.test.js +13 -6
  464. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +41 -27
  465. package/src/components/AutoCompleteInput/{CommandsItem.tsx → AutoCompleteSuggestionCommandIcon.tsx} +2 -56
  466. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +109 -0
  467. package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +154 -0
  468. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +213 -0
  469. package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.js +0 -4
  470. package/src/components/Avatar/GroupAvatar.tsx +0 -19
  471. package/src/components/Avatar/__tests__/Avatar.test.js +0 -28
  472. package/src/components/Channel/Channel.tsx +225 -176
  473. package/src/components/Channel/__tests__/Channel.test.js +25 -20
  474. package/src/components/Channel/__tests__/ownCapabilities.test.js +376 -0
  475. package/src/components/Channel/hooks/useCreateChannelContext.ts +6 -6
  476. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +4 -3
  477. package/src/components/Channel/hooks/useCreateMessagesContext.ts +9 -30
  478. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +53 -0
  479. package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
  480. package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +4 -1
  481. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +16 -4
  482. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +4 -1
  483. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +6 -0
  484. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +2 -1
  485. package/src/components/Chat/__tests__/Chat.test.js +6 -2
  486. package/src/components/Chat/hooks/useIsOnline.ts +8 -5
  487. package/src/components/ImageGallery/ImageGallery.tsx +3 -2
  488. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +4 -5
  489. package/src/components/Indicators/LoadingErrorIndicator.tsx +1 -1
  490. package/src/components/Message/Message.tsx +140 -579
  491. package/src/components/Message/MessageSimple/MessageContent.tsx +21 -22
  492. package/src/components/Message/MessageSimple/MessageDeleted.tsx +5 -2
  493. package/src/components/Message/MessageSimple/MessageFooter.tsx +36 -17
  494. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +150 -0
  495. package/src/components/Message/MessageSimple/MessageReplies.tsx +5 -0
  496. package/src/components/Message/MessageSimple/MessageSimple.tsx +47 -26
  497. package/src/components/Message/MessageSimple/MessageStatus.tsx +10 -29
  498. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +5 -0
  499. package/src/components/Message/MessageSimple/ReactionList.tsx +64 -77
  500. package/src/components/Message/MessageSimple/__tests__/Message.test.js +0 -1
  501. package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +32 -22
  502. package/src/components/Message/MessageSimple/__tests__/MessagePinnedHeader.test.js +53 -0
  503. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +80 -0
  504. package/src/components/Message/MessageSimple/utils/renderText.tsx +25 -3
  505. package/src/components/Message/hooks/useCreateMessageContext.ts +0 -5
  506. package/src/components/Message/hooks/useMessageActionHandlers.ts +163 -0
  507. package/src/components/Message/hooks/useMessageActions.tsx +381 -0
  508. package/src/components/Message/utils/messageActions.ts +64 -38
  509. package/src/components/MessageInput/CooldownTimer.tsx +66 -0
  510. package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
  511. package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
  512. package/src/components/MessageInput/InputButtons.tsx +4 -10
  513. package/src/components/MessageInput/MessageInput.tsx +59 -31
  514. package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +47 -0
  515. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +1 -1
  516. package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +29 -29
  517. package/src/components/MessageInput/__tests__/ImageUploadPreview.test.js +12 -12
  518. package/src/components/MessageInput/__tests__/MessageInput.test.js +8 -16
  519. package/src/components/MessageInput/__tests__/__snapshots__/FileUploadPreview.test.js.snap +6061 -2789
  520. package/src/components/MessageInput/__tests__/__snapshots__/ImageUploadPreview.test.js.snap +1912 -1572
  521. package/src/components/MessageInput/__tests__/__snapshots__/MessageInput.test.js.snap +1167 -282
  522. package/src/components/MessageInput/__tests__/__snapshots__/UploadProgressIndicator.test.js.snap +4 -4
  523. package/src/components/MessageInput/hooks/useCooldown.ts +60 -0
  524. package/src/components/MessageInput/hooks/useCountdown.ts +47 -0
  525. package/src/components/MessageList/DateHeader.tsx +2 -2
  526. package/src/components/MessageList/InlineDateSeparator.tsx +2 -2
  527. package/src/components/MessageList/MessageList.tsx +60 -36
  528. package/src/components/MessageList/__tests__/MessageList.test.js +231 -106
  529. package/src/components/MessageList/hooks/useMessageList.ts +14 -2
  530. package/src/components/MessageList/utils/getDateSeparators.ts +4 -3
  531. package/src/components/MessageList/utils/getGroupStyles.ts +13 -7
  532. package/src/components/MessageOverlay/{MessageActions.tsx → MessageActionList.tsx} +57 -89
  533. package/src/components/MessageOverlay/MessageActionListItem.tsx +111 -0
  534. package/src/components/MessageOverlay/MessageOverlay.tsx +242 -205
  535. package/src/components/MessageOverlay/OverlayBackdrop.tsx +17 -0
  536. package/src/components/MessageOverlay/OverlayReactionList.tsx +1 -1
  537. package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +43 -0
  538. package/src/components/Thread/Thread.tsx +8 -0
  539. package/src/components/Thread/__tests__/Thread.test.js +28 -101
  540. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +1085 -1018
  541. package/src/components/Thread/components/ThreadFooterComponent.tsx +13 -1
  542. package/src/components/docs/ListProps.md +1 -1
  543. package/src/components/index.ts +11 -7
  544. package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +33 -0
  545. package/src/contexts/channelContext/ChannelContext.tsx +27 -30
  546. package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
  547. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +287 -0
  548. package/src/contexts/channelsStateContext/useChannelState.ts +206 -0
  549. package/src/contexts/messageContext/MessageContext.tsx +1 -8
  550. package/src/contexts/messageInputContext/MessageInputContext.tsx +56 -18
  551. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +7 -3
  552. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +12 -12
  553. package/src/contexts/messagesContext/MessagesContext.tsx +28 -129
  554. package/src/contexts/overlayContext/OverlayContext.tsx +10 -4
  555. package/src/contexts/overlayContext/OverlayProvider.tsx +21 -20
  556. package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +38 -0
  557. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +27 -48
  558. package/src/contexts/suggestionsContext/__tests__/Suggestions.test.js +0 -1
  559. package/src/contexts/themeContext/utils/theme.ts +48 -16
  560. package/src/contexts/translationContext/TranslationContext.tsx +1 -1
  561. package/src/contexts/utils/getDisplayName.ts +2 -1
  562. package/src/emoji-data/compiled.ts +1830 -9609
  563. package/src/emoji-data/emojiNames.ts +0 -140
  564. package/src/emoji-data/emojis.ts +0 -210
  565. package/src/i18n/en.json +9 -3
  566. package/src/i18n/fr.json +9 -3
  567. package/src/i18n/hi.json +9 -3
  568. package/src/i18n/it.json +9 -3
  569. package/src/i18n/ja.json +9 -0
  570. package/src/i18n/ko.json +9 -0
  571. package/src/i18n/nl.json +9 -3
  572. package/src/i18n/ru.json +9 -3
  573. package/src/i18n/tr.json +10 -4
  574. package/src/icons/Pin.tsx +17 -0
  575. package/src/icons/PinHeader.tsx +12 -0
  576. package/src/icons/Unpin.tsx +12 -0
  577. package/src/icons/index.ts +3 -0
  578. package/src/mock-builders/api/sendMessage.js +3 -2
  579. package/src/mock-builders/generator/channel.js +18 -0
  580. package/src/mock-builders/mock.js +2 -2
  581. package/src/native.ts +1 -13
  582. package/src/utils/date.ts +4 -0
  583. package/src/utils/utils.ts +14 -12
  584. package/src/version.json +1 -1
  585. package/lib/commonjs/components/AutoCompleteInput/CommandsHeader.js +0 -78
  586. package/lib/commonjs/components/AutoCompleteInput/CommandsHeader.js.map +0 -1
  587. package/lib/commonjs/components/AutoCompleteInput/CommandsItem.js.map +0 -1
  588. package/lib/commonjs/components/AutoCompleteInput/EmojisHeader.js +0 -81
  589. package/lib/commonjs/components/AutoCompleteInput/EmojisHeader.js.map +0 -1
  590. package/lib/commonjs/components/AutoCompleteInput/EmojisItem.js +0 -75
  591. package/lib/commonjs/components/AutoCompleteInput/EmojisItem.js.map +0 -1
  592. package/lib/commonjs/components/AutoCompleteInput/MentionsItem.js +0 -125
  593. package/lib/commonjs/components/AutoCompleteInput/MentionsItem.js.map +0 -1
  594. package/lib/commonjs/components/AutoCompleteInput/SuggestionsList.js +0 -199
  595. package/lib/commonjs/components/AutoCompleteInput/SuggestionsList.js.map +0 -1
  596. package/lib/commonjs/components/MessageOverlay/MessageActions.js.map +0 -1
  597. package/lib/module/components/AutoCompleteInput/CommandsHeader.js +0 -78
  598. package/lib/module/components/AutoCompleteInput/CommandsHeader.js.map +0 -1
  599. package/lib/module/components/AutoCompleteInput/CommandsItem.js.map +0 -1
  600. package/lib/module/components/AutoCompleteInput/EmojisHeader.js +0 -81
  601. package/lib/module/components/AutoCompleteInput/EmojisHeader.js.map +0 -1
  602. package/lib/module/components/AutoCompleteInput/EmojisItem.js +0 -75
  603. package/lib/module/components/AutoCompleteInput/EmojisItem.js.map +0 -1
  604. package/lib/module/components/AutoCompleteInput/MentionsItem.js +0 -125
  605. package/lib/module/components/AutoCompleteInput/MentionsItem.js.map +0 -1
  606. package/lib/module/components/AutoCompleteInput/SuggestionsList.js +0 -199
  607. package/lib/module/components/AutoCompleteInput/SuggestionsList.js.map +0 -1
  608. package/lib/module/components/MessageOverlay/MessageActions.js.map +0 -1
  609. package/lib/typescript/components/AutoCompleteInput/CommandsHeader.d.ts +0 -2
  610. package/lib/typescript/components/AutoCompleteInput/CommandsItem.d.ts +0 -15
  611. package/lib/typescript/components/AutoCompleteInput/EmojisHeader.d.ts +0 -5
  612. package/lib/typescript/components/AutoCompleteInput/EmojisItem.d.ts +0 -12
  613. package/lib/typescript/components/AutoCompleteInput/MentionsItem.d.ts +0 -16
  614. package/lib/typescript/components/AutoCompleteInput/SuggestionsList.d.ts +0 -13
  615. package/lib/typescript/components/MessageOverlay/MessageActions.d.ts +0 -11
  616. package/src/components/AutoCompleteInput/CommandsHeader.tsx +0 -43
  617. package/src/components/AutoCompleteInput/EmojisHeader.tsx +0 -45
  618. package/src/components/AutoCompleteInput/EmojisItem.tsx +0 -52
  619. package/src/components/AutoCompleteInput/MentionsItem.tsx +0 -74
  620. package/src/components/AutoCompleteInput/SuggestionsList.tsx +0 -138
  621. package/src/components/AutoCompleteInput/__tests__/CommandsItem.test.js +0 -26
  622. package/src/components/AutoCompleteInput/__tests__/MentionsItem.test.js +0 -62
  623. package/src/components/MessageList/__tests__/__snapshots__/MessageList.test.js.snap +0 -936
@@ -31,1292 +31,1359 @@ exports[`Thread should match thread snapshot 1`] = `
31
31
  Object {},
32
32
  ]
33
33
  }
34
+ testID="message-flat-list-wrapper"
34
35
  >
35
- <View
36
+ <RCTScrollView
37
+ ListEmptyComponent={[Function]}
36
38
  ListFooterComponent={null}
39
+ ListHeaderComponent={[Function]}
40
+ contentContainerStyle={
41
+ Array [
42
+ Object {
43
+ "flexGrow": 1,
44
+ "paddingBottom": 4,
45
+ },
46
+ Object {},
47
+ ]
48
+ }
49
+ data={
50
+ Array [
51
+ Object {
52
+ "__html": "<p>regular</p>",
53
+ "attachments": Array [],
54
+ "created_at": 2020-05-05T14:50:00.000Z,
55
+ "dateSeparator": undefined,
56
+ "groupStyles": Array [
57
+ "single",
58
+ ],
59
+ "html": "<p>regular</p>",
60
+ "id": "38ef6f7c-3090-5759-a37f-ab0053aadb96",
61
+ "parent_id": "b4612a73-fa2b-5787-bf71-1adc8f291a04",
62
+ "pinned_at": null,
63
+ "readBy": false,
64
+ "status": "received",
65
+ "text": "Message6",
66
+ "type": "regular",
67
+ "updated_at": 2020-05-05T14:50:00.000Z,
68
+ "user": Object {
69
+ "banned": false,
70
+ "created_at": "2020-04-27T13:39:49.331742Z",
71
+ "id": "GrantyBoi2",
72
+ "image": "https://i.imgur.com/SLx06PP.png",
73
+ "name": "Grant",
74
+ "online": false,
75
+ "role": "user",
76
+ "updated_at": "2020-04-27T13:39:49.332087Z",
77
+ },
78
+ },
79
+ Object {
80
+ "__html": "<p>regular</p>",
81
+ "attachments": Array [],
82
+ "created_at": 2020-05-05T14:50:00.000Z,
83
+ "dateSeparator": undefined,
84
+ "groupStyles": Array [
85
+ "single",
86
+ ],
87
+ "html": "<p>regular</p>",
88
+ "id": "516efa25-5d29-5c9a-ad2d-4cc183e785bd",
89
+ "parent_id": "b4612a73-fa2b-5787-bf71-1adc8f291a04",
90
+ "pinned_at": null,
91
+ "readBy": false,
92
+ "status": "received",
93
+ "text": "Message5",
94
+ "type": "regular",
95
+ "updated_at": 2020-05-05T14:50:00.000Z,
96
+ "user": Object {
97
+ "banned": false,
98
+ "created_at": "2020-04-27T13:39:49.331742Z",
99
+ "id": "NeiliBoi3",
100
+ "image": "https://i.imgur.com/T68W8nR_d.webp?maxwidth=728&fidelity=grand",
101
+ "name": "Neil",
102
+ "online": false,
103
+ "role": "user",
104
+ "updated_at": "2020-04-27T13:39:49.332087Z",
105
+ },
106
+ },
107
+ Object {
108
+ "__html": "<p>regular</p>",
109
+ "attachments": Array [],
110
+ "created_at": 2020-05-05T14:50:00.000Z,
111
+ "dateSeparator": 2020-05-05T14:50:00.000Z,
112
+ "groupStyles": Array [
113
+ "single",
114
+ ],
115
+ "html": "<p>regular</p>",
116
+ "id": "82a83b16-b611-527c-b3ac-765ef6220490",
117
+ "parent_id": "b4612a73-fa2b-5787-bf71-1adc8f291a04",
118
+ "pinned_at": null,
119
+ "readBy": false,
120
+ "status": "received",
121
+ "text": "Message4",
122
+ "type": "regular",
123
+ "updated_at": 2020-05-05T14:50:00.000Z,
124
+ "user": Object {
125
+ "banned": false,
126
+ "created_at": "2020-04-27T13:39:49.331742Z",
127
+ "id": "GrantyBoi2",
128
+ "image": "https://i.imgur.com/SLx06PP.png",
129
+ "name": "Grant",
130
+ "online": false,
131
+ "role": "user",
132
+ "updated_at": "2020-04-27T13:39:49.332087Z",
133
+ },
134
+ },
135
+ ]
136
+ }
137
+ disableVirtualization={false}
138
+ extraData={false}
139
+ getItem={[Function]}
140
+ getItemCount={[Function]}
141
+ horizontal={false}
142
+ initialNumToRender={10}
143
+ invertStickyHeaders={true}
144
+ inverted={true}
145
+ keyExtractor={[Function]}
146
+ keyboardShouldPersistTaps="handled"
147
+ maintainVisibleContentPosition={
148
+ Object {
149
+ "autoscrollToTopThreshold": 10,
150
+ "minIndexForVisible": 1,
151
+ }
152
+ }
153
+ maxToRenderPerBatch={10}
154
+ onContentSizeChange={[Function]}
155
+ onEndReachedThreshold={2}
156
+ onLayout={[Function]}
157
+ onMomentumScrollEnd={[Function]}
158
+ onScroll={[Function]}
159
+ onScrollBeginDrag={[Function]}
160
+ onScrollEndDrag={[Function]}
161
+ onTouchEnd={[Function]}
162
+ onViewableItemsChanged={[Function]}
163
+ removeClippedSubviews={false}
164
+ renderItem={[Function]}
165
+ scrollEnabled={false}
166
+ scrollEventThrottle={50}
167
+ stickyHeaderIndices={Array []}
168
+ style={
169
+ Array [
170
+ Object {
171
+ "transform": Array [
172
+ Object {
173
+ "scaleY": -1,
174
+ },
175
+ ],
176
+ },
177
+ Array [
178
+ Object {
179
+ "flex": 1,
180
+ "width": "100%",
181
+ },
182
+ Object {},
183
+ ],
184
+ ]
185
+ }
186
+ testID="message-flat-list"
187
+ updateCellsBatchingPeriod={50}
188
+ viewabilityConfig={
189
+ Object {
190
+ "viewAreaCoveragePercentThreshold": 1,
191
+ }
192
+ }
193
+ viewabilityConfigCallbackPairs={
194
+ Array [
195
+ Object {
196
+ "onViewableItemsChanged": [Function],
197
+ "viewabilityConfig": Object {
198
+ "viewAreaCoveragePercentThreshold": 1,
199
+ },
200
+ },
201
+ ]
202
+ }
203
+ windowSize={21}
37
204
  >
38
205
  <View>
39
206
  <View
40
- animatedStyle={
207
+ onLayout={[Function]}
208
+ style={
41
209
  Object {
42
- "value": Object {},
210
+ "transform": Array [
211
+ Object {
212
+ "scaleY": -1,
213
+ },
214
+ ],
43
215
  }
44
216
  }
45
- collapsable={false}
46
- forwardedRef={[Function]}
47
- onGestureHandlerEvent={[Function]}
48
- onGestureHandlerStateChange={[Function]}
49
- testID="message-wrapper"
50
- >
51
- <View
52
- animatedStyle={
217
+ />
218
+ <View
219
+ onLayout={[Function]}
220
+ style={
221
+ Array [
53
222
  Object {
54
- "value": Object {
55
- "transform": Array [
56
- Object {
57
- "scale": 1,
58
- },
59
- ],
60
- },
61
- }
62
- }
63
- collapsable={false}
64
- forwardedRef={[Function]}
65
- onGestureHandlerEvent={[Function]}
66
- onGestureHandlerStateChange={[Function]}
67
- style={
223
+ "flexDirection": "column-reverse",
224
+ },
68
225
  Object {
69
- "backgroundColor": undefined,
70
- "paddingHorizontal": 8,
71
226
  "transform": Array [
72
227
  Object {
73
- "scale": 1,
228
+ "scaleY": -1,
74
229
  },
75
230
  ],
76
- }
77
- }
231
+ },
232
+ ]
233
+ }
234
+ >
235
+ <View
236
+ testID="message-list-item-0"
78
237
  >
79
- <View
80
- animatedStyle={
81
- Object {
82
- "value": Object {
83
- "opacity": 0,
84
- },
85
- }
86
- }
87
- collapsable={false}
88
- style={
89
- Object {
90
- "backgroundColor": "#FBF4DD",
91
- "bottom": 0,
92
- "left": 0,
93
- "opacity": 0,
94
- "position": "absolute",
95
- "right": 0,
96
- "top": 0,
97
- }
98
- }
99
- />
100
238
  <View
101
239
  style={
102
240
  Array [
103
- Object {
104
- "alignItems": "flex-end",
105
- "flexDirection": "row",
106
- },
107
- Object {
108
- "justifyContent": "flex-start",
109
- "marginBottom": 8,
110
- "marginTop": 0,
111
- },
112
- Object {},
241
+ undefined,
113
242
  ]
114
243
  }
115
- testID="message-simple-wrapper"
244
+ testID="message-wrapper"
116
245
  >
117
246
  <View
118
247
  style={
119
248
  Array [
120
249
  Object {
121
- "marginRight": 8,
250
+ "paddingHorizontal": 8,
251
+ },
252
+ Object {
253
+ "backgroundColor": undefined,
122
254
  },
123
- Object {},
124
255
  ]
125
256
  }
126
- testID="message-avatar"
127
- >
128
- <View>
129
- <View
130
- style={
131
- Array [
132
- Object {
133
- "alignItems": "center",
134
- "justifyContent": "center",
135
- "overflow": "hidden",
136
- },
137
- Object {
138
- "borderRadius": 16,
139
- "height": 32,
140
- "width": 32,
141
- },
142
- Object {},
143
- undefined,
144
- ]
145
- }
146
- >
147
- <Image
148
- accessibilityLabel="avatar-image"
149
- onError={[Function]}
150
- source={
151
- Object {
152
- "uri": "https://i.imgur.com/SLx06PP.png",
153
- }
154
- }
155
- style={
156
- Array [
157
- Object {
158
- "borderRadius": 16,
159
- "height": 32,
160
- "width": 32,
161
- },
162
- Object {
163
- "borderRadius": 16,
164
- "height": 32,
165
- "width": 32,
166
- },
167
- undefined,
168
- ]
169
- }
170
- testID="avatar-image"
171
- />
172
- </View>
173
- </View>
174
- </View>
175
- <View
176
- accessible={true}
177
- focusable={true}
178
- onClick={[Function]}
179
- onResponderGrant={[Function]}
180
- onResponderMove={[Function]}
181
- onResponderRelease={[Function]}
182
- onResponderTerminate={[Function]}
183
- onResponderTerminationRequest={[Function]}
184
- onStartShouldSetResponder={[Function]}
185
- style={
186
- Object {
187
- "alignItems": "flex-start",
188
- "opacity": 1,
189
- "paddingTop": 2,
190
- }
191
- }
192
257
  >
193
258
  <View
194
- onLayout={[Function]}
195
- style={Object {}}
259
+ style={
260
+ Array [
261
+ Object {},
262
+ ]
263
+ }
196
264
  >
197
265
  <View
198
266
  style={
199
267
  Array [
200
268
  Object {
201
- "borderTopLeftRadius": 16,
202
- "borderTopRightRadius": 16,
203
- "borderWidth": 1,
204
- "overflow": "hidden",
269
+ "alignItems": "flex-end",
270
+ "flexDirection": "row",
205
271
  },
206
272
  Object {
207
- "backgroundColor": "transparent",
208
- "borderBottomLeftRadius": 0,
209
- "borderBottomRightRadius": 16,
210
- "borderColor": "#ECEBEB",
273
+ "justifyContent": "flex-start",
274
+ "marginBottom": 8,
275
+ "marginTop": 0,
211
276
  },
212
277
  Object {},
213
- Object {},
214
278
  ]
215
279
  }
216
- testID="message-content-wrapper"
280
+ testID="message-simple-wrapper"
217
281
  >
218
282
  <View
219
283
  style={
220
284
  Array [
221
285
  Object {
222
- "maxWidth": 250,
223
- "paddingHorizontal": 16,
286
+ "marginRight": 8,
224
287
  },
225
288
  Object {},
226
- undefined,
227
289
  ]
228
290
  }
229
- testID="message-text-container"
291
+ testID="message-avatar"
230
292
  >
231
- <View
232
- style={
233
- Array [
234
- Object {
235
- "alignSelf": "stretch",
236
- },
237
- undefined,
238
- ]
293
+ <View>
294
+ <View
295
+ style={
296
+ Array [
297
+ Object {
298
+ "alignItems": "center",
299
+ "justifyContent": "center",
300
+ "overflow": "hidden",
301
+ },
302
+ Object {
303
+ "borderRadius": 16,
304
+ "height": 32,
305
+ "width": 32,
306
+ },
307
+ Object {},
308
+ undefined,
309
+ ]
310
+ }
311
+ >
312
+ <Image
313
+ accessibilityLabel="avatar-image"
314
+ onError={[Function]}
315
+ source={
316
+ Object {
317
+ "uri": "https://i.imgur.com/SLx06PP.png",
318
+ }
319
+ }
320
+ style={
321
+ Array [
322
+ Object {
323
+ "borderRadius": 16,
324
+ "height": 32,
325
+ "width": 32,
326
+ },
327
+ Object {
328
+ "borderRadius": 16,
329
+ "height": 32,
330
+ "width": 32,
331
+ },
332
+ undefined,
333
+ ]
334
+ }
335
+ testID="avatar-image"
336
+ />
337
+ </View>
338
+ </View>
339
+ </View>
340
+ <View
341
+ accessible={true}
342
+ focusable={true}
343
+ onClick={[Function]}
344
+ onResponderGrant={[Function]}
345
+ onResponderMove={[Function]}
346
+ onResponderRelease={[Function]}
347
+ onResponderTerminate={[Function]}
348
+ onResponderTerminationRequest={[Function]}
349
+ onStartShouldSetResponder={[Function]}
350
+ style={
351
+ Object {
352
+ "alignItems": "flex-start",
353
+ "opacity": 1,
354
+ "paddingTop": 2,
239
355
  }
356
+ }
357
+ testID="message-content"
358
+ >
359
+ <View
360
+ onLayout={[Function]}
361
+ style={Object {}}
240
362
  >
241
- <Text
363
+ <View
242
364
  style={
243
- Object {
244
- "alignItems": "flex-start",
245
- "flexDirection": "row",
246
- "flexWrap": "wrap",
247
- "justifyContent": "flex-start",
248
- "marginBottom": 8,
249
- "marginTop": 8,
250
- }
365
+ Array [
366
+ Object {
367
+ "borderTopLeftRadius": 16,
368
+ "borderTopRightRadius": 16,
369
+ "borderWidth": 1,
370
+ "overflow": "hidden",
371
+ },
372
+ Object {
373
+ "backgroundColor": "#FFFFFF",
374
+ "borderBottomLeftRadius": 0,
375
+ "borderBottomRightRadius": 16,
376
+ "borderColor": "#ECEBEB",
377
+ },
378
+ Object {},
379
+ Object {},
380
+ ]
251
381
  }
382
+ testID="message-content-wrapper"
252
383
  >
253
- <Text
384
+ <View
254
385
  style={
255
- Object {
256
- "color": "#000000",
257
- }
386
+ Array [
387
+ Object {
388
+ "maxWidth": 250,
389
+ "paddingHorizontal": 16,
390
+ },
391
+ Object {},
392
+ undefined,
393
+ ]
258
394
  }
395
+ testID="message-text-container"
259
396
  >
260
- Message6
261
- </Text>
397
+ <View
398
+ style={
399
+ Array [
400
+ Object {
401
+ "alignSelf": "stretch",
402
+ },
403
+ undefined,
404
+ ]
405
+ }
406
+ >
407
+ <Text
408
+ style={
409
+ Object {
410
+ "alignItems": "flex-start",
411
+ "flexDirection": "row",
412
+ "flexWrap": "wrap",
413
+ "justifyContent": "flex-start",
414
+ "marginBottom": 8,
415
+ "marginTop": 8,
416
+ }
417
+ }
418
+ >
419
+ <Text
420
+ style={
421
+ Object {
422
+ "color": "#000000",
423
+ }
424
+ }
425
+ >
426
+ Message6
427
+ </Text>
428
+ </Text>
429
+ </View>
430
+ </View>
431
+ </View>
432
+ </View>
433
+ <View
434
+ style={
435
+ Object {
436
+ "flexDirection": "row",
437
+ "marginTop": 4,
438
+ }
439
+ }
440
+ testID="message-status-time"
441
+ >
442
+ <Text
443
+ style={
444
+ Array [
445
+ Object {
446
+ "color": "#7A7A7A",
447
+ "textAlign": "left",
448
+ },
449
+ Object {
450
+ "fontSize": 12,
451
+ },
452
+ ]
453
+ }
454
+ >
455
+ 2:50 PM
262
456
  </Text>
263
457
  </View>
264
458
  </View>
265
459
  </View>
266
460
  </View>
267
- <View
268
- style={
269
- Object {
270
- "flexDirection": "row",
271
- "marginTop": 4,
272
- }
273
- }
274
- testID="message-status-time"
275
- >
276
- <Text
277
- style={
278
- Array [
279
- Object {
280
- "color": "#7A7A7A",
281
- "textAlign": "left",
282
- },
283
- Object {
284
- "fontSize": 12,
285
- },
286
- ]
287
- }
288
- >
289
- 2:50 PM
290
- </Text>
291
- </View>
292
461
  </View>
293
462
  </View>
294
463
  </View>
295
464
  </View>
296
- </View>
297
- <View>
298
465
  <View
299
- animatedStyle={
300
- Object {
301
- "value": Object {},
302
- }
303
- }
304
- collapsable={false}
305
- forwardedRef={[Function]}
306
- onGestureHandlerEvent={[Function]}
307
- onGestureHandlerStateChange={[Function]}
308
- testID="message-wrapper"
309
- >
310
- <View
311
- animatedStyle={
466
+ onLayout={[Function]}
467
+ style={
468
+ Array [
312
469
  Object {
313
- "value": Object {
314
- "transform": Array [
315
- Object {
316
- "scale": 1,
317
- },
318
- ],
319
- },
320
- }
321
- }
322
- collapsable={false}
323
- forwardedRef={[Function]}
324
- onGestureHandlerEvent={[Function]}
325
- onGestureHandlerStateChange={[Function]}
326
- style={
470
+ "flexDirection": "column-reverse",
471
+ },
327
472
  Object {
328
- "backgroundColor": undefined,
329
- "paddingHorizontal": 8,
330
473
  "transform": Array [
331
474
  Object {
332
- "scale": 1,
475
+ "scaleY": -1,
333
476
  },
334
477
  ],
335
- }
336
- }
478
+ },
479
+ ]
480
+ }
481
+ >
482
+ <View
483
+ testID="message-list-item-1"
337
484
  >
338
- <View
339
- animatedStyle={
340
- Object {
341
- "value": Object {
342
- "opacity": 0,
343
- },
344
- }
345
- }
346
- collapsable={false}
347
- style={
348
- Object {
349
- "backgroundColor": "#FBF4DD",
350
- "bottom": 0,
351
- "left": 0,
352
- "opacity": 0,
353
- "position": "absolute",
354
- "right": 0,
355
- "top": 0,
356
- }
357
- }
358
- />
359
485
  <View
360
486
  style={
361
487
  Array [
362
- Object {
363
- "alignItems": "flex-end",
364
- "flexDirection": "row",
365
- },
366
- Object {
367
- "justifyContent": "flex-start",
368
- "marginBottom": 8,
369
- "marginTop": 0,
370
- },
371
- Object {},
488
+ undefined,
372
489
  ]
373
490
  }
374
- testID="message-simple-wrapper"
491
+ testID="message-wrapper"
375
492
  >
376
493
  <View
377
494
  style={
378
495
  Array [
379
496
  Object {
380
- "marginRight": 8,
497
+ "paddingHorizontal": 8,
498
+ },
499
+ Object {
500
+ "backgroundColor": undefined,
381
501
  },
382
- Object {},
383
502
  ]
384
503
  }
385
- testID="message-avatar"
386
504
  >
387
- <View>
505
+ <View
506
+ style={
507
+ Array [
508
+ Object {},
509
+ ]
510
+ }
511
+ >
388
512
  <View
389
513
  style={
390
514
  Array [
391
515
  Object {
392
- "alignItems": "center",
393
- "justifyContent": "center",
394
- "overflow": "hidden",
516
+ "alignItems": "flex-end",
517
+ "flexDirection": "row",
395
518
  },
396
519
  Object {
397
- "borderRadius": 16,
398
- "height": 32,
399
- "width": 32,
520
+ "justifyContent": "flex-start",
521
+ "marginBottom": 8,
522
+ "marginTop": 0,
400
523
  },
401
524
  Object {},
402
- undefined,
403
525
  ]
404
526
  }
527
+ testID="message-simple-wrapper"
405
528
  >
406
- <Image
407
- accessibilityLabel="avatar-image"
408
- onError={[Function]}
409
- source={
410
- Object {
411
- "uri": "https://i.imgur.com/T68W8nR_d.webp?maxwidth=728&fidelity=grand",
412
- }
413
- }
529
+ <View
414
530
  style={
415
531
  Array [
416
532
  Object {
417
- "borderRadius": 16,
418
- "height": 32,
419
- "width": 32,
420
- },
421
- Object {
422
- "borderRadius": 16,
423
- "height": 32,
424
- "width": 32,
533
+ "marginRight": 8,
425
534
  },
426
- undefined,
535
+ Object {},
427
536
  ]
428
537
  }
429
- testID="avatar-image"
430
- />
431
- </View>
432
- </View>
433
- </View>
434
- <View
435
- accessible={true}
436
- focusable={true}
437
- onClick={[Function]}
438
- onResponderGrant={[Function]}
439
- onResponderMove={[Function]}
440
- onResponderRelease={[Function]}
441
- onResponderTerminate={[Function]}
442
- onResponderTerminationRequest={[Function]}
443
- onStartShouldSetResponder={[Function]}
444
- style={
445
- Object {
446
- "alignItems": "flex-start",
447
- "opacity": 1,
448
- "paddingTop": 2,
449
- }
450
- }
451
- >
452
- <View
453
- onLayout={[Function]}
454
- style={Object {}}
455
- >
456
- <View
457
- style={
458
- Array [
459
- Object {
460
- "borderTopLeftRadius": 16,
461
- "borderTopRightRadius": 16,
462
- "borderWidth": 1,
463
- "overflow": "hidden",
464
- },
465
- Object {
466
- "backgroundColor": "transparent",
467
- "borderBottomLeftRadius": 0,
468
- "borderBottomRightRadius": 16,
469
- "borderColor": "#ECEBEB",
470
- },
471
- Object {},
472
- Object {},
473
- ]
474
- }
475
- testID="message-content-wrapper"
476
- >
538
+ testID="message-avatar"
539
+ >
540
+ <View>
541
+ <View
542
+ style={
543
+ Array [
544
+ Object {
545
+ "alignItems": "center",
546
+ "justifyContent": "center",
547
+ "overflow": "hidden",
548
+ },
549
+ Object {
550
+ "borderRadius": 16,
551
+ "height": 32,
552
+ "width": 32,
553
+ },
554
+ Object {},
555
+ undefined,
556
+ ]
557
+ }
558
+ >
559
+ <Image
560
+ accessibilityLabel="avatar-image"
561
+ onError={[Function]}
562
+ source={
563
+ Object {
564
+ "uri": "https://i.imgur.com/T68W8nR_d.webp?maxwidth=728&fidelity=grand",
565
+ }
566
+ }
567
+ style={
568
+ Array [
569
+ Object {
570
+ "borderRadius": 16,
571
+ "height": 32,
572
+ "width": 32,
573
+ },
574
+ Object {
575
+ "borderRadius": 16,
576
+ "height": 32,
577
+ "width": 32,
578
+ },
579
+ undefined,
580
+ ]
581
+ }
582
+ testID="avatar-image"
583
+ />
584
+ </View>
585
+ </View>
586
+ </View>
477
587
  <View
588
+ accessible={true}
589
+ focusable={true}
590
+ onClick={[Function]}
591
+ onResponderGrant={[Function]}
592
+ onResponderMove={[Function]}
593
+ onResponderRelease={[Function]}
594
+ onResponderTerminate={[Function]}
595
+ onResponderTerminationRequest={[Function]}
596
+ onStartShouldSetResponder={[Function]}
478
597
  style={
479
- Array [
480
- Object {
481
- "maxWidth": 250,
482
- "paddingHorizontal": 16,
483
- },
484
- Object {},
485
- undefined,
486
- ]
598
+ Object {
599
+ "alignItems": "flex-start",
600
+ "opacity": 1,
601
+ "paddingTop": 2,
602
+ }
487
603
  }
488
- testID="message-text-container"
604
+ testID="message-content"
489
605
  >
490
606
  <View
491
- style={
492
- Array [
493
- Object {
494
- "alignSelf": "stretch",
495
- },
496
- undefined,
497
- ]
498
- }
607
+ onLayout={[Function]}
608
+ style={Object {}}
499
609
  >
500
- <Text
610
+ <View
501
611
  style={
502
- Object {
503
- "alignItems": "flex-start",
504
- "flexDirection": "row",
505
- "flexWrap": "wrap",
506
- "justifyContent": "flex-start",
507
- "marginBottom": 8,
508
- "marginTop": 8,
509
- }
612
+ Array [
613
+ Object {
614
+ "borderTopLeftRadius": 16,
615
+ "borderTopRightRadius": 16,
616
+ "borderWidth": 1,
617
+ "overflow": "hidden",
618
+ },
619
+ Object {
620
+ "backgroundColor": "#FFFFFF",
621
+ "borderBottomLeftRadius": 0,
622
+ "borderBottomRightRadius": 16,
623
+ "borderColor": "#ECEBEB",
624
+ },
625
+ Object {},
626
+ Object {},
627
+ ]
510
628
  }
629
+ testID="message-content-wrapper"
511
630
  >
512
- <Text
631
+ <View
513
632
  style={
514
- Object {
515
- "color": "#000000",
516
- }
633
+ Array [
634
+ Object {
635
+ "maxWidth": 250,
636
+ "paddingHorizontal": 16,
637
+ },
638
+ Object {},
639
+ undefined,
640
+ ]
517
641
  }
642
+ testID="message-text-container"
518
643
  >
519
- Message5
520
- </Text>
644
+ <View
645
+ style={
646
+ Array [
647
+ Object {
648
+ "alignSelf": "stretch",
649
+ },
650
+ undefined,
651
+ ]
652
+ }
653
+ >
654
+ <Text
655
+ style={
656
+ Object {
657
+ "alignItems": "flex-start",
658
+ "flexDirection": "row",
659
+ "flexWrap": "wrap",
660
+ "justifyContent": "flex-start",
661
+ "marginBottom": 8,
662
+ "marginTop": 8,
663
+ }
664
+ }
665
+ >
666
+ <Text
667
+ style={
668
+ Object {
669
+ "color": "#000000",
670
+ }
671
+ }
672
+ >
673
+ Message5
674
+ </Text>
675
+ </Text>
676
+ </View>
677
+ </View>
678
+ </View>
679
+ </View>
680
+ <View
681
+ style={
682
+ Object {
683
+ "flexDirection": "row",
684
+ "marginTop": 4,
685
+ }
686
+ }
687
+ testID="message-status-time"
688
+ >
689
+ <Text
690
+ style={
691
+ Array [
692
+ Object {
693
+ "color": "#7A7A7A",
694
+ "textAlign": "left",
695
+ },
696
+ Object {
697
+ "fontSize": 12,
698
+ },
699
+ ]
700
+ }
701
+ >
702
+ 2:50 PM
521
703
  </Text>
522
704
  </View>
523
705
  </View>
524
706
  </View>
525
707
  </View>
526
- <View
527
- style={
528
- Object {
529
- "flexDirection": "row",
530
- "marginTop": 4,
531
- }
532
- }
533
- testID="message-status-time"
534
- >
535
- <Text
536
- style={
537
- Array [
538
- Object {
539
- "color": "#7A7A7A",
540
- "textAlign": "left",
541
- },
542
- Object {
543
- "fontSize": 12,
544
- },
545
- ]
546
- }
547
- >
548
- 2:50 PM
549
- </Text>
550
- </View>
551
708
  </View>
552
709
  </View>
553
710
  </View>
554
711
  </View>
555
- </View>
556
- <View>
557
712
  <View
558
- animatedStyle={
559
- Object {
560
- "value": Object {},
561
- }
562
- }
563
- collapsable={false}
564
- forwardedRef={[Function]}
565
- onGestureHandlerEvent={[Function]}
566
- onGestureHandlerStateChange={[Function]}
567
- testID="message-wrapper"
568
- >
569
- <View
570
- animatedStyle={
713
+ onLayout={[Function]}
714
+ style={
715
+ Array [
571
716
  Object {
572
- "value": Object {
573
- "transform": Array [
574
- Object {
575
- "scale": 1,
576
- },
577
- ],
578
- },
579
- }
580
- }
581
- collapsable={false}
582
- forwardedRef={[Function]}
583
- onGestureHandlerEvent={[Function]}
584
- onGestureHandlerStateChange={[Function]}
585
- style={
717
+ "flexDirection": "column-reverse",
718
+ },
586
719
  Object {
587
- "backgroundColor": undefined,
588
- "paddingHorizontal": 8,
589
720
  "transform": Array [
590
721
  Object {
591
- "scale": 1,
722
+ "scaleY": -1,
592
723
  },
593
724
  ],
594
- }
595
- }
725
+ },
726
+ ]
727
+ }
728
+ >
729
+ <View
730
+ testID="message-list-item-2"
596
731
  >
597
- <View
598
- animatedStyle={
599
- Object {
600
- "value": Object {
601
- "opacity": 0,
602
- },
603
- }
604
- }
605
- collapsable={false}
606
- style={
607
- Object {
608
- "backgroundColor": "#FBF4DD",
609
- "bottom": 0,
610
- "left": 0,
611
- "opacity": 0,
612
- "position": "absolute",
613
- "right": 0,
614
- "top": 0,
615
- }
616
- }
617
- />
618
732
  <View
619
733
  style={
620
734
  Array [
621
- Object {
622
- "alignItems": "flex-end",
623
- "flexDirection": "row",
624
- },
625
- Object {
626
- "justifyContent": "flex-start",
627
- "marginBottom": 8,
628
- "marginTop": 0,
629
- },
630
- Object {},
735
+ undefined,
631
736
  ]
632
737
  }
633
- testID="message-simple-wrapper"
738
+ testID="message-wrapper"
634
739
  >
635
740
  <View
636
741
  style={
637
742
  Array [
638
743
  Object {
639
- "marginRight": 8,
744
+ "paddingHorizontal": 8,
745
+ },
746
+ Object {
747
+ "backgroundColor": undefined,
640
748
  },
641
- Object {},
642
749
  ]
643
750
  }
644
- testID="message-avatar"
645
751
  >
646
- <View>
752
+ <View
753
+ style={
754
+ Array [
755
+ Object {},
756
+ ]
757
+ }
758
+ >
647
759
  <View
648
760
  style={
649
761
  Array [
650
762
  Object {
651
- "alignItems": "center",
652
- "justifyContent": "center",
653
- "overflow": "hidden",
763
+ "alignItems": "flex-end",
764
+ "flexDirection": "row",
654
765
  },
655
766
  Object {
656
- "borderRadius": 16,
657
- "height": 32,
658
- "width": 32,
767
+ "justifyContent": "flex-start",
768
+ "marginBottom": 8,
769
+ "marginTop": 0,
659
770
  },
660
771
  Object {},
661
- undefined,
662
772
  ]
663
773
  }
774
+ testID="message-simple-wrapper"
664
775
  >
665
- <Image
666
- accessibilityLabel="avatar-image"
667
- onError={[Function]}
668
- source={
669
- Object {
670
- "uri": "https://i.imgur.com/SLx06PP.png",
671
- }
672
- }
776
+ <View
673
777
  style={
674
778
  Array [
675
779
  Object {
676
- "borderRadius": 16,
677
- "height": 32,
678
- "width": 32,
679
- },
680
- Object {
681
- "borderRadius": 16,
682
- "height": 32,
683
- "width": 32,
780
+ "marginRight": 8,
684
781
  },
685
- undefined,
782
+ Object {},
686
783
  ]
687
784
  }
688
- testID="avatar-image"
689
- />
785
+ testID="message-avatar"
786
+ >
787
+ <View>
788
+ <View
789
+ style={
790
+ Array [
791
+ Object {
792
+ "alignItems": "center",
793
+ "justifyContent": "center",
794
+ "overflow": "hidden",
795
+ },
796
+ Object {
797
+ "borderRadius": 16,
798
+ "height": 32,
799
+ "width": 32,
800
+ },
801
+ Object {},
802
+ undefined,
803
+ ]
804
+ }
805
+ >
806
+ <Image
807
+ accessibilityLabel="avatar-image"
808
+ onError={[Function]}
809
+ source={
810
+ Object {
811
+ "uri": "https://i.imgur.com/SLx06PP.png",
812
+ }
813
+ }
814
+ style={
815
+ Array [
816
+ Object {
817
+ "borderRadius": 16,
818
+ "height": 32,
819
+ "width": 32,
820
+ },
821
+ Object {
822
+ "borderRadius": 16,
823
+ "height": 32,
824
+ "width": 32,
825
+ },
826
+ undefined,
827
+ ]
828
+ }
829
+ testID="avatar-image"
830
+ />
831
+ </View>
832
+ </View>
833
+ </View>
834
+ <View
835
+ accessible={true}
836
+ focusable={true}
837
+ onClick={[Function]}
838
+ onResponderGrant={[Function]}
839
+ onResponderMove={[Function]}
840
+ onResponderRelease={[Function]}
841
+ onResponderTerminate={[Function]}
842
+ onResponderTerminationRequest={[Function]}
843
+ onStartShouldSetResponder={[Function]}
844
+ style={
845
+ Object {
846
+ "alignItems": "flex-start",
847
+ "opacity": 1,
848
+ "paddingTop": 2,
849
+ }
850
+ }
851
+ testID="message-content"
852
+ >
853
+ <View
854
+ onLayout={[Function]}
855
+ style={Object {}}
856
+ >
857
+ <View
858
+ style={
859
+ Array [
860
+ Object {
861
+ "borderTopLeftRadius": 16,
862
+ "borderTopRightRadius": 16,
863
+ "borderWidth": 1,
864
+ "overflow": "hidden",
865
+ },
866
+ Object {
867
+ "backgroundColor": "#FFFFFF",
868
+ "borderBottomLeftRadius": 0,
869
+ "borderBottomRightRadius": 16,
870
+ "borderColor": "#ECEBEB",
871
+ },
872
+ Object {},
873
+ Object {},
874
+ ]
875
+ }
876
+ testID="message-content-wrapper"
877
+ >
878
+ <View
879
+ style={
880
+ Array [
881
+ Object {
882
+ "maxWidth": 250,
883
+ "paddingHorizontal": 16,
884
+ },
885
+ Object {},
886
+ undefined,
887
+ ]
888
+ }
889
+ testID="message-text-container"
890
+ >
891
+ <View
892
+ style={
893
+ Array [
894
+ Object {
895
+ "alignSelf": "stretch",
896
+ },
897
+ undefined,
898
+ ]
899
+ }
900
+ >
901
+ <Text
902
+ style={
903
+ Object {
904
+ "alignItems": "flex-start",
905
+ "flexDirection": "row",
906
+ "flexWrap": "wrap",
907
+ "justifyContent": "flex-start",
908
+ "marginBottom": 8,
909
+ "marginTop": 8,
910
+ }
911
+ }
912
+ >
913
+ <Text
914
+ style={
915
+ Object {
916
+ "color": "#000000",
917
+ }
918
+ }
919
+ >
920
+ Message4
921
+ </Text>
922
+ </Text>
923
+ </View>
924
+ </View>
925
+ </View>
926
+ </View>
927
+ <View
928
+ style={
929
+ Object {
930
+ "flexDirection": "row",
931
+ "marginTop": 4,
932
+ }
933
+ }
934
+ testID="message-status-time"
935
+ >
936
+ <Text
937
+ style={
938
+ Array [
939
+ Object {
940
+ "color": "#7A7A7A",
941
+ "textAlign": "left",
942
+ },
943
+ Object {
944
+ "fontSize": 12,
945
+ },
946
+ ]
947
+ }
948
+ >
949
+ 2:50 PM
950
+ </Text>
951
+ </View>
952
+ </View>
690
953
  </View>
691
954
  </View>
692
955
  </View>
956
+ </View>
957
+ </View>
958
+ <View
959
+ style={
960
+ Array [
961
+ Object {
962
+ "alignItems": "center",
963
+ "alignSelf": "center",
964
+ "borderRadius": 8,
965
+ "height": 16,
966
+ "justifyContent": "center",
967
+ "marginVertical": 4,
968
+ "paddingHorizontal": 8,
969
+ },
970
+ Object {
971
+ "backgroundColor": "#000000CC",
972
+ },
973
+ Object {},
974
+ ]
975
+ }
976
+ testID="date-separator"
977
+ >
978
+ <Text
979
+ style={
980
+ Array [
981
+ Object {
982
+ "fontSize": 12,
983
+ "textAlign": "center",
984
+ "textAlignVertical": "center",
985
+ },
986
+ Object {
987
+ "color": "#FFFFFF",
988
+ },
989
+ Object {},
990
+ ]
991
+ }
992
+ >
993
+ May 5, 2020
994
+ </Text>
995
+ </View>
996
+ </View>
997
+ <View
998
+ onLayout={[Function]}
999
+ style={
1000
+ Object {
1001
+ "transform": Array [
1002
+ Object {
1003
+ "scaleY": -1,
1004
+ },
1005
+ ],
1006
+ }
1007
+ }
1008
+ >
1009
+ <View
1010
+ style={
1011
+ Object {
1012
+ "marginVertical": 8,
1013
+ }
1014
+ }
1015
+ testID="thread-footer-component"
1016
+ >
1017
+ <View
1018
+ style={
1019
+ Object {
1020
+ "paddingHorizontal": 8,
1021
+ }
1022
+ }
1023
+ >
693
1024
  <View
694
- accessible={true}
695
- focusable={true}
696
- onClick={[Function]}
697
- onResponderGrant={[Function]}
698
- onResponderMove={[Function]}
699
- onResponderRelease={[Function]}
700
- onResponderTerminate={[Function]}
701
- onResponderTerminationRequest={[Function]}
702
- onStartShouldSetResponder={[Function]}
703
1025
  style={
704
- Object {
705
- "alignItems": "flex-start",
706
- "opacity": 1,
707
- "paddingTop": 2,
708
- }
1026
+ Array [
1027
+ undefined,
1028
+ ]
709
1029
  }
1030
+ testID="message-wrapper"
710
1031
  >
711
1032
  <View
712
- onLayout={[Function]}
713
- style={Object {}}
1033
+ style={
1034
+ Array [
1035
+ undefined,
1036
+ Object {
1037
+ "backgroundColor": undefined,
1038
+ },
1039
+ ]
1040
+ }
714
1041
  >
715
1042
  <View
716
1043
  style={
717
1044
  Array [
718
- Object {
719
- "borderTopLeftRadius": 16,
720
- "borderTopRightRadius": 16,
721
- "borderWidth": 1,
722
- "overflow": "hidden",
723
- },
724
- Object {
725
- "backgroundColor": "transparent",
726
- "borderBottomLeftRadius": 0,
727
- "borderBottomRightRadius": 16,
728
- "borderColor": "#ECEBEB",
729
- },
730
- Object {},
731
1045
  Object {},
732
1046
  ]
733
1047
  }
734
- testID="message-content-wrapper"
735
1048
  >
736
1049
  <View
737
1050
  style={
738
1051
  Array [
739
1052
  Object {
740
- "maxWidth": 250,
741
- "paddingHorizontal": 16,
1053
+ "alignItems": "flex-end",
1054
+ "flexDirection": "row",
1055
+ },
1056
+ Object {
1057
+ "justifyContent": "flex-start",
1058
+ "marginBottom": 30,
1059
+ "marginTop": 0,
742
1060
  },
743
1061
  Object {},
744
- undefined,
745
1062
  ]
746
1063
  }
747
- testID="message-text-container"
1064
+ testID="message-simple-wrapper"
748
1065
  >
749
1066
  <View
750
1067
  style={
751
1068
  Array [
752
1069
  Object {
753
- "alignSelf": "stretch",
1070
+ "marginRight": 8,
754
1071
  },
755
- undefined,
1072
+ Object {},
756
1073
  ]
757
1074
  }
1075
+ testID="message-avatar"
758
1076
  >
759
- <Text
1077
+ <View>
1078
+ <View
1079
+ style={
1080
+ Array [
1081
+ Object {
1082
+ "alignItems": "center",
1083
+ "justifyContent": "center",
1084
+ "overflow": "hidden",
1085
+ },
1086
+ Object {
1087
+ "borderRadius": 16,
1088
+ "height": 32,
1089
+ "width": 32,
1090
+ },
1091
+ Object {},
1092
+ undefined,
1093
+ ]
1094
+ }
1095
+ >
1096
+ <Image
1097
+ accessibilityLabel="avatar-image"
1098
+ onError={[Function]}
1099
+ source={
1100
+ Object {
1101
+ "uri": "https://i.imgur.com/T68W8nR_d.webp?maxwidth=728&fidelity=grand",
1102
+ }
1103
+ }
1104
+ style={
1105
+ Array [
1106
+ Object {
1107
+ "borderRadius": 16,
1108
+ "height": 32,
1109
+ "width": 32,
1110
+ },
1111
+ Object {
1112
+ "borderRadius": 16,
1113
+ "height": 32,
1114
+ "width": 32,
1115
+ },
1116
+ undefined,
1117
+ ]
1118
+ }
1119
+ testID="avatar-image"
1120
+ />
1121
+ </View>
1122
+ </View>
1123
+ </View>
1124
+ <View
1125
+ accessible={true}
1126
+ focusable={true}
1127
+ onClick={[Function]}
1128
+ onResponderGrant={[Function]}
1129
+ onResponderMove={[Function]}
1130
+ onResponderRelease={[Function]}
1131
+ onResponderTerminate={[Function]}
1132
+ onResponderTerminationRequest={[Function]}
1133
+ onStartShouldSetResponder={[Function]}
1134
+ style={
1135
+ Object {
1136
+ "alignItems": "flex-start",
1137
+ "opacity": 1,
1138
+ "paddingTop": 2,
1139
+ }
1140
+ }
1141
+ testID="message-content"
1142
+ >
1143
+ <View
1144
+ onLayout={[Function]}
1145
+ style={Object {}}
1146
+ >
1147
+ <View
1148
+ style={
1149
+ Array [
1150
+ Object {
1151
+ "borderTopLeftRadius": 16,
1152
+ "borderTopRightRadius": 16,
1153
+ "borderWidth": 1,
1154
+ "overflow": "hidden",
1155
+ },
1156
+ Object {
1157
+ "backgroundColor": "#FFFFFF",
1158
+ "borderBottomLeftRadius": 0,
1159
+ "borderBottomRightRadius": 16,
1160
+ "borderColor": "#ECEBEB",
1161
+ },
1162
+ Object {},
1163
+ Object {},
1164
+ ]
1165
+ }
1166
+ testID="message-content-wrapper"
1167
+ >
1168
+ <View
1169
+ style={
1170
+ Array [
1171
+ Object {
1172
+ "maxWidth": 250,
1173
+ "paddingHorizontal": 16,
1174
+ },
1175
+ Object {},
1176
+ undefined,
1177
+ ]
1178
+ }
1179
+ testID="message-text-container"
1180
+ >
1181
+ <View
1182
+ style={
1183
+ Array [
1184
+ Object {
1185
+ "alignSelf": "stretch",
1186
+ },
1187
+ undefined,
1188
+ ]
1189
+ }
1190
+ >
1191
+ <Text
1192
+ style={
1193
+ Object {
1194
+ "alignItems": "flex-start",
1195
+ "flexDirection": "row",
1196
+ "flexWrap": "wrap",
1197
+ "justifyContent": "flex-start",
1198
+ "marginBottom": 8,
1199
+ "marginTop": 8,
1200
+ }
1201
+ }
1202
+ >
1203
+ <Text
1204
+ style={
1205
+ Object {
1206
+ "color": "#000000",
1207
+ }
1208
+ }
1209
+ >
1210
+ Message3
1211
+ </Text>
1212
+ </Text>
1213
+ </View>
1214
+ </View>
1215
+ </View>
1216
+ </View>
1217
+ <View
760
1218
  style={
761
1219
  Object {
762
- "alignItems": "flex-start",
763
1220
  "flexDirection": "row",
764
- "flexWrap": "wrap",
765
- "justifyContent": "flex-start",
766
- "marginBottom": 8,
767
- "marginTop": 8,
1221
+ "marginTop": 4,
768
1222
  }
769
1223
  }
1224
+ testID="message-status-time"
770
1225
  >
771
1226
  <Text
772
1227
  style={
773
- Object {
774
- "color": "#000000",
775
- }
1228
+ Array [
1229
+ Object {
1230
+ "color": "#7A7A7A",
1231
+ "textAlign": "left",
1232
+ },
1233
+ Object {
1234
+ "fontSize": 12,
1235
+ },
1236
+ ]
776
1237
  }
777
1238
  >
778
- Message4
1239
+ 2:50 PM
779
1240
  </Text>
780
- </Text>
1241
+ </View>
781
1242
  </View>
782
1243
  </View>
783
1244
  </View>
784
1245
  </View>
785
- <View
786
- style={
787
- Object {
788
- "flexDirection": "row",
789
- "marginTop": 4,
790
- }
791
- }
792
- testID="message-status-time"
793
- >
794
- <Text
795
- style={
796
- Array [
797
- Object {
798
- "color": "#7A7A7A",
799
- "textAlign": "left",
800
- },
801
- Object {
802
- "fontSize": 12,
803
- },
804
- ]
805
- }
806
- >
807
- 2:50 PM
808
- </Text>
809
- </View>
810
1246
  </View>
811
1247
  </View>
812
- </View>
813
- </View>
814
- <View
815
- style={
816
- Array [
817
- Object {
818
- "alignItems": "center",
819
- "alignSelf": "center",
820
- "borderRadius": 8,
821
- "height": 16,
822
- "justifyContent": "center",
823
- "marginVertical": 4,
824
- "paddingHorizontal": 8,
825
- },
826
- Object {
827
- "backgroundColor": "#00000099",
828
- },
829
- Object {},
830
- ]
831
- }
832
- testID="date-separator"
833
- >
834
- <Text
835
- style={
836
- Array [
837
- Object {
838
- "fontSize": 12,
839
- "textAlign": "center",
840
- "textAlignVertical": "center",
841
- },
842
- Object {
843
- "color": "#FFFFFF",
844
- },
845
- Object {},
846
- ]
847
- }
848
- >
849
- May 5, 2020
850
- </Text>
851
- </View>
852
- </View>
853
- </View>
854
- <View
855
- style={
856
- Object {
857
- "position": "absolute",
858
- "top": 0,
859
- }
860
- }
861
- />
862
- <View
863
- style={
864
- Array [
865
- Object {
866
- "alignItems": "center",
867
- "left": 0,
868
- "paddingVertical": 4,
869
- "position": "absolute",
870
- "right": 0,
871
- "top": 0,
872
- },
873
- Object {
874
- "backgroundColor": "#7A7A7AE6",
875
- },
876
- Object {},
877
- ]
878
- }
879
- testID="error-notification"
880
- >
881
- <Text
882
- style={
883
- Array [
884
- Object {
885
- "color": "#FFFFFF",
886
- "fontSize": 14,
887
- },
888
- Object {},
889
- ]
890
- }
891
- >
892
- Reconnecting...
893
- </Text>
894
- </View>
895
- </View>
896
- <View
897
- onLayout={[Function]}
898
- style={
899
- Array [
900
- Object {
901
- "borderTopWidth": 1,
902
- "padding": 10,
903
- },
904
- Object {
905
- "backgroundColor": "#FFFFFF",
906
- "borderColor": "#00000014",
907
- },
908
- Object {},
909
- ]
910
- }
911
- >
912
- <View
913
- style={
914
- Array [
915
- Object {
916
- "alignItems": "flex-end",
917
- "flexDirection": "row",
918
- },
919
- Object {},
920
- ]
921
- }
922
- >
923
- <View
924
- style={
925
- Array [
926
- Object {
927
- "flexDirection": "row",
928
- "paddingBottom": 10,
929
- "paddingRight": 10,
930
- },
931
- Object {},
932
- ]
933
- }
934
- >
935
- <View
936
- style={
937
- Array [
938
- Object {
939
- "paddingRight": 10,
940
- },
941
- Object {},
942
- ]
943
- }
944
- >
945
- <RNGestureHandlerButton
946
- collapsable={false}
947
- hitSlop={
948
- Object {
949
- "bottom": 15,
950
- "left": 15,
951
- "right": 5,
952
- "top": 15,
953
- }
954
- }
955
- onGestureEvent={[Function]}
956
- onGestureHandlerEvent={[Function]}
957
- onGestureHandlerStateChange={[Function]}
958
- onHandlerStateChange={[Function]}
959
- rippleColor={0}
960
- testID="attach-button"
961
- >
962
1248
  <View
963
- accessible={true}
964
- hitSlop={
965
- Object {
966
- "bottom": 15,
967
- "left": 15,
968
- "right": 5,
969
- "top": 15,
970
- }
971
- }
972
1249
  style={
973
- Object {
974
- "opacity": 1,
975
- }
1250
+ Array [
1251
+ Object {
1252
+ "alignItems": "center",
1253
+ "height": 24,
1254
+ "justifyContent": "center",
1255
+ "marginTop": 8,
1256
+ },
1257
+ Object {},
1258
+ ]
976
1259
  }
977
1260
  >
978
1261
  <RNSVGSvgView
979
- align="xMidYMid"
980
1262
  bbHeight={24}
981
- bbWidth={24}
1263
+ bbWidth={750}
982
1264
  focusable={false}
983
1265
  height={24}
984
- meetOrSlice={0}
985
- minX={0}
986
- minY={0}
987
- pathFill="#7A7A7A"
988
1266
  style={
989
1267
  Array [
990
1268
  Object {
991
1269
  "backgroundColor": "transparent",
992
1270
  "borderWidth": 0,
993
1271
  },
1272
+ Object {
1273
+ "position": "absolute",
1274
+ },
994
1275
  Object {
995
1276
  "flex": 0,
996
1277
  "height": 24,
997
- "width": 24,
1278
+ "width": 750,
998
1279
  },
999
1280
  ]
1000
1281
  }
1001
- vbHeight={24}
1002
- vbWidth={24}
1003
- width={24}
1282
+ width={750}
1004
1283
  >
1005
1284
  <RNSVGGroup>
1006
- <RNSVGPath
1007
- clipRule={0}
1008
- d="M13.468 2.888a5.07 5.07 0 012.983.635 5.07 5.07 0 012.041 2.265c.45 1.01.546 2.254-.144 3.449l-4.5 7.794a3.232 3.232 0 01-1.427 1.294c-.757.342-1.696.367-2.671-.196-.975-.563-1.422-1.389-1.506-2.215a3.233 3.233 0 01.408-1.883l4-6.928a1 1 0 011.732 1l-4 6.928c-.087.15-.176.425-.15.682.02.196.105.447.516.684.41.237.671.185.85.105.236-.107.43-.32.516-.47l4.5-7.795c.31-.538.29-1.093.049-1.636a3.072 3.072 0 00-1.214-1.346 3.072 3.072 0 00-1.773-.378c-.591.062-1.082.322-1.392.86l-5 8.66c-.654 1.133-.286 3.3 1.964 4.598 2.25 1.3 4.31.535 4.964-.598l3.5-6.062a1 1 0 111.732 1l-3.5 6.062c-1.345 2.33-4.75 3.031-7.696 1.33-2.946-1.7-4.042-5-2.696-7.33l5-8.66c.69-1.195 1.815-1.733 2.914-1.85z"
1009
- fill={4286216826}
1010
- fillRule={0}
1285
+ <RNSVGRect
1286
+ fill={
1287
+ Array [
1288
+ 1,
1289
+ "gradient",
1290
+ ]
1291
+ }
1292
+ height={24}
1011
1293
  propList={
1012
1294
  Array [
1013
1295
  "fill",
1014
- "fillRule",
1015
1296
  ]
1016
1297
  }
1298
+ width={750}
1299
+ x={0}
1300
+ y={0}
1017
1301
  />
1302
+ <RNSVGDefs>
1303
+ <RNSVGLinearGradient
1304
+ gradient={
1305
+ Array [
1306
+ 0,
1307
+ -197380,
1308
+ 1,
1309
+ -526345,
1310
+ ]
1311
+ }
1312
+ gradientTransform={null}
1313
+ gradientUnits={1}
1314
+ name="gradient"
1315
+ x1={0}
1316
+ x2={0}
1317
+ y1={0}
1318
+ y2={24}
1319
+ />
1320
+ </RNSVGDefs>
1018
1321
  </RNSVGGroup>
1019
1322
  </RNSVGSvgView>
1020
- </View>
1021
- </RNGestureHandlerButton>
1022
- </View>
1023
- <View
1024
- style={Object {}}
1025
- >
1026
- <RNGestureHandlerButton
1027
- collapsable={false}
1028
- hitSlop={
1029
- Object {
1030
- "bottom": 15,
1031
- "left": 5,
1032
- "right": 15,
1033
- "top": 15,
1034
- }
1035
- }
1036
- onGestureEvent={[Function]}
1037
- onGestureHandlerEvent={[Function]}
1038
- onGestureHandlerStateChange={[Function]}
1039
- onHandlerStateChange={[Function]}
1040
- rippleColor={0}
1041
- testID="commands-button"
1042
- >
1043
- <View
1044
- accessible={true}
1045
- hitSlop={
1046
- Object {
1047
- "bottom": 15,
1048
- "left": 5,
1049
- "right": 15,
1050
- "top": 15,
1051
- }
1052
- }
1053
- style={
1054
- Object {
1055
- "opacity": 1,
1056
- }
1057
- }
1058
- >
1059
- <RNSVGSvgView
1060
- align="xMidYMid"
1061
- bbHeight={24}
1062
- bbWidth={24}
1063
- focusable={false}
1064
- height={24}
1065
- meetOrSlice={0}
1066
- minX={0}
1067
- minY={0}
1068
- pathFill="#7A7A7A"
1323
+ <Text
1069
1324
  style={
1070
1325
  Array [
1071
1326
  Object {
1072
- "backgroundColor": "transparent",
1073
- "borderWidth": 0,
1327
+ "fontSize": 12,
1328
+ "textAlign": "center",
1074
1329
  },
1075
1330
  Object {
1076
- "flex": 0,
1077
- "height": 24,
1078
- "width": 24,
1331
+ "color": "#7A7A7A",
1079
1332
  },
1333
+ Object {},
1080
1334
  ]
1081
1335
  }
1082
- vbHeight={24}
1083
- vbWidth={24}
1084
- width={24}
1085
1336
  >
1086
- <RNSVGGroup>
1087
- <RNSVGPath
1088
- clipRule={0}
1089
- d="M11.636 4H16l-2.91 5.818H16L10.546 20l1.09-7.273H8L11.636 4z"
1090
- fill={4286216826}
1091
- fillRule={0}
1092
- propList={
1093
- Array [
1094
- "fill",
1095
- "fillRule",
1096
- ]
1097
- }
1098
- />
1099
- </RNSVGGroup>
1100
- </RNSVGSvgView>
1337
+ Replies
1338
+ </Text>
1101
1339
  </View>
1102
- </RNGestureHandlerButton>
1103
- </View>
1104
- </View>
1105
- <View
1106
- style={
1107
- Array [
1108
- Object {
1109
- "borderRadius": 20,
1110
- "borderWidth": 1,
1111
- "flex": 1,
1112
- },
1113
- Object {
1114
- "borderColor": "#ECEBEB",
1115
- "paddingVertical": 12,
1116
- },
1117
- Object {},
1118
- ]
1119
- }
1120
- >
1121
- <View
1122
- style={
1123
- Array [
1124
- Object {
1125
- "alignItems": "center",
1126
- "flexDirection": "row",
1127
- },
1128
- Object {
1129
- "paddingLeft": 16,
1130
- "paddingRight": 16,
1131
- },
1132
- Object {},
1133
- ]
1134
- }
1135
- >
1136
- <TextInput
1137
- allowFontScaling={true}
1138
- autoFocus={true}
1139
- editable={true}
1140
- maxLength={5000}
1141
- multiline={true}
1142
- onBlur={[Function]}
1143
- onChangeText={[Function]}
1144
- onContentSizeChange={[Function]}
1145
- onSelectionChange={[Function]}
1146
- placeholder="Send a message"
1147
- placeholderTextColor="#7A7A7A"
1148
- rejectResponderTermination={true}
1149
- style={
1150
- Array [
1151
- Object {
1152
- "flex": 1,
1153
- "fontSize": 14,
1154
- "includeFontPadding": false,
1155
- "padding": 0,
1156
- "paddingTop": 0,
1157
- "textAlignVertical": "center",
1158
- },
1159
- Object {
1160
- "color": "#000000",
1161
- "maxHeight": 85,
1162
- },
1163
- Object {},
1164
- ]
1165
- }
1166
- testID="auto-complete-text-input"
1167
- underlineColorAndroid="transparent"
1168
- value=""
1169
- />
1170
- </View>
1171
- </View>
1172
- <View
1173
- style={
1174
- Array [
1175
- Object {
1176
- "paddingBottom": 10,
1177
- "paddingLeft": 10,
1178
- },
1179
- Object {},
1180
- ]
1181
- }
1182
- >
1183
- <RNGestureHandlerButton
1184
- collapsable={false}
1185
- onGestureEvent={[Function]}
1186
- onGestureHandlerEvent={[Function]}
1187
- onGestureHandlerStateChange={[Function]}
1188
- onHandlerStateChange={[Function]}
1189
- rippleColor={0}
1190
- testID="send-button"
1191
- >
1192
- <View
1193
- accessible={true}
1194
- style={
1195
- Object {
1196
- "opacity": 1,
1197
- }
1198
- }
1199
- >
1200
- <RNSVGSvgView
1201
- align="xMidYMid"
1202
- bbHeight={24}
1203
- bbWidth={24}
1204
- focusable={false}
1205
- height={24}
1206
- meetOrSlice={0}
1207
- minX={0}
1208
- minY={0}
1209
- pathFill="#DBDBDB"
1210
- style={
1211
- Array [
1212
- Object {
1213
- "backgroundColor": "transparent",
1214
- "borderWidth": 0,
1215
- },
1216
- Object {
1217
- "flex": 0,
1218
- "height": 24,
1219
- "width": 24,
1220
- },
1221
- ]
1222
- }
1223
- vbHeight={24}
1224
- vbWidth={24}
1225
- width={24}
1226
- >
1227
- <RNSVGGroup>
1228
- <RNSVGPath
1229
- clipRule={0}
1230
- d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zM8 11h4V8l4 4-4 4v-3H8v-2z"
1231
- fill={4292598747}
1232
- fillRule={0}
1233
- propList={
1234
- Array [
1235
- "fill",
1236
- "fillRule",
1237
- ]
1238
- }
1239
- />
1240
- </RNSVGGroup>
1241
- </RNSVGSvgView>
1242
1340
  </View>
1243
- </RNGestureHandlerButton>
1341
+ </View>
1244
1342
  </View>
1245
- </View>
1343
+ </RCTScrollView>
1246
1344
  <View
1345
+ style={
1346
+ Object {
1347
+ "position": "absolute",
1348
+ "top": 0,
1349
+ }
1350
+ }
1351
+ />
1352
+ </View>
1353
+ <View
1354
+ style={
1355
+ Array [
1356
+ Object {
1357
+ "alignItems": "center",
1358
+ "borderTopWidth": 1,
1359
+ "height": 50,
1360
+ "justifyContent": "center",
1361
+ },
1362
+ Object {
1363
+ "borderTopColor": "#00000014",
1364
+ "height": 50,
1365
+ },
1366
+ Object {},
1367
+ ]
1368
+ }
1369
+ testID="send-message-disallowed-indicator"
1370
+ >
1371
+ <Text
1247
1372
  style={
1248
1373
  Array [
1249
1374
  Object {
1250
- "flexDirection": "row",
1251
- "marginHorizontal": 2,
1252
- "marginTop": 8,
1375
+ "fontSize": 17,
1376
+ "fontWeight": "400",
1377
+ },
1378
+ Object {
1379
+ "color": "#72767E",
1253
1380
  },
1254
1381
  Object {},
1255
1382
  ]
1256
1383
  }
1257
1384
  >
1258
- <View
1259
- accessible={true}
1260
- focusable={true}
1261
- onClick={[Function]}
1262
- onResponderGrant={[Function]}
1263
- onResponderMove={[Function]}
1264
- onResponderRelease={[Function]}
1265
- onResponderTerminate={[Function]}
1266
- onResponderTerminationRequest={[Function]}
1267
- onStartShouldSetResponder={[Function]}
1268
- style={
1269
- Object {
1270
- "opacity": 1,
1271
- }
1272
- }
1273
- >
1274
- <View
1275
- style={
1276
- Array [
1277
- Object {
1278
- "flexDirection": "row",
1279
- },
1280
- Object {},
1281
- ]
1282
- }
1283
- >
1284
- <View
1285
- style={
1286
- Array [
1287
- Object {
1288
- "alignItems": "center",
1289
- "borderRadius": 3,
1290
- "borderWidth": 2,
1291
- "height": 16,
1292
- "justifyContent": "center",
1293
- "width": 16,
1294
- },
1295
- Object {
1296
- "borderColor": "#7A7A7A",
1297
- },
1298
- ]
1299
- }
1300
- />
1301
- <Text
1302
- style={
1303
- Array [
1304
- Object {
1305
- "fontSize": 13,
1306
- "marginLeft": 12,
1307
- },
1308
- Object {
1309
- "color": "#7A7A7A",
1310
- },
1311
- Object {},
1312
- ]
1313
- }
1314
- >
1315
- Also send to channel
1316
- </Text>
1317
- </View>
1318
- </View>
1319
- </View>
1385
+ You can't send messages in this channel
1386
+ </Text>
1320
1387
  </View>
1321
1388
  </View>
1322
1389
  </View>