stream-chat-react-native-core 9.3.1-beta.6 → 9.3.1-beta.8

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 (329) hide show
  1. package/lib/commonjs/a11y/hooks/useAnnounceOnShow.js +27 -0
  2. package/lib/commonjs/a11y/hooks/useAnnounceOnShow.js.map +1 -0
  3. package/lib/commonjs/a11y/index.js +11 -0
  4. package/lib/commonjs/a11y/index.js.map +1 -1
  5. package/lib/commonjs/components/Accessibility/CompositeAccessibilityProbe.js +29 -0
  6. package/lib/commonjs/components/Accessibility/CompositeAccessibilityProbe.js.map +1 -0
  7. package/lib/commonjs/components/Accessibility/HiddenA11yText.js +30 -0
  8. package/lib/commonjs/components/Accessibility/HiddenA11yText.js.map +1 -0
  9. package/lib/commonjs/components/Accessibility/OverlayA11yShield.js +37 -0
  10. package/lib/commonjs/components/Accessibility/OverlayA11yShield.js.map +1 -0
  11. package/lib/commonjs/components/Accessibility/index.js +22 -0
  12. package/lib/commonjs/components/Accessibility/index.js.map +1 -1
  13. package/lib/commonjs/components/Attachment/Gallery.js +10 -0
  14. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  15. package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +31 -29
  16. package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
  17. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +11 -5
  18. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  19. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +18 -2
  20. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  21. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +8 -2
  22. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  23. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +3 -0
  24. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  25. package/lib/commonjs/components/ImageGallery/ImageGallery.js +56 -1
  26. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  27. package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +2 -0
  28. package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
  29. package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +2 -0
  30. package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
  31. package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +26 -4
  32. package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
  33. package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js +2 -0
  34. package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js.map +1 -1
  35. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +7 -3
  36. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  37. package/lib/commonjs/components/Message/MessageItemView/MessageRepliesAvatars.js +2 -0
  38. package/lib/commonjs/components/Message/MessageItemView/MessageRepliesAvatars.js.map +1 -1
  39. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +35 -30
  40. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  41. package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js +16 -6
  42. package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
  43. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +19 -6
  44. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
  45. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +10 -1
  46. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
  47. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +6 -1
  48. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  49. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +8 -0
  50. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  51. package/lib/commonjs/components/MessageList/InlineDateSeparator.js +8 -1
  52. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  53. package/lib/commonjs/components/MessageMenu/ReactionButton.js +0 -7
  54. package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +1 -1
  55. package/lib/commonjs/components/Poll/Poll.js +2 -17
  56. package/lib/commonjs/components/Poll/Poll.js.map +1 -1
  57. package/lib/commonjs/components/Poll/components/PollOption.js +6 -1
  58. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
  59. package/lib/commonjs/components/Reply/Reply.js +43 -6
  60. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  61. package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js +17 -11
  62. package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js.map +1 -1
  63. package/lib/commonjs/components/ui/Badge/BadgeNotification.js +3 -1
  64. package/lib/commonjs/components/ui/Badge/BadgeNotification.js.map +1 -1
  65. package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js +6 -22
  66. package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
  67. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  68. package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +1 -0
  69. package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
  70. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +4 -1
  71. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  72. package/lib/commonjs/i18n/ar.json +26 -8
  73. package/lib/commonjs/i18n/en.json +23 -5
  74. package/lib/commonjs/i18n/es.json +23 -5
  75. package/lib/commonjs/i18n/fr.json +23 -5
  76. package/lib/commonjs/i18n/he.json +23 -5
  77. package/lib/commonjs/i18n/hi.json +24 -6
  78. package/lib/commonjs/i18n/it.json +23 -5
  79. package/lib/commonjs/i18n/ja.json +23 -5
  80. package/lib/commonjs/i18n/ko.json +23 -5
  81. package/lib/commonjs/i18n/nl.json +24 -6
  82. package/lib/commonjs/i18n/pt-br.json +25 -7
  83. package/lib/commonjs/i18n/ru.json +23 -5
  84. package/lib/commonjs/i18n/tr.json +24 -6
  85. package/lib/commonjs/state-store/image-gallery-state-store.js +13 -0
  86. package/lib/commonjs/state-store/image-gallery-state-store.js.map +1 -1
  87. package/lib/commonjs/utils/i18n/getDateString.js +26 -1
  88. package/lib/commonjs/utils/i18n/getDateString.js.map +1 -1
  89. package/lib/commonjs/version.json +1 -1
  90. package/lib/module/a11y/hooks/useAnnounceOnShow.js +27 -0
  91. package/lib/module/a11y/hooks/useAnnounceOnShow.js.map +1 -0
  92. package/lib/module/a11y/index.js +11 -0
  93. package/lib/module/a11y/index.js.map +1 -1
  94. package/lib/module/components/Accessibility/CompositeAccessibilityProbe.js +29 -0
  95. package/lib/module/components/Accessibility/CompositeAccessibilityProbe.js.map +1 -0
  96. package/lib/module/components/Accessibility/HiddenA11yText.js +30 -0
  97. package/lib/module/components/Accessibility/HiddenA11yText.js.map +1 -0
  98. package/lib/module/components/Accessibility/OverlayA11yShield.js +37 -0
  99. package/lib/module/components/Accessibility/OverlayA11yShield.js.map +1 -0
  100. package/lib/module/components/Accessibility/index.js +22 -0
  101. package/lib/module/components/Accessibility/index.js.map +1 -1
  102. package/lib/module/components/Attachment/Gallery.js +10 -0
  103. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  104. package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +31 -29
  105. package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
  106. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +11 -5
  107. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  108. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +18 -2
  109. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  110. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +8 -2
  111. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  112. package/lib/module/components/ChannelPreview/ChannelPreviewView.js +3 -0
  113. package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  114. package/lib/module/components/ImageGallery/ImageGallery.js +56 -1
  115. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  116. package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +2 -0
  117. package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
  118. package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +2 -0
  119. package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
  120. package/lib/module/components/Message/MessageItemView/MessageContent.js +26 -4
  121. package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
  122. package/lib/module/components/Message/MessageItemView/MessageFooter.js +2 -0
  123. package/lib/module/components/Message/MessageItemView/MessageFooter.js.map +1 -1
  124. package/lib/module/components/Message/MessageItemView/MessageReplies.js +7 -3
  125. package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  126. package/lib/module/components/Message/MessageItemView/MessageRepliesAvatars.js +2 -0
  127. package/lib/module/components/Message/MessageItemView/MessageRepliesAvatars.js.map +1 -1
  128. package/lib/module/components/Message/MessageItemView/MessageStatus.js +35 -30
  129. package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  130. package/lib/module/components/Message/MessageItemView/MessageTextContainer.js +16 -6
  131. package/lib/module/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
  132. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +19 -6
  133. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
  134. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +10 -1
  135. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
  136. package/lib/module/components/Message/hooks/useCreateMessageContext.js +6 -1
  137. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  138. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +8 -0
  139. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  140. package/lib/module/components/MessageList/InlineDateSeparator.js +8 -1
  141. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  142. package/lib/module/components/MessageMenu/ReactionButton.js +0 -7
  143. package/lib/module/components/MessageMenu/ReactionButton.js.map +1 -1
  144. package/lib/module/components/Poll/Poll.js +2 -17
  145. package/lib/module/components/Poll/Poll.js.map +1 -1
  146. package/lib/module/components/Poll/components/PollOption.js +6 -1
  147. package/lib/module/components/Poll/components/PollOption.js.map +1 -1
  148. package/lib/module/components/Reply/Reply.js +43 -6
  149. package/lib/module/components/Reply/Reply.js.map +1 -1
  150. package/lib/module/components/ui/Avatar/ChannelAvatar.js +17 -11
  151. package/lib/module/components/ui/Avatar/ChannelAvatar.js.map +1 -1
  152. package/lib/module/components/ui/Badge/BadgeNotification.js +3 -1
  153. package/lib/module/components/ui/Badge/BadgeNotification.js.map +1 -1
  154. package/lib/module/contexts/accessibilityContext/AccessibilityContext.js +6 -22
  155. package/lib/module/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
  156. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  157. package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +1 -0
  158. package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
  159. package/lib/module/contexts/overlayContext/OverlayProvider.js +4 -1
  160. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  161. package/lib/module/i18n/ar.json +26 -8
  162. package/lib/module/i18n/en.json +23 -5
  163. package/lib/module/i18n/es.json +23 -5
  164. package/lib/module/i18n/fr.json +23 -5
  165. package/lib/module/i18n/he.json +23 -5
  166. package/lib/module/i18n/hi.json +24 -6
  167. package/lib/module/i18n/it.json +23 -5
  168. package/lib/module/i18n/ja.json +23 -5
  169. package/lib/module/i18n/ko.json +23 -5
  170. package/lib/module/i18n/nl.json +24 -6
  171. package/lib/module/i18n/pt-br.json +25 -7
  172. package/lib/module/i18n/ru.json +23 -5
  173. package/lib/module/i18n/tr.json +24 -6
  174. package/lib/module/state-store/image-gallery-state-store.js +13 -0
  175. package/lib/module/state-store/image-gallery-state-store.js.map +1 -1
  176. package/lib/module/utils/i18n/getDateString.js +26 -1
  177. package/lib/module/utils/i18n/getDateString.js.map +1 -1
  178. package/lib/module/version.json +1 -1
  179. package/lib/typescript/a11y/hooks/useAnnounceOnShow.d.ts +21 -0
  180. package/lib/typescript/a11y/hooks/useAnnounceOnShow.d.ts.map +1 -0
  181. package/lib/typescript/a11y/index.d.ts +1 -0
  182. package/lib/typescript/a11y/index.d.ts.map +1 -1
  183. package/lib/typescript/components/Accessibility/CompositeAccessibilityProbe.d.ts +30 -0
  184. package/lib/typescript/components/Accessibility/CompositeAccessibilityProbe.d.ts.map +1 -0
  185. package/lib/typescript/components/Accessibility/HiddenA11yText.d.ts +25 -0
  186. package/lib/typescript/components/Accessibility/HiddenA11yText.d.ts.map +1 -0
  187. package/lib/typescript/components/Accessibility/OverlayA11yShield.d.ts +20 -0
  188. package/lib/typescript/components/Accessibility/OverlayA11yShield.d.ts.map +1 -0
  189. package/lib/typescript/components/Accessibility/index.d.ts +2 -0
  190. package/lib/typescript/components/Accessibility/index.d.ts.map +1 -1
  191. package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
  192. package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
  193. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -1
  194. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -1
  195. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts.map +1 -1
  196. package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
  197. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
  198. package/lib/typescript/components/Message/MessageItemView/Headers/MessageReminderHeader.d.ts.map +1 -1
  199. package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts.map +1 -1
  200. package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts +1 -1
  201. package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
  202. package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts.map +1 -1
  203. package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
  204. package/lib/typescript/components/Message/MessageItemView/MessageRepliesAvatars.d.ts.map +1 -1
  205. package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
  206. package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts +1 -1
  207. package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts.map +1 -1
  208. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListClustered.d.ts.map +1 -1
  209. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListItem.d.ts.map +1 -1
  210. package/lib/typescript/components/Message/MessageOverlayWrapper.d.ts +1 -1
  211. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  212. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
  213. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
  214. package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts.map +1 -1
  215. package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +1 -1
  216. package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
  217. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
  218. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  219. package/lib/typescript/components/ui/Avatar/ChannelAvatar.d.ts.map +1 -1
  220. package/lib/typescript/components/ui/Badge/BadgeNotification.d.ts +5 -0
  221. package/lib/typescript/components/ui/Badge/BadgeNotification.d.ts.map +1 -1
  222. package/lib/typescript/contexts/accessibilityContext/AccessibilityContext.d.ts +32 -2
  223. package/lib/typescript/contexts/accessibilityContext/AccessibilityContext.d.ts.map +1 -1
  224. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +8 -0
  225. package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
  226. package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts.map +1 -1
  227. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
  228. package/lib/typescript/hooks/useTranslatedMessage.d.ts +1 -1
  229. package/lib/typescript/i18n/ar.json +26 -8
  230. package/lib/typescript/i18n/en.json +23 -5
  231. package/lib/typescript/i18n/es.json +23 -5
  232. package/lib/typescript/i18n/fr.json +23 -5
  233. package/lib/typescript/i18n/he.json +23 -5
  234. package/lib/typescript/i18n/hi.json +24 -6
  235. package/lib/typescript/i18n/it.json +23 -5
  236. package/lib/typescript/i18n/ja.json +23 -5
  237. package/lib/typescript/i18n/ko.json +23 -5
  238. package/lib/typescript/i18n/nl.json +24 -6
  239. package/lib/typescript/i18n/pt-br.json +25 -7
  240. package/lib/typescript/i18n/ru.json +23 -5
  241. package/lib/typescript/i18n/tr.json +24 -6
  242. package/lib/typescript/state-store/image-gallery-state-store.d.ts +5 -1
  243. package/lib/typescript/state-store/image-gallery-state-store.d.ts.map +1 -1
  244. package/lib/typescript/utils/i18n/Streami18n.d.ts +22 -4
  245. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  246. package/lib/typescript/utils/i18n/getDateString.d.ts +28 -0
  247. package/lib/typescript/utils/i18n/getDateString.d.ts.map +1 -1
  248. package/package.json +1 -1
  249. package/src/a11y/hooks/useAnnounceOnShow.ts +44 -0
  250. package/src/a11y/index.ts +1 -0
  251. package/src/components/Accessibility/CompositeAccessibilityProbe.tsx +48 -0
  252. package/src/components/Accessibility/HiddenA11yText.tsx +49 -0
  253. package/src/components/Accessibility/OverlayA11yShield.tsx +49 -0
  254. package/src/components/Accessibility/__tests__/OverlayA11yShield.test.tsx +83 -0
  255. package/src/components/Accessibility/index.ts +2 -0
  256. package/src/components/Attachment/Gallery.tsx +14 -2
  257. package/src/components/Channel/__tests__/ownCapabilities.test.tsx +25 -2
  258. package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +19 -16
  259. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +8 -1
  260. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +26 -6
  261. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +5 -1
  262. package/src/components/ChannelPreview/ChannelPreviewView.tsx +3 -0
  263. package/src/components/ImageGallery/ImageGallery.tsx +82 -4
  264. package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +13 -3
  265. package/src/components/ImageGallery/__tests__/ImageGalleryAdjustable.test.tsx +141 -0
  266. package/src/components/Message/MessageItemView/Headers/MessageReminderHeader.tsx +7 -1
  267. package/src/components/Message/MessageItemView/Headers/SentToChannelHeader.tsx +7 -1
  268. package/src/components/Message/MessageItemView/MessageContent.tsx +34 -4
  269. package/src/components/Message/MessageItemView/MessageFooter.tsx +6 -1
  270. package/src/components/Message/MessageItemView/MessageReplies.tsx +9 -7
  271. package/src/components/Message/MessageItemView/MessageRepliesAvatars.tsx +5 -1
  272. package/src/components/Message/MessageItemView/MessageStatus.tsx +36 -39
  273. package/src/components/Message/MessageItemView/MessageTextContainer.tsx +27 -4
  274. package/src/components/Message/MessageItemView/ReactionList/ReactionListClustered.tsx +24 -10
  275. package/src/components/Message/MessageItemView/ReactionList/ReactionListItem.tsx +7 -1
  276. package/src/components/Message/MessageItemView/__tests__/Message.test.tsx +10 -3
  277. package/src/components/Message/MessageItemView/__tests__/MessageReplies.test.tsx +10 -2
  278. package/src/components/Message/MessageItemView/__tests__/MessageStatus.test.tsx +10 -7
  279. package/src/components/Message/MessageItemView/__tests__/ReactionListBottom.test.tsx +1 -1
  280. package/src/components/Message/hooks/useCreateMessageContext.ts +12 -1
  281. package/src/components/Message/hooks/useMessageActionHandlers.ts +7 -0
  282. package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.tsx.snap +3 -0
  283. package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.tsx.snap +2 -0
  284. package/src/components/MessageList/InlineDateSeparator.tsx +10 -3
  285. package/src/components/MessageMenu/ReactionButton.tsx +0 -7
  286. package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +1 -14
  287. package/src/components/Poll/Poll.tsx +2 -26
  288. package/src/components/Poll/components/PollOption.tsx +7 -1
  289. package/src/components/Reply/Reply.tsx +58 -7
  290. package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +9 -0
  291. package/src/components/ui/Avatar/ChannelAvatar.tsx +39 -29
  292. package/src/components/ui/Badge/BadgeNotification.tsx +11 -2
  293. package/src/contexts/accessibilityContext/AccessibilityContext.tsx +60 -36
  294. package/src/contexts/messageContext/MessageContext.tsx +8 -0
  295. package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +5 -1
  296. package/src/contexts/overlayContext/OverlayProvider.tsx +2 -1
  297. package/src/i18n/ar.json +26 -8
  298. package/src/i18n/en.json +23 -5
  299. package/src/i18n/es.json +23 -5
  300. package/src/i18n/fr.json +23 -5
  301. package/src/i18n/he.json +23 -5
  302. package/src/i18n/hi.json +24 -6
  303. package/src/i18n/it.json +23 -5
  304. package/src/i18n/ja.json +23 -5
  305. package/src/i18n/ko.json +23 -5
  306. package/src/i18n/nl.json +24 -6
  307. package/src/i18n/pt-br.json +25 -7
  308. package/src/i18n/ru.json +23 -5
  309. package/src/i18n/tr.json +24 -6
  310. package/src/state-store/__tests__/image-gallery-state-store.test.ts +1 -0
  311. package/src/state-store/image-gallery-state-store.ts +13 -1
  312. package/src/utils/i18n/getDateString.ts +57 -0
  313. package/src/version.json +1 -1
  314. package/lib/commonjs/components/Poll/hooks/usePollAccessibilityActions.js +0 -150
  315. package/lib/commonjs/components/Poll/hooks/usePollAccessibilityActions.js.map +0 -1
  316. package/lib/commonjs/components/Poll/hooks/usePollAccessibilityLabel.js +0 -59
  317. package/lib/commonjs/components/Poll/hooks/usePollAccessibilityLabel.js.map +0 -1
  318. package/lib/module/components/Poll/hooks/usePollAccessibilityActions.js +0 -150
  319. package/lib/module/components/Poll/hooks/usePollAccessibilityActions.js.map +0 -1
  320. package/lib/module/components/Poll/hooks/usePollAccessibilityLabel.js +0 -59
  321. package/lib/module/components/Poll/hooks/usePollAccessibilityLabel.js.map +0 -1
  322. package/lib/typescript/components/Poll/hooks/usePollAccessibilityActions.d.ts +0 -25
  323. package/lib/typescript/components/Poll/hooks/usePollAccessibilityActions.d.ts.map +0 -1
  324. package/lib/typescript/components/Poll/hooks/usePollAccessibilityLabel.d.ts +0 -8
  325. package/lib/typescript/components/Poll/hooks/usePollAccessibilityLabel.d.ts.map +0 -1
  326. package/src/components/Poll/hooks/__tests__/usePollAccessibilityActions.test.tsx +0 -358
  327. package/src/components/Poll/hooks/__tests__/usePollAccessibilityLabel.test.tsx +0 -142
  328. package/src/components/Poll/hooks/usePollAccessibilityActions.ts +0 -191
  329. package/src/components/Poll/hooks/usePollAccessibilityLabel.ts +0 -75
