stream-chat-react-native-core 5.29.1-beta.3 → 5.30.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/lib/commonjs/components/Channel/Channel.js +18 -21
  2. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  3. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -2
  4. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  5. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js +9 -13
  6. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  7. package/lib/commonjs/components/ChannelList/utils.js +2 -1
  8. package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
  9. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +1 -3
  10. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  11. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +7 -5
  12. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  13. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +6 -14
  14. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  15. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +25 -3
  16. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
  17. package/lib/commonjs/components/Message/Message.js +11 -0
  18. package/lib/commonjs/components/Message/Message.js.map +1 -1
  19. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +12 -27
  20. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  21. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +10 -12
  22. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  23. package/lib/commonjs/components/Message/MessageSimple/MessageEditedTimestamp.js +55 -0
  24. package/lib/commonjs/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -0
  25. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +94 -58
  26. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  27. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +6 -0
  28. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  29. package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js +48 -0
  30. package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js.map +1 -0
  31. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +5 -1
  32. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  33. package/lib/commonjs/components/MessageList/InlineDateSeparator.js +6 -2
  34. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  35. package/lib/commonjs/components/MessageList/MessageList.js +9 -6
  36. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  37. package/lib/commonjs/components/MessageList/MessageSystem.js +30 -27
  38. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  39. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +3 -2
  40. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  41. package/lib/commonjs/components/index.js +11 -0
  42. package/lib/commonjs/components/index.js.map +1 -1
  43. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  44. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  45. package/lib/commonjs/contexts/themeContext/utils/theme.js +3 -0
  46. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  47. package/lib/commonjs/hooks/useTranslatedMessage.js +1 -0
  48. package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
  49. package/lib/commonjs/i18n/en.json +3 -1
  50. package/lib/commonjs/i18n/es.json +43 -41
  51. package/lib/commonjs/i18n/fr.json +43 -41
  52. package/lib/commonjs/i18n/he.json +43 -41
  53. package/lib/commonjs/i18n/hi.json +46 -44
  54. package/lib/commonjs/i18n/it.json +46 -44
  55. package/lib/commonjs/i18n/ja.json +46 -44
  56. package/lib/commonjs/i18n/ko.json +46 -44
  57. package/lib/commonjs/i18n/nl.json +46 -44
  58. package/lib/commonjs/i18n/pt-BR.json +46 -44
  59. package/lib/commonjs/i18n/ru.json +46 -44
  60. package/lib/commonjs/i18n/tr.json +46 -44
  61. package/lib/commonjs/icons/ChatIcon.js +23 -0
  62. package/lib/commonjs/icons/ChatIcon.js.map +1 -0
  63. package/lib/commonjs/icons/index.js +11 -0
  64. package/lib/commonjs/icons/index.js.map +1 -1
  65. package/lib/commonjs/utils/getDateString.js +31 -0
  66. package/lib/commonjs/utils/getDateString.js.map +1 -0
  67. package/lib/commonjs/utils/utils.js +5 -1
  68. package/lib/commonjs/utils/utils.js.map +1 -1
  69. package/lib/commonjs/version.json +1 -1
  70. package/lib/module/components/Channel/Channel.js +18 -21
  71. package/lib/module/components/Channel/Channel.js.map +1 -1
  72. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -2
  73. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  74. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js +9 -13
  75. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  76. package/lib/module/components/ChannelList/utils.js +2 -1
  77. package/lib/module/components/ChannelList/utils.js.map +1 -1
  78. package/lib/module/components/ChannelPreview/ChannelPreview.js +1 -3
  79. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  80. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +7 -5
  81. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  82. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +6 -14
  83. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  84. package/lib/module/components/Indicators/EmptyStateIndicator.js +25 -3
  85. package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
  86. package/lib/module/components/Message/Message.js +11 -0
  87. package/lib/module/components/Message/Message.js.map +1 -1
  88. package/lib/module/components/Message/MessageSimple/MessageContent.js +12 -27
  89. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  90. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +10 -12
  91. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  92. package/lib/module/components/Message/MessageSimple/MessageEditedTimestamp.js +55 -0
  93. package/lib/module/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -0
  94. package/lib/module/components/Message/MessageSimple/MessageFooter.js +94 -58
  95. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  96. package/lib/module/components/Message/MessageSimple/MessageSimple.js +6 -0
  97. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  98. package/lib/module/components/Message/MessageSimple/MessageTimestamp.js +48 -0
  99. package/lib/module/components/Message/MessageSimple/MessageTimestamp.js.map +1 -0
  100. package/lib/module/components/Message/hooks/useCreateMessageContext.js +5 -1
  101. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  102. package/lib/module/components/MessageList/InlineDateSeparator.js +6 -2
  103. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  104. package/lib/module/components/MessageList/MessageList.js +9 -6
  105. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  106. package/lib/module/components/MessageList/MessageSystem.js +30 -27
  107. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  108. package/lib/module/components/MessageList/utils/getGroupStyles.js +3 -2
  109. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  110. package/lib/module/components/index.js +11 -0
  111. package/lib/module/components/index.js.map +1 -1
  112. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  113. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  114. package/lib/module/contexts/themeContext/utils/theme.js +3 -0
  115. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  116. package/lib/module/hooks/useTranslatedMessage.js +1 -0
  117. package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
  118. package/lib/module/i18n/en.json +3 -1
  119. package/lib/module/i18n/es.json +43 -41
  120. package/lib/module/i18n/fr.json +43 -41
  121. package/lib/module/i18n/he.json +43 -41
  122. package/lib/module/i18n/hi.json +46 -44
  123. package/lib/module/i18n/it.json +46 -44
  124. package/lib/module/i18n/ja.json +46 -44
  125. package/lib/module/i18n/ko.json +46 -44
  126. package/lib/module/i18n/nl.json +46 -44
  127. package/lib/module/i18n/pt-BR.json +46 -44
  128. package/lib/module/i18n/ru.json +46 -44
  129. package/lib/module/i18n/tr.json +46 -44
  130. package/lib/module/icons/ChatIcon.js +23 -0
  131. package/lib/module/icons/ChatIcon.js.map +1 -0
  132. package/lib/module/icons/index.js +11 -0
  133. package/lib/module/icons/index.js.map +1 -1
  134. package/lib/module/utils/getDateString.js +31 -0
  135. package/lib/module/utils/getDateString.js.map +1 -0
  136. package/lib/module/utils/utils.js +5 -1
  137. package/lib/module/utils/utils.js.map +1 -1
  138. package/lib/module/version.json +1 -1
  139. package/lib/typescript/components/Channel/Channel.d.ts +1 -1
  140. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  141. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  142. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts.map +1 -1
  143. package/lib/typescript/components/ChannelList/utils.d.ts.map +1 -1
  144. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  145. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +1 -1
  146. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
  147. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
  148. package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts +1 -1
  149. package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -1
  150. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  151. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
  152. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
  153. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +8 -8
  154. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts.map +1 -1
  155. package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts +7 -0
  156. package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts.map +1 -0
  157. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +1 -1
  158. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
  159. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
  160. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
  161. package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts +22 -0
  162. package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts.map +1 -0
  163. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  164. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
  165. package/lib/typescript/components/MessageList/DateHeader.d.ts +1 -1
  166. package/lib/typescript/components/MessageList/DateHeader.d.ts.map +1 -1
  167. package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts.map +1 -1
  168. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  169. package/lib/typescript/components/MessageList/MessageSystem.d.ts +0 -8
  170. package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
  171. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
  172. package/lib/typescript/components/index.d.ts +1 -0
  173. package/lib/typescript/components/index.d.ts.map +1 -1
  174. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -1
  175. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
  176. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +5 -1
  177. package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
  178. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +6 -5
  179. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  180. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +3 -0
  181. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  182. package/lib/typescript/hooks/useTranslatedMessage.d.ts +1 -1
  183. package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
  184. package/lib/typescript/i18n/en.json +3 -1
  185. package/lib/typescript/i18n/es.json +43 -41
  186. package/lib/typescript/i18n/fr.json +43 -41
  187. package/lib/typescript/i18n/he.json +43 -41
  188. package/lib/typescript/i18n/hi.json +46 -44
  189. package/lib/typescript/i18n/it.json +46 -44
  190. package/lib/typescript/i18n/ja.json +46 -44
  191. package/lib/typescript/i18n/ko.json +46 -44
  192. package/lib/typescript/i18n/nl.json +46 -44
  193. package/lib/typescript/i18n/pt-BR.json +46 -44
  194. package/lib/typescript/i18n/ru.json +46 -44
  195. package/lib/typescript/i18n/tr.json +46 -44
  196. package/lib/typescript/icons/ChatIcon.d.ts +4 -0
  197. package/lib/typescript/icons/ChatIcon.d.ts.map +1 -0
  198. package/lib/typescript/icons/index.d.ts +1 -0
  199. package/lib/typescript/icons/index.d.ts.map +1 -1
  200. package/lib/typescript/utils/Streami18n.d.ts +7 -0
  201. package/lib/typescript/utils/Streami18n.d.ts.map +1 -1
  202. package/lib/typescript/utils/getDateString.d.ts +30 -0
  203. package/lib/typescript/utils/getDateString.d.ts.map +1 -0
  204. package/lib/typescript/utils/utils.d.ts +6 -0
  205. package/lib/typescript/utils/utils.d.ts.map +1 -1
  206. package/package.json +2 -2
  207. package/src/components/Channel/Channel.tsx +16 -15
  208. package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -2
  209. package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +9 -14
  210. package/src/components/ChannelList/utils.ts +2 -1
  211. package/src/components/ChannelPreview/ChannelPreview.tsx +1 -6
  212. package/src/components/ChannelPreview/hooks/__tests__/useLatestMessagePreview.test.tsx +1 -1
  213. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +7 -14
  214. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -31
  215. package/src/components/Indicators/EmptyStateIndicator.tsx +19 -2
  216. package/src/components/Message/Message.tsx +7 -0
  217. package/src/components/Message/MessageSimple/MessageContent.tsx +13 -33
  218. package/src/components/Message/MessageSimple/MessageDeleted.tsx +13 -31
  219. package/src/components/Message/MessageSimple/MessageEditedTimestamp.tsx +56 -0
  220. package/src/components/Message/MessageSimple/MessageFooter.tsx +104 -63
  221. package/src/components/Message/MessageSimple/MessageSimple.tsx +14 -2
  222. package/src/components/Message/MessageSimple/MessageTimestamp.tsx +64 -0
  223. package/src/components/Message/hooks/useCreateMessageContext.ts +5 -0
  224. package/src/components/MessageList/DateHeader.tsx +1 -1
  225. package/src/components/MessageList/InlineDateSeparator.tsx +8 -8
  226. package/src/components/MessageList/MessageList.tsx +9 -9
  227. package/src/components/MessageList/MessageSystem.tsx +35 -43
  228. package/src/components/MessageList/utils/getGroupStyles.ts +7 -4
  229. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +20 -12
  230. package/src/components/index.ts +1 -0
  231. package/src/contexts/channelContext/ChannelContext.tsx +1 -1
  232. package/src/contexts/messageContext/MessageContext.tsx +4 -0
  233. package/src/contexts/messagesContext/MessagesContext.tsx +6 -5
  234. package/src/contexts/themeContext/utils/theme.ts +6 -0
  235. package/src/hooks/useTranslatedMessage.ts +3 -1
  236. package/src/i18n/en.json +3 -1
  237. package/src/i18n/es.json +43 -41
  238. package/src/i18n/fr.json +43 -41
  239. package/src/i18n/he.json +43 -41
  240. package/src/i18n/hi.json +46 -44
  241. package/src/i18n/it.json +46 -44
  242. package/src/i18n/ja.json +46 -44
  243. package/src/i18n/ko.json +46 -44
  244. package/src/i18n/nl.json +46 -44
  245. package/src/i18n/pt-BR.json +46 -44
  246. package/src/i18n/ru.json +46 -44
  247. package/src/i18n/tr.json +46 -44
  248. package/src/icons/ChatIcon.tsx +12 -0
  249. package/src/icons/index.ts +1 -0
  250. package/src/utils/getDateString.ts +67 -0
  251. package/src/utils/utils.ts +11 -0
  252. package/src/version.json +1 -1
