stream-chat-react-native-core 5.22.0-beta.9 → 5.22.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/Attachment/AudioAttachment.js +12 -12
- package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +65 -46
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +19 -19
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +13 -13
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +61 -40
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -2
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/fr.json +50 -50
- package/lib/commonjs/i18n/hi.json +50 -50
- package/lib/commonjs/i18n/it.json +50 -50
- package/lib/commonjs/i18n/nl.json +50 -50
- package/lib/commonjs/i18n/ru.json +50 -50
- package/lib/commonjs/i18n/tr.json +50 -50
- package/lib/commonjs/types/types.js.map +1 -1
- package/lib/commonjs/utils/compressImage.js +37 -0
- package/lib/commonjs/utils/compressImage.js.map +1 -0
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/AudioAttachment.js +12 -12
- package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +65 -46
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +19 -19
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js +13 -13
- package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +61 -40
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -2
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/fr.json +50 -50
- package/lib/module/i18n/hi.json +50 -50
- package/lib/module/i18n/it.json +50 -50
- package/lib/module/i18n/nl.json +50 -50
- package/lib/module/i18n/ru.json +50 -50
- package/lib/module/i18n/tr.json +50 -50
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/utils/compressImage.js +37 -0
- package/lib/module/utils/compressImage.js.map +1 -0
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +5 -0
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +3 -23
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +2 -2
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +2 -2
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/fr.json +50 -50
- package/lib/typescript/i18n/hi.json +50 -50
- package/lib/typescript/i18n/it.json +50 -50
- package/lib/typescript/i18n/nl.json +50 -50
- package/lib/typescript/i18n/ru.json +50 -50
- package/lib/typescript/i18n/tr.json +50 -50
- package/lib/typescript/types/types.d.ts +20 -0
- package/lib/typescript/utils/compressImage.d.ts +8 -0
- package/package.json +1 -1
- package/src/components/Attachment/AudioAttachment.tsx +2 -1
- package/src/components/Channel/Channel.tsx +32 -8
- package/src/components/Channel/hooks/useCreateChannelContext.ts +2 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -9
- package/src/components/MessageInput/FileUploadPreview.tsx +1 -2
- package/src/components/MessageInput/ImageUploadPreview.tsx +1 -2
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +1 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +1 -1
- package/src/contexts/channelContext/ChannelContext.tsx +5 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +80 -68
- package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +3 -3
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -2
- package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +2 -2
- package/src/contexts/messagesContext/MessagesContext.tsx +2 -2
- package/src/i18n/en.json +1 -1
- package/src/i18n/fr.json +50 -50
- package/src/i18n/hi.json +50 -50
- package/src/i18n/it.json +50 -50
- package/src/i18n/nl.json +50 -50
- package/src/i18n/ru.json +50 -50
- package/src/i18n/tr.json +50 -50
- package/src/types/types.ts +23 -0
- package/src/utils/compressImage.ts +32 -0
- package/src/version.json +1 -1
package/lib/module/i18n/nl.json
CHANGED
|
@@ -3,74 +3,74 @@
|
|
|
3
3
|
"1 Thread Reply": "1 thread antwoord",
|
|
4
4
|
"Allow access to your Gallery": "Geef toegang tot uw galerij",
|
|
5
5
|
"Allow camera access in device settings": "Sta cameratoegang toe in de apparaatinstellingen",
|
|
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": "",
|
|
6
|
+
"Also send to channel": "Stuur ook naar kanaal",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "Weet u zeker dat u dit bericht definitief wilt verwijderen?",
|
|
8
|
+
"Block User": "Blokkeer Gebruiker",
|
|
9
|
+
"Cancel": "Annuleer",
|
|
10
|
+
"Cannot Flag Message": "Kan bericht niet rapporteren",
|
|
11
|
+
"Copy Message": "Bericht kopiëren",
|
|
12
|
+
"Delete": "Verwijderen",
|
|
13
|
+
"Delete Message": "Verwijder bericht",
|
|
14
14
|
"Device camera is used to take photos or videos.": "De camera van het apparaat wordt gebruikt om foto's of video's te maken.",
|
|
15
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
16
|
-
"Edit Message": "",
|
|
17
|
-
"Editing Message": "",
|
|
15
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Wil je een kopie van dit bericht naar een moderator sturen voor verder onderzoek?",
|
|
16
|
+
"Edit Message": "Pas bericht aan",
|
|
17
|
+
"Editing Message": "Bericht aanpassen",
|
|
18
18
|
"Emoji matching": "Emoji-overeenkomsten",
|
|
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
|
-
"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?": "",
|
|
19
|
+
"Empty message...": "Leeg bericht...",
|
|
20
|
+
"Error loading": "Probleem bij het laden",
|
|
21
|
+
"Error loading channel list...": "Probleem bij het laden van de kanalen...",
|
|
22
|
+
"Error loading messages for this channel...": "Probleem bij het laden van de berichten in dit kanaal...",
|
|
23
|
+
"Error while loading, please reload/refresh": "Probleem bij het laden, probeer opnieuw",
|
|
24
|
+
"File type not supported": "Bestandstype niet ondersteund",
|
|
25
|
+
"Flag": "Markeer",
|
|
26
|
+
"Flag Message": "Markeer bericht",
|
|
27
|
+
"Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
|
|
28
|
+
"How about sending your first message to a friend?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
|
|
29
29
|
"Instant Commands": "Directe Opdrachten",
|
|
30
|
-
"Let's start chatting!": "",
|
|
30
|
+
"Let's start chatting!": "Laten we beginnen met chatten!",
|
|
31
31
|
"Links are disabled": "Het versturen van links staat uit",
|
|
32
|
-
"Loading channels...": "",
|
|
33
|
-
"Loading messages...": "",
|
|
34
|
-
"Loading...": "",
|
|
32
|
+
"Loading channels...": "Kanalen aan het laden...",
|
|
33
|
+
"Loading messages...": "Berichten aan het laden...",
|
|
34
|
+
"Loading...": "Aan het laden...",
|
|
35
35
|
"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.",
|
|
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": "",
|
|
36
|
+
"Message Reactions": "Bericht Reacties",
|
|
37
|
+
"Message deleted": "Bericht verwijderd",
|
|
38
|
+
"Message flagged": "Bericht gemarkeerd",
|
|
39
|
+
"Mute User": "Gebruiker dempen",
|
|
40
|
+
"Not supported": "niet ondersteund",
|
|
41
|
+
"Nothing yet...": "Nog niets...",
|
|
42
|
+
"Ok": "Oké",
|
|
43
|
+
"Only visible to you": "Alleen zichtbaar voor jou",
|
|
44
44
|
"Open Settings": "Open instellingen",
|
|
45
45
|
"Photo": "Foto",
|
|
46
46
|
"Photos and Videos": "Foto's en video's",
|
|
47
|
-
"Pin to Conversation": "",
|
|
48
|
-
"Pinned by": "",
|
|
47
|
+
"Pin to Conversation": "Vastmaken aan gesprek",
|
|
48
|
+
"Pinned by": "Vastgemaakt door",
|
|
49
49
|
"Please enable access to your photos and videos so you can share them.": "Schakel toegang tot uw foto's en video's in zodat u ze kunt delen.",
|
|
50
50
|
"Please select a channel first": "Selecteer eerst een kanaal",
|
|
51
|
-
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
53
|
-
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
55
|
-
"Search GIFs": "",
|
|
51
|
+
"Reconnecting...": "Opnieuw Verbinding Maken...",
|
|
52
|
+
"Reply": "Antwoord",
|
|
53
|
+
"Reply to Message": "Beantwoord bericht",
|
|
54
|
+
"Resend": "Opnieuw versturen",
|
|
55
|
+
"Search GIFs": "Zoek GIF's",
|
|
56
56
|
"Select More Photos": "Selecteer Meer foto's",
|
|
57
|
-
"Send a message": "",
|
|
57
|
+
"Send a message": "Stuur een bericht",
|
|
58
58
|
"Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
|
|
59
|
-
"Slow mode ON": "",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
59
|
+
"Slow mode ON": "Langzame modus aan",
|
|
60
|
+
"The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
|
|
61
|
+
"Thread Reply": "Discussie beantwoorden",
|
|
62
|
+
"Unblock User": "Deblokkeer gebruiker",
|
|
63
63
|
"Unknown User": "Onbekende gebruiker",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
64
|
+
"Unmute User": "Dempen van gebruiker opheffen",
|
|
65
|
+
"Unpin from Conversation": "Losmaken van gesprek",
|
|
66
66
|
"Unread Messages": "Ongelezen Berichten",
|
|
67
67
|
"Video": "Video",
|
|
68
|
-
"You": "",
|
|
69
|
-
"You can't send messages in this channel": "",
|
|
68
|
+
"You": "U",
|
|
69
|
+
"You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
|
|
70
70
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
|
|
71
71
|
"{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
|
|
72
72
|
"{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
|
|
73
73
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Discussiereacties",
|
|
74
74
|
"{{ user }} is typing": "{{ user }} is aan het typen",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
75
|
+
"🏙 Attachment...": "🏙 Bijlage..."
|
|
76
76
|
}
|
package/lib/module/i18n/ru.json
CHANGED
|
@@ -3,74 +3,74 @@
|
|
|
3
3
|
"1 Thread Reply": "1 тема Ответить",
|
|
4
4
|
"Allow access to your Gallery": "Разрешить доступ к вашей галерее",
|
|
5
5
|
"Allow camera access in device settings": "Разрешите доступ к камере в настройках устройства.",
|
|
6
|
-
"Also send to channel": "",
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Block User": "",
|
|
9
|
-
"Cancel": "",
|
|
10
|
-
"Cannot Flag Message": "",
|
|
11
|
-
"Copy Message": "",
|
|
12
|
-
"Delete": "",
|
|
13
|
-
"Delete Message": "",
|
|
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
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": "",
|
|
15
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
|
|
16
|
+
"Edit Message": "Редактировать сообщение",
|
|
17
|
+
"Editing Message": "Редактирование сообщения",
|
|
18
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
|
-
"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?": "",
|
|
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
|
+
"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
29
|
"Instant Commands": "Мгновенные Команды",
|
|
30
|
-
"Let's start chatting!": "",
|
|
30
|
+
"Let's start chatting!": "Давайте начнем общаться!",
|
|
31
31
|
"Links are disabled": "Ссылки отключены",
|
|
32
|
-
"Loading channels...": "",
|
|
33
|
-
"Loading messages...": "",
|
|
34
|
-
"Loading...": "",
|
|
32
|
+
"Loading channels...": "Загружаю каналы...",
|
|
33
|
+
"Loading messages...": "Загружаю сообщения...",
|
|
34
|
+
"Loading...": "Загружаю...",
|
|
35
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
|
-
"Message Reactions": "",
|
|
37
|
-
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
40
|
-
"Not supported": "",
|
|
41
|
-
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
43
|
-
"Only visible to you": "",
|
|
36
|
+
"Message Reactions": "Сообщения Реакции",
|
|
37
|
+
"Message deleted": "Сообщение удалено",
|
|
38
|
+
"Message flagged": "Сообщение отмечено",
|
|
39
|
+
"Mute User": "Отключить пользователя",
|
|
40
|
+
"Not supported": "не поддерживается",
|
|
41
|
+
"Nothing yet...": "Пока ничего нет...",
|
|
42
|
+
"Ok": "Oк",
|
|
43
|
+
"Only visible to you": "Видно только вам",
|
|
44
44
|
"Open Settings": "Открыть настройки",
|
|
45
45
|
"Photo": "Фото",
|
|
46
46
|
"Photos and Videos": "Фото и видео",
|
|
47
|
-
"Pin to Conversation": "",
|
|
48
|
-
"Pinned by": "",
|
|
47
|
+
"Pin to Conversation": "Закрепить к беседе",
|
|
48
|
+
"Pinned by": "Закреплено пользователем",
|
|
49
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": "",
|
|
55
|
-
"Search GIFs": "",
|
|
51
|
+
"Reconnecting...": "Переподключение...",
|
|
52
|
+
"Reply": "Ответить",
|
|
53
|
+
"Reply to Message": "Ответить на сообщение",
|
|
54
|
+
"Resend": "Отправить",
|
|
55
|
+
"Search GIFs": "Поиск GIF",
|
|
56
56
|
"Select More Photos": "Выбрать больше фотографий",
|
|
57
|
-
"Send a message": "",
|
|
57
|
+
"Send a message": "Отправить сообщение",
|
|
58
58
|
"Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
|
|
59
|
-
"Slow mode ON": "",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
59
|
+
"Slow mode ON": "Медленный режим включен",
|
|
60
|
+
"The message has been reported to a moderator.": "Сообщение отправлено модератору.",
|
|
61
|
+
"Thread Reply": "Тема Ответить",
|
|
62
|
+
"Unblock User": "Разблокировать пользователя",
|
|
63
63
|
"Unknown User": "Неизвестный пользователь",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
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": "",
|
|
68
|
+
"You": "Вы",
|
|
69
|
+
"You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
|
|
70
70
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
71
71
|
"{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
|
|
72
72
|
"{{ replyCount }} Replies": "{{ replyCount }} Ответов",
|
|
73
73
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
|
|
74
74
|
"{{ user }} is typing": "{{ user }} пишет",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
75
|
+
"🏙 Attachment...": "🏙 Вложение..."
|
|
76
76
|
}
|
package/lib/module/i18n/tr.json
CHANGED
|
@@ -3,74 +3,74 @@
|
|
|
3
3
|
"1 Thread Reply": "1 Konu Yanıtı",
|
|
4
4
|
"Allow access to your Gallery": "Galerinize erişime izin verin",
|
|
5
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
|
-
"Block User": "",
|
|
9
|
-
"Cancel": "",
|
|
10
|
-
"Cannot Flag Message": "",
|
|
11
|
-
"Copy Message": "",
|
|
12
|
-
"Delete": "",
|
|
13
|
-
"Delete Message": "",
|
|
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
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?": "",
|
|
16
|
-
"Edit Message": "",
|
|
17
|
-
"Editing Message": "",
|
|
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
18
|
"Emoji matching": "Emoji eşleştirme",
|
|
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
|
-
"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?": "",
|
|
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
|
+
"File type not supported": "Dosya türü desteklenmiyor",
|
|
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
29
|
"Instant Commands": "Anlık Komutlar",
|
|
30
|
-
"Let's start chatting!": "",
|
|
30
|
+
"Let's start chatting!": "Haydi sohbete başlayalım!",
|
|
31
31
|
"Links are disabled": "Bağlantılar devre dışı",
|
|
32
|
-
"Loading channels...": "",
|
|
33
|
-
"Loading messages...": "",
|
|
34
|
-
"Loading...": "",
|
|
32
|
+
"Loading channels...": "Kanallar yükleniyor...",
|
|
33
|
+
"Loading messages...": "Mesajlar yükleniyor...",
|
|
34
|
+
"Loading...": "Yükleniyor...",
|
|
35
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
|
-
"Message Reactions": "",
|
|
37
|
-
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
40
|
-
"Not supported": "",
|
|
41
|
-
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
43
|
-
"Only visible to you": "",
|
|
36
|
+
"Message Reactions": "Mesaj Tepkileri",
|
|
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
44
|
"Open Settings": "Ayarları aç",
|
|
45
45
|
"Photo": "Fotoğraf",
|
|
46
46
|
"Photos and Videos": "Fotoğraflar ve Videolar",
|
|
47
|
-
"Pin to Conversation": "",
|
|
48
|
-
"Pinned by": "",
|
|
47
|
+
"Pin to Conversation": "Konuşmaya sabitle",
|
|
48
|
+
"Pinned by": "Tarafından sabitlendi",
|
|
49
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": "",
|
|
55
|
-
"Search GIFs": "",
|
|
51
|
+
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
52
|
+
"Reply": "Yanıtla",
|
|
53
|
+
"Reply to Message": "Mesajı Yanıtla",
|
|
54
|
+
"Resend": "Yeniden gönder",
|
|
55
|
+
"Search GIFs": "GIF Ara",
|
|
56
56
|
"Select More Photos": "Daha Fazla Fotoğraf Seçin",
|
|
57
|
-
"Send a message": "",
|
|
57
|
+
"Send a message": "Mesaj gönder",
|
|
58
58
|
"Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
|
|
59
|
-
"Slow mode ON": "",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
59
|
+
"Slow mode ON": "Yavaş Mod Açık",
|
|
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
63
|
"Unknown User": "Bilinmeyen kullanıcı",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
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": "",
|
|
68
|
+
"You": "Sen",
|
|
69
|
+
"You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
|
|
70
70
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
71
71
|
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
|
|
72
72
|
"{{ replyCount }} Replies": "{{ replyCount }} Cevap",
|
|
73
73
|
"{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
|
|
74
74
|
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
75
|
+
"🏙 Attachment...": "🏙 Ek..."
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { ExtendableGenerics, LiteralStringForUnion } from 'stream-chat';\n\nexport type Asset = {\n duration: number;\n height: number;\n name: string;\n source: 'camera' | 'picker';\n type: string;\n uri: string;\n width: number;\n id?: string;\n size?: number;\n};\n\nexport type File = {\n name: string;\n duration?: number;\n id?: string;\n mimeType?: string;\n size?: number;\n // The uri should be of type `string`. But is `string|undefined` because the same type is used for the response from Stream's Attachment. This shall be fixed.\n uri?: string;\n};\n\nexport type DefaultAttachmentType = UnknownType & {\n file_size?: number;\n mime_type?: string;\n originalFile?: File;\n};\n\ninterface DefaultUserType extends UnknownType {\n image?: string;\n}\n\ninterface DefaultChannelType extends UnknownType {\n [key: string]: unknown;\n\n image?: string;\n}\n\nexport interface DefaultStreamChatGenerics extends ExtendableGenerics {\n attachmentType: DefaultAttachmentType;\n channelType: DefaultChannelType;\n commandType: LiteralStringForUnion;\n eventType: UnknownType;\n messageType: UnknownType;\n reactionType: UnknownType;\n userType: DefaultUserType;\n}\n\nexport type UnknownType = Record<string, unknown>;\n\nexport type ValueOf<T> = T[keyof T];\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { ExtendableGenerics, LiteralStringForUnion } from 'stream-chat';\n\nimport type { FileStateValue } from '../utils/utils';\n\nexport type Asset = {\n duration: number;\n height: number;\n name: string;\n source: 'camera' | 'picker';\n type: string;\n uri: string;\n width: number;\n id?: string;\n size?: number;\n};\n\nexport type File = {\n name: string;\n duration?: number;\n id?: string;\n mimeType?: string;\n size?: number;\n // The uri should be of type `string`. But is `string|undefined` because the same type is used for the response from Stream's Attachment. This shall be fixed.\n uri?: string;\n};\n\nexport type FileUpload = {\n file: File;\n id: string;\n state: FileStateValue;\n duration?: number;\n paused?: boolean;\n progress?: number;\n thumb_url?: string;\n url?: string;\n};\n\nexport type ImageUpload = {\n file: Partial<Asset>;\n id: string;\n state: FileStateValue;\n height?: number;\n url?: string;\n width?: number;\n};\n\nexport type DefaultAttachmentType = UnknownType & {\n file_size?: number;\n mime_type?: string;\n originalFile?: File;\n originalImage?: Partial<Asset>;\n};\n\ninterface DefaultUserType extends UnknownType {\n image?: string;\n}\n\ninterface DefaultChannelType extends UnknownType {\n [key: string]: unknown;\n\n image?: string;\n}\n\nexport interface DefaultStreamChatGenerics extends ExtendableGenerics {\n attachmentType: DefaultAttachmentType;\n channelType: DefaultChannelType;\n commandType: LiteralStringForUnion;\n eventType: UnknownType;\n messageType: UnknownType;\n reactionType: UnknownType;\n userType: DefaultUserType;\n}\n\nexport type UnknownType = Record<string, unknown>;\n\nexport type ValueOf<T> = T[keyof T];\n"],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
exports.compressedImageURI = void 0;
|
|
6
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
8
|
+
var _native = require("../native");
|
|
9
|
+
var compressedImageURI = function () {
|
|
10
|
+
var _ref = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(image, compressImageQuality) {
|
|
11
|
+
var uri, compressedUri;
|
|
12
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
13
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14
|
+
case 0:
|
|
15
|
+
uri = image.uri || '';
|
|
16
|
+
_context.next = 3;
|
|
17
|
+
return image.source === 'camera' || !image.height || !image.width || typeof compressImageQuality !== 'number' || compressImageQuality === 1 ? uri : (0, _native.compressImage)({
|
|
18
|
+
compressImageQuality: compressImageQuality,
|
|
19
|
+
height: image.height,
|
|
20
|
+
uri: uri,
|
|
21
|
+
width: image.width
|
|
22
|
+
});
|
|
23
|
+
case 3:
|
|
24
|
+
compressedUri = _context.sent;
|
|
25
|
+
return _context.abrupt("return", compressedUri);
|
|
26
|
+
case 5:
|
|
27
|
+
case "end":
|
|
28
|
+
return _context.stop();
|
|
29
|
+
}
|
|
30
|
+
}, _callee);
|
|
31
|
+
}));
|
|
32
|
+
return function compressedImageURI(_x, _x2) {
|
|
33
|
+
return _ref.apply(this, arguments);
|
|
34
|
+
};
|
|
35
|
+
}();
|
|
36
|
+
exports.compressedImageURI = compressedImageURI;
|
|
37
|
+
//# sourceMappingURL=compressImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_native","require","compressedImageURI","_ref","_asyncToGenerator2","_regenerator","mark","_callee","image","compressImageQuality","uri","compressedUri","wrap","_callee$","_context","prev","next","source","height","width","compressImage","sent","abrupt","stop","_x","_x2","apply","arguments","exports"],"sources":["compressImage.ts"],"sourcesContent":["import { compressImage } from '../native';\nimport type { Asset } from '../types/types';\n\n/**\n * Function to compress and Image and return the compressed Image URI\n * @param image\n * @param compressImageQuality\n * @returns string\n */\nexport const compressedImageURI = async (image: Partial<Asset>, compressImageQuality?: number) => {\n const uri = image.uri || '';\n /**\n * We skip compression if:\n * - the file is from the camera as that should already be compressed\n * - the file has no height/width value to maintain for compression\n * - the compressImageQuality number is not present or is 1 (meaning no compression)\n */\n const compressedUri = await (image.source === 'camera' ||\n !image.height ||\n !image.width ||\n typeof compressImageQuality !== 'number' ||\n compressImageQuality === 1\n ? uri\n : compressImage({\n compressImageQuality,\n height: image.height,\n uri,\n width: image.width,\n }));\n\n return compressedUri;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AASO,IAAMC,kBAAkB;EAAA,IAAAC,IAAA,OAAAC,kBAAA,aAAAC,YAAA,YAAAC,IAAA,CAAG,SAAAC,QAAOC,KAAqB,EAAEC,oBAA6B;IAAA,IAAAC,GAAA,EAAAC,aAAA;IAAA,OAAAN,YAAA,YAAAO,IAAA,UAAAC,SAAAC,QAAA;MAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;QAAA;UACrFN,GAAG,GAAGF,KAAK,CAACE,GAAG,IAAI,EAAE;UAAAI,QAAA,CAAAE,IAAA;UAAA,OAOER,KAAK,CAACS,MAAM,KAAK,QAAQ,IACtD,CAACT,KAAK,CAACU,MAAM,IACb,CAACV,KAAK,CAACW,KAAK,IACZ,OAAOV,oBAAoB,KAAK,QAAQ,IACxCA,oBAAoB,KAAK,CAAC,GACtBC,GAAG,GACH,IAAAU,qBAAa,EAAC;YACZX,oBAAoB,EAApBA,oBAAoB;YACpBS,MAAM,EAAEV,KAAK,CAACU,MAAM;YACpBR,GAAG,EAAHA,GAAG;YACHS,KAAK,EAAEX,KAAK,CAACW;UACf,CAAC,CAAC;QAAA;UAXAR,aAAa,GAAAG,QAAA,CAAAO,IAAA;UAAA,OAAAP,QAAA,CAAAQ,MAAA,WAaZX,aAAa;QAAA;QAAA;UAAA,OAAAG,QAAA,CAAAS,IAAA;MAAA;IAAA,GAAAhB,OAAA;EAAA,CACrB;EAAA,gBAtBYL,kBAAkBA,CAAAsB,EAAA,EAAAC,GAAA;IAAA,OAAAtB,IAAA,CAAAuB,KAAA,OAAAC,SAAA;EAAA;AAAA,GAsB9B;AAACC,OAAA,CAAA1B,kBAAA,GAAAA,kBAAA"}
|
package/lib/module/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FileUpload } from '../../
|
|
2
|
+
import type { FileUpload } from '../../types/types';
|
|
3
3
|
export declare type AudioAttachmentPropsWithContext = {
|
|
4
4
|
item: Omit<FileUpload, 'state'>;
|
|
5
5
|
onLoad: (index: string, duration: number) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateChannelContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, disabled, EmptyStateIndicator, enableMessageGroupingByUser, enforceUniqueReaction, error, giphyEnabled, hideDateSeparators, hideStickyDateHeader, isAdmin, isChannelActive, isModerator, isOwner, lastRead, loadChannelAroundMessage, loadChannelAtMessage, loading, LoadingIndicator, markRead, maxTimeBetweenGroupedMessages, members, NetworkDownIndicator, read, reloadChannel, scrollToFirstUnreadThreshold, setLastRead, setTargetedMessage, StickyHeader, targetedMessage, threadList, watcherCount, watchers, }: ChannelContextValue<StreamChatGenerics>) => ChannelContextValue<StreamChatGenerics>;
|
|
3
|
+
export declare const useCreateChannelContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, disabled, EmptyStateIndicator, enableMessageGroupingByUser, enforceUniqueReaction, error, giphyEnabled, hideDateSeparators, hideStickyDateHeader, isAdmin, isChannelActive, isModerator, isOwner, lastRead, loadChannelAroundMessage, loadChannelAtMessage, loading, LoadingIndicator, markRead, maxTimeBetweenGroupedMessages, members, NetworkDownIndicator, read, reloadChannel, scrollToFirstUnreadThreshold, setLastRead, setTargetedMessage, StickyHeader, targetedMessage, threadList, uploadAbortControllerRef, watcherCount, watchers, }: ChannelContextValue<StreamChatGenerics>) => ChannelContextValue<StreamChatGenerics>;
|
|
@@ -3,7 +3,7 @@ import type { ChatContextValue } from '../../../contexts/chatContext/ChatContext
|
|
|
3
3
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
4
4
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
6
|
-
export declare const useMessageActionHandlers: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, deleteMessage, deleteReaction, message, retrySendMessage, sendReaction, setEditingState, setQuotedMessageState, }: Pick<MessagesContextValue<StreamChatGenerics>, "sendReaction" | "deleteMessage" | "deleteReaction" | "supportedReactions" | "
|
|
6
|
+
export declare const useMessageActionHandlers: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, deleteMessage, deleteReaction, message, retrySendMessage, sendReaction, setEditingState, setQuotedMessageState, }: Pick<MessagesContextValue<StreamChatGenerics>, "sendReaction" | "deleteMessage" | "deleteReaction" | "supportedReactions" | "retrySendMessage" | "setEditingState" | "setQuotedMessageState"> & Pick<ChannelContextValue<StreamChatGenerics>, "channel" | "enforceUniqueReaction"> & Pick<ChatContextValue<StreamChatGenerics>, "client"> & Pick<MessageContextValue<StreamChatGenerics>, "message">) => {
|
|
7
7
|
handleDeleteMessage: () => Promise<void>;
|
|
8
8
|
handleEditMessage: () => void;
|
|
9
9
|
handleQuotedReplyMessage: () => void;
|
|
@@ -8,7 +8,7 @@ import type { TranslationContextValue } from '../../../contexts/translationConte
|
|
|
8
8
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
9
9
|
import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
10
10
|
import type { MessageActionType } from '../../MessageOverlay/MessageActionListItem';
|
|
11
|
-
export declare const useMessageActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, deleteMessage: deleteMessageFromContext, deleteReaction, enforceUniqueReaction, handleBlock, handleCopy, handleDelete, handleEdit, handleFlag, handleMute, handlePinMessage, handleQuotedReply, handleReaction: handleReactionProp, handleRetry, handleThreadReply, message, onThreadSelect, openThread, retrySendMessage, selectReaction, sendReaction, setEditingState, setOverlay, setQuotedMessageState, supportedReactions, t, }: Pick<MessagesContextValue<StreamChatGenerics>, "sendReaction" | "deleteMessage" | "deleteReaction" | "supportedReactions" | "handleReaction" | "
|
|
11
|
+
export declare const useMessageActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, deleteMessage: deleteMessageFromContext, deleteReaction, enforceUniqueReaction, handleBlock, handleCopy, handleDelete, handleEdit, handleFlag, handleMute, handlePinMessage, handleQuotedReply, handleReaction: handleReactionProp, handleRetry, handleThreadReply, message, onThreadSelect, openThread, retrySendMessage, selectReaction, sendReaction, setEditingState, setOverlay, setQuotedMessageState, supportedReactions, t, }: Pick<MessagesContextValue<StreamChatGenerics>, "sendReaction" | "deleteMessage" | "deleteReaction" | "supportedReactions" | "handleReaction" | "removeMessage" | "retrySendMessage" | "setEditingState" | "setQuotedMessageState" | "updateMessage" | "handleBlock" | "handleCopy" | "handleDelete" | "handleEdit" | "handleFlag" | "handleMute" | "handlePinMessage" | "handleQuotedReply" | "handleRetry" | "handleThreadReply" | "selectReaction"> & Pick<ChannelContextValue<StreamChatGenerics>, "channel" | "enforceUniqueReaction"> & Pick<ChatContextValue<StreamChatGenerics>, "client"> & Pick<OverlayContextValue, "setOverlay"> & Pick<ThreadContextValue<StreamChatGenerics>, "openThread"> & Pick<MessageContextValue<StreamChatGenerics>, "message"> & Pick<TranslationContextValue, "t"> & {
|
|
12
12
|
onThreadSelect?: ((message: MessageType<StreamChatGenerics>) => void) | undefined;
|
|
13
13
|
}) => {
|
|
14
14
|
blockUser: MessageActionType;
|
|
@@ -126,6 +126,11 @@ export declare type ChannelContextValue<StreamChatGenerics extends DefaultStream
|
|
|
126
126
|
scrollToFirstUnreadThreshold: number;
|
|
127
127
|
setLastRead: React.Dispatch<React.SetStateAction<Date | undefined>>;
|
|
128
128
|
setTargetedMessage: (messageId: string) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Abort controller for cancelling async requests made for uploading images/files
|
|
131
|
+
* Its a map of filename and AbortController
|
|
132
|
+
*/
|
|
133
|
+
uploadAbortControllerRef: React.MutableRefObject<Map<string, AbortController>>;
|
|
129
134
|
/**
|
|
130
135
|
*
|
|
131
136
|
* ```json
|
|
@@ -16,29 +16,9 @@ import type { MoreOptionsButtonProps } from '../../components/MessageInput/MoreO
|
|
|
16
16
|
import type { SendButtonProps } from '../../components/MessageInput/SendButton';
|
|
17
17
|
import type { UploadProgressIndicatorProps } from '../../components/MessageInput/UploadProgressIndicator';
|
|
18
18
|
import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
|
|
19
|
-
import type { Asset, DefaultStreamChatGenerics, File, UnknownType } from '../../types/types';
|
|
20
|
-
import { ACITriggerSettingsParams,
|
|
19
|
+
import type { Asset, DefaultStreamChatGenerics, File, FileUpload, ImageUpload, UnknownType } from '../../types/types';
|
|
20
|
+
import { ACITriggerSettingsParams, TriggerSettings } from '../../utils/utils';
|
|
21
21
|
import { ChannelContextValue } from '../channelContext/ChannelContext';
|
|
22
|
-
export declare type FileUpload = {
|
|
23
|
-
file: File;
|
|
24
|
-
id: string;
|
|
25
|
-
state: FileStateValue;
|
|
26
|
-
duration?: number;
|
|
27
|
-
paused?: boolean;
|
|
28
|
-
progress?: number;
|
|
29
|
-
thumb_url?: string;
|
|
30
|
-
url?: string;
|
|
31
|
-
};
|
|
32
|
-
export declare type ImageUpload = {
|
|
33
|
-
file: Partial<Asset> & {
|
|
34
|
-
name?: string;
|
|
35
|
-
};
|
|
36
|
-
id: string;
|
|
37
|
-
state: FileStateValue;
|
|
38
|
-
height?: number;
|
|
39
|
-
url?: string;
|
|
40
|
-
width?: number;
|
|
41
|
-
};
|
|
42
22
|
export declare type MentionAllAppUsersQuery<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
43
23
|
filters?: UserFilters<StreamChatGenerics>;
|
|
44
24
|
options?: UserOptions;
|
|
@@ -340,4 +320,4 @@ export declare const useMessageInputContext: <StreamChatGenerics extends Default
|
|
|
340
320
|
* typing is desired while using the HOC withMessageInputContext the Props for the
|
|
341
321
|
* wrapped component must be provided as the first generic.
|
|
342
322
|
*/
|
|
343
|
-
export declare const withMessageInputContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, "numberOfLines" | "maxNumberOfFiles" | "compressImageQuality" | "AttachButton" | "clearEditingState" | "clearQuotedMessageState" | "CommandsButton" | "CooldownTimer" | "editing" | "editMessage" | "FileUploadPreview" | "hasCommands" | "hasFilePicker" | "hasImagePicker" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "MoreOptionsButton" | "quotedMessage" | "SendButton" | "sendImageAsync" | "
|
|
323
|
+
export declare const withMessageInputContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, "numberOfLines" | "maxNumberOfFiles" | "compressImageQuality" | "setQuotedMessageState" | "AttachButton" | "clearEditingState" | "clearQuotedMessageState" | "CommandsButton" | "CooldownTimer" | "editing" | "editMessage" | "FileUploadPreview" | "hasCommands" | "hasFilePicker" | "hasImagePicker" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "MoreOptionsButton" | "quotedMessage" | "SendButton" | "sendImageAsync" | "ShowThreadMessageInChannelButton" | "UploadProgressIndicator" | "additionalTextInputProps" | "autoCompleteSuggestionsLimit" | "autoCompleteTriggerSettings" | "doDocUploadRequest" | "doImageUploadRequest" | "initialValue" | "Input" | "InputButtons" | "maxMessageLength" | "mentionAllAppUsersEnabled" | "mentionAllAppUsersQuery" | "onChangeText" | "SendMessageDisallowedIndicator" | "setInputRef" | keyof LocalMessageInputContext<StreamChatGenerics>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
import type {
|
|
2
|
+
import type { DefaultStreamChatGenerics, FileUpload, ImageUpload } from '../../../types/types';
|
|
3
|
+
import type { MessageInputContextValue } from '../MessageInputContext';
|
|
4
4
|
export declare const isEditingBoolean: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(editing: boolean | import("../../..").MessageType<StreamChatGenerics>) => editing is boolean;
|
|
5
5
|
export declare const useMessageDetailsForState: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: boolean | import("../../..").MessageType<StreamChatGenerics>, initialValue?: string | undefined) => {
|
|
6
6
|
fileUploads: FileUpload[];
|
|
@@ -212,8 +212,8 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
212
212
|
*/
|
|
213
213
|
ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;
|
|
214
214
|
sendReaction: (type: string, messageId: string) => Promise<void>;
|
|
215
|
-
setEditingState: (message: MessageType<StreamChatGenerics>) => void;
|
|
216
|
-
setQuotedMessageState: (message: MessageType<StreamChatGenerics>) => void;
|
|
215
|
+
setEditingState: (message: MessageType<StreamChatGenerics> | boolean) => void;
|
|
216
|
+
setQuotedMessageState: (message: MessageType<StreamChatGenerics> | boolean) => void;
|
|
217
217
|
supportedReactions: ReactionData[];
|
|
218
218
|
/**
|
|
219
219
|
* UI component for TypingIndicator
|
|
@@ -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!",
|