package/src/i18n/it.json CHANGED
@@ -253,20 +253,33 @@
253
253
  "a11y/AI is generating": "L'IA sta generando",
254
254
  "a11y/AI is thinking": "L'IA sta pensando",
255
255
  "a11y/Avatar of {{name}}": "Avatar di {{name}}",
256
+ "a11y/Channel with {{count}} members": "Canale con {{count}} membri",
256
257
  "a11y/Connected": "Connesso",
257
258
  "a11y/Delivered": "Consegnato",
259
+ "a11y/Delivered, sent by you": "Consegnato, inviato da te",
260
+ "a11y/Direct chat with {{name}}": "Chat diretta con {{name}}",
261
+ "a11y/Double tap to open": "Tocca due volte per aprire",
262
+ "a11y/Double tap to view reactions": "Tocca due volte per vedere le reazioni",
263
+ "a11y/Double tap to view thread": "Tocca due volte per vedere il thread",
264
+ "a11y/Editing message": "Modifica del messaggio",
265
+ "a11y/Editing message: {{text}}": "Modifica del messaggio: {{text}}",
266
+ "a11y/Last message {{date}}": "Ultimo messaggio {{date}}",
258
267
  "a11y/Loading": "Caricamento",
259
268
  "a11y/Loading failed": "Caricamento non riuscito",
