stream-chat-react-native-core 5.26.0-beta.4 → 5.26.0-beta.6

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 (78) hide show
  1. package/lib/commonjs/components/Channel/Channel.js +14 -21
  2. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  3. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +2 -0
  4. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  5. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  6. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  7. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  8. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  9. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  10. package/lib/commonjs/i18n/en.json +1 -1
  11. package/lib/commonjs/i18n/es.json +44 -44
  12. package/lib/commonjs/i18n/fr.json +44 -44
  13. package/lib/commonjs/i18n/he.json +44 -44
  14. package/lib/commonjs/i18n/hi.json +44 -44
  15. package/lib/commonjs/i18n/it.json +44 -44
  16. package/lib/commonjs/i18n/ja.json +44 -44
  17. package/lib/commonjs/i18n/ko.json +44 -44
  18. package/lib/commonjs/i18n/nl.json +44 -44
  19. package/lib/commonjs/i18n/pt-BR.json +44 -44
  20. package/lib/commonjs/i18n/ru.json +44 -44
  21. package/lib/commonjs/i18n/tr.json +44 -44
  22. package/lib/commonjs/version.json +1 -1
  23. package/lib/module/components/Channel/Channel.js +14 -21
  24. package/lib/module/components/Channel/Channel.js.map +1 -1
  25. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +2 -0
  26. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  27. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  28. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  29. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  30. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  31. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  32. package/lib/module/i18n/en.json +1 -1
  33. package/lib/module/i18n/es.json +44 -44
  34. package/lib/module/i18n/fr.json +44 -44
  35. package/lib/module/i18n/he.json +44 -44
  36. package/lib/module/i18n/hi.json +44 -44
  37. package/lib/module/i18n/it.json +44 -44
  38. package/lib/module/i18n/ja.json +44 -44
  39. package/lib/module/i18n/ko.json +44 -44
  40. package/lib/module/i18n/nl.json +44 -44
  41. package/lib/module/i18n/pt-BR.json +44 -44
  42. package/lib/module/i18n/ru.json +44 -44
  43. package/lib/module/i18n/tr.json +44 -44
  44. package/lib/module/version.json +1 -1
  45. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +4 -2
  46. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +2 -1
  47. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -1
  48. package/lib/typescript/i18n/en.json +1 -1
  49. package/lib/typescript/i18n/es.json +44 -44
  50. package/lib/typescript/i18n/fr.json +44 -44
  51. package/lib/typescript/i18n/he.json +44 -44
  52. package/lib/typescript/i18n/hi.json +44 -44
  53. package/lib/typescript/i18n/it.json +44 -44
  54. package/lib/typescript/i18n/ja.json +44 -44
  55. package/lib/typescript/i18n/ko.json +44 -44
  56. package/lib/typescript/i18n/nl.json +44 -44
  57. package/lib/typescript/i18n/pt-BR.json +44 -44
  58. package/lib/typescript/i18n/ru.json +44 -44
  59. package/lib/typescript/i18n/tr.json +44 -44
  60. package/package.json +1 -1
  61. package/src/components/Channel/Channel.tsx +9 -8
  62. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +2 -2
  63. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +11 -2
  64. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +9 -6
  65. package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
  66. package/src/i18n/en.json +1 -1
  67. package/src/i18n/es.json +44 -44
  68. package/src/i18n/fr.json +44 -44
  69. package/src/i18n/he.json +44 -44
  70. package/src/i18n/hi.json +44 -44
  71. package/src/i18n/it.json +44 -44
  72. package/src/i18n/ja.json +44 -44
  73. package/src/i18n/ko.json +44 -44
  74. package/src/i18n/nl.json +44 -44
  75. package/src/i18n/pt-BR.json +44 -44
  76. package/src/i18n/ru.json +44 -44
  77. package/src/i18n/tr.json +44 -44
  78. package/src/version.json +1 -1
