stream-chat-react-native-core 5.31.0 → 5.31.1-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 (73) hide show
  1. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +8 -0
  2. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  3. package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js +12 -3
  4. package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js.map +1 -1
  5. package/lib/commonjs/i18n/en.json +1 -1
  6. package/lib/commonjs/i18n/es.json +68 -68
  7. package/lib/commonjs/i18n/fr.json +68 -68
  8. package/lib/commonjs/i18n/he.json +68 -68
  9. package/lib/commonjs/i18n/hi.json +68 -68
  10. package/lib/commonjs/i18n/it.json +68 -68
  11. package/lib/commonjs/i18n/ja.json +68 -68
  12. package/lib/commonjs/i18n/ko.json +68 -68
  13. package/lib/commonjs/i18n/nl.json +68 -68
  14. package/lib/commonjs/i18n/pt-BR.json +68 -68
  15. package/lib/commonjs/i18n/ru.json +68 -68
  16. package/lib/commonjs/i18n/tr.json +68 -68
  17. package/lib/commonjs/utils/getDateString.js +2 -2
  18. package/lib/commonjs/utils/getDateString.js.map +1 -1
  19. package/lib/commonjs/version.json +1 -1
  20. package/lib/module/components/Message/MessageSimple/MessageFooter.js +8 -0
  21. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  22. package/lib/module/components/Message/MessageSimple/MessageTimestamp.js +12 -3
  23. package/lib/module/components/Message/MessageSimple/MessageTimestamp.js.map +1 -1
  24. package/lib/module/i18n/en.json +1 -1
  25. package/lib/module/i18n/es.json +68 -68
  26. package/lib/module/i18n/fr.json +68 -68
  27. package/lib/module/i18n/he.json +68 -68
  28. package/lib/module/i18n/hi.json +68 -68
  29. package/lib/module/i18n/it.json +68 -68
  30. package/lib/module/i18n/ja.json +68 -68
  31. package/lib/module/i18n/ko.json +68 -68
  32. package/lib/module/i18n/nl.json +68 -68
  33. package/lib/module/i18n/pt-BR.json +68 -68
  34. package/lib/module/i18n/ru.json +68 -68
  35. package/lib/module/i18n/tr.json +68 -68
  36. package/lib/module/utils/getDateString.js +2 -2
  37. package/lib/module/utils/getDateString.js.map +1 -1
  38. package/lib/module/version.json +1 -1
  39. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +1 -0
  40. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
  41. package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts +4 -0
  42. package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts.map +1 -1
  43. package/lib/typescript/i18n/en.json +1 -1
  44. package/lib/typescript/i18n/es.json +68 -68
  45. package/lib/typescript/i18n/fr.json +68 -68
  46. package/lib/typescript/i18n/he.json +68 -68
  47. package/lib/typescript/i18n/hi.json +68 -68
  48. package/lib/typescript/i18n/it.json +68 -68
  49. package/lib/typescript/i18n/ja.json +68 -68
  50. package/lib/typescript/i18n/ko.json +68 -68
  51. package/lib/typescript/i18n/nl.json +68 -68
  52. package/lib/typescript/i18n/pt-BR.json +68 -68
  53. package/lib/typescript/i18n/ru.json +68 -68
  54. package/lib/typescript/i18n/tr.json +68 -68
  55. package/lib/typescript/utils/getDateString.d.ts +1 -1
  56. package/lib/typescript/utils/getDateString.d.ts.map +1 -1
  57. package/package.json +1 -1
  58. package/src/components/Message/MessageSimple/MessageFooter.tsx +12 -3
  59. package/src/components/Message/MessageSimple/MessageTimestamp.tsx +22 -6
  60. package/src/i18n/en.json +1 -1
  61. package/src/i18n/es.json +68 -68
  62. package/src/i18n/fr.json +68 -68
  63. package/src/i18n/he.json +68 -68
  64. package/src/i18n/hi.json +68 -68
  65. package/src/i18n/it.json +68 -68
  66. package/src/i18n/ja.json +68 -68
  67. package/src/i18n/ko.json +68 -68
  68. package/src/i18n/nl.json +68 -68
  69. package/src/i18n/pt-BR.json +68 -68
  70. package/src/i18n/ru.json +68 -68
  71. package/src/i18n/tr.json +68 -68
  72. package/src/utils/getDateString.ts +3 -3
  73. package/src/version.json +1 -1
