stream-chat-react-native-core 5.27.0-beta.1 → 5.27.0-beta.11

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 (109) hide show
  1. package/lib/commonjs/components/Attachment/Gallery.js +6 -7
  2. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  3. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +1 -1
  4. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  5. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +30 -5
  6. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
  7. package/lib/commonjs/components/Chat/Chat.js +25 -16
  8. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  9. package/lib/commonjs/components/Chat/hooks/useAppSettings.js +18 -12
  10. package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
  11. package/lib/commonjs/components/ImageGallery/ImageGallery.js +40 -22
  12. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  13. package/lib/commonjs/components/Indicators/LoadingIndicator.js +8 -2
  14. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  15. package/lib/commonjs/components/MessageInput/SendButton.js +1 -1
  16. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  17. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +3 -1
  18. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  19. package/lib/commonjs/components/MessageList/MessageList.js +45 -40
  20. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  21. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +73 -56
  22. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  23. package/lib/commonjs/i18n/es.json +21 -21
  24. package/lib/commonjs/i18n/fr.json +21 -21
  25. package/lib/commonjs/i18n/he.json +21 -21
  26. package/lib/commonjs/i18n/hi.json +22 -22
  27. package/lib/commonjs/i18n/it.json +22 -22
  28. package/lib/commonjs/i18n/ja.json +23 -23
  29. package/lib/commonjs/i18n/ko.json +23 -23
  30. package/lib/commonjs/i18n/nl.json +23 -23
  31. package/lib/commonjs/i18n/pt-BR.json +23 -23
  32. package/lib/commonjs/i18n/ru.json +23 -23
  33. package/lib/commonjs/i18n/tr.json +23 -23
  34. package/lib/commonjs/utils/addReactionToLocalState.js +3 -2
  35. package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
  36. package/lib/commonjs/version.json +1 -1
  37. package/lib/module/components/Attachment/Gallery.js +6 -7
  38. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  39. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +1 -1
  40. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  41. package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +30 -5
  42. package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
  43. package/lib/module/components/Chat/Chat.js +25 -16
  44. package/lib/module/components/Chat/Chat.js.map +1 -1
  45. package/lib/module/components/Chat/hooks/useAppSettings.js +18 -12
  46. package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
  47. package/lib/module/components/ImageGallery/ImageGallery.js +40 -22
  48. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  49. package/lib/module/components/Indicators/LoadingIndicator.js +8 -2
  50. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  51. package/lib/module/components/MessageInput/SendButton.js +1 -1
  52. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  53. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +3 -1
  54. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  55. package/lib/module/components/MessageList/MessageList.js +45 -40
  56. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  57. package/lib/module/contexts/messageInputContext/MessageInputContext.js +73 -56
  58. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  59. package/lib/module/i18n/es.json +21 -21
  60. package/lib/module/i18n/fr.json +21 -21
  61. package/lib/module/i18n/he.json +21 -21
  62. package/lib/module/i18n/hi.json +22 -22
  63. package/lib/module/i18n/it.json +22 -22
  64. package/lib/module/i18n/ja.json +23 -23
  65. package/lib/module/i18n/ko.json +23 -23
  66. package/lib/module/i18n/nl.json +23 -23
  67. package/lib/module/i18n/pt-BR.json +23 -23
  68. package/lib/module/i18n/ru.json +23 -23
  69. package/lib/module/i18n/tr.json +23 -23
  70. package/lib/module/utils/addReactionToLocalState.js +3 -2
  71. package/lib/module/utils/addReactionToLocalState.js.map +1 -1
  72. package/lib/module/version.json +1 -1
  73. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +3 -1
  74. package/lib/typescript/i18n/es.json +21 -21
  75. package/lib/typescript/i18n/fr.json +21 -21
  76. package/lib/typescript/i18n/he.json +21 -21
  77. package/lib/typescript/i18n/hi.json +22 -22
  78. package/lib/typescript/i18n/it.json +22 -22
  79. package/lib/typescript/i18n/ja.json +23 -23
  80. package/lib/typescript/i18n/ko.json +23 -23
  81. package/lib/typescript/i18n/nl.json +23 -23
  82. package/lib/typescript/i18n/pt-BR.json +23 -23
  83. package/lib/typescript/i18n/ru.json +23 -23
  84. package/lib/typescript/i18n/tr.json +23 -23
  85. package/package.json +1 -1
  86. package/src/components/Attachment/Gallery.tsx +9 -9
  87. package/src/components/AttachmentPicker/AttachmentPicker.tsx +1 -1
  88. package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx +24 -2
  89. package/src/components/Chat/Chat.tsx +17 -6
  90. package/src/components/Chat/hooks/useAppSettings.ts +3 -1
  91. package/src/components/ImageGallery/ImageGallery.tsx +26 -3
  92. package/src/components/Indicators/LoadingIndicator.tsx +3 -3
  93. package/src/components/MessageInput/SendButton.tsx +1 -1
  94. package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +2 -1
  95. package/src/components/MessageList/MessageList.tsx +19 -13
  96. package/src/contexts/messageInputContext/MessageInputContext.tsx +9 -3
  97. package/src/i18n/es.json +21 -21
  98. package/src/i18n/fr.json +21 -21
  99. package/src/i18n/he.json +21 -21
  100. package/src/i18n/hi.json +22 -22
  101. package/src/i18n/it.json +22 -22
  102. package/src/i18n/ja.json +23 -23
  103. package/src/i18n/ko.json +23 -23
  104. package/src/i18n/nl.json +23 -23
  105. package/src/i18n/pt-BR.json +23 -23
  106. package/src/i18n/ru.json +23 -23
  107. package/src/i18n/tr.json +23 -23
  108. package/src/utils/addReactionToLocalState.ts +7 -2
  109. package/src/version.json +1 -1
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "1 Reply": "1 Antwoord",
3
- "1 Thread Reply": "",
3
+ "1 Thread Reply": "1 thread antwoord",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
8
+ "Are you sure?": "Weet je het zeker?",
9
9
  "Block User": "",