package/src/i18n/nl.json CHANGED
@@ -1,81 +1,83 @@
1
1
  {
2
- "1 Reply": "1 Antwoord",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
- "Also send to channel": "Stuur ook naar kanaal",
7
- "Are you sure you want to permanently delete this message?": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "Weet u zeker dat u dit bericht definitief wilt verwijderen?",
8
8
  "Are you sure?": "Weet je het zeker?",
9
- "Block User": "",
9
+ "Block User": "Blokkeer Gebruiker",
10
10
  "Cancel": "",
11
- "Cannot Flag Message": "",
11
+ "Cannot Flag Message": "Kan bericht niet rapporteren",
12
12
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Denk na over hoe jouw opmerking anderen zou kunnen laten voelen en zorg ervoor dat je onze Community-richtlijnen volgt",
13
- "Copy Message": "",
14
- "Delete": "",
15
- "Delete Message": "",
13
+ "Copy Message": "Bericht kopiëren",
14
+ "Delete": "Verwijderen",
15
+ "Delete Message": "Verwijder bericht",
16
16
  "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
- "Edit Message": "",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "Wil je een kopie van dit bericht naar een moderator sturen voor verder onderzoek?",
18
+ "Edit Message": "Pas bericht aan",
19
+ "Edited": "",
19
20
  "Editing Message": "",
20
- "Emoji matching": "",
21
- "Empty message...": "Leeg bericht...",
22
- "Error loading": "Probleem bij het laden",
23
- "Error loading channel list...": "Probleem bij het laden van de kanalen...",
21
+ "Emoji matching": "Emoji-overeenkomsten",
22
+ "Empty message...": "",
23
+ "Error loading": "",
24
+ "Error loading channel list...": "",
24
25
  "Error loading messages for this channel...": "Probleem bij het laden van de berichten in dit kanaal...",
25
- "Error while loading, please reload/refresh": "Probleem bij het laden, probeer opnieuw",
26
+ "Error while loading, please reload/refresh": "",
26
27
  "File type not supported": "",
27
- "Flag": "",
28
- "Flag Message": "",
29
- "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "Flag": "Markeer",
29
+ "Flag Message": "Markeer bericht",
30
+ "Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
30
31
  "Hold to start recording.": "",
31
- "How about sending your first message to a friend?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
32
- "Instant Commands": "",
33
- "Let's start chatting!": "Laten we beginnen met chatten!",
32
+ "How about sending your first message to a friend?": "",
33
+ "Instant Commands": "Directe Opdrachten",
34
+ "Let's start chatting!": "",
34
35
  "Links are disabled": "",
35
36
  "Loading channels...": "",
36
37
  "Loading messages...": "",
37
38
  "Loading...": "",
38
39
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
39
- "Message Reactions": "",
40
+ "Message Reactions": "Bericht Reacties",
40
41
  "Message deleted": "Bericht verwijderd",
41
- "Message flagged": "",
42
- "Mute User": "",
43
- "Not supported": "",
44
- "Nothing yet...": "Nog niets...",
45
- "Ok": "",
46
- "Only visible to you": "Alleen zichtbaar voor jou",
42
+ "Message flagged": "Bericht gemarkeerd",
43
+ "Mute User": "Gebruiker dempen",
44
+ "No chats here yet…": "",
45
+ "Not supported": "niet ondersteund",
46
+ "Nothing yet...": "",
47
+ "Ok": "Oké",
48
+ "Only visible to you": "",
47
49
  "Open Settings": "",
48
- "Photo": "Foto",
50
+ "Photo": "",
49
51
  "Photos and Videos": "",
50
- "Pin to Conversation": "",
52
+ "Pin to Conversation": "Vastmaken aan gesprek",
51
53
  "Pinned by": "",
52
54
  "Please allow Audio permissions in settings.": "",
53
55
  "Please enable access to your photos and videos so you can share them.": "",
54
56
  "Please select a channel first": "",
55
57
  "Reconnecting...": "Opnieuw Verbinding Maken...",
56
- "Reply": "",
58
+ "Reply": "Antwoord",
57
59
  "Reply to Message": "",
58
- "Resend": "",
59
- "Search GIFs": "Zoek GIF's",
60
+ "Resend": "Opnieuw versturen",
61
+ "Search GIFs": "",
60
62
  "Select More Photos": "",
61
63
  "Send Anyway": "Toch verzenden",
62
- "Send a message": "Stuur een bericht",
64
+ "Send a message": "",
63
65
  "Sending links is not allowed in this conversation": "",
64
- "Slow mode ON": "Langzame modus aan",
65
- "The message has been reported to a moderator.": "",
66
- "Thread Reply": "",
67
- "Unblock User": "",
66
+ "Slow mode ON": "",
67
+ "The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
68
+ "Thread Reply": "Discussie beantwoorden",
69
+ "Unblock User": "Deblokkeer gebruiker",
68
70
  "Unknown User": "",
69
- "Unmute User": "",
70
- "Unpin from Conversation": "",
71
+ "Unmute User": "Dempen van gebruiker opheffen",
72
+ "Unpin from Conversation": "Losmaken van gesprek",
71
73
  "Unread Messages": "Ongelezen Berichten",
72
- "Video": "Video",
74
+ "Video": "",
73
75
  "You": "U",
74
- "You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
76
+ "You can't send messages in this channel": "",
75
77
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
76
78
  "{{ index }} of {{ photoLength }}": "",
77
- "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
79
+ "{{ replyCount }} Replies": "",
78
80
  "{{ replyCount }} Thread Replies": "",
79
81
  "{{ user }} is typing": "{{ user }} is aan het typen",
80
- "🏙 Attachment...": "🏙 Bijlage..."
82
+ "🏙 Attachment...": ""
81
83
  }