260
269
  "a11y/Message actions": "Azioni del messaggio",
270
+ "a11y/Muted": "Silenziato",
261
271
  "a11y/New message from {{user}}": "Nuovo messaggio da {{user}}",
262
272
  "a11y/Offline": "Offline",
263
273
  "a11y/Open message actions": "Apri azioni del messaggio",
264
274
  "a11y/Reaction {{emoji}} by {{count}} users": "Reazione {{emoji}} di {{count}} utenti",
265
275
  "a11y/Read": "Letto",
276
+ "a11y/Read, sent by you": "Letto, inviato da te",
266
277
  "a11y/Reconnecting": "Riconnessione",
267
278
  "a11y/Reply to {{user}}": "Rispondi a {{user}}",
268
279
  "a11y/Remove edit": "Rimuovi modifica",
269
280
  "a11y/Remove reply": "Rimuovi risposta",
281
+ "a11y/Replying to {{user}}": "Rispondendo a {{user}}",
282
+ "a11y/Replying to {{user}}: {{text}}": "Rispondendo a {{user}}: {{text}}",
270
283
  "a11y/Scroll to bottom": "Vai in fondo",
271
284
  "a11y/Scroll to bottom, {{count}} new messages": "Vai in fondo, {{count}} nuovi messaggi",