10
10
  "Cancel": "",
11
11
  "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
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
13
  "Copy Message": "",
14
14
  "Delete": "",
15
15
  "Delete Message": "",
16
16
  "Device camera is used to take photos or videos.": "",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
18
  "Edit Message": "",
19
- "Editing Message": "",
20
- "Emoji matching": "",
19
+ "Editing Message": "Bericht aanpassen",
20
+ "Emoji matching": "Emoji-overeenkomsten",
21
21
  "Empty message...": "Leeg bericht...",
22
22
  "Error loading": "Probleem bij het laden",
23
23
  "Error loading channel list...": "Probleem bij het laden van de kanalen...",
24
24
  "Error loading messages for this channel...": "Probleem bij het laden van de berichten in dit kanaal...",
25
25
  "Error while loading, please reload/refresh": "Probleem bij het laden, probeer opnieuw",
26
- "File type not supported": "Bestandstype niet ondersteund",
26
+ "File type not supported": "",
27
27
  "Flag": "",
28
28
  "Flag Message": "",
29
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?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
31
- "Instant Commands": "",
31
+ "Instant Commands": "Directe Opdrachten",
32
32
  "Let's start chatting!": "Laten we beginnen met chatten!",
33
- "Links are disabled": "",
34
- "Loading channels...": "Kanalen aan het laden...",
35
- "Loading messages...": "Berichten aan het laden...",
36
- "Loading...": "Aan het laden...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Bericht Reacties",
33
+ "Links are disabled": "Het versturen van links staat uit",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maximale uploadlimiet voor bestandsgrootte bereikt. Upload een bestand van minder dan {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "Bericht verwijderd",
40
40
  "Message flagged": "",
41
41
  "Mute User": "",
@@ -47,33 +47,33 @@
47
47
  "Photo": "Foto",
48
48
  "Photos and Videos": "",
49
49
  "Pin to Conversation": "",
50
- "Pinned by": "Vastgemaakt door",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
52
  "Please select a channel first": "",
53
53
  "Reconnecting...": "Opnieuw Verbinding Maken...",
54
54
  "Reply": "",
55
- "Reply to Message": "Beantwoord bericht",
55
+ "Reply to Message": "",
56
56
  "Resend": "",
57
- "Search GIFs": "Zoek GIF's",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "",
59
- "Send Anyway": "",
60
- "Send a message": "Stuur een bericht",
61
- "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Langzame modus aan",
59
+ "Send Anyway": "Toch verzenden",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "",
64
64
  "Thread Reply": "",
65
65
  "Unblock User": "",
66
66
  "Unknown User": "",
67
67
  "Unmute User": "",
68
68
  "Unpin from Conversation": "",
69
- "Unread Messages": "Ongelezen Berichten",
69
+ "Unread Messages": "",
70
70
  "Video": "Video",
71
71
  "You": "U",
72
- "You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
72
+ "You can't send messages in this channel": "",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
76
- "{{ replyCount }} Thread Replies": "",
76
+ "{{ replyCount }} Thread Replies": "{{replyCount}} Discussiereacties",
77
77
  "{{ user }} is typing": "{{ user }} is aan het typen",
78
78
  "🏙 Attachment...": "🏙 Bijlage..."
79
79
  }
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "1 Reply": "1 Resposta",
3
- "1 Thread Reply": "",
3
+ "1 Thread Reply": "1 Resposta de Thread",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
8
+ "Are you sure?": "Tem certeza?",
9
9
  "Block User": "",