@@ -1,83 +1,83 @@
1
1
  {
2
- "1 Reply": "1 Ответ",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "1 тема Ответить",
4
- "Allow access to your Gallery": "Разрешить доступ к вашей галерее",
5
- "Allow camera access in device settings": "Разрешите доступ к камере в настройках устройства.",
6
- "Also send to channel": "Также отправить на канал",
7
- "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
8
- "Are you sure?": "Вы уверены?",
9
- "Block User": "Заблокировать пользователя",
10
- "Cancel": "Отмена",
11
- "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
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": "Удалить сообщение",
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": "Редактировать сообщение",
19
- "Edited": "Отредактировано",
20
- "Editing Message": "Редактирование сообщения",
21
- "Emoji matching": "Соответствие эмодзи",
22
- "Empty message...": "Пустое сообщение...",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
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": "",
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": "",
19
+ "Edited": "",
20
+ "Editing Message": "",
21
+ "Emoji matching": "",
22
+ "Empty message...": "",
23
23
  "Error loading": "Ошибка при загрузке",
24
- "Error loading channel list...": "Ошибка загрузки списка каналов...",
24
+ "Error loading channel list...": "",
25
25
  "Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
26
- "Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
27
- "File is too large: {{ size }}, maximum upload size is {{ limit }}": "Файл слишком большой: {{ size }}, максимальный размер загрузки составляет {{ limit }}",
28
- "File type not supported": "Тип файла не поддерживается",
29
- "Flag": "Пометить",
30
- "Flag Message": "Пометить сообщение",
31
- "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
32
- "Hold to start recording.": "Удерживайте, чтобы начать запись.",
33
- "How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
34
- "Instant Commands": "Мгновенные Команды",
35
- "Let's start chatting!": "Давайте начнем общаться!",
36
- "Links are disabled": "Ссылки отключены",
26
+ "Error while loading, please reload/refresh": "",
27
+ "File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
28
+ "File type not supported": "",
29
+ "Flag": "",
30
+ "Flag Message": "",
31
+ "Flag action failed either due to a network issue or the message is already flagged": "",
32
+ "Hold to start recording.": "",
33
+ "How about sending your first message to a friend?": "",
34
+ "Instant Commands": "",
35
+ "Let's start chatting!": "",
36
+ "Links are disabled": "",
37
37
  "Loading channels...": "Загружаю каналы...",
38
38
  "Loading messages...": "Загружаю сообщения...",
39
39
  "Loading...": "Загружаю...",
40
40
  "Message Reactions": "Сообщения Реакции",
41
41
  "Message deleted": "Сообщение удалено",
42
- "Message flagged": "Сообщение отмечено",
43
- "Mute User": "Отключить пользователя",
44
- "No chats here yet…": "Здесь пока нет чатов…",
45
- "Not supported": "не поддерживается",
46
- "Nothing yet...": "Пока ничего нет...",
47
- "Ok": "",
42
+ "Message flagged": "",
43
+ "Mute User": "",
44
+ "No chats here yet…": "",
45
+ "Not supported": "",
46
+ "Nothing yet...": "",
47
+ "Ok": "",
48
48
  "Only visible to you": "Видно только вам",
49
- "Open Settings": "Открыть настройки",
50
- "Photo": "Фото",
51
- "Photos and Videos": "Фото и видео",
52
- "Pin to Conversation": "Закрепить к беседе",
49
+ "Open Settings": "",
50
+ "Photo": "",
51
+ "Photos and Videos": "",
52
+ "Pin to Conversation": "",
53
53
  "Pinned by": "Закреплено пользователем",
54
- "Please allow Audio permissions in settings.": "Пожалуйста, разрешите разрешения на аудио в настройках.",
55
- "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
56
- "Please select a channel first": "Пожалуйста, сначала выберите канал",
54
+ "Please allow Audio permissions in settings.": "",
55
+ "Please enable access to your photos and videos so you can share them.": "",
56
+ "Please select a channel first": "",
57
57
  "Reconnecting...": "Переподключение...",
58
- "Reply": "Ответить",
59
- "Reply to Message": "Ответить на сообщение",
60
- "Resend": "Отправить",
61
- "Search GIFs": "Поиск GIF",
62
- "Select More Photos": "Выбрать больше фотографий",
63
- "Send Anyway": "Всё равно отправить",
64
- "Send a message": "Отправить сообщение",
65
- "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
66
- "Slow mode ON": "Медленный режим включен",
67
- "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
68
- "Thread Reply": "Тема Ответить",
69
- "Unblock User": "Разблокировать пользователя",
70
- "Unknown User": "Неизвестный пользователь",
71
- "Unmute User": "Включить микрофон",
72
- "Unpin from Conversation": "Открепить от беседы",
73
- "Unread Messages": "Непрочитанные Сообщения",
74
- "Video": "видео",
58
+ "Reply": "",
59
+ "Reply to Message": "",
60
+ "Resend": "",
61
+ "Search GIFs": "",
62
+ "Select More Photos": "",
63
+ "Send Anyway": "",
64
+ "Send a message": "",
65
+ "Sending links is not allowed in this conversation": "",
66
+ "Slow mode ON": "",
67
+ "The message has been reported to a moderator.": "",
68
+ "Thread Reply": "",
69
+ "Unblock User": "",
70
+ "Unknown User": "",
71
+ "Unmute User": "",
72
+ "Unpin from Conversation": "",
73
+ "Unread Messages": "",
74
+ "Video": "",
75
75
  "You": "Вы",
76
- "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
77
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
78
- "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
79
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
76
+ "You can't send messages in this channel": "",
77
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
78
+ "{{ index }} of {{ photoLength }}": "",
79
+ "{{ replyCount }} Replies": "",
80
80
  "{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
81
- "{{ user }} is typing": "{{ user }} пишет",
82
- "🏙 Attachment...": "🏙 Вложение..."
81
+ "{{ user }} is typing": "",
82
+ "🏙 Attachment...": ""
83
83
  }