272
285
  "a11y/Scroll to latest": "Vai al messaggio più recente",
@@ -274,7 +287,10 @@
274
287
  "a11y/Send message": "Invia messaggio",
275
288
  "a11y/Sending": "Invio in corso",
276
289
  "a11y/Sent": "Inviato",
290
+ "a11y/Sent by you": "Inviato da te",
277
291
  "a11y/Voice message recording. Hold to record.": "Registrazione del messaggio vocale. Tieni premuto per registrare.",
292
+ "a11y/and {{count}} more reactions": "e altre {{count}} reazioni",
293
+ "a11y/you reacted": "hai reagito",
278
294
  "a11y/{{count}} new messages": "{{count}} nuovi messaggi",
279
295
  "a11y/Add attachment": "Add attachment",
280
296
  "a11y/Close attachments": "Close attachments",
@@ -352,12 +368,14 @@
352
368
  "size limit": "limite di dimensione",
353
369
  "unknown error": "errore sconosciuto",
354
370
  "unsupported file type": "tipo di file non supportato",
355
- "a11y/Activate to view results": "Attiva per vedere i risultati",
356
- "a11y/End vote": "Termina sondaggio",
357
- "a11y/Show all options": "Mostra tutte le opzioni",
358
- "a11y/Vote on {{option}}": "Vota per {{option}}",
359
371
  "a11y/Double tap and hold to activate contextual menu": "Tocca due volte e tieni premuto per attivare il menu contestuale",
360
372
  "a11y/Swipe right to go through different actions": "Scorri a destra per passare in rassegna le diverse azioni",
361
373
  "a11y/Close": "Close",
362
- "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
374
+ "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
375
+ "a11y/{{count}} unread messages": "{{count}} messaggi non letti",
376
+ "a11y/Message from you": "Messaggio da te",
377
+ "a11y/Message from {{sender}}": "Messaggio da {{sender}}",
378
+ "a11y/Gallery Image": "Immagine della galleria",
379
+ "a11y/Gallery Video": "Video della galleria",
380
+ "a11y/{{position}} of {{count}}": "{{position}} di {{count}}"
363
381
  }
package/src/i18n/ja.json CHANGED
@@ -253,20 +253,33 @@
253
253
  "a11y/AI is generating": "AIが生成しています",
254
254
  "a11y/AI is thinking": "AIが考えています",
255
255
  "a11y/Avatar of {{name}}": "{{name}}のアバター",
256
+ "a11y/Channel with {{count}} members": "メンバー{{count}}人のチャンネル",
256
257
  "a11y/Connected": "接続済み",
257
258
  "a11y/Delivered": "配信済み",
259
+ "a11y/Delivered, sent by you": "配信済み、あなたから送信",
260
+ "a11y/Direct chat with {{name}}": "{{name}}とのダイレクトチャット",
261
+ "a11y/Double tap to open": "ダブルタップで開く",
262
+ "a11y/Double tap to view reactions": "ダブルタップでリアクションを表示",
263
+ "a11y/Double tap to view thread": "ダブルタップでスレッドを表示",
264
+ "a11y/Editing message": "メッセージを編集中",
265
+ "a11y/Editing message: {{text}}": "メッセージを編集中: {{text}}",
266
+ "a11y/Last message {{date}}": "最後のメッセージ {{date}}",
258
267
  "a11y/Loading": "読み込み中",
259
268
  "a11y/Loading failed": "読み込みに失敗しました",
260
269
  "a11y/Message actions": "メッセージの操作",
270
+ "a11y/Muted": "ミュート中",
261
271
  "a11y/New message from {{user}}": "{{user}}からの新しいメッセージ",
262
272
  "a11y/Offline": "オフライン",
263
273
  "a11y/Open message actions": "メッセージの操作を開く",
264
274
  "a11y/Reaction {{emoji}} by {{count}} users": "{{count}}人のユーザーによるリアクション{{emoji}}",
265
275
  "a11y/Read": "既読",
276
+ "a11y/Read, sent by you": "既読、あなたから送信",
266
277
  "a11y/Reconnecting": "再接続中",
267
278
  "a11y/Reply to {{user}}": "{{user}}に返信",
268
279
  "a11y/Remove edit": "編集を削除",
269
280
  "a11y/Remove reply": "返信を削除",
281
+ "a11y/Replying to {{user}}": "{{user}}に返信中",
282
+ "a11y/Replying to {{user}}: {{text}}": "{{user}}に返信中: {{text}}",
270
283
  "a11y/Scroll to bottom": "一番下へ移動",
271
284
  "a11y/Scroll to bottom, {{count}} new messages": "一番下へ移動、新しいメッセージ{{count}}件",
272
285
  "a11y/Scroll to latest": "最新のメッセージへ移動",
@@ -274,7 +287,10 @@
274
287
  "a11y/Send message": "メッセージを送信",
275
288
  "a11y/Sending": "送信中",
276
289
  "a11y/Sent": "送信済み",
290
+ "a11y/Sent by you": "あなたから送信済み",
277
291
  "a11y/Voice message recording. Hold to record.": "音声メッセージの録音。長押しして録音します。",
292
+ "a11y/and {{count}} more reactions": "および{{count}}件のリアクション",
293
+ "a11y/you reacted": "あなたがリアクション",
278
294
  "a11y/{{count}} new messages": "新しいメッセージ{{count}}件",
279
295
  "a11y/Add attachment": "Add attachment",
280
296
  "a11y/Close attachments": "Close attachments",
@@ -352,12 +368,14 @@
352
368
  "size limit": "サイズ制限",
353
369
  "unknown error": "不明なエラー",
354
370
  "unsupported file type": "サポートされていないファイル形式",
355
- "a11y/Activate to view results": "結果を表示するには有効化",
356
- "a11y/End vote": "投票を終了",
357
- "a11y/Show all options": "すべてのオプションを表示",
358
- "a11y/Vote on {{option}}": "{{option}}に投票",
359
371
  "a11y/Double tap and hold to activate contextual menu": "コンテキストメニューを表示するにはダブルタップして長押し",
360
372
  "a11y/Swipe right to go through different actions": "右にスワイプして異なるアクションを切り替えます",
361
373
  "a11y/Close": "Close",
362
- "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
374
+ "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
375
+ "a11y/{{count}} unread messages": "未読メッセージ{{count}}件",
376
+ "a11y/Message from you": "あなたからのメッセージ",
377
+ "a11y/Message from {{sender}}": "{{sender}}からのメッセージ",
378
+ "a11y/Gallery Image": "ギャラリー画像",
379
+ "a11y/Gallery Video": "ギャラリービデオ",
380
+ "a11y/{{position}} of {{count}}": "{{count}} 中 {{position}}"
363
381
  }
package/src/i18n/ko.json CHANGED
@@ -253,20 +253,33 @@
253
253
  "a11y/AI is generating": "AI가 생성 중입니다",