10
10
  "Cancel": "",
11
11
  "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
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
13
  "Copy Message": "",
14
14
  "Delete": "",
15
15
  "Delete Message": "",
16
16
  "Device camera is used to take photos or videos.": "",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
18
  "Edit Message": "",
19
- "Editing Message": "",
20
- "Emoji matching": "",
19
+ "Editing Message": "Editando Mensagem",
20
+ "Emoji matching": "Correspondência de Emoji",
21
21
  "Empty message...": "Mensagem vazia...",
22
22
  "Error loading": "Erro ao carregar",
23
23
  "Error loading channel list...": "Erro ao carregar lista de canais...",
24
24
  "Error loading messages for this channel...": "Erro ao carregar mensagens para este canal...",
25
25
  "Error while loading, please reload/refresh": "Erro ao carregar, por favor recarregue/atualize",
26
- "File type not supported": "Tipo de arquivo não suportado",
26
+ "File type not supported": "",
27
27
  "Flag": "",
28
28
  "Flag Message": "",
29
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?": "Que tal enviar sua primeira mensagem para um amigo?",
31
- "Instant Commands": "",
31
+ "Instant Commands": "Comandos Instantâneos",
32
32
  "Let's start chatting!": "Vamos começar a conversar!",
33
- "Links are disabled": "",
34
- "Loading channels...": "Carregando canais...",
35
- "Loading messages...": "Carregando mensagens...",
36
- "Loading...": "Carregando...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Reações à Mensagem",
33
+ "Links are disabled": "Links estão desabilitados",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Limite máximo de tamanho de arquivo atingido. Por favor, faça o upload de um arquivo abaixo de {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "Mensagem excluída",
40
40
  "Message flagged": "",
41
41
  "Mute User": "",
@@ -47,33 +47,33 @@
47
47
  "Photo": "Foto",
48
48
  "Photos and Videos": "",
49
49
  "Pin to Conversation": "",
50
- "Pinned by": "Fixado por",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
52
  "Please select a channel first": "",
53
53
  "Reconnecting...": "Reconectando...",
54
54
  "Reply": "",
55
- "Reply to Message": "Responder à Mensagem",
55
+ "Reply to Message": "",
56
56
  "Resend": "",
57
- "Search GIFs": "Pesquisar GIFs",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "",
59
- "Send Anyway": "",
60
- "Send a message": "Enviar uma mensagem",
61
- "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Modo Lento ATIVADO",
59
+ "Send Anyway": "Enviar de qualquer maneira",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "Não é permitido enviar links nesta conversa",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "",
64
64
  "Thread Reply": "",
65
65
  "Unblock User": "",
66
66
  "Unknown User": "",
67
67
  "Unmute User": "",
68
68
  "Unpin from Conversation": "",
69
- "Unread Messages": "Mensagens não lidas",
69
+ "Unread Messages": "",
70
70
  "Video": "Vídeo",
71
71
  "You": "Você",
72
- "You can't send messages in this channel": "Você não pode enviar mensagens neste canal",
72
+ "You can't send messages in this channel": "",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Respostas",
76
- "{{ replyCount }} Thread Replies": "",
76
+ "{{ replyCount }} Thread Replies": "{{ replyCount }} Respostas de Thread",
77
77
  "{{ user }} is typing": "{{ user }} está digitando",
78
78
  "🏙 Attachment...": "🏙 Anexo..."
79
79
  }
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "1 Reply": "1 Ответ",
3
- "1 Thread Reply": "",
3
+ "1 Thread Reply": "1 тема Ответить",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
8
+ "Are you sure?": "Вы уверены?",
9
9
  "Block User": "",