@@ -1,83 +1,83 @@
1
1
  {
2
- "1 Reply": "1 Cevap",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "1 Konu Yanıtı",
4
- "Allow access to your Gallery": "Galerinize erişime izin verin",
5
- "Allow camera access in device settings": "Cihaz ayarlarında kamera erişimine izin ver",
6
- "Also send to channel": "Kanala da gönder",
7
- "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
8
- "Are you sure?": "Emin misiniz?",
9
- "Block User": "Kullanıcıyı engelle",
10
- "Cancel": "İptal",
11
- "Cannot Flag Message": "Raporlama Başarısız",
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": "Mesajı Kopyala",
14
- "Delete": "Sil",
15
- "Delete Message": "Mesajı Sil",
16
- "Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
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": "Düzenlendi",
20
- "Editing Message": "Mesaj Düzenleniyor",
21
- "Emoji matching": "Emoji eşleştirme",
22
- "Empty message...": "Boş mesaj...",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
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": "",
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": "",
19
+ "Edited": "",
20
+ "Editing Message": "",
21
+ "Emoji matching": "",
22
+ "Empty message...": "",
23
23
  "Error loading": "Yükleme hatası",
24
- "Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
24
+ "Error loading channel list...": "",
25
25
  "Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
26
- "Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
27
- "File is too large: {{ size }}, maximum upload size is {{ limit }}": "Dosya çok büyük: {{ size }}, maksimum yükleme boyutu {{ limit }}",
28
- "File type not supported": "Dosya türü desteklenmiyor",
29
- "Flag": "Raporla",
30
- "Flag Message": "Mesajı Raporla",
31
- "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.",
32
- "Hold to start recording.": "Kayıt yapmak için basılı tutun.",
33
- "How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
34
- "Instant Commands": "Anlık Komutlar",
35
- "Let's start chatting!": "Haydi sohbete başlayalım!",
36
- "Links are disabled": "Bağlantılar devre dışı",
26
+ "Error while loading, please reload/refresh": "",
27
+ "File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
28
+ "File type not supported": "",
29
+ "Flag": "",
30
+ "Flag Message": "",
31
+ "Flag action failed either due to a network issue or the message is already flagged": "",
32
+ "Hold to start recording.": "",
33
+ "How about sending your first message to a friend?": "",
34
+ "Instant Commands": "",
35
+ "Let's start chatting!": "",
36
+ "Links are disabled": "",
37
37
  "Loading channels...": "Kanallar yükleniyor...",
38
38
  "Loading messages...": "Mesajlar yükleniyor...",
39
39
  "Loading...": "Yükleniyor...",
40
40
  "Message Reactions": "Mesaj Tepkileri",
41
41
  "Message deleted": "Mesaj silindi",
42
- "Message flagged": "Mesaj işaretlendi",
43
- "Mute User": "Kullanıcıyı sessize al",
44
- "No chats here yet…": "Henüz burada sohbet yok…",
45
- "Not supported": "Desteklenmiyor",
46
- "Nothing yet...": "Henüz değil...",
47
- "Ok": "Tamam",
42
+ "Message flagged": "",
43
+ "Mute User": "",
44
+ "No chats here yet…": "",
45
+ "Not supported": "",
46
+ "Nothing yet...": "",
47
+ "Ok": "",
48
48
  "Only visible to you": "Sadece siz görebilirsiniz",
49
- "Open Settings": "Ayarları aç",
50
- "Photo": "Fotoğraf",
51
- "Photos and Videos": "Fotoğraflar ve Videolar",
52
- "Pin to Conversation": "Konuşmaya sabitle",
49
+ "Open Settings": "",
50
+ "Photo": "",
51
+ "Photos and Videos": "",
52
+ "Pin to Conversation": "",
53
53
  "Pinned by": "Tarafından sabitlendi",
54
- "Please allow Audio permissions in settings.": "Lütfen ayarlarda ses izinlerine izin verin",
55
- "Please enable access to your photos and videos so you can share them.": "Paylaşım yapabilmek için lutfen fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
56
- "Please select a channel first": "Lütfen önce bir kanal seçiniz",
54
+ "Please allow Audio permissions in settings.": "",
55
+ "Please enable access to your photos and videos so you can share them.": "",
56
+ "Please select a channel first": "",
57
57
  "Reconnecting...": "Yeniden Bağlanılıyor...",
58
- "Reply": "Yanıtla",
59
- "Reply to Message": "Mesajı Yanıtla",
60
- "Resend": "Yeniden gönder",
61
- "Search GIFs": "GIF Ara",
62
- "Select More Photos": "Daha Fazla Fotoğraf Seçin",
63
- "Send Anyway": "Yine de Gönder",
64
- "Send a message": "Mesaj gönder",
65
- "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
66
- "Slow mode ON": "Yavaş Mod Açık",
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",
70
- "Unknown User": "Bilinmeyen kullanıcı",
71
- "Unmute User": "Kullanıcının sesini aç",
72
- "Unpin from Conversation": "Sabitlemeyi kaldır",
73
- "Unread Messages": "Okunmamış Mesajlar",
74
- "Video": "Video",
58
+ "Reply": "",
59
+ "Reply to Message": "",
60
+ "Resend": "",
61
+ "Search GIFs": "",
62
+ "Select More Photos": "",
63
+ "Send Anyway": "",
64
+ "Send a message": "",
65
+ "Sending links is not allowed in this conversation": "",
66
+ "Slow mode ON": "",
67
+ "The message has been reported to a moderator.": "",
68
+ "Thread Reply": "",
69
+ "Unblock User": "",
70
+ "Unknown User": "",
71
+ "Unmute User": "",
72
+ "Unpin from Conversation": "",
73
+ "Unread Messages": "",
74
+ "Video": "",
75
75
  "You": "Sen",
76
- "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
77
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
78
- "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
79
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
76
+ "You can't send messages in this channel": "",
77
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
78
+ "{{ index }} of {{ photoLength }}": "",
79
+ "{{ replyCount }} Replies": "",
80
80
  "{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
81
- "{{ user }} is typing": "{{ user }} yazıyor",
82
- "🏙 Attachment...": "🏙 Ek..."
81
+ "{{ user }} is typing": "",
82
+ "🏙 Attachment...": ""
83
83
  }