@@ -1,81 +1,83 @@
1
1
  {
2
- "1 Reply": "1 Resposta",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
- "Also send to channel": "Também enviar para o canal",
7
- "Are you sure you want to permanently delete this message?": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "Tem certeza de que deseja excluir esta mensagem permanentemente?",
8
8
  "Are you sure?": "Tem certeza?",
9
- "Block User": "",
9
+ "Block User": "Bloquear Usuário",
10
10
  "Cancel": "",
11
- "Cannot Flag Message": "",
11
+ "Cannot Flag Message": "Não é possível reportar a mensagem",
12
12
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considere como seu comentário pode fazer os outros se sentirem e certifique-se de seguir nossas Diretrizes da Comunidade",
13
- "Copy Message": "",
14
- "Delete": "",
15
- "Delete Message": "",
13
+ "Copy Message": "Copiar Mensagem",
14
+ "Delete": "Excluir",
15
+ "Delete Message": "Excluir Mensagem",
16
16
  "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
- "Edit Message": "",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "Deseja enviar uma cópia desta mensagem para um moderador para investigação adicional?",
18
+ "Edit Message": "Editar Mensagem",
19
+ "Edited": "",
19
20
  "Editing Message": "",
20
- "Emoji matching": "",
21
- "Empty message...": "Mensagem vazia...",
22
- "Error loading": "Erro ao carregar",
23
- "Error loading channel list...": "Erro ao carregar lista de canais...",
21
+ "Emoji matching": "Correspondência de Emoji",
22
+ "Empty message...": "",
23
+ "Error loading": "",
24
+ "Error loading channel list...": "",
24
25
  "Error loading messages for this channel...": "Erro ao carregar mensagens para este canal...",
25
- "Error while loading, please reload/refresh": "Erro ao carregar, por favor recarregue/atualize",
26
+ "Error while loading, please reload/refresh": "",
26
27
  "File type not supported": "",
27
- "Flag": "",
28
- "Flag Message": "",
29
- "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "Flag": "Reportar",
29
+ "Flag Message": "Reportar Mensagem",
30
+ "Flag action failed either due to a network issue or the message is already flagged": "A ação para reportar a mensagem falhou devido a um problema de rede ou a mensagem já foi reportada.",
30
31
  "Hold to start recording.": "",
31
- "How about sending your first message to a friend?": "Que tal enviar sua primeira mensagem para um amigo?",
32
- "Instant Commands": "",
33
- "Let's start chatting!": "Vamos começar a conversar!",
32
+ "How about sending your first message to a friend?": "",
33
+ "Instant Commands": "Comandos Instantâneos",
34
+ "Let's start chatting!": "",
34
35
  "Links are disabled": "",
35
36
  "Loading channels...": "",
36
37
  "Loading messages...": "",
37
38
  "Loading...": "",
38
39
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
39
- "Message Reactions": "",
40
+ "Message Reactions": "Reações à Mensagem",
40
41
  "Message deleted": "Mensagem excluída",
41
- "Message flagged": "",
42
- "Mute User": "",
43
- "Not supported": "",
44
- "Nothing yet...": "Nada ainda...",
45
- "Ok": "",
46
- "Only visible to you": "Apenas visível para você",
42
+ "Message flagged": "Mensagem sinalizada",
43
+ "Mute User": "Silenciar Usuário",
44
+ "No chats here yet…": "",
45
+ "Not supported": "Não suportado",
46
+ "Nothing yet...": "",
47
+ "Ok": "Ok",
48
+ "Only visible to you": "",
47
49
  "Open Settings": "",
48
- "Photo": "Foto",
50
+ "Photo": "",
49
51
  "Photos and Videos": "",
50
- "Pin to Conversation": "",
52
+ "Pin to Conversation": "Fixar na Conversa",
51
53
  "Pinned by": "",
52
54
  "Please allow Audio permissions in settings.": "",
53
55
  "Please enable access to your photos and videos so you can share them.": "",
54
56
  "Please select a channel first": "",
55
57
  "Reconnecting...": "Reconectando...",
56
- "Reply": "",
58
+ "Reply": "Responder",
57
59
  "Reply to Message": "",
58
- "Resend": "",
59
- "Search GIFs": "Pesquisar GIFs",
60
+ "Resend": "Reenviar",
61
+ "Search GIFs": "",
60
62
  "Select More Photos": "",
61
63
  "Send Anyway": "Enviar de qualquer maneira",
62
- "Send a message": "Enviar uma mensagem",
64
+ "Send a message": "",
63
65
  "Sending links is not allowed in this conversation": "",
64
- "Slow mode ON": "Modo Lento ATIVADO",
65
- "The message has been reported to a moderator.": "",
66
- "Thread Reply": "",
67
- "Unblock User": "",
66
+ "Slow mode ON": "",
67
+ "The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
68
+ "Thread Reply": "Respostas de Tópico",
69
+ "Unblock User": "Desbloquear Usuário",
68
70
  "Unknown User": "",
69
- "Unmute User": "",
70
- "Unpin from Conversation": "",
71
+ "Unmute User": "Remover usuário do modo silencioso",
72
+ "Unpin from Conversation": "Desmarcar como fixado na conversa",
71
73
  "Unread Messages": "Mensagens não lidas",
72
- "Video": "Vídeo",
74
+ "Video": "",
73
75
  "You": "Você",
74
- "You can't send messages in this channel": "Você não pode enviar mensagens neste canal",
76
+ "You can't send messages in this channel": "",
75
77
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
76
78
  "{{ index }} of {{ photoLength }}": "",
77
- "{{ replyCount }} Replies": "{{ replyCount }} Respostas",
79
+ "{{ replyCount }} Replies": "",
78
80
  "{{ replyCount }} Thread Replies": "",
79
81
  "{{ user }} is typing": "{{ user }} está digitando",
80
- "🏙 Attachment...": "🏙 Anexo..."
82
+ "🏙 Attachment...": ""
81
83
  }