10
10
  "Cancel": "",
11
11
  "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
13
13
  "Copy Message": "",
14
14
  "Delete": "",
15
15
  "Delete Message": "",
16
16
  "Device camera is used to take photos or videos.": "",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
18
  "Edit Message": "",
19
- "Editing Message": "",
20
- "Emoji matching": "",
19
+ "Editing Message": "Редактирование сообщения",
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": "Тип файла не поддерживается",
26
+ "File type not supported": "",
27
27
  "Flag": "",
28
28
  "Flag Message": "",
29
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
- "Links are disabled": "",
34
- "Loading channels...": "Загружаю каналы...",
35
- "Loading messages...": "Загружаю сообщения...",
36
- "Loading...": "Загружаю...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Сообщения Реакции",
33
+ "Links are disabled": "Ссылки отключены",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Достигнут предел максимального размера файла для загрузки. Загрузите файл размером менее {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} МБ.",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "Сообщение удалено",
40
40
  "Message flagged": "",
41
41
  "Mute User": "",
@@ -47,33 +47,33 @@
47
47
  "Photo": "Фото",
48
48
  "Photos and Videos": "",
49
49
  "Pin to Conversation": "",
50
- "Pinned by": "Закреплено пользователем",
50
+ "Pinned by": "",
51
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
54
  "Reply": "",
55
- "Reply to Message": "Ответить на сообщение",
55
+ "Reply to Message": "",
56
56
  "Resend": "",
57
- "Search GIFs": "Поиск GIF",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "",
59
- "Send Anyway": "",
60
- "Send a message": "Отправить сообщение",
61
- "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Медленный режим включен",
59
+ "Send Anyway": "Всё равно отправить",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "",
64
64
  "Thread Reply": "",
65
65
  "Unblock User": "",
66
66
  "Unknown User": "",
67
67
  "Unmute User": "",
68
68
  "Unpin from Conversation": "",
69
- "Unread Messages": "Непрочитанные Сообщения",
69
+ "Unread Messages": "",
70
70
  "Video": "видео",
71
71
  "You": "Вы",
72
- "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
72
+ "You can't send messages in this channel": "",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
76
- "{{ replyCount }} Thread Replies": "",
76
+ "{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
77
77
  "{{ user }} is typing": "{{ user }} пишет",
78
78
  "🏙 Attachment...": "🏙 Вложение..."
79
79
  }
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "1 Reply": "1 Cevap",
3
- "1 Thread Reply": "",
3
+ "1 Thread Reply": "1 Konu Yanıtı",
4
4
  "Allow access to your Gallery": "",
5
5
  "Allow camera access in device settings": "",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
8
+ "Are you sure?": "Emin misiniz?",
9
9
  "Block User": "",
10
10
  "Cancel": "",
11
11
  "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
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
13
  "Copy Message": "",
14
14
  "Delete": "",
15
15
  "Delete Message": "",
16
16
  "Device camera is used to take photos or videos.": "",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
18
  "Edit Message": "",
19
- "Editing Message": "",
20
- "Emoji matching": "",
19
+ "Editing Message": "Mesaj Düzenleniyor",
20
+ "Emoji matching": "Emoji eşleştirme",
21
21
  "Empty message...": "Boş mesaj...",