254
254
  "a11y/AI is thinking": "AI가 생각 중입니다",
255
255
  "a11y/Avatar of {{name}}": "{{name}}의 아바타",
256
+ "a11y/Channel with {{count}} members": "멤버 {{count}}명의 채널",
256
257
  "a11y/Connected": "연결됨",
257
258
  "a11y/Delivered": "전달됨",
259
+ "a11y/Delivered, sent by you": "전달됨, 내가 보냄",
260
+ "a11y/Direct chat with {{name}}": "{{name}}님과의 다이렉트 채팅",
261
+ "a11y/Double tap to open": "두 번 탭하여 열기",
262
+ "a11y/Double tap to view reactions": "두 번 탭하여 반응 보기",
263
+ "a11y/Double tap to view thread": "두 번 탭하여 스레드 보기",
264
+ "a11y/Editing message": "메시지 편집 중",
265
+ "a11y/Editing message: {{text}}": "메시지 편집 중: {{text}}",
266
+ "a11y/Last message {{date}}": "마지막 메시지 {{date}}",
258
267
  "a11y/Loading": "로드 중",
259
268
  "a11y/Loading failed": "로드 실패",
260
269
  "a11y/Message actions": "메시지 작업",
270
+ "a11y/Muted": "음소거됨",
261
271
  "a11y/New message from {{user}}": "{{user}}님의 새 메시지",
262
272
  "a11y/Offline": "오프라인",
263
273
  "a11y/Open message actions": "메시지 작업 열기",
264
274
  "a11y/Reaction {{emoji}} by {{count}} users": "{{count}}명의 사용자가 남긴 {{emoji}} 반응",
265
275
  "a11y/Read": "읽음",
276
+ "a11y/Read, sent by you": "읽음, 내가 보냄",
266
277
  "a11y/Reconnecting": "다시 연결 중",
267
278
  "a11y/Reply to {{user}}": "{{user}}님에게 답장",
268
279
  "a11y/Remove edit": "편집 제거",
269
280
  "a11y/Remove reply": "답장 제거",
281
+ "a11y/Replying to {{user}}": "{{user}}님에게 답장 중",
282
+ "a11y/Replying to {{user}}: {{text}}": "{{user}}님에게 답장 중: {{text}}",
270
283
  "a11y/Scroll to bottom": "맨 아래로 이동",
271
284
  "a11y/Scroll to bottom, {{count}} new messages": "맨 아래로 이동, 새 메시지 {{count}}개",
272
285
  "a11y/Scroll to latest": "최신 메시지로 이동",
@@ -274,7 +287,10 @@
274
287
  "a11y/Send message": "메시지 보내기",
275
288
  "a11y/Sending": "보내는 중",
276
289
  "a11y/Sent": "보냄",
290
+ "a11y/Sent by you": "내가 보냄",
277
291
  "a11y/Voice message recording. Hold to record.": "음성 메시지 녹음. 길게 눌러 녹음하세요.",
292
+ "a11y/and {{count}} more reactions": "및 {{count}}개의 추가 반응",
293
+ "a11y/you reacted": "내가 반응함",
278
294
  "a11y/{{count}} new messages": "새 메시지 {{count}}개",
279
295
  "a11y/Add attachment": "Add attachment",
280
296
  "a11y/Close attachments": "Close attachments",
@@ -352,12 +368,14 @@
352
368
  "size limit": "크기 제한",
353
369
  "unknown error": "알 수 없는 오류",
354
370
  "unsupported file type": "지원되지 않는 파일 형식",
355
- "a11y/Activate to view results": "결과를 보려면 활성화",
356
- "a11y/End vote": "투표 종료",
357
- "a11y/Show all options": "모든 옵션 표시",
358
- "a11y/Vote on {{option}}": "{{option}}에 투표",
359
371
  "a11y/Double tap and hold to activate contextual menu": "컨텍스트 메뉴를 활성화하려면 두 번 탭하고 길게 누르세요",
360
372
  "a11y/Swipe right to go through different actions": "다른 작업을 탐색하려면 오른쪽으로 스와이프하세요",
361
373
  "a11y/Close": "Close",
362
- "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
374
+ "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
375
+ "a11y/{{count}} unread messages": "읽지 않은 메시지 {{count}}개",
376
+ "a11y/Message from you": "내가 보낸 메시지",
377
+ "a11y/Message from {{sender}}": "{{sender}}님의 메시지",
378
+ "a11y/Gallery Image": "갤러리 이미지",
379
+ "a11y/Gallery Video": "갤러리 동영상",
380
+ "a11y/{{position}} of {{count}}": "{{count}}개 중 {{position}}번째"
363
381
  }
package/src/i18n/nl.json CHANGED
@@ -253,20 +253,33 @@
253
253
  "a11y/AI is generating": "AI genereert",
254
254
  "a11y/AI is thinking": "AI denkt na",
255
255
  "a11y/Avatar of {{name}}": "Avatar van {{name}}",
256
+ "a11y/Channel with {{count}} members": "Kanaal met {{count}} leden",
256
257
  "a11y/Connected": "Verbonden",
257
- "a11y/Delivered": "Afgeleverd",
258
+ "a11y/Delivered": "Bezorgd",
259
+ "a11y/Delivered, sent by you": "Bezorgd, door jou verzonden",
260
+ "a11y/Direct chat with {{name}}": "Direct chat met {{name}}",
261
+ "a11y/Double tap to open": "Dubbeltik om te openen",
262
+ "a11y/Double tap to view reactions": "Dubbeltik om reacties te bekijken",
263
+ "a11y/Double tap to view thread": "Dubbeltik om de thread te bekijken",
264
+ "a11y/Editing message": "Bericht bewerken",
265
+ "a11y/Editing message: {{text}}": "Bericht bewerken: {{text}}",
266
+ "a11y/Last message {{date}}": "Laatste bericht {{date}}",
258
267
  "a11y/Loading": "Laden",
259
268
  "a11y/Loading failed": "Laden mislukt",
260
269
  "a11y/Message actions": "Berichtacties",
270
+ "a11y/Muted": "Gedempt",
261
271
  "a11y/New message from {{user}}": "Nieuw bericht van {{user}}",
262
272
  "a11y/Offline": "Offline",
263
273
  "a11y/Open message actions": "Berichtacties openen",
264
274
  "a11y/Reaction {{emoji}} by {{count}} users": "Reactie {{emoji}} door {{count}} gebruikers",
265
275
  "a11y/Read": "Gelezen",
276
+ "a11y/Read, sent by you": "Gelezen, door jou verzonden",
266
277
  "a11y/Reconnecting": "Opnieuw verbinden",
267
278
  "a11y/Reply to {{user}}": "Antwoorden op {{user}}",
268
279
  "a11y/Remove edit": "Bewerking verwijderen",
269
280
  "a11y/Remove reply": "Antwoord verwijderen",
281
+ "a11y/Replying to {{user}}": "Antwoorden op {{user}}",
282
+ "a11y/Replying to {{user}}: {{text}}": "Antwoorden op {{user}}: {{text}}",
270
283
  "a11y/Scroll to bottom": "Ga naar beneden",
271
284
  "a11y/Scroll to bottom, {{count}} new messages": "Ga naar beneden, {{count}} nieuwe berichten",