@@ -25,6 +25,6 @@ export declare const noParsingFunctionWarning = "MessageTimestamp was called but
25
25
  /**
26
26
  * Utility funcyion to format the date string.
27
27
  */
28
- export declare function getDateString({ calendar, date, format, formatDate, tDateTimeParser, }: DateFormatterOptions): string | number | null;
28
+ export declare function getDateString({ calendar, date, format, formatDate, tDateTimeParser, }: DateFormatterOptions): string | number | undefined;
29
29
  export {};
30
30
  //# sourceMappingURL=getDateString.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDateString.d.ts","sourceRoot":"","sources":["../../../src/utils/getDateString.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAE3D,UAAU,oBAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,MAAM,CAAC;IACpD;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,wBAAwB,oFAC8C,CAAC;AAEpF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,UAAU,EACV,eAAe,GAChB,EAAE,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAyB/C"}
1
+ {"version":3,"file":"getDateString.d.ts","sourceRoot":"","sources":["../../../src/utils/getDateString.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAE3D,UAAU,oBAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,MAAM,CAAC;IACpD;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,wBAAwB,oFAC8C,CAAC;AAEpF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,UAAU,EACV,eAAe,GAChB,EAAE,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAyBpD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "5.31.0",
4
+ "version": "5.31.1-beta.1",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -28,6 +28,7 @@ import type { MessageType } from '../../MessageList/hooks/useMessageList';
28
28
 
29
29
  type MessageFooterComponentProps = {
30
30
  date?: string | Date;
31
+ formattedDate?: string | Date;
31
32
  isDeleted?: boolean;
32
33
  };
33
34
 
@@ -89,6 +90,7 @@ const MessageFooterWithContext = <
89
90
  alignment,
90
91
  date,
91
92
  deletedMessagesVisibilityType,
93
+ formattedDate,
92
94
  isDeleted,
93
95
  isEditedMessageOpen,
94
96
  lastGroupMessage,
@@ -116,7 +118,7 @@ const MessageFooterWithContext = <
116
118
  {deletedMessagesVisibilityType === 'sender' && (
117
119
  <OnlyVisibleToYouComponent alignment={alignment} />
118
120
  )}
119
- <MessageTimestamp format='LT' timestamp={date} />
121
+ <MessageTimestamp format='LT' formattedDate={formattedDate} timestamp={date} />
120
122
  </View>
121
123
  );
122
124
  }