22
22
  "Error loading": "Yükleme hatası",
23
23
  "Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
24
24
  "Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
25
25
  "Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
26
- "File type not supported": "Dosya türü desteklenmiyor",
26
+ "File type not supported": "",
27
27
  "Flag": "",
28
28
  "Flag Message": "",
29
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?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
31
- "Instant Commands": "",
31
+ "Instant Commands": "Anlık Komutlar",
32
32
  "Let's start chatting!": "Haydi sohbete başlayalım!",
33
- "Links are disabled": "",
34
- "Loading channels...": "Kanallar yükleniyor...",
35
- "Loading messages...": "Mesajlar yükleniyor...",
36
- "Loading...": "Yükleniyor...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Mesaj Tepkileri",
33
+ "Links are disabled": "Bağlantılar devre dışı",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maksimum dosya boyutu yükleme sınırına ulaşıldı. Lütfen {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB'ın altında bir dosya yükleyin.",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "Mesaj silindi",
40
40
  "Message flagged": "",
41
41
  "Mute User": "",
@@ -47,33 +47,33 @@
47
47
  "Photo": "Fotoğraf",
48
48
  "Photos and Videos": "",
49
49
  "Pin to Conversation": "",
50
- "Pinned by": "Tarafından sabitlendi",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
52
  "Please select a channel first": "",
53
53
  "Reconnecting...": "Yeniden Bağlanılıyor...",
54
54
  "Reply": "",
55
- "Reply to Message": "Mesajı Yanıtla",
55
+ "Reply to Message": "",
56
56
  "Resend": "",
57
- "Search GIFs": "GIF Ara",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "",
59
- "Send Anyway": "",
60
- "Send a message": "Mesaj gönder",
61
- "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Yavaş Mod Açık",
59
+ "Send Anyway": "Yine de Gönder",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "",
64
64
  "Thread Reply": "",
65
65
  "Unblock User": "",
66
66
  "Unknown User": "",
67
67
  "Unmute User": "",
68
68
  "Unpin from Conversation": "",
69
- "Unread Messages": "Okunmamış Mesajlar",
69
+ "Unread Messages": "",
70
70
  "Video": "Video",
71
71
  "You": "Sen",
72
- "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
72
+ "You can't send messages in this channel": "",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
76
- "{{ replyCount }} Thread Replies": "",
76
+ "{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
77
77
  "{{ user }} is typing": "{{ user }} yazıyor",
78
78
  "🏙 Attachment...": "🏙 Ek..."
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.27.0-beta.1",
4
+ "version": "5.27.0-beta.11",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -309,15 +309,15 @@ const GalleryThumbnail = <
309
309
  };
310
310
 