272
285
  "a11y/Scroll to latest": "Ga naar het nieuwste bericht",
@@ -274,7 +287,10 @@
274
287
  "a11y/Send message": "Bericht verzenden",
275
288
  "a11y/Sending": "Verzenden",
276
289
  "a11y/Sent": "Verzonden",
290
+ "a11y/Sent by you": "Door jou verzonden",
277
291
  "a11y/Voice message recording. Hold to record.": "Spraakbericht opnemen. Houd ingedrukt om op te nemen.",
292
+ "a11y/and {{count}} more reactions": "en {{count}} meer reacties",
293
+ "a11y/you reacted": "jij hebt gereageerd",
278
294
  "a11y/{{count}} new messages": "{{count}} nieuwe berichten",
279
295
  "a11y/Add attachment": "Add attachment",
280
296
  "a11y/Close attachments": "Close attachments",
@@ -352,12 +368,14 @@
352
368
  "size limit": "groottelimiet",
353
369
  "unknown error": "onbekende fout",
354
370
  "unsupported file type": "niet-ondersteund bestandstype",
355
- "a11y/Activate to view results": "Activeer om resultaten te bekijken",
356
- "a11y/End vote": "Stemming beëindigen",
357
- "a11y/Show all options": "Alle opties weergeven",
358
- "a11y/Vote on {{option}}": "Stem op {{option}}",
359
371
  "a11y/Double tap and hold to activate contextual menu": "Dubbeltik en houd vast om het contextmenu te openen",
360
372
  "a11y/Swipe right to go through different actions": "Veeg naar rechts om door verschillende acties te bladeren",
361
373
  "a11y/Close": "Close",
362
- "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
374
+ "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
375
+ "a11y/{{count}} unread messages": "{{count}} ongelezen berichten",
376
+ "a11y/Message from you": "Bericht van jou",
377
+ "a11y/Message from {{sender}}": "Bericht van {{sender}}",
378
+ "a11y/Gallery Image": "Galerij-afbeelding",
379
+ "a11y/Gallery Video": "Galerij-video",
380
+ "a11y/{{position}} of {{count}}": "{{position}} van {{count}}"
363
381
  }
@@ -253,28 +253,44 @@
253
253
  "a11y/AI is generating": "A IA está gerando",
254
254
  "a11y/AI is thinking": "A IA está pensando",
255
255
  "a11y/Avatar of {{name}}": "Avatar de {{name}}",
256
+ "a11y/Channel with {{count}} members": "Canal com {{count}} membros",
256
257
  "a11y/Connected": "Conectado",
257
258
  "a11y/Delivered": "Entregue",
259
+ "a11y/Delivered, sent by you": "Entregue, enviada por você",
260
+ "a11y/Direct chat with {{name}}": "Chat direto com {{name}}",
261
+ "a11y/Double tap to open": "Toque duas vezes para abrir",
262
+ "a11y/Double tap to view reactions": "Toque duas vezes para ver as reações",
263
+ "a11y/Double tap to view thread": "Toque duas vezes para ver o tópico",
264
+ "a11y/Editing message": "Editando mensagem",
265
+ "a11y/Editing message: {{text}}": "Editando mensagem: {{text}}",
266
+ "a11y/Last message {{date}}": "Última mensagem {{date}}",
258
267
  "a11y/Loading": "Carregando",
259
268
  "a11y/Loading failed": "Falha ao carregar",
260
269
  "a11y/Message actions": "Ações da mensagem",
270
+ "a11y/Muted": "Silenciado",
261
271
  "a11y/New message from {{user}}": "Nova mensagem de {{user}}",
262
272
  "a11y/Offline": "Offline",
263
273
  "a11y/Open message actions": "Abrir ações da mensagem",
264
274
  "a11y/Reaction {{emoji}} by {{count}} users": "Reação {{emoji}} de {{count}} usuários",
265
- "a11y/Read": "Lido",
275
+ "a11y/Read": "Lida",
276
+ "a11y/Read, sent by you": "Lida, enviada por você",
266
277
  "a11y/Reconnecting": "Reconectando",
267
278
  "a11y/Reply to {{user}}": "Responder a {{user}}",
268
279
  "a11y/Remove edit": "Remover edição",
269
280
  "a11y/Remove reply": "Remover resposta",
281
+ "a11y/Replying to {{user}}": "Respondendo a {{user}}",
282
+ "a11y/Replying to {{user}}: {{text}}": "Respondendo a {{user}}: {{text}}",
270
283
  "a11y/Scroll to bottom": "Ir para o final",
271
284
  "a11y/Scroll to bottom, {{count}} new messages": "Ir para o final, {{count}} novas mensagens",
272
285
  "a11y/Scroll to latest": "Ir para a mensagem mais recente",
273
286
  "a11y/Scroll to latest, {{count}} unread": "Ir para a mensagem mais recente, {{count}} não lidas",
274
287
  "a11y/Send message": "Enviar mensagem",
275
288
  "a11y/Sending": "Enviando",
276
- "a11y/Sent": "Enviado",
289
+ "a11y/Sent": "Enviada",
290
+ "a11y/Sent by you": "Enviada por você",
277
291
  "a11y/Voice message recording. Hold to record.": "Gravação de mensagem de voz. Mantenha pressionado para gravar.",
292
+ "a11y/and {{count}} more reactions": "e mais {{count}} reações",
293
+ "a11y/you reacted": "você reagiu",
278
294
  "a11y/{{count}} new messages": "{{count}} novas mensagens",
279
295
  "a11y/Add attachment": "Add attachment",
280
296
  "a11y/Close attachments": "Close attachments",
@@ -352,12 +368,14 @@
352
368
  "size limit": "limite de tamanho",
353
369
  "unknown error": "erro desconhecido",
354
370
  "unsupported file type": "tipo de arquivo não compatível",
355
- "a11y/Activate to view results": "Ative para ver os resultados",
356
- "a11y/End vote": "Encerrar votação",
357
- "a11y/Show all options": "Mostrar todas as opções",
358
- "a11y/Vote on {{option}}": "Votar em {{option}}",
359
371
  "a11y/Double tap and hold to activate contextual menu": "Toque duas vezes e segure para ativar o menu contextual",
360
372
  "a11y/Swipe right to go through different actions": "Deslize para a direita para percorrer as diferentes ações",
361
373
  "a11y/Close": "Close",
362
- "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
374
+ "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
375
+ "a11y/{{count}} unread messages": "{{count}} mensagens não lidas",
376
+ "a11y/Message from you": "Mensagem sua",
377
+ "a11y/Message from {{sender}}": "Mensagem de {{sender}}",
378
+ "a11y/Gallery Image": "Imagem da galeria",
379
+ "a11y/Gallery Video": "Vídeo da galeria",
380
+ "a11y/{{position}} of {{count}}": "{{position}} de {{count}}"
363
381
  }
package/src/i18n/ru.json CHANGED
@@ -253,20 +253,33 @@
253
253
  "a11y/AI is generating": "ИИ генерирует ответ",
254
254
  "a11y/AI is thinking": "ИИ думает",
255
255
  "a11y/Avatar of {{name}}": "Аватар {{name}}",
256
+ "a11y/Channel with {{count}} members": "Канал с {{count}} участниками",
256
257
  "a11y/Connected": "Подключено",