package/src/i18n/ru.json CHANGED
@@ -1,81 +1,83 @@
1
1
  {
2
- "1 Reply": "1 Ответ",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
- "Also send to channel": "Также отправить на канал",
7
- "Are you sure you want to permanently delete this message?": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
8
8
  "Are you sure?": "Вы уверены?",
9
- "Block User": "",
9
+ "Block User": "Заблокировать пользователя",
10
10
  "Cancel": "",
11
- "Cannot Flag Message": "",
11
+ "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
12
12
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
13
- "Copy Message": "",
14
- "Delete": "",
15
- "Delete Message": "",
13
+ "Copy Message": "Копировать сообщение",
14
+ "Delete": "удалять",
15
+ "Delete Message": "Удалить сообщение",
16
16
  "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
- "Edit Message": "",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
18
+ "Edit Message": "Редактировать сообщение",
19
+ "Edited": "",
19
20
  "Editing Message": "",
20
- "Emoji matching": "",
21
- "Empty message...": "Пустое сообщение...",
22
- "Error loading": "Ошибка при загрузке",
23
- "Error loading channel list...": "Ошибка загрузки списка каналов...",
21
+ "Emoji matching": "Соответствие эмодзи",
22
+ "Empty message...": "",
23
+ "Error loading": "",
24
+ "Error loading channel list...": "",
24
25
  "Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
25
- "Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
26
+ "Error while loading, please reload/refresh": "",
26
27
  "File type not supported": "",
27
- "Flag": "",
28
- "Flag Message": "",
29
- "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "Flag": "Пометить",
29
+ "Flag Message": "Пометить сообщение",
30
+ "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
30
31
  "Hold to start recording.": "",
31
- "How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
32
- "Instant Commands": "",
33
- "Let's start chatting!": "Давайте начнем общаться!",
32
+ "How about sending your first message to a friend?": "",
33
+ "Instant Commands": "Мгновенные Команды",
34
+ "Let's start chatting!": "",
34
35
  "Links are disabled": "",
35
36
  "Loading channels...": "",
36
37
  "Loading messages...": "",
37
38
  "Loading...": "",
38
39
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
39
- "Message Reactions": "",
40
+ "Message Reactions": "Сообщения Реакции",
40
41
  "Message deleted": "Сообщение удалено",
41
- "Message flagged": "",
42
- "Mute User": "",
43
- "Not supported": "",
44
- "Nothing yet...": "Пока ничего нет...",
45
- "Ok": "",
46
- "Only visible to you": "Видно только вам",
42
+ "Message flagged": "Сообщение отмечено",
43
+ "Mute User": "Отключить пользователя",
44
+ "No chats here yet…": "",
45
+ "Not supported": "не поддерживается",
46
+ "Nothing yet...": "",
47
+ "Ok": "",
48
+ "Only visible to you": "",
47
49
  "Open Settings": "",
48
- "Photo": "Фото",
50
+ "Photo": "",
49
51
  "Photos and Videos": "",
50
- "Pin to Conversation": "",
52
+ "Pin to Conversation": "Закрепить к беседе",
51
53
  "Pinned by": "",
52
54
  "Please allow Audio permissions in settings.": "",
53
55
  "Please enable access to your photos and videos so you can share them.": "",
54
56
  "Please select a channel first": "",
55
57
  "Reconnecting...": "Переподключение...",
56
- "Reply": "",
58
+ "Reply": "Ответить",
57
59
  "Reply to Message": "",
58
- "Resend": "",
59
- "Search GIFs": "Поиск GIF",
60
+ "Resend": "Отправить",
61
+ "Search GIFs": "",
60
62
  "Select More Photos": "",
61
63
  "Send Anyway": "Всё равно отправить",
62
- "Send a message": "Отправить сообщение",
64
+ "Send a message": "",
63
65
  "Sending links is not allowed in this conversation": "",
64
- "Slow mode ON": "Медленный режим включен",
65
- "The message has been reported to a moderator.": "",
66
- "Thread Reply": "",
67
- "Unblock User": "",
66
+ "Slow mode ON": "",
67
+ "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
68
+ "Thread Reply": "Тема Ответить",
69
+ "Unblock User": "Разблокировать пользователя",
68
70
  "Unknown User": "",
69
- "Unmute User": "",
70
- "Unpin from Conversation": "",
71
+ "Unmute User": "Включить микрофон",
72
+ "Unpin from Conversation": "Открепить от беседы",
71
73
  "Unread Messages": "Непрочитанные Сообщения",
72
- "Video": "видео",
74
+ "Video": "",
73
75
  "You": "Вы",
74
- "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
76
+ "You can't send messages in this channel": "",
75
77
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
76
78
  "{{ index }} of {{ photoLength }}": "",
77
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
79
+ "{{ replyCount }} Replies": "",
78
80
  "{{ replyCount }} Thread Replies": "",
79
81
  "{{ user }} is typing": "{{ user }} пишет",
80
- "🏙 Attachment...": "🏙 Вложение..."
82
+ "🏙 Attachment...": ""
81
83
  }