@@ -1,79 +1,79 @@
1
1
  {
2
- "1 Reply": "1 Ответ",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "",
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": "",
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
19
  "Editing Message": "Редактирование сообщения",
20
- "Emoji matching": "Соответствие эмодзи",
20
+ "Emoji matching": "",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
- "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": "",
26
+ "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": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
30
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "Мгновенные Команды",
31
+ "Instant Commands": "",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "",
38
+ "Message Reactions": "Сообщения Реакции",
39
39
  "Message deleted": "",
40
- "Message flagged": "",
41
- "Mute User": "",
40
+ "Message flagged": "Сообщение отмечено",
41
+ "Mute User": "Отключить пользователя",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "",
44
+ "Ok": "",
45
45
  "Only visible to you": "",
46
- "Open Settings": "Открыть настройки",
46
+ "Open Settings": "",
47
47
  "Photo": "Фото",
48
- "Photos and Videos": "Фото и видео",
49
- "Pin to Conversation": "",
48
+ "Photos and Videos": "",
49
+ "Pin to Conversation": "Закрепить к беседе",
50
50
  "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
51
+ "Please enable access to your photos and videos so you can share them.": "",
52
52
  "Please select a channel first": "",
53
53
  "Reconnecting...": "",
54
- "Reply": "",
54
+ "Reply": "Ответить",
55
55
  "Reply to Message": "Ответить на сообщение",
56
- "Resend": "",
56
+ "Resend": "Отправить",
57
57
  "Search GIFs": "Поиск GIF",
58
- "Select More Photos": "Выбрать больше фотографий",
59
- "Send Anyway": "",
58
+ "Select More Photos": "",
59
+ "Send Anyway": "Всё равно отправить",
60
60
  "Send a message": "Отправить сообщение",
61
61
  "Sending links is not allowed in this conversation": "",
62
62
  "Slow mode ON": "Медленный режим включен",
63
- "The message has been reported to a moderator.": "",
64
- "Thread Reply": "",
65
- "Unblock User": "",
66
- "Unknown User": "Неизвестный пользователь",
67
- "Unmute User": "",
68
- "Unpin from Conversation": "",
63
+ "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
64
+ "Thread Reply": "Тема Ответить",
65
+ "Unblock User": "Разблокировать пользователя",
66
+ "Unknown User": "",
67
+ "Unmute User": "Включить микрофон",
68
+ "Unpin from Conversation": "Открепить от беседы",
69
69
  "Unread Messages": "",
70
70
  "Video": "видео",
71
71
  "You": "",
72
72
  "You can't send messages in this channel": "",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
74
+ "{{ index }} of {{ photoLength }}": "",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "",
77
+ "{{ user }} is typing": "{{ user }} пишет",
78
78
  "🏙 Attachment...": ""
79
79
  }
@@ -1,79 +1,79 @@
1
1
  {
2
- "1 Reply": "1 Cevap",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "",
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": "",
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.": "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?": "",
18
- "Edit Message": "",
4
+ "Allow access to your Gallery": "",
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?": "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.": "",
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
19
  "Editing Message": "Mesaj Düzenleniyor",
20
- "Emoji matching": "Emoji eşleştirme",
20
+ "Emoji matching": "",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
- "File type not supported": "Dosya türü desteklenmiyor",
27
- "Flag": "",
28
- "Flag Message": "",
29
- "Flag action failed either due to a network issue or the message is already flagged": "",
26
+ "File type not supported": "",
27
+ "Flag": "Raporla",
28
+ "Flag Message": "Mesajı Raporla",
29
+ "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
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "Anlık Komutlar",
31
+ "Instant Commands": "",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "",
38
+ "Message Reactions": "Mesaj Tepkileri",
39
39
  "Message deleted": "",
40
- "Message flagged": "",
41
- "Mute User": "",
40
+ "Message flagged": "Mesaj işaretlendi",
41
+ "Mute User": "Kullanıcıyı sessize al",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "",
44
+ "Ok": "Tamam",
45
45
  "Only visible to you": "",
46
- "Open Settings": "Ayarları aç",
46
+ "Open Settings": "",
47
47
  "Photo": "Fotoğraf",
48
- "Photos and Videos": "Fotoğraflar ve Videolar",
49
- "Pin to Conversation": "",
48
+ "Photos and Videos": "",
49
+ "Pin to Conversation": "Konuşmaya sabitle",
50
50
  "Pinned by": "",
51
- "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.",
51
+ "Please enable access to your photos and videos so you can share them.": "",
52
52
  "Please select a channel first": "",
53
53
  "Reconnecting...": "",
54
- "Reply": "",
54
+ "Reply": "Yanıtla",
55
55
  "Reply to Message": "Mesajı Yanıtla",
56
- "Resend": "",
56
+ "Resend": "Yeniden gönder",
57
57
  "Search GIFs": "GIF Ara",
58
- "Select More Photos": "Daha Fazla Fotoğraf Seçin",
59
- "Send Anyway": "",
58
+ "Select More Photos": "",
59
+ "Send Anyway": "Yine de Gönder",
60
60
  "Send a message": "Mesaj gönder",
61
61
  "Sending links is not allowed in this conversation": "",
62
62
  "Slow mode ON": "Yavaş Mod Açık",
63
- "The message has been reported to a moderator.": "",
64
- "Thread Reply": "",
65
- "Unblock User": "",
66
- "Unknown User": "Bilinmeyen kullanıcı",
67
- "Unmute User": "",
68
- "Unpin from Conversation": "",
63
+ "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
64
+ "Thread Reply": "Konu Yanıtı",
65
+ "Unblock User": "Kullanıcının engelini kaldır",
66
+ "Unknown User": "",
67
+ "Unmute User": "Kullanıcının sesini aç",
68
+ "Unpin from Conversation": "Sabitlemeyi kaldır",
69
69
  "Unread Messages": "",
70
70
  "Video": "Video",
71
71
  "You": "",
72
72
  "You can't send messages in this channel": "",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
74
+ "{{ index }} of {{ photoLength }}": "",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "",
77
+ "{{ user }} is typing": "{{ user }} yazıyor",
78
78
  "🏙 Attachment...": ""
79
79
  }
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.26.0-beta.4",
4
+ "version": "5.26.0-beta.6",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -1064,7 +1064,7 @@ const ChannelWithContext = <
1064
1064
  */