257
258
  "a11y/Delivered": "Доставлено",
259
+ "a11y/Delivered, sent by you": "Доставлено, отправлено вами",
260
+ "a11y/Direct chat with {{name}}": "Прямой чат с {{name}}",
261
+ "a11y/Double tap to open": "Дважды коснитесь, чтобы открыть",
262
+ "a11y/Double tap to view reactions": "Дважды коснитесь, чтобы посмотреть реакции",
263
+ "a11y/Double tap to view thread": "Дважды коснитесь, чтобы посмотреть тред",
264
+ "a11y/Editing message": "Редактирование сообщения",
265
+ "a11y/Editing message: {{text}}": "Редактирование сообщения: {{text}}",
266
+ "a11y/Last message {{date}}": "Последнее сообщение {{date}}",
258
267
  "a11y/Loading": "Загрузка",
259
268
  "a11y/Loading failed": "Не удалось загрузить",
260
269
  "a11y/Message actions": "Действия с сообщением",
270
+ "a11y/Muted": "Без звука",
261
271
  "a11y/New message from {{user}}": "Новое сообщение от {{user}}",
262
272
  "a11y/Offline": "Не в сети",
263
273
  "a11y/Open message actions": "Открыть действия с сообщением",
264
274
  "a11y/Reaction {{emoji}} by {{count}} users": "Реакция {{emoji}} от {{count}} пользователей",
265
275
  "a11y/Read": "Прочитано",
276
+ "a11y/Read, sent by you": "Прочитано, отправлено вами",
266
277
  "a11y/Reconnecting": "Повторное подключение",
267
278
  "a11y/Reply to {{user}}": "Ответить {{user}}",
268
279
  "a11y/Remove edit": "Удалить редактирование",
269
280
  "a11y/Remove reply": "Удалить ответ",
281
+ "a11y/Replying to {{user}}": "Ответ {{user}}",
282
+ "a11y/Replying to {{user}}: {{text}}": "Ответ {{user}}: {{text}}",
270
283
  "a11y/Scroll to bottom": "Прокрутить вниз",
271
284
  "a11y/Scroll to bottom, {{count}} new messages": "Прокрутить вниз, {{count}} новых сообщений",
272
285
  "a11y/Scroll to latest": "Перейти к последнему сообщению",
@@ -274,7 +287,10 @@
274
287
  "a11y/Send message": "Отправить сообщение",
275
288
  "a11y/Sending": "Отправка",
276
289
  "a11y/Sent": "Отправлено",
290
+ "a11y/Sent by you": "Отправлено вами",
277
291
  "a11y/Voice message recording. Hold to record.": "Запись голосового сообщения. Удерживайте, чтобы записать.",
292
+ "a11y/and {{count}} more reactions": "и ещё {{count}} реакций",
293
+ "a11y/you reacted": "вы отреагировали",
278
294
  "a11y/{{count}} new messages": "{{count}} новых сообщений",
279
295
  "a11y/Add attachment": "Add attachment",
280
296
  "a11y/Close attachments": "Close attachments",
@@ -352,12 +368,14 @@
352
368
  "size limit": "лимит размера",
353
369
  "unknown error": "неизвестная ошибка",
354
370
  "unsupported file type": "неподдерживаемый тип файла",
355
- "a11y/Activate to view results": "Активируйте, чтобы увидеть результаты",
356
- "a11y/End vote": "Завершить голосование",
357
- "a11y/Show all options": "Показать все варианты",
358
- "a11y/Vote on {{option}}": "Голосовать за {{option}}",
359
371
  "a11y/Double tap and hold to activate contextual menu": "Дважды коснитесь и удерживайте, чтобы открыть контекстное меню",
360
372
  "a11y/Swipe right to go through different actions": "Смахните вправо, чтобы переключаться между действиями",
361
373
  "a11y/Close": "Close",
362
- "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
374
+ "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
375
+ "a11y/{{count}} unread messages": "{{count}} непрочитанных сообщений",
376
+ "a11y/Message from you": "Сообщение от вас",
377
+ "a11y/Message from {{sender}}": "Сообщение от {{sender}}",
378
+ "a11y/Gallery Image": "Изображение из галереи",
379
+ "a11y/Gallery Video": "Видео из галереи",
380
+ "a11y/{{position}} of {{count}}": "{{position}} из {{count}}"
363
381
  }
package/src/i18n/tr.json CHANGED
@@ -253,20 +253,33 @@
253
253
  "a11y/AI is generating": "Yapay zeka oluşturuyor",
254
254
  "a11y/AI is thinking": "Yapay zeka düşünüyor",
255
255
  "a11y/Avatar of {{name}}": "{{name}} avatarı",
256
+ "a11y/Channel with {{count}} members": "{{count}} üyeli kanal",
256
257
  "a11y/Connected": "Bağlandı",
257
- "a11y/Delivered": "Teslim edildi",
258
+ "a11y/Delivered": "İletildi",
259
+ "a11y/Delivered, sent by you": "İletildi, sizin tarafınızdan gönderildi",
260
+ "a11y/Direct chat with {{name}}": "{{name}} ile doğrudan sohbet",
261
+ "a11y/Double tap to open": "Açmak için iki kez dokun",
262
+ "a11y/Double tap to view reactions": "Tepkileri görmek için iki kez dokun",
263
+ "a11y/Double tap to view thread": "Konuyu görmek için iki kez dokun",
264
+ "a11y/Editing message": "Mesaj düzenleniyor",
265
+ "a11y/Editing message: {{text}}": "Mesaj düzenleniyor: {{text}}",
266
+ "a11y/Last message {{date}}": "Son mesaj {{date}}",
258
267
  "a11y/Loading": "Yükleniyor",
259
268
  "a11y/Loading failed": "Yükleme başarısız",
260
269
  "a11y/Message actions": "Mesaj eylemleri",
270
+ "a11y/Muted": "Sessize alındı",
261
271
  "a11y/New message from {{user}}": "{{user}} kullanıcısından yeni mesaj",
262
272
  "a11y/Offline": "Çevrimdışı",
263
273
  "a11y/Open message actions": "Mesaj eylemlerini aç",
264
274
  "a11y/Reaction {{emoji}} by {{count}} users": "{{count}} kullanıcıdan {{emoji}} tepkisi",
265
275
  "a11y/Read": "Okundu",
276
+ "a11y/Read, sent by you": "Okundu, sizin tarafınızdan gönderildi",
266
277
  "a11y/Reconnecting": "Yeniden bağlanıyor",
267
278
  "a11y/Reply to {{user}}": "{{user}} kullanıcısına yanıt ver",
268
279
  "a11y/Remove edit": "Düzenlemeyi kaldır",
269
280
  "a11y/Remove reply": "Yanıtı kaldır",
281
+ "a11y/Replying to {{user}}": "{{user}} kullanıcısına yanıt veriliyor",
282
+ "a11y/Replying to {{user}}: {{text}}": "{{user}} kullanıcısına yanıt veriliyor: {{text}}",
270
283
  "a11y/Scroll to bottom": "En alta git",
271
284
  "a11y/Scroll to bottom, {{count}} new messages": "En alta git, {{count}} yeni mesaj",
272
285
  "a11y/Scroll to latest": "En son mesaja git",
@@ -274,7 +287,10 @@
274
287
  "a11y/Send message": "Mesaj gönder",