@@ -135,7 +137,7 @@ const MessageFooterWithContext = <
135
137
  <Text style={[styles.text, { color: grey }, messageUser]}>{message.user.name}</Text>
136
138
  ) : null}
137
139
  {showMessageStatus && <MessageStatus />}
138
- <MessageTimestamp format='LT' timestamp={date} />
140
+ <MessageTimestamp format='LT' formattedDate={formattedDate} timestamp={date} />
139
141
 
140
142
  {isEditedMessage(message) && !isEditedMessageOpen && (
141
143
  <>
@@ -157,7 +159,9 @@ const MessageFooterWithContext = <
157
159
  </>
158
160
  )}
159
161
  </View>
160
- {isEditedMessageOpen && <MessageEditedTimestamp format='LT' timestamp={date} />}
162
+ {isEditedMessageOpen && (
163
+ <MessageEditedTimestamp format='LT' formattedDate={formattedDate} timestamp={date} />
164
+ )}
161
165
  </>
162
166
  );
163
167
  };
@@ -169,6 +173,7 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
169
173
  const {
170
174
  alignment: prevAlignment,
171
175
  date: prevDate,
176
+ formattedDate: prevFormattedDate,
172
177
  isEditedMessageOpen: prevIsEditedMessageOpen,
173
178
  lastGroupMessage: prevLastGroupMessage,
174
179
  members: prevMembers,
@@ -179,6 +184,7 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
179
184
  const {
180
185
  alignment: nextAlignment,
181
186
  date: nextDate,
187
+ formattedDate: nextFormattedDate,
182
188
  isEditedMessageOpen: nextIsEditedMessageOpen,
183
189
  lastGroupMessage: nextLastGroupMessage,
184
190
  members: nextMembers,
@@ -226,6 +232,9 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
226
232
  const dateEqual = prevDate === nextDate;
227
233
  if (!dateEqual) return false;
228
234
 
235
+ const formattedDateEqual = prevFormattedDate === nextFormattedDate;
236
+ if (!formattedDateEqual) return false;
237
+
229
238
  return true;
230
239
  };
231
240
 
@@ -22,6 +22,10 @@ export type MessageTimestampProps = Partial<Pick<TranslationContextValue, 'tDate
22
22
  * A function to format the date.
23
23
  */
24
24
  formatDate?: (date: TDateTimeParserInput) => string;
25
+ /**
26
+ * Already Formatted date
27
+ */
28
+ formattedDate?: string | Date;
25
29
  /**
26
30
  * The timestamp of the message.
27
31
  */
@@ -29,7 +33,15 @@ export type MessageTimestampProps = Partial<Pick<TranslationContextValue, 'tDate
29
33
  };