package/src/i18n/tr.json CHANGED
@@ -1,81 +1,83 @@
1
1
  {
2
- "1 Reply": "1 Cevap",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
- "Also send to channel": "Kanala da gönder",
7
- "Are you sure you want to permanently delete this message?": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
8
8
  "Are you sure?": "Emin misiniz?",
9
- "Block User": "",
9
+ "Block User": "Kullanıcıyı engelle",
10
10
  "Cancel": "",
11
- "Cannot Flag Message": "",
11
+ "Cannot Flag Message": "Raporlama Başarısız",
12
12
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Yorumunuzun diğerlerini nasıl hissettirebileceğini düşünün ve topluluk kurallarımızı takip ettiğinizden emin olun",
13
- "Copy Message": "",
14
- "Delete": "",
15
- "Delete Message": "",
13
+ "Copy Message": "Mesajı Kopyala",
14
+ "Delete": "Sil",
15
+ "Delete Message": "Mesajı Sil",
16
16
  "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
- "Edit Message": "",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "Detaylı inceleme için bu mesajın kopyasını moderatöre göndermek istiyor musunuz?",
18
+ "Edit Message": "Mesajı Düzenle",
19
+ "Edited": "",
19
20
  "Editing Message": "",
20
- "Emoji matching": "",
21
- "Empty message...": "Boş mesaj...",
22
- "Error loading": "Yükleme hatası",
23
- "Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
21
+ "Emoji matching": "Emoji eşleştirme",
22
+ "Empty message...": "",
23
+ "Error loading": "",
24
+ "Error loading channel list...": "",
24
25
  "Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
25
- "Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
26
+ "Error while loading, please reload/refresh": "",
26
27
  "File type not supported": "",
27
- "Flag": "",
28
- "Flag Message": "",
29
- "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "Flag": "Raporla",
29
+ "Flag Message": "Mesajı Raporla",
30
+ "Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
30
31
  "Hold to start recording.": "",
31
- "How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
32
- "Instant Commands": "",
33
- "Let's start chatting!": "Haydi sohbete başlayalım!",
32
+ "How about sending your first message to a friend?": "",
33
+ "Instant Commands": "Anlık Komutlar",
34
+ "Let's start chatting!": "",
34
35
  "Links are disabled": "",
35
36
  "Loading channels...": "",
36
37
  "Loading messages...": "",
37
38
  "Loading...": "",
38
39
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
39
- "Message Reactions": "",
40
+ "Message Reactions": "Mesaj Tepkileri",
40
41
  "Message deleted": "Mesaj silindi",
41
- "Message flagged": "",
42
- "Mute User": "",
43
- "Not supported": "",
44
- "Nothing yet...": "Henüz değil...",
45
- "Ok": "",
46
- "Only visible to you": "Sadece siz görebilirsiniz",
42
+ "Message flagged": "Mesaj işaretlendi",
43
+ "Mute User": "Kullanıcıyı sessize al",
44
+ "No chats here yet…": "",
45
+ "Not supported": "Desteklenmiyor",
46
+ "Nothing yet...": "",
47
+ "Ok": "Tamam",
48
+ "Only visible to you": "",
47
49
  "Open Settings": "",
48
- "Photo": "Fotoğraf",
50
+ "Photo": "",
49
51
  "Photos and Videos": "",
50
- "Pin to Conversation": "",
52
+ "Pin to Conversation": "Konuşmaya sabitle",
51
53
  "Pinned by": "",
52
54
  "Please allow Audio permissions in settings.": "",
53
55
  "Please enable access to your photos and videos so you can share them.": "",
54
56
  "Please select a channel first": "",
55
57
  "Reconnecting...": "Yeniden Bağlanılıyor...",
56
- "Reply": "",
58
+ "Reply": "Yanıtla",
57
59
  "Reply to Message": "",
58
- "Resend": "",
59
- "Search GIFs": "GIF Ara",
60
+ "Resend": "Yeniden gönder",
61
+ "Search GIFs": "",
60
62
  "Select More Photos": "",
61
63
  "Send Anyway": "Yine de Gönder",
62
- "Send a message": "Mesaj gönder",
64
+ "Send a message": "",
63
65
  "Sending links is not allowed in this conversation": "",
64
- "Slow mode ON": "Yavaş Mod Açık",
65
- "The message has been reported to a moderator.": "",
66
- "Thread Reply": "",
67
- "Unblock User": "",
66
+ "Slow mode ON": "",
67
+ "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
68
+ "Thread Reply": "Konu Yanıtı",
69
+ "Unblock User": "Kullanıcının engelini kaldır",
68
70
  "Unknown User": "",
69
- "Unmute User": "",
70
- "Unpin from Conversation": "",
71
+ "Unmute User": "Kullanıcının sesini aç",
72
+ "Unpin from Conversation": "Sabitlemeyi kaldır",
71
73
  "Unread Messages": "Okunmamış Mesajlar",
72
- "Video": "Video",
74
+ "Video": "",
73
75
  "You": "Sen",
74
- "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
76
+ "You can't send messages in this channel": "",
75
77
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
76
78
  "{{ index }} of {{ photoLength }}": "",
77
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
79
+ "{{ replyCount }} Replies": "",
78
80
  "{{ replyCount }} Thread Replies": "",
79
81
  "{{ user }} is typing": "{{ user }} yazıyor",
80
- "🏙 Attachment...": "🏙 Ek..."
82
+ "🏙 Attachment...": ""
81
83
  }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+