311
311
  const defaultOnPress = () => {
312
- if ((thumbnail.type === 'video' && !thumbnail.thumb_url) || !thumbnail.url) {
313
- return;
314
- }
315
- if (thumbnail.type === 'video' && !isVideoPackageAvailable()) {
316
- // This condition is kinda unreachable, since we render videos as file attachment if the video
317
- // library is not installed. But doesn't hurt to have extra safeguard, in case of some customizations.
318
- openUrlSafely(thumbnail.url);
319
- } else {
320
- openImageViewer();
312
+ // If the url is defined then only try to open the file.
313
+ if (thumbnail.url) {
314
+ if (thumbnail.type === 'video' && !isVideoPackageAvailable()) {
315
+ // This condition is kinda unreachable, since we render videos as file attachment if the video
316
+ // library is not installed. But doesn't hurt to have extra safeguard, in case of some customizations.
317
+ openUrlSafely(thumbnail.url);
318
+ } else {
319
+ openImageViewer();
320
+ }
321
321
  }
322
322
  };
323
323
 
@@ -292,7 +292,7 @@ export const AttachmentPicker = React.forwardRef(
292
292
  * this is an issue if you are calling close on the bottom sheet.
293
293
  */
294
294
  const snapPoints = useMemo(
295
- () => [initialSnapPoint, finalSnapPoint],
295
+ () => [Math.max(0, initialSnapPoint), Math.max(0, finalSnapPoint)],
296
296
  [initialSnapPoint, finalSnapPoint],
297
297
  );
298
298
 
@@ -1,10 +1,32 @@
1
1
  import React from 'react';
2
- import { Button } from 'react-native';
2
+ import { Pressable, StyleSheet, Text } from 'react-native';
3
3
 
4
+ import { useTheme } from '../../../contexts/themeContext/ThemeContext';
4
5
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
5
6
  import { iOS14RefreshGallerySelection } from '../../../native';
6
7
 
7
8
  export const AttachmentPickerIOSSelectMorePhotos = () => {
8
9
  const { t } = useTranslationContext();
9
- return <Button onPress={iOS14RefreshGallerySelection} title={t('Select More Photos')} />;
10
+ const {
11
+ theme: {
12
+ colors: { accent_blue, white },
13
+ },
14
+ } = useTheme();
15
+ return (
16
+ <Pressable
17
+ onPress={iOS14RefreshGallerySelection}
18
+ style={[styles.container, { backgroundColor: white }]}
19
+ >
20
+ <Text style={[styles.text, { color: accent_blue }]}>{t('Select More Photos')}</Text>
21
+ </Pressable>
22
+ );
10
23
  };
24
+
25
+ const styles = StyleSheet.create({
26
+ container: {},
27
+ text: {
28
+ fontSize: 16,
29
+ paddingVertical: 10,
30
+ textAlign: 'center',
31
+ },
32
+ });
@@ -160,7 +160,12 @@ const ChatWithContext = <
160
160
  closeConnectionOnBackground,
161
161
  );
162
162
 
163
- const [initialisedDatabase, setInitialisedDatabase] = useState(false);
163
+ const [initialisedDatabaseConfig, setInitialisedDatabaseConfig] = useState<{
164
+ initialised: boolean;
165
+ userID?: string;
166
+ }>({
167
+ initialised: false,
168
+ });
164
169
 
165
170
  /**
166
171
  * Setup muted user listener
@@ -171,6 +176,8 @@ const ChatWithContext = <
171
176
  const debugRef = useDebugContext();
172
177
  const isDebugModeEnabled = __DEV__ && debugRef && debugRef.current;
173
178
 
179
+ const userID = client.userID;
180
+
174
181
  // Set the `resizableCDNHosts` as per the prop.
175
182
  StreamChatRN.setConfig({ resizableCDNHosts });
176
183
 
@@ -195,13 +202,16 @@ const ChatWithContext = <
195
202
  const setActiveChannel = (newChannel?: Channel<StreamChatGenerics>) => setChannel(newChannel);
196
203
 
197
204
  useEffect(() => {
198
- if (client.user?.id && enableOfflineSupport) {
199
- setInitialisedDatabase(false);
205
+ if (userID && enableOfflineSupport) {
206
+ setInitialisedDatabaseConfig({ initialised: false, userID });
200
207
  QuickSqliteClient.initializeDatabase();
201
208
  DBSyncManager.init(client as unknown as StreamChat);
202
- setInitialisedDatabase(true);
209
+ setInitialisedDatabaseConfig({ initialised: true, userID });
203
210
  }
204
- }, [client?.user?.id, enableOfflineSupport]);
211
+ }, [userID, enableOfflineSupport]);
212
+
213
+ const initialisedDatabase =
214
+ initialisedDatabaseConfig.initialised && userID === initialisedDatabaseConfig.userID;
205
215
 
206
216
  const appSettings = useAppSettings(client, isOnline, enableOfflineSupport, initialisedDatabase);
207
217
 
@@ -224,7 +234,8 @@ const ChatWithContext = <
224
234
  initialisedDatabase,
225
235
  });
226
236
 
227
- if (enableOfflineSupport && !initialisedDatabase) {
237
+ if (userID && enableOfflineSupport && !initialisedDatabase) {
238
+ // if user id has been set and offline support is enabled, we need to wait for database to be initialised
228
239
  return null;
229
240
  }
230
241
 
@@ -19,7 +19,9 @@ export const useAppSettings = <
19
19
  async function enforeAppSettings() {
20
20
  if (!client.userID) return;
21
21
 
22
- if (!isOnline && enableOfflineSupport && initialisedDatabase) {
22
+ if (enableOfflineSupport && !initialisedDatabase) return;
23
+
24
+ if (!isOnline && enableOfflineSupport) {
23
25
  const appSettings = dbApi.getAppSettings({ currentUserId: client.userID });
24
26
  setAppSettings(appSettings);
25
27
  return;
@@ -26,7 +26,7 @@ import Animated, {
26
26
  withTiming,
27
27
  } from 'react-native-reanimated';
28
28
 
29
- import { BottomSheetModal, BottomSheetModalProvider } from '@gorhom/bottom-sheet';
29
+ import { BottomSheetModal, BottomSheetModalProvider, BottomSheetProps } from '@gorhom/bottom-sheet';
30
30
 
31
31
  import type { UserResponse } from 'stream-chat';
32
32
 
@@ -132,6 +132,29 @@ type Props<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamC
132
132
  | 'autoPlayVideo'
133
133
  >;
134
134
 
135
+ type SnapPoints = BottomSheetProps['snapPoints'];
136
+
137
+ const normalizeSnapPoints = (input: SnapPoints): SnapPoints => {
138
+ const snapPoints = input ? ('value' in input ? input.value : input) : [];
139
+
140
+ return snapPoints.map((snapPoint) => {
141
+ if (typeof snapPoint === 'number') {
142
+ return Math.max(0, snapPoint);
143
+ } else {
144
+ const numericValue = Number(snapPoint.replace('%', ''));
145
+ const isPercentage = snapPoint.includes('%');
146
+
147
+ if (isNaN(numericValue)) {
148
+ return 0;
149
+ } else if (isPercentage) {
150
+ return `${Math.max(0, numericValue)}%`;
151
+ } else {
152
+ return Math.max(0, numericValue);
153
+ }
154
+ }
155
+ });
156
+ };
157
+
135
158
  export const ImageGallery = <
136
159
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
137
160
  >(
@@ -272,7 +295,7 @@ export const ImageGallery = <
272
295
  !attachment.title_link &&
273
296
  !attachment.og_scrape_url &&
274
297
  getUrlOfImageAttachment(attachment)) ||
275
- ((isVideoPackageAvailable() && attachment.type) === 'video' && attachment.thumb_url),
298
+ (isVideoPackageAvailable() && attachment.type === 'video'),
276
299
  )
277
300
  .reverse() || [];
278
301
 
@@ -685,7 +708,7 @@ export const ImageGallery = <
685
708
  index={0}
686
709
  onChange={(index: number) => setCurrentBottomSheetIndex(index)}
687
710
  ref={bottomSheetModalRef}
688
- snapPoints={imageGalleryGridSnapPoints || snapPoints}
711
+ snapPoints={normalizeSnapPoints(imageGalleryGridSnapPoints || snapPoints)}
689
712
  >
690
713
  <ImageGrid
691
714
  closeGridView={closeGridView}
@@ -21,14 +21,14 @@ const styles = StyleSheet.create({
21
21
  const LoadingIndicatorWrapper: React.FC<{ text: string }> = ({ text }) => {
22
22
  const {
23
23
  theme: {
24
- colors: { black },
24
+ colors: { black, white_snow },
25
25
  loadingIndicator: { container, loadingText },
26
26
  },
27
27
  } = useTheme();
28
28
 
29
29
  return (
30
- <View style={[styles.container, container]}>
31
- <Spinner />
30
+ <View style={[styles.container, { backgroundColor: white_snow }, container]}>
31
+ <Spinner height={20} width={20} />
32
32
  <Text style={[styles.loadingText, { color: black }, loadingText]} testID='loading'>
33
33
  {text}
34
34
  </Text>
@@ -35,7 +35,7 @@ const SendButtonWithContext = <
35
35
  return (
36
36
  <Pressable
37
37
  disabled={disabled}
38
- onPress={disabled ? () => null : () => sendMessage(undefined)}
38
+ onPress={disabled ? () => null : () => sendMessage()}
39
39
  style={[sendButton]}
40
40
  testID='send-button'
41
41
  >