stream-chat-react-native-core 5.23.0-beta.4 → 5.23.0
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.
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -11
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +51 -28
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +1 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/fr.json +62 -62
- package/lib/commonjs/i18n/hi.json +62 -62
- package/lib/commonjs/i18n/it.json +62 -62
- package/lib/commonjs/i18n/nl.json +62 -62
- package/lib/commonjs/i18n/ru.json +62 -62
- package/lib/commonjs/i18n/tr.json +62 -62
- package/lib/commonjs/utils/utils.js +2 -2
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -11
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +51 -28
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +1 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/fr.json +62 -62
- package/lib/module/i18n/hi.json +62 -62
- package/lib/module/i18n/it.json +62 -62
- package/lib/module/i18n/nl.json +62 -62
- package/lib/module/i18n/ru.json +62 -62
- package/lib/module/i18n/tr.json +62 -62
- package/lib/module/utils/utils.js +2 -2
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +1 -0
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/fr.json +62 -62
- package/lib/typescript/i18n/hi.json +62 -62
- package/lib/typescript/i18n/it.json +62 -62
- package/lib/typescript/i18n/nl.json +62 -62
- package/lib/typescript/i18n/ru.json +62 -62
- package/lib/typescript/i18n/tr.json +62 -62
- package/package.json +1 -1
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +0 -10
- package/src/components/MessageInput/MessageInput.tsx +33 -3
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +2 -0
- package/src/contexts/themeContext/utils/theme.ts +2 -0
- package/src/i18n/en.json +1 -1
- package/src/i18n/fr.json +62 -62
- package/src/i18n/hi.json +62 -62
- package/src/i18n/it.json +62 -62
- package/src/i18n/nl.json +62 -62
- package/src/i18n/ru.json +62 -62
- package/src/i18n/tr.json +62 -62
- package/src/utils/utils.ts +3 -2
- package/src/version.json +1 -1
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
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
|
-
"Block User": "",
|
|
9
|
-
"Cancel": "",
|
|
10
|
-
"Cannot Flag Message": "",
|
|
11
|
-
"Copy Message": "",
|
|
12
|
-
"Delete": "",
|
|
13
|
-
"Delete Message": "",
|
|
14
|
-
"Device camera is used to take photos or videos.": "",
|
|
15
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
16
|
-
"Edit Message": "",
|
|
17
|
-
"Editing Message": "",
|
|
18
|
-
"Emoji matching": "",
|
|
19
|
-
"Empty message...": "",
|
|
20
|
-
"Error loading": "",
|
|
21
|
-
"Error loading channel list...": "",
|
|
22
|
-
"Error loading messages for this channel...": "",
|
|
23
|
-
"Error while loading, please reload/refresh": "",
|
|
2
|
+
"1 Reply": "1 Ответ",
|
|
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
|
+
"Block User": "Заблокировать пользователя",
|
|
9
|
+
"Cancel": "Отмена",
|
|
10
|
+
"Cannot Flag Message": "Невозможно пожаловаться на сообщение",
|
|
11
|
+
"Copy Message": "Копировать сообщение",
|
|
12
|
+
"Delete": "удалять",
|
|
13
|
+
"Delete Message": "Удалить сообщение",
|
|
14
|
+
"Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
|
|
15
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
|
|
16
|
+
"Edit Message": "Редактировать сообщение",
|
|
17
|
+
"Editing Message": "Редактирование сообщения",
|
|
18
|
+
"Emoji matching": "Соответствие эмодзи",
|
|
19
|
+
"Empty message...": "Пустое сообщение...",
|
|
20
|
+
"Error loading": "Ошибка при загрузке",
|
|
21
|
+
"Error loading channel list...": "Ошибка загрузки списка каналов...",
|
|
22
|
+
"Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
|
|
23
|
+
"Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
|
|
24
24
|
"File type not supported": "Тип файла не поддерживается",
|
|
25
|
-
"Flag": "",
|
|
26
|
-
"Flag Message": "",
|
|
27
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
28
|
-
"How about sending your first message to a friend?": "",
|
|
29
|
-
"Instant Commands": "",
|
|
30
|
-
"Let's start chatting!": "",
|
|
31
|
-
"Links are disabled": "",
|
|
25
|
+
"Flag": "Пометить",
|
|
26
|
+
"Flag Message": "Пометить сообщение",
|
|
27
|
+
"Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
|
|
28
|
+
"How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
|
|
29
|
+
"Instant Commands": "Мгновенные Команды",
|
|
30
|
+
"Let's start chatting!": "Давайте начнем общаться!",
|
|
31
|
+
"Links are disabled": "Ссылки отключены",
|
|
32
32
|
"Loading channels...": "Загружаю каналы...",
|
|
33
33
|
"Loading messages...": "Загружаю сообщения...",
|
|
34
34
|
"Loading...": "Загружаю...",
|
|
35
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
35
|
+
"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}} МБ.",
|
|
36
36
|
"Message Reactions": "Сообщения Реакции",
|
|
37
|
-
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
40
|
-
"Not supported": "",
|
|
41
|
-
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
43
|
-
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "",
|
|
37
|
+
"Message deleted": "Сообщение удалено",
|
|
38
|
+
"Message flagged": "Сообщение отмечено",
|
|
39
|
+
"Mute User": "Отключить пользователя",
|
|
40
|
+
"Not supported": "не поддерживается",
|
|
41
|
+
"Nothing yet...": "Пока ничего нет...",
|
|
42
|
+
"Ok": "Oк",
|
|
43
|
+
"Only visible to you": "Видно только вам",
|
|
44
|
+
"Open Settings": "Открыть настройки",
|
|
45
45
|
"Photo": "Фото",
|
|
46
|
-
"Photos and Videos": "",
|
|
47
|
-
"Pin to Conversation": "",
|
|
48
|
-
"Pinned by": "",
|
|
49
|
-
"Please enable access to your photos and videos so you can share them.": "",
|
|
46
|
+
"Photos and Videos": "Фото и видео",
|
|
47
|
+
"Pin to Conversation": "Закрепить к беседе",
|
|
48
|
+
"Pinned by": "Закреплено пользователем",
|
|
49
|
+
"Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
|
|
50
50
|
"Please select a channel first": "Пожалуйста, сначала выберите канал",
|
|
51
|
-
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
53
|
-
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
51
|
+
"Reconnecting...": "Переподключение...",
|
|
52
|
+
"Reply": "Ответить",
|
|
53
|
+
"Reply to Message": "Ответить на сообщение",
|
|
54
|
+
"Resend": "Отправить",
|
|
55
55
|
"Search GIFs": "Поиск GIF",
|
|
56
|
-
"Select More Photos": "",
|
|
56
|
+
"Select More Photos": "Выбрать больше фотографий",
|
|
57
57
|
"Send a message": "Отправить сообщение",
|
|
58
|
-
"Sending links is not allowed in this conversation": "",
|
|
58
|
+
"Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
|
|
59
59
|
"Slow mode ON": "Медленный режим включен",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
63
|
-
"Unknown User": "",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
60
|
+
"The message has been reported to a moderator.": "Сообщение отправлено модератору.",
|
|
61
|
+
"Thread Reply": "Тема Ответить",
|
|
62
|
+
"Unblock User": "Разблокировать пользователя",
|
|
63
|
+
"Unknown User": "Неизвестный пользователь",
|
|
64
|
+
"Unmute User": "Включить микрофон",
|
|
65
|
+
"Unpin from Conversation": "Открепить от беседы",
|
|
66
66
|
"Unread Messages": "Непрочитанные Сообщения",
|
|
67
67
|
"Video": "видео",
|
|
68
|
-
"You": "",
|
|
69
|
-
"You can't send messages in this channel": "",
|
|
70
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
-
"{{ replyCount }} Replies": "",
|
|
73
|
-
"{{ replyCount }} Thread Replies": "",
|
|
74
|
-
"{{ user }} is typing": "",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
68
|
+
"You": "Вы",
|
|
69
|
+
"You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
|
|
72
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Ответов",
|
|
73
|
+
"{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
|
|
74
|
+
"{{ user }} is typing": "{{ user }} пишет",
|
|
75
|
+
"🏙 Attachment...": "🏙 Вложение..."
|
|
76
76
|
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
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
|
-
"Block User": "",
|
|
9
|
-
"Cancel": "",
|
|
10
|
-
"Cannot Flag Message": "",
|
|
11
|
-
"Copy Message": "",
|
|
12
|
-
"Delete": "",
|
|
13
|
-
"Delete Message": "",
|
|
14
|
-
"Device camera is used to take photos or videos.": "",
|
|
15
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
16
|
-
"Edit Message": "",
|
|
17
|
-
"Editing Message": "",
|
|
18
|
-
"Emoji matching": "",
|
|
19
|
-
"Empty message...": "",
|
|
20
|
-
"Error loading": "",
|
|
21
|
-
"Error loading channel list...": "",
|
|
22
|
-
"Error loading messages for this channel...": "",
|
|
23
|
-
"Error while loading, please reload/refresh": "",
|
|
2
|
+
"1 Reply": "1 Cevap",
|
|
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
|
+
"Block User": "Kullanıcıyı engelle",
|
|
9
|
+
"Cancel": "İptal",
|
|
10
|
+
"Cannot Flag Message": "Raporlama Başarısız",
|
|
11
|
+
"Copy Message": "Mesajı Kopyala",
|
|
12
|
+
"Delete": "Sil",
|
|
13
|
+
"Delete Message": "Mesajı Sil",
|
|
14
|
+
"Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
|
|
15
|
+
"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?",
|
|
16
|
+
"Edit Message": "Mesajı Düzenle",
|
|
17
|
+
"Editing Message": "Mesaj Düzenleniyor",
|
|
18
|
+
"Emoji matching": "Emoji eşleştirme",
|
|
19
|
+
"Empty message...": "Boş mesaj...",
|
|
20
|
+
"Error loading": "Yükleme hatası",
|
|
21
|
+
"Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
|
|
22
|
+
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
23
|
+
"Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
|
|
24
24
|
"File type not supported": "Dosya türü desteklenmiyor",
|
|
25
|
-
"Flag": "",
|
|
26
|
-
"Flag Message": "",
|
|
27
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
28
|
-
"How about sending your first message to a friend?": "",
|
|
29
|
-
"Instant Commands": "",
|
|
30
|
-
"Let's start chatting!": "",
|
|
31
|
-
"Links are disabled": "",
|
|
25
|
+
"Flag": "Raporla",
|
|
26
|
+
"Flag Message": "Mesajı Raporla",
|
|
27
|
+
"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.",
|
|
28
|
+
"How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
|
|
29
|
+
"Instant Commands": "Anlık Komutlar",
|
|
30
|
+
"Let's start chatting!": "Haydi sohbete başlayalım!",
|
|
31
|
+
"Links are disabled": "Bağlantılar devre dışı",
|
|
32
32
|
"Loading channels...": "Kanallar yükleniyor...",
|
|
33
33
|
"Loading messages...": "Mesajlar yükleniyor...",
|
|
34
34
|
"Loading...": "Yükleniyor...",
|
|
35
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
35
|
+
"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.",
|
|
36
36
|
"Message Reactions": "Mesaj Tepkileri",
|
|
37
|
-
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
40
|
-
"Not supported": "",
|
|
41
|
-
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
43
|
-
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "",
|
|
37
|
+
"Message deleted": "Mesaj silindi",
|
|
38
|
+
"Message flagged": "Mesaj işaretlendi",
|
|
39
|
+
"Mute User": "Kullanıcıyı sessize al",
|
|
40
|
+
"Not supported": "Desteklenmiyor",
|
|
41
|
+
"Nothing yet...": "Henüz değil...",
|
|
42
|
+
"Ok": "Tamam",
|
|
43
|
+
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
44
|
+
"Open Settings": "Ayarları aç",
|
|
45
45
|
"Photo": "Fotoğraf",
|
|
46
|
-
"Photos and Videos": "",
|
|
47
|
-
"Pin to Conversation": "",
|
|
48
|
-
"Pinned by": "",
|
|
49
|
-
"Please enable access to your photos and videos so you can share them.": "",
|
|
46
|
+
"Photos and Videos": "Fotoğraflar ve Videolar",
|
|
47
|
+
"Pin to Conversation": "Konuşmaya sabitle",
|
|
48
|
+
"Pinned by": "Tarafından sabitlendi",
|
|
49
|
+
"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.",
|
|
50
50
|
"Please select a channel first": "Lütfen önce bir kanal seçiniz",
|
|
51
|
-
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
53
|
-
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
51
|
+
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
52
|
+
"Reply": "Yanıtla",
|
|
53
|
+
"Reply to Message": "Mesajı Yanıtla",
|
|
54
|
+
"Resend": "Yeniden gönder",
|
|
55
55
|
"Search GIFs": "GIF Ara",
|
|
56
|
-
"Select More Photos": "",
|
|
56
|
+
"Select More Photos": "Daha Fazla Fotoğraf Seçin",
|
|
57
57
|
"Send a message": "Mesaj gönder",
|
|
58
|
-
"Sending links is not allowed in this conversation": "",
|
|
58
|
+
"Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
|
|
59
59
|
"Slow mode ON": "Yavaş Mod Açık",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
63
|
-
"Unknown User": "",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
60
|
+
"The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
|
|
61
|
+
"Thread Reply": "Konu Yanıtı",
|
|
62
|
+
"Unblock User": "Kullanıcının engelini kaldır",
|
|
63
|
+
"Unknown User": "Bilinmeyen kullanıcı",
|
|
64
|
+
"Unmute User": "Kullanıcının sesini aç",
|
|
65
|
+
"Unpin from Conversation": "Sabitlemeyi kaldır",
|
|
66
66
|
"Unread Messages": "Okunmamış Mesajlar",
|
|
67
67
|
"Video": "Video",
|
|
68
|
-
"You": "",
|
|
69
|
-
"You can't send messages in this channel": "",
|
|
70
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
-
"{{ replyCount }} Replies": "",
|
|
73
|
-
"{{ replyCount }} Thread Replies": "",
|
|
74
|
-
"{{ user }} is typing": "",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
68
|
+
"You": "Sen",
|
|
69
|
+
"You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
|
|
72
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Cevap",
|
|
73
|
+
"{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
|
|
74
|
+
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
75
|
+
"🏙 Attachment...": "🏙 Ek..."
|
|
76
76
|
}
|
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.23.0
|
|
4
|
+
"version": "5.23.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -63,7 +63,6 @@ type AutoCompleteInputPropsWithContext<
|
|
|
63
63
|
| 'onChange'
|
|
64
64
|
| 'setGiphyActive'
|
|
65
65
|
| 'setInputBoxRef'
|
|
66
|
-
| 'setShowMoreOptions'
|
|
67
66
|
| 'text'
|
|
68
67
|
| 'triggerSettings'
|
|
69
68
|
> &
|
|
@@ -103,7 +102,6 @@ const AutoCompleteInputWithContext = <
|
|
|
103
102
|
openSuggestions,
|
|
104
103
|
setGiphyActive,
|
|
105
104
|
setInputBoxRef,
|
|
106
|
-
setShowMoreOptions,
|
|
107
105
|
t,
|
|
108
106
|
text,
|
|
109
107
|
triggerSettings,
|
|
@@ -425,12 +423,6 @@ const AutoCompleteInputWithContext = <
|
|
|
425
423
|
testID='auto-complete-text-input'
|
|
426
424
|
value={text}
|
|
427
425
|
{...additionalTextInputProps}
|
|
428
|
-
onBlur={(event) => {
|
|
429
|
-
if (additionalTextInputProps?.onBlur) {
|
|
430
|
-
additionalTextInputProps?.onBlur(event);
|
|
431
|
-
}
|
|
432
|
-
setShowMoreOptions(true);
|
|
433
|
-
}}
|
|
434
426
|
/>
|
|
435
427
|
);
|
|
436
428
|
};
|
|
@@ -489,7 +481,6 @@ export const AutoCompleteInput = <
|
|
|
489
481
|
onChange,
|
|
490
482
|
setGiphyActive,
|
|
491
483
|
setInputBoxRef,
|
|
492
|
-
setShowMoreOptions,
|
|
493
484
|
text,
|
|
494
485
|
triggerSettings,
|
|
495
486
|
} = useMessageInputContext<StreamChatGenerics>();
|
|
@@ -513,7 +504,6 @@ export const AutoCompleteInput = <
|
|
|
513
504
|
openSuggestions,
|
|
514
505
|
setGiphyActive,
|
|
515
506
|
setInputBoxRef,
|
|
516
|
-
setShowMoreOptions,
|
|
517
507
|
t,
|
|
518
508
|
text,
|
|
519
509
|
triggerSettings,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Alert,
|
|
4
|
+
NativeSyntheticEvent,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
TextInputFocusEventData,
|
|
7
|
+
View,
|
|
8
|
+
} from 'react-native';
|
|
3
9
|
|
|
4
10
|
import type { UserResponse } from 'stream-chat';
|
|
5
11
|
|
|
@@ -175,6 +181,7 @@ const MessageInputWithContext = <
|
|
|
175
181
|
SendButton,
|
|
176
182
|
sending,
|
|
177
183
|
sendMessageAsync,
|
|
184
|
+
setShowMoreOptions,
|
|
178
185
|
ShowThreadMessageInChannelButton,
|
|
179
186
|
suggestions,
|
|
180
187
|
thread,
|
|
@@ -196,6 +203,7 @@ const MessageInputWithContext = <
|
|
|
196
203
|
autoCompleteInputContainer,
|
|
197
204
|
composerContainer,
|
|
198
205
|
container,
|
|
206
|
+
focusedInputBoxContainer,
|
|
199
207
|
inputBoxContainer,
|
|
200
208
|
optionsContainer,
|
|
201
209
|
replyContainer,
|
|
@@ -234,6 +242,7 @@ const MessageInputWithContext = <
|
|
|
234
242
|
|
|
235
243
|
const [hasResetImages, setHasResetImages] = useState(false);
|
|
236
244
|
const [hasResetFiles, setHasResetFiles] = useState(false);
|
|
245
|
+
const [focused, setFocused] = useState(false);
|
|
237
246
|
const selectedImagesLength = hasResetImages ? selectedImages.length : 0;
|
|
238
247
|
const imageUploadsLength = hasResetImages ? imageUploads.length : 0;
|
|
239
248
|
const selectedFilesLength = hasResetFiles ? selectedFiles.length : 0;
|
|
@@ -513,6 +522,26 @@ const MessageInputWithContext = <
|
|
|
513
522
|
...additionalTextInputProps,
|
|
514
523
|
};
|
|
515
524
|
|
|
525
|
+
const memoizedAdditionalTextInputProps = useMemo(
|
|
526
|
+
() => ({
|
|
527
|
+
...additionalTextInputProps,
|
|
528
|
+
onBlur: (event: NativeSyntheticEvent<TextInputFocusEventData>) => {
|
|
529
|
+
if (additionalTextInputProps?.onBlur) {
|
|
530
|
+
additionalTextInputProps?.onBlur(event);
|
|
531
|
+
}
|
|
532
|
+
if (setFocused) setFocused(false);
|
|
533
|
+
setShowMoreOptions(true);
|
|
534
|
+
},
|
|
535
|
+
onFocus: (event: NativeSyntheticEvent<TextInputFocusEventData>) => {
|
|
536
|
+
if (additionalTextInputProps?.onFocus) {
|
|
537
|
+
additionalTextInputProps.onFocus(event);
|
|
538
|
+
}
|
|
539
|
+
if (setFocused) setFocused(true);
|
|
540
|
+
},
|
|
541
|
+
}),
|
|
542
|
+
[additionalTextInputProps],
|
|
543
|
+
);
|
|
544
|
+
|
|
516
545
|
return (
|
|
517
546
|
<>
|
|
518
547
|
<View
|
|
@@ -544,6 +573,7 @@ const MessageInputWithContext = <
|
|
|
544
573
|
paddingVertical: giphyActive ? 8 : 12,
|
|
545
574
|
},
|
|
546
575
|
inputBoxContainer,
|
|
576
|
+
focused ? focusedInputBoxContainer : null,
|
|
547
577
|
]}
|
|
548
578
|
>
|
|
549
579
|
{((typeof editing !== 'boolean' && editing?.quoted_message) || quotedMessage) && (
|
|
@@ -569,7 +599,7 @@ const MessageInputWithContext = <
|
|
|
569
599
|
) : (
|
|
570
600
|
<View style={[styles.autoCompleteInputContainer, autoCompleteInputContainer]}>
|
|
571
601
|
<AutoCompleteInput<StreamChatGenerics>
|
|
572
|
-
additionalTextInputProps={
|
|
602
|
+
additionalTextInputProps={memoizedAdditionalTextInputProps}
|
|
573
603
|
cooldownActive={!!cooldownRemainingSeconds}
|
|
574
604
|
/>
|
|
575
605
|
</View>
|
|
@@ -1580,6 +1580,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
1580
1580
|
"paddingVertical": 12,
|
|
1581
1581
|
},
|
|
1582
1582
|
Object {},
|
|
1583
|
+
null,
|
|
1583
1584
|
]
|
|
1584
1585
|
}
|
|
1585
1586
|
>
|
|
@@ -1604,6 +1605,7 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
1604
1605
|
onBlur={[Function]}
|
|
1605
1606
|
onChangeText={[Function]}
|
|
1606
1607
|
onContentSizeChange={[Function]}
|
|
1608
|
+
onFocus={[Function]}
|
|
1607
1609
|
onSelectionChange={[Function]}
|
|
1608
1610
|
placeholder="Send a message"
|
|
1609
1611
|
placeholderTextColor="#7A7A7A"
|
|
@@ -261,6 +261,7 @@ export type Theme = {
|
|
|
261
261
|
fileTextContainer: ViewStyle;
|
|
262
262
|
flatList: ViewStyle;
|
|
263
263
|
};
|
|
264
|
+
focusedInputBoxContainer: ViewStyle;
|
|
264
265
|
giphyCommandInput: {
|
|
265
266
|
giphyContainer: ViewStyle;
|
|
266
267
|
giphyText: TextStyle;
|
|
@@ -766,6 +767,7 @@ export const defaultTheme: Theme = {
|
|
|
766
767
|
fileTextContainer: {},
|
|
767
768
|
flatList: {},
|
|
768
769
|
},
|
|
770
|
+
focusedInputBoxContainer: {},
|
|
769
771
|
giphyCommandInput: {
|
|
770
772
|
giphyContainer: {},
|
|
771
773
|
giphyText: {},
|
package/src/i18n/en.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"File type not supported": "File type not supported",
|
|
25
25
|
"Flag": "Flag",
|
|
26
26
|
"Flag Message": "Flag Message",
|
|
27
|
-
"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",
|
|
27
|
+
"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.",
|
|
28
28
|
"How about sending your first message to a friend?": "How about sending your first message to a friend?",
|
|
29
29
|
"Instant Commands": "Instant Commands",
|
|
30
30
|
"Let's start chatting!": "Let's start chatting!",
|
package/src/i18n/fr.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
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
|
-
"Block User": "",
|
|
9
|
-
"Cancel": "",
|
|
10
|
-
"Cannot Flag Message": "",
|
|
11
|
-
"Copy Message": "",
|
|
12
|
-
"Delete": "",
|
|
13
|
-
"Delete Message": "",
|
|
14
|
-
"Device camera is used to take photos or videos.": "",
|
|
15
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
16
|
-
"Edit Message": "",
|
|
17
|
-
"Editing Message": "",
|
|
18
|
-
"Emoji matching": "",
|
|
19
|
-
"Empty message...": "",
|
|
20
|
-
"Error loading": "",
|
|
21
|
-
"Error loading channel list...": "",
|
|
22
|
-
"Error loading messages for this channel...": "",
|
|
23
|
-
"Error while loading, please reload/refresh": "",
|
|
2
|
+
"1 Reply": "1 Réponse",
|
|
3
|
+
"1 Thread Reply": "Réponse à 1 fil",
|
|
4
|
+
"Allow access to your Gallery": "Autoriser l'accès à votre galerie",
|
|
5
|
+
"Allow camera access in device settings": "Autoriser l'accès à la caméra dans les paramètres de l'appareil",
|
|
6
|
+
"Also send to channel": "Envoyer également à la chaîne",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "Êtes-vous sûr de vouloir supprimer définitivement ce message?",
|
|
8
|
+
"Block User": "Bloquer un utilisateur",
|
|
9
|
+
"Cancel": "Annuler",
|
|
10
|
+
"Cannot Flag Message": "Impossible de signaler le message",
|
|
11
|
+
"Copy Message": "Copier le message",
|
|
12
|
+
"Delete": "Supprimer",
|
|
13
|
+
"Delete Message": "Supprimer un message",
|
|
14
|
+
"Device camera is used to take photos or videos.": "L'appareil photo de l'appareil est utilisé pour prendre des photos ou des vidéos.",
|
|
15
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Voulez-vous envoyer une copie de ce message à un modérateur pour une enquête plus approfondie?",
|
|
16
|
+
"Edit Message": "Éditer un message",
|
|
17
|
+
"Editing Message": "Édite un message",
|
|
18
|
+
"Emoji matching": "Correspondance Emoji",
|
|
19
|
+
"Empty message...": "Message vide...",
|
|
20
|
+
"Error loading": "Erreur lors du chargement",
|
|
21
|
+
"Error loading channel list...": "Erreur lors du chargement de la liste de canaux...",
|
|
22
|
+
"Error loading messages for this channel...": "Erreur lors du chargement des messages de ce canal...",
|
|
23
|
+
"Error while loading, please reload/refresh": "Erreur lors du chargement, veuillez recharger/rafraîchir",
|
|
24
24
|
"File type not supported": "Le type de fichier n'est pas pris en charge",
|
|
25
|
-
"Flag": "",
|
|
26
|
-
"Flag Message": "",
|
|
27
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
28
|
-
"How about sending your first message to a friend?": "",
|
|
29
|
-
"Instant Commands": "",
|
|
30
|
-
"Let's start chatting!": "",
|
|
31
|
-
"Links are disabled": "",
|
|
25
|
+
"Flag": "Signaler",
|
|
26
|
+
"Flag Message": "Signaler le message",
|
|
27
|
+
"Flag action failed either due to a network issue or the message is already flagged": "L'action de signalisation a échoué en raison d'un problème de réseau ou le message est déjà signalé.",
|
|
28
|
+
"How about sending your first message to a friend?": "Et si vous envoyiez votre premier message à un ami ?",
|
|
29
|
+
"Instant Commands": "Commandes Instantanées",
|
|
30
|
+
"Let's start chatting!": "Commençons à discuter !",
|
|
31
|
+
"Links are disabled": "Links are disabled",
|
|
32
32
|
"Loading channels...": "Chargement des canaux...",
|
|
33
33
|
"Loading messages...": "Chargement des messages...",
|
|
34
34
|
"Loading...": "Chargement...",
|
|
35
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
35
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Taille maximale de téléchargement de fichier atteinte. Veuillez télécharger un fichier inférieur à {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} Mo.",
|
|
36
36
|
"Message Reactions": "Réactions aux messages",
|
|
37
|
-
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
40
|
-
"Not supported": "",
|
|
41
|
-
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
43
|
-
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "",
|
|
37
|
+
"Message deleted": "Message supprimé",
|
|
38
|
+
"Message flagged": "Message signalé",
|
|
39
|
+
"Mute User": "Utilisateur muet",
|
|
40
|
+
"Not supported": "Non pris en charge",
|
|
41
|
+
"Nothing yet...": "Aucun message...",
|
|
42
|
+
"Ok": "Ok",
|
|
43
|
+
"Only visible to you": "Seulement visible par vous",
|
|
44
|
+
"Open Settings": "Ouvrir les paramètres",
|
|
45
45
|
"Photo": "Photo",
|
|
46
|
-
"Photos and Videos": "",
|
|
47
|
-
"Pin to Conversation": "",
|
|
48
|
-
"Pinned by": "",
|
|
49
|
-
"Please enable access to your photos and videos so you can share them.": "",
|
|
46
|
+
"Photos and Videos": "Photos et vidéos",
|
|
47
|
+
"Pin to Conversation": "Épingler à la conversation",
|
|
48
|
+
"Pinned by": "Épinglé par",
|
|
49
|
+
"Please enable access to your photos and videos so you can share them.": "Veuillez autoriser l'accès à vos photos et vidéos afin de pouvoir les partager.",
|
|
50
50
|
"Please select a channel first": "Veuillez d'abord selectionnez un canal",
|
|
51
|
-
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
53
|
-
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
51
|
+
"Reconnecting...": "Se Reconnecter...",
|
|
52
|
+
"Reply": "Répondre",
|
|
53
|
+
"Reply to Message": "Répondre au message",
|
|
54
|
+
"Resend": "Renvoyer",
|
|
55
55
|
"Search GIFs": "Rechercher des GIF",
|
|
56
|
-
"Select More Photos": "",
|
|
56
|
+
"Select More Photos": "Sélectionner plus de photos",
|
|
57
57
|
"Send a message": "Envoyer un message",
|
|
58
|
-
"Sending links is not allowed in this conversation": "",
|
|
58
|
+
"Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
|
|
59
59
|
"Slow mode ON": "Mode lent activé",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
63
|
-
"Unknown User": "",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
60
|
+
"The message has been reported to a moderator.": "Le message a été signalé à un modérateur.",
|
|
61
|
+
"Thread Reply": "Réponse à la discussion",
|
|
62
|
+
"Unblock User": "Débloquer Utilisateur",
|
|
63
|
+
"Unknown User": "Utilisateur inconnu",
|
|
64
|
+
"Unmute User": "Activer le son de Utilisateur",
|
|
65
|
+
"Unpin from Conversation": "Décrocher de la conversation",
|
|
66
66
|
"Unread Messages": "Messages non lus",
|
|
67
67
|
"Video": "Vidéo",
|
|
68
|
-
"You": "",
|
|
69
|
-
"You can't send messages in this channel": "",
|
|
70
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
-
"{{ replyCount }} Replies": "",
|
|
73
|
-
"{{ replyCount }} Thread Replies": "",
|
|
74
|
-
"{{ user }} is typing": "",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
68
|
+
"You": "Toi",
|
|
69
|
+
"You can't send messages in this channel": "You can't send messages in this channel",
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} et {{ nonSelfUserLength }} autres sont en train d'écrire",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} sur {{ photoLength }}",
|
|
72
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Réponses",
|
|
73
|
+
"{{ replyCount }} Thread Replies": "{{replyCount}} Réponses à la discussion",
|
|
74
|
+
"{{ user }} is typing": "{{ user }} est en train d'écrire",
|
|
75
|
+
"🏙 Attachment...": "🏙 Pièce jointe..."
|
|
76
76
|
}
|