275
288
  "a11y/Sending": "Gönderiliyor",
276
289
  "a11y/Sent": "Gönderildi",
290
+ "a11y/Sent by you": "Sizin tarafınızdan gönderildi",
277
291
  "a11y/Voice message recording. Hold to record.": "Sesli mesaj kaydı. Kaydetmek için basılı tutun.",
292
+ "a11y/and {{count}} more reactions": "ve {{count}} tepki daha",
293
+ "a11y/you reacted": "siz tepki verdiniz",
278
294
  "a11y/{{count}} new messages": "{{count}} yeni mesaj",
279
295
  "a11y/Add attachment": "Add attachment",
280
296
  "a11y/Close attachments": "Close attachments",
@@ -352,12 +368,14 @@
352
368
  "size limit": "boyut sınırı",
353
369
  "unknown error": "bilinmeyen hata",
354
370
  "unsupported file type": "desteklenmeyen dosya türü",
355
- "a11y/Activate to view results": "Sonuçları görmek için etkinleştir",
356
- "a11y/End vote": "Oylamayı sonlandır",
357
- "a11y/Show all options": "Tüm seçenekleri göster",
358
- "a11y/Vote on {{option}}": "{{option}} için oy ver",
359
371
  "a11y/Double tap and hold to activate contextual menu": "Bağlam menüsünü etkinleştirmek için çift dokunup basılı tut",
360
372
  "a11y/Swipe right to go through different actions": "Farklı eylemler arasında geçiş yapmak için sağa kaydır",
361
373
  "a11y/Close": "Close",
362
- "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
374
+ "a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
375
+ "a11y/{{count}} unread messages": "{{count}} okunmamış mesaj",
376
+ "a11y/Message from you": "Senden mesaj",
377
+ "a11y/Message from {{sender}}": "{{sender}} kullanıcısından mesaj",
378
+ "a11y/Gallery Image": "Galeri görüntüsü",
379
+ "a11y/Gallery Video": "Galeri videosu",
380
+ "a11y/{{position}} of {{count}}": "{{count}} öğeden {{position}}"
363
381
  }
@@ -88,6 +88,7 @@ describe('ImageGalleryStateStore', () => {
88
88
  assets: [],
89
89
  currentIndex: 0,
90
90
  messages: [],
91
+ requesterNode: null,
91
92
  selectedAttachmentUrl: undefined,
92
93
  });
93
94
  });
@@ -41,12 +41,14 @@ export type ImageGalleryState = {
41
41
  messages: LocalMessage[];
42
42
  selectedAttachmentUrl?: string;
43
43
  currentIndex: number;
44
+ requesterNode: number | null;
44
45
  };
45
46
 
46
47
  const INITIAL_STATE: ImageGalleryState = {
47
48
  assets: [],
48
49
  currentIndex: 0,
49
50
  messages: [],
51
+ requesterNode: null,
50
52
  selectedAttachmentUrl: undefined,
51
53
  };
52
54
 
@@ -80,6 +82,10 @@ export class ImageGalleryStateStore {
80
82
  return this.state.getLatestValue().selectedAttachmentUrl;
81
83
  }
82
84
 
85
+ get requesterNode() {
86
+ return this.state.getLatestValue().requesterNode;
87
+ }
88
+
83
89
  get attachmentsWithMessage() {
84
90
  const messages = this.messages;
85
91
 
@@ -151,6 +157,10 @@ export class ImageGalleryStateStore {
151
157
  this.state.partialNext({ currentIndex });
152
158
  }
153
159
 
160
+ set requesterNode(requesterNode: number | null) {
161
+ this.state.partialNext({ requesterNode });
162
+ }
163
+
154
164
  // APIs for managing messages
155
165
  appendMessages = (messages: LocalMessage[]) => {
156
166
  this.state.partialNext({ messages: [...this.messages, ...messages] });
@@ -164,12 +174,14 @@ export class ImageGalleryStateStore {
164
174
 
165
175
  openImageGallery = ({
166
176
  messages,
177
+ requesterNode = null,
167
178
  selectedAttachmentUrl,
168
179
  }: {
169
180
  messages: LocalMessage[];
181
+ requesterNode?: number | null;
170
182
  selectedAttachmentUrl?: string;
171
183
  }) => {
172
- this.state.partialNext({ messages, selectedAttachmentUrl });
184
+ this.state.partialNext({ messages, requesterNode, selectedAttachmentUrl });
173
185
  };
174
186
 
175
187
  subscribeToMessages = () => {
@@ -1,3 +1,6 @@
1
+ import type { TranslationLanguages } from 'stream-chat';
2
+
3
+ import { calendarFormats } from './calendarFormats';
1
4
  import { TimestampFormatterOptions } from './types';
2
5
 
3
6
  import { TranslatorFunctions } from '../../contexts/translationContext';
@@ -74,3 +77,57 @@ export function getDateString({
74
77
 
75
78
  return new Date(date).toDateString();
76
79
  }
80
+
81
+ type DateStringForA11yOptions = {
82
+ /**
83
+ * Optional calendar-format overrides applied on top of the locale defaults
84
+ * and the SDK's `sameElse: 'LL'` substitution. Use this when the visible
85
+ * date format diverges from the locale defaults (e.g. ChannelPreviewStatus
86
+ * uses `sameDay: 'LT'` to show the time instead of "Today").
87
+ */
88
+ calendarFormatOverrides?: Partial<{
89
+ lastDay: string;
90
+ lastWeek: string;
91
+ nextDay: string;
92
+ nextWeek: string;
93
+ sameDay: string;
94
+ sameElse: string;
95
+ }>;
96
+ date?: string | Date;
97
+ tDateTimeParser?: TranslatorFunctions['tDateTimeParser'];
98
+ userLanguage?: TranslationLanguages;
99
+ };
100
+
101
+ /**
102
+ * Produce a TTS-friendly calendar string. iOS VoiceOver reads numeric dates
103
+ * like "04/08/2026" character-by-character; substituting `LL` ("April 8, 2026")
104
+ * for the calendar `sameElse` slot fixes that. The relative slots
105
+ * (sameDay/lastDay/nextDay/lastWeek/nextWeek) are preserved from the locale,
106
+ * so "Today"/"Yesterday"/weekday names still come through.
107
+ */
108
+ export const getDateStringForA11y = ({
109
+ calendarFormatOverrides,
110
+ date,
111
+ tDateTimeParser,
112
+ userLanguage,
113
+ }: DateStringForA11yOptions): string | undefined => {
114
+ if (!date || (typeof date === 'string' && !Date.parse(date))) {
115
+ return undefined;
116
+ }
117
+ if (!tDateTimeParser) {
118
+ return undefined;
119
+ }
120
+
121
+ const parsedTime = tDateTimeParser(date);
122
+ if (!isDayOrMoment(parsedTime) || !parsedTime.calendar) {
123
+ return undefined;
124
+ }
125
+
126
+ const localeFormats = (userLanguage && calendarFormats[userLanguage]) || calendarFormats.en;
127
+
128
+ return parsedTime.calendar(undefined, {
129
+ ...localeFormats,
130
+ sameElse: 'LL',
131
+ ...calendarFormatOverrides,
132
+ });
133
+ };
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "9.3.1-beta.6"
2
+ "version": "9.3.1-beta.8"
3
3
  }