3
+ import { IconProps, RootPath, RootSvg } from './utils/base';
4
+
5
+ export const ChatIcon = (props: IconProps) => (
6
+ <RootSvg height={114} viewBox={`0 0 ${114} ${114}`} width={114} {...props}>
7
+ <RootPath
8
+ d='M95 9.5H19C13.775 9.5 9.5 13.775 9.5 19V104.5L28.5 85.5H95C100.225 85.5 104.5 81.225 104.5 76V19C104.5 13.775 100.225 9.5 95 9.5ZM95 76H28.5L19 85.5V19H95V76Z'
9
+ {...props}
10
+ />
11
+ </RootSvg>
12
+ );
@@ -7,6 +7,7 @@ export * from './AtMentions';
7
7
  export * from './Attach';
8
8
  export * from './Audio';
9
9
  export * from './Camera';
10
+ export * from './ChatIcon';
10
11
  export * from './Check';
11
12
  export * from './CheckAll';
12
13
  export * from './CheckSend';
@@ -0,0 +1,67 @@
1
+ import {
2
+ isDayOrMoment,
3
+ TDateTimeParser,
4
+ TDateTimeParserInput,
5
+ } from '../contexts/translationContext/TranslationContext';
6
+
7
+ interface DateFormatterOptions {
8
+ /**
9
+ * Whether to show the time in Calendar time format. Calendar time displays time relative to a today's date.
10
+ */
11
+ calendar?: boolean;
12
+ /**
13
+ * The timestamp to be formatted.
14
+ */
15
+ date?: string | Date;
16
+ /**
17
+ * The format in which the date should be displayed.
18
+ */
19
+ format?: string;
20
+ /**
21
+ * A function to format the date.
22
+ */
23
+ formatDate?: (date: TDateTimeParserInput) => string;
24
+ /**
25
+ * The datetime parsing function.
26
+ */
27
+ tDateTimeParser?: TDateTimeParser;
28
+ }
29
+
30
+ export const noParsingFunctionWarning =
31
+ 'MessageTimestamp was called but there is no datetime parsing function available';
32
+
33
+ /**
34
+ * Utility funcyion to format the date string.
35
+ */
36
+ export function getDateString({
37
+ calendar,
38
+ date,
39
+ format,
40
+ formatDate,
41
+ tDateTimeParser,
42
+ }: DateFormatterOptions): string | number | null {
43
+ if (!date || (typeof date === 'string' && !Date.parse(date))) {
44
+ return null;
45
+ }
46
+
47
+ if (typeof formatDate === 'function') {
48
+ return formatDate(new Date(date));
49
+ }
50
+
51
+ if (!tDateTimeParser) {
52
+ console.log(noParsingFunctionWarning);
53
+ return null;
54
+ }
55
+
56
+ const parsedTime = tDateTimeParser(date);
57
+
58
+ if (isDayOrMoment(parsedTime)) {
59
+ /**
60
+ * parsedTime.calendar is guaranteed on the type but is only
61
+ * available when a user calls dayjs.extend(calendar)
62
+ */
63
+ return calendar && parsedTime.calendar ? parsedTime.calendar() : parsedTime.format(format);
64
+ }
65
+
66
+ return new Date(date).toDateString();
67
+ }
@@ -113,6 +113,17 @@ export const isBouncedMessage = <
113
113
  message: MessageType<StreamChatGenerics>,
114
114
  ) => message.type === 'error' && message.moderation_details !== undefined;
115
115
 
116
+ /**
117
+ * Utility to check if the message is a edited message.
118
+ * @param message
119
+ * @returns boolean
120
+ */
121
+ export const isEditedMessage = <
122
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
123
+ >(
124
+ message: MessageType<StreamChatGenerics>,
125
+ ) => !!message.message_text_updated_at;
126
+
116
127
  const defaultAutoCompleteSuggestionsLimit = 10;
117
128
  const defaultMentionAllAppUsersQuery = {
118
129
  filters: {},
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.29.1-beta.3"
2
+ "version": "5.30.0-beta.1"
3
3
  }