1065
1065
  const mergeOverlappingMessageSetsRef = useRef((limitToMaxRenderPerBatch = false) => {
1066
1066
  if (hasOverlappingRecentMessagesRef.current) {
1067
- const limit = 30; // 30 is the maxToRenderPerBatch
1067
+ const limit = 5; // 5 is the load to recent limit, a larger value seems to cause jumpiness in some devices..
1068
1068
  // merge current and latest sets
1069
1069
  const latestMessageSet = channel.state.messageSets.find((set) => set.isLatest);
1070
1070
  const currentMessageSet = channel.state.messageSets.find((set) => set.isCurrent);
@@ -1098,16 +1098,17 @@ const ChannelWithContext = <
1098
1098
  );
1099
1099
 
1100
1100
  // if we had split the latest and current message set, we try to merge them back
1101
+ // temporarily commented out the interval as it was causing issues with jankiness during scrolling
1101
1102
  const restartSetsMergeFuncRef = useRef(() => {
1102
1103
  clearInterval(mergeSetsIntervalRef.current);
1103
1104
  if (!hasOverlappingRecentMessagesRef.current) return;
1104
- mergeSetsIntervalRef.current = setInterval(() => {
1105
- const currentLength = channel.state.messages.length || 0;
1106
- const didMerge = mergeOverlappingMessageSetsRef.current(true);
1107
- if (didMerge && channel.state.messages.length !== currentLength) {
1108
- setMessages(channel.state.messages);
1109
- }
1110
- }, 1000);
1105
+ // mergeSetsIntervalRef.current = setInterval(() => {
1106
+ // const currentLength = channel.state.messages.length || 0;
1107
+ // const didMerge = mergeOverlappingMessageSetsRef.current(true);
1108
+ // if (didMerge && channel.state.messages.length !== currentLength) {
1109
+ // setMessages(channel.state.messages);
1110
+ // }
1111
+ // }, 1000);
1111
1112
  });
1112
1113
 
1113
1114
  /**
@@ -165,10 +165,10 @@ const ChannelPreviewMessengerWithContext = <
165
165
  testID={`channel-preview-content-${channel.id}`}
166
166
  >
167
167
  <View style={[styles.row, row]}>
168
- <PreviewTitle displayName={displayName} />
168
+ <PreviewTitle channel={channel} displayName={displayName} />
169
169
  <View style={[styles.statusContainer, row]}>
170
170
  {isChannelMuted && <PreviewMutedStatus />}
171
- <PreviewUnreadCount maxUnreadCount={maxUnreadCount} unread={unread} />
171
+ <PreviewUnreadCount channel={channel} maxUnreadCount={maxUnreadCount} unread={unread} />
172
172
  </View>
173
173
  </View>
174
174
  <View style={[styles.row, row]}>
@@ -1,20 +1,29 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet, Text } from 'react-native';
3
3
 
4
+ import type { ChannelPreviewProps } from './ChannelPreview';
5
+
4
6
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
7
+ import type { DefaultStreamChatGenerics } from '../../types/types';
5
8
 
6
9
  const styles = StyleSheet.create({
7
10
  title: { fontSize: 14, fontWeight: '700' },
8
11
  });
9
12
 
10
- export type ChannelPreviewTitleProps = {
13
+ export type ChannelPreviewTitleProps<
14
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
15
+ > = Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'> & {
11
16
  /**
12
17
  * Formatted name for the previewed channel.
13
18
  */
14
19
  displayName: string;
15
20
  };
16
21
 
17
- export const ChannelPreviewTitle = (props: ChannelPreviewTitleProps) => {
22
+ export const ChannelPreviewTitle = <
23
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
24
+ >(
25
+ props: ChannelPreviewTitleProps<StreamChatGenerics>,
26
+ ) => {
18
27
  const { displayName } = props;
19
28
  const {
20
29
  theme: {
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
3
 
4
+ import { ChannelPreviewProps } from './ChannelPreview';
5
+
4
6
  import type { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
5
7
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
6
8
 
@@ -8,12 +10,13 @@ import type { DefaultStreamChatGenerics } from '../../types/types';
8
10
 
9
11
  export type ChannelPreviewUnreadCountProps<
10
12
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
11
- > = Pick<ChannelsContextValue<StreamChatGenerics>, 'maxUnreadCount'> & {
12
- /**
13
- * Number of unread messages on the channel
14
- */
15
- unread?: number;
16
- };
13
+ > = Pick<ChannelsContextValue<StreamChatGenerics>, 'maxUnreadCount'> &
14
+ Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'> & {
15
+ /**
16
+ * Number of unread messages on the channel
17
+ */
18
+ unread?: number;
19
+ };
17
20
 
18
21
  export const ChannelPreviewUnreadCount = <
19
22
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
@@ -199,7 +199,7 @@ export type ChannelsContextValue<
199
199
  *
200
200
  * **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
201
201
  */
202
- PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps>;
202
+ PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps<StreamChatGenerics>>;
203
203
  /**
204
204
  * Custom UI component to render preview avatar.
205
205
  *
package/src/i18n/en.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "File type not supported": "File type not supported",
27
27
  "Flag": "Flag",
28
28
  "Flag Message": "Flag Message",
29
- "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",
29
+ "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.",
30
30
  "How about sending your first message to a friend?": "How about sending your first message to a friend?",
31
31
  "Instant Commands": "Instant Commands",
32
32
  "Let's start chatting!": "Let's start chatting!",
package/src/i18n/es.json CHANGED
@@ -1,79 +1,79 @@
1
1
  {
2
- "1 Reply": "1 respuesta",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "",
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": "",
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.": "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?": "",
18
- "Edit Message": "",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
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.": "",
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
19
  "Editing Message": "Editando mensaje",
20
- "Emoji matching": "Coincidencia de emoji",
20
+ "Emoji matching": "",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
- "File type not supported": "Tipo de archivo no admitido",
27
- "Flag": "",
28
- "Flag Message": "",
29
- "Flag action failed either due to a network issue or the message is already flagged": "",
26
+ "File type not supported": "",
27
+ "Flag": "Reportar",
28
+ "Flag Message": "Reportar mensaje",
29
+ "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.",
30
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "Comandos instantáneos",
31
+ "Instant Commands": "",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "",
38
+ "Message Reactions": "Reacciones al mensaje",
39
39
  "Message deleted": "",
40
- "Message flagged": "",
41
- "Mute User": "",
40
+ "Message flagged": "Mensaje reportado",
41
+ "Mute User": "Silenciar usuario",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "",
44
+ "Ok": "Aceptar",
45
45
  "Only visible to you": "",
46
- "Open Settings": "Configuración abierta",
46
+ "Open Settings": "",
47
47
  "Photo": "Foto",
48
- "Photos and Videos": "Fotos y videos",
49
- "Pin to Conversation": "",
48
+ "Photos and Videos": "",
49
+ "Pin to Conversation": "Fijar a la conversación",
50
50
  "Pinned by": "",
51
- "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.",
51
+ "Please enable access to your photos and videos so you can share them.": "",
52
52
  "Please select a channel first": "",
53
53
  "Reconnecting...": "",
54
- "Reply": "",
54
+ "Reply": "Responder",
55
55
  "Reply to Message": "Responder al mensaje",
56
- "Resend": "",
56
+ "Resend": "Reenviar",
57
57
  "Search GIFs": "Buscar GIFs",
58
- "Select More Photos": "Seleccionar más fotos",
59
- "Send Anyway": "",
58
+ "Select More Photos": "",
59
+ "Send Anyway": "Enviar de todos modos",
60
60
  "Send a message": "Enviar un mensaje",
61
61
  "Sending links is not allowed in this conversation": "",
62
62
  "Slow mode ON": "Modo lento ACTIVADO",
63
- "The message has been reported to a moderator.": "",
64
- "Thread Reply": "",
65
- "Unblock User": "",
66
- "Unknown User": "Usuario desconocido",
67
- "Unmute User": "",
68
- "Unpin from Conversation": "",
63
+ "The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
64
+ "Thread Reply": "Respuesta de hilo",
65
+ "Unblock User": "Desbloquear usuario",
66
+ "Unknown User": "",
67
+ "Unmute User": "Activar sonido del usuario",
68
+ "Unpin from Conversation": "Desmarcar de la conversación",
69
69
  "Unread Messages": "",
70
70
  "Video": "Video",
71
71
  "You": "",
72
72
  "You can't send messages in this channel": "",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Respuestas",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} y {{ nonSelfUserLength }} más están escribiendo",
74
+ "{{ index }} of {{ photoLength }}": "",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "",
77
+ "{{ user }} is typing": "{{ user }} está escribiendo",
78
78
  "🏙 Attachment...": ""
79
79
  }