30
34
 
31
35
  export const MessageTimestamp = (props: MessageTimestampProps) => {
32
- const { calendar, format, formatDate, tDateTimeParser: propsTDateTimeParser, timestamp } = props;
36
+ const {
37
+ calendar,
38
+ format,
39
+ formatDate,
40
+ formattedDate,
41
+ tDateTimeParser: propsTDateTimeParser,
42
+ timestamp,
43
+ } = props;
44
+
33
45
  const {
34
46
  theme: {
35
47
  colors: { grey },
@@ -40,9 +52,15 @@ export const MessageTimestamp = (props: MessageTimestampProps) => {
40
52
  } = useTheme();
41
53
  const { tDateTimeParser: contextTDateTimeParser } = useTranslationContext();
42
54
 
55
+ if (formattedDate) {
56
+ return (
57
+ <Text style={[styles.text, { color: grey }, timestampText]}>{formattedDate.toString()}</Text>
58
+ );
59
+ }
60
+
43
61
  if (!timestamp) return null;
44
62
 
45
- const formattedDate = getDateString({
63
+ const dateString = getDateString({
46
64
  calendar,
47
65
  date: timestamp,
48
66
  format,
@@ -50,11 +68,9 @@ export const MessageTimestamp = (props: MessageTimestampProps) => {
50
68
  tDateTimeParser: propsTDateTimeParser || contextTDateTimeParser,
51
69
  });
52
70
 
53
- if (!formattedDate) return null;
71
+ if (!dateString) return null;
54
72
 
55
- return (
56
- <Text style={[styles.text, { color: grey }, timestampText]}>{formattedDate.toString()}</Text>
57
- );
73
+ return <Text style={[styles.text, { color: grey }, timestampText]}>{dateString.toString()}</Text>;
58
74
  };
59
75
 
60
76
  const styles = StyleSheet.create({
package/src/i18n/en.json CHANGED
@@ -28,7 +28,7 @@
28
28
  "File type not supported": "File type not supported",
29
29
  "Flag": "Flag",
30
30
  "Flag Message": "Flag Message",
31
- "Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged.",
31
+ "Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged",
32
32
  "Hold to start recording.": "Hold to start recording.",
33
33
  "How about sending your first message to a friend?": "How about sending your first message to a friend?",
34
34
  "Instant Commands": "Instant Commands",
package/src/i18n/es.json CHANGED
@@ -1,83 +1,83 @@
1
1
  {
2
- "1 Reply": "1 respuesta",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "1 respuesta de hilo",
4
- "Allow access to your Gallery": "Permitir acceso a tu galería",
5
- "Allow camera access in device settings": "Permitir el acceso a la cámara en la configuración del dispositivo",
6
- "Also send to channel": "También enviar al canal",
7
- "Are you sure you want to permanently delete this message?": "¿Estás seguro de que deseas eliminar permanentemente este mensaje?",
8
- "Are you sure?": "¿Estás seguro?",
9
- "Block User": "Bloquear usuario",
10
- "Cancel": "Cancelar",
11
- "Cannot Flag Message": "No se puede reportar el mensaje",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considera cómo tu comentario podría hacer sentir a los demás y asegúrate de seguir nuestras Normas de la Comunidad",
13
- "Copy Message": "Copiar mensaje",
14
- "Delete": "Eliminar",
15
- "Delete Message": "Eliminar mensaje",
16
- "Device camera is used to take photos or videos.": "La cámara del dispositivo se utiliza para tomar fotografías o vídeos.",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "¿Deseas enviar una copia de este mensaje a un moderador para una investigación adicional?",
18
- "Edit Message": "Editar mensaje",
19
- "Edited": "Editado",
20
- "Editing Message": "Editando mensaje",
21
- "Emoji matching": "Coincidencia de emoji",
22
- "Empty message...": "Mensaje vacío...",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
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": "",
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": "",
19
+ "Edited": "",
20
+ "Editing Message": "",
21
+ "Emoji matching": "",
22
+ "Empty message...": "",
23
23
  "Error loading": "Error al cargar",
24
- "Error loading channel list...": "Error al cargar la lista de canales...",
24
+ "Error loading channel list...": "",
25
25
  "Error loading messages for this channel...": "Error al cargar los mensajes de este canal...",
26
- "Error while loading, please reload/refresh": "Error al cargar, por favor recarga/actualiza",
27
- "File is too large: {{ size }}, maximum upload size is {{ limit }}": "El archivo es demasiado grande: {{ size }}, el tamaño máximo de carga es de {{ limit }}",
28
- "File type not supported": "Tipo de archivo no admitido",
29
- "Flag": "Reportar",
30
- "Flag Message": "Reportar mensaje",
31
- "Flag action failed either due to a network issue or the message is already flagged": "El reporte falló debido a un problema de red o el mensaje ya fue reportado.",
32
- "Hold to start recording.": "Mantén presionado para comenzar a grabar.",
33
- "How about sending your first message to a friend?": "¿Qué tal enviar tu primer mensaje a un amigo?",
34
- "Instant Commands": "Comandos instantáneos",
35
- "Let's start chatting!": "¡Empecemos a charlar!",
36
- "Links are disabled": "Los enlaces están desactivados",
26
+ "Error while loading, please reload/refresh": "",
27
+ "File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
28
+ "File type not supported": "",
29
+ "Flag": "",
30
+ "Flag Message": "",
31
+ "Flag action failed either due to a network issue or the message is already flagged": "",
32
+ "Hold to start recording.": "",
33
+ "How about sending your first message to a friend?": "",
34
+ "Instant Commands": "",
35
+ "Let's start chatting!": "",
36
+ "Links are disabled": "",
37
37
  "Loading channels...": "Cargando canales...",
38
38
  "Loading messages...": "Cargando mensajes...",
39
39
  "Loading...": "Cargando...",
40
40
  "Message Reactions": "Reacciones al mensaje",
41
41
  "Message deleted": "Mensaje eliminado",
42
- "Message flagged": "Mensaje reportado",
43
- "Mute User": "Silenciar usuario",
44
- "No chats here yet…": "No hay chats aquí todavía...",
45
- "Not supported": "No admitido",
46
- "Nothing yet...": "Aún no hay nada...",
47
- "Ok": "Aceptar",
42
+ "Message flagged": "",
43
+ "Mute User": "",
44
+ "No chats here yet…": "",
45
+ "Not supported": "",
46
+ "Nothing yet...": "",
47
+ "Ok": "",
48
48
  "Only visible to you": "Solo visible para ti",
49
- "Open Settings": "Configuración abierta",
50
- "Photo": "Foto",
51
- "Photos and Videos": "Fotos y videos",
52
- "Pin to Conversation": "Fijar a la conversación",
49
+ "Open Settings": "",
50
+ "Photo": "",
51
+ "Photos and Videos": "",
52
+ "Pin to Conversation": "",
53
53
  "Pinned by": "Fijado por",
54
- "Please allow Audio permissions in settings.": "Por favor, permita los permisos de audio en la configuración.",
55
- "Please enable access to your photos and videos so you can share them.": "Por favor, habilita el acceso a tus fotos y videos para poder compartirlos.",
56
- "Please select a channel first": "Por favor, selecciona primero un canal",
54
+ "Please allow Audio permissions in settings.": "",
55
+ "Please enable access to your photos and videos so you can share them.": "",
56
+ "Please select a channel first": "",
57
57
  "Reconnecting...": "Reconectando...",
58
- "Reply": "Responder",
59
- "Reply to Message": "Responder al mensaje",
60
- "Resend": "Reenviar",
61
- "Search GIFs": "Buscar GIFs",
62
- "Select More Photos": "Seleccionar más fotos",
63
- "Send Anyway": "Enviar de todos modos",
64
- "Send a message": "Enviar un mensaje",
65
- "Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
66
- "Slow mode ON": "Modo lento ACTIVADO",
67
- "The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
68
- "Thread Reply": "Respuesta de hilo",
69
- "Unblock User": "Desbloquear usuario",
70
- "Unknown User": "Usuario desconocido",
71
- "Unmute User": "Activar sonido del usuario",
72
- "Unpin from Conversation": "Desmarcar de la conversación",
73
- "Unread Messages": "Mensajes no leídos",
74
- "Video": "Video",
58
+ "Reply": "",
59
+ "Reply to Message": "",
60
+ "Resend": "",
61
+ "Search GIFs": "",
62
+ "Select More Photos": "",
63
+ "Send Anyway": "",
64
+ "Send a message": "",
65
+ "Sending links is not allowed in this conversation": "",
66
+ "Slow mode ON": "",
67
+ "The message has been reported to a moderator.": "",
68
+ "Thread Reply": "",
69
+ "Unblock User": "",
70
+ "Unknown User": "",
71
+ "Unmute User": "",
72
+ "Unpin from Conversation": "",
73
+ "Unread Messages": "",
74
+ "Video": "",
75
75
  "You": "Tú",
76
- "You can't send messages in this channel": "No puedes enviar mensajes en este canal",
77
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} y {{ nonSelfUserLength }} más están escribiendo",
78
- "{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
79
- "{{ replyCount }} Replies": "{{ replyCount }} Respuestas",
76
+ "You can't send messages in this channel": "",
77
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
78
+ "{{ index }} of {{ photoLength }}": "",
79
+ "{{ replyCount }} Replies": "",
80
80
  "{{ replyCount }} Thread Replies": "{{ replyCount }} respuestas de hilo",
81
- "{{ user }} is typing": "{{ user }} está escribiendo",
82
- "🏙 Attachment...": "🏙 Adjunto..."
81
+ "{{ user }} is typing": "",
82
+ "🏙 Attachment...": ""
83
83
  }