stream-chat-react-native-core 5.22.0-beta.9 → 5.22.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +48 -48
- package/lib/commonjs/i18n/hi.json +48 -48
- package/lib/commonjs/i18n/it.json +48 -48
- package/lib/commonjs/i18n/nl.json +48 -48
- package/lib/commonjs/i18n/ru.json +48 -48
- package/lib/commonjs/i18n/tr.json +48 -48
- 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 +48 -48
- package/lib/module/i18n/hi.json +48 -48
- package/lib/module/i18n/it.json +48 -48
- package/lib/module/i18n/nl.json +48 -48
- package/lib/module/i18n/ru.json +48 -48
- package/lib/module/i18n/tr.json +48 -48
- 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 +48 -48
- package/lib/typescript/i18n/hi.json +48 -48
- package/lib/typescript/i18n/it.json +48 -48
- package/lib/typescript/i18n/nl.json +48 -48
- package/lib/typescript/i18n/ru.json +48 -48
- package/lib/typescript/i18n/tr.json +48 -48
- package/lib/typescript/types/types.d.ts +20 -0
- package/lib/typescript/utils/compressImage.d.ts +8 -0
- package/package.json +2 -2
- 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 +48 -48
- package/src/i18n/hi.json +48 -48
- package/src/i18n/it.json +48 -48
- package/src/i18n/nl.json +48 -48
- package/src/i18n/ru.json +48 -48
- package/src/i18n/tr.json +48 -48
- package/src/types/types.ts +23 -0
- package/src/utils/compressImage.ts +32 -0
- package/src/version.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
2
|
+
"1 Reply": "",
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
5
|
+
"Allow camera access in device settings": "",
|
|
6
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": "",
|
|
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
|
+
"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?": "Wil je een kopie van dit bericht naar een moderator sturen voor verder onderzoek?",
|
|
16
|
+
"Edit Message": "Pas bericht aan",
|
|
17
17
|
"Editing Message": "",
|
|
18
18
|
"Emoji matching": "Emoji-overeenkomsten",
|
|
19
19
|
"Empty message...": "",
|
|
@@ -22,55 +22,55 @@
|
|
|
22
22
|
"Error loading messages for this channel...": "",
|
|
23
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": "",
|
|
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
28
|
"How about sending your first message to a friend?": "",
|
|
29
29
|
"Instant Commands": "Directe Opdrachten",
|
|
30
30
|
"Let's start chatting!": "",
|
|
31
|
-
"Links are disabled": "
|
|
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.": "",
|
|
36
36
|
"Message Reactions": "",
|
|
37
37
|
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
38
|
+
"Message flagged": "Bericht gemarkeerd",
|
|
39
|
+
"Mute User": "Gebruiker dempen",
|
|
40
40
|
"Not supported": "",
|
|
41
41
|
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
42
|
+
"Ok": "Oké",
|
|
43
43
|
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "
|
|
45
|
-
"Photo": "
|
|
46
|
-
"Photos and Videos": "
|
|
47
|
-
"Pin to Conversation": "",
|
|
44
|
+
"Open Settings": "",
|
|
45
|
+
"Photo": "",
|
|
46
|
+
"Photos and Videos": "",
|
|
47
|
+
"Pin to Conversation": "Vastmaken aan gesprek",
|
|
48
48
|
"Pinned by": "",
|
|
49
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
50
|
-
"Please select a channel first": "
|
|
49
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
50
|
+
"Please select a channel first": "",
|
|
51
51
|
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
52
|
+
"Reply": "Antwoord",
|
|
53
53
|
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
55
|
-
"Search GIFs": "",
|
|
56
|
-
"Select More Photos": "
|
|
57
|
-
"Send a message": "",
|
|
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": "",
|
|
63
|
-
"Unknown User": "
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
66
|
-
"Unread Messages": "
|
|
67
|
-
"Video": "
|
|
54
|
+
"Resend": "Opnieuw versturen",
|
|
55
|
+
"Search GIFs": "Zoek GIF's",
|
|
56
|
+
"Select More Photos": "",
|
|
57
|
+
"Send a message": "Stuur een bericht",
|
|
58
|
+
"Sending links is not allowed in this conversation": "",
|
|
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
|
+
"Unknown User": "",
|
|
64
|
+
"Unmute User": "Dempen van gebruiker opheffen",
|
|
65
|
+
"Unpin from Conversation": "Losmaken van gesprek",
|
|
66
|
+
"Unread Messages": "",
|
|
67
|
+
"Video": "",
|
|
68
68
|
"You": "",
|
|
69
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": "
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
+
"{{ replyCount }} Replies": "",
|
|
73
|
+
"{{ replyCount }} Thread Replies": "",
|
|
74
|
+
"{{ user }} is typing": "",
|
|
75
75
|
"🏙 Attachment...": ""
|
|
76
76
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
2
|
+
"1 Reply": "",
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
5
|
+
"Allow camera access in device settings": "",
|
|
6
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": "",
|
|
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
17
|
"Editing Message": "",
|
|
18
18
|
"Emoji matching": "Соответствие эмодзи",
|
|
19
19
|
"Empty message...": "",
|
|
@@ -22,55 +22,55 @@
|
|
|
22
22
|
"Error loading messages for this channel...": "",
|
|
23
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": "",
|
|
25
|
+
"Flag": "Пометить",
|
|
26
|
+
"Flag Message": "Пометить сообщение",
|
|
27
|
+
"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?": "",
|
|
29
29
|
"Instant Commands": "Мгновенные Команды",
|
|
30
30
|
"Let's start chatting!": "",
|
|
31
|
-
"Links are disabled": "
|
|
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.": "",
|
|
36
36
|
"Message Reactions": "",
|
|
37
37
|
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
38
|
+
"Message flagged": "Сообщение отмечено",
|
|
39
|
+
"Mute User": "Отключить пользователя",
|
|
40
40
|
"Not supported": "",
|
|
41
41
|
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
42
|
+
"Ok": "Oк",
|
|
43
43
|
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "
|
|
45
|
-
"Photo": "
|
|
46
|
-
"Photos and Videos": "
|
|
47
|
-
"Pin to Conversation": "",
|
|
44
|
+
"Open Settings": "",
|
|
45
|
+
"Photo": "",
|
|
46
|
+
"Photos and Videos": "",
|
|
47
|
+
"Pin to Conversation": "Закрепить к беседе",
|
|
48
48
|
"Pinned by": "",
|
|
49
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
50
|
-
"Please select a channel first": "
|
|
49
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
50
|
+
"Please select a channel first": "",
|
|
51
51
|
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
52
|
+
"Reply": "Ответить",
|
|
53
53
|
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
55
|
-
"Search GIFs": "",
|
|
56
|
-
"Select More Photos": "
|
|
57
|
-
"Send a message": "",
|
|
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": "",
|
|
63
|
-
"Unknown User": "
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
66
|
-
"Unread Messages": "
|
|
67
|
-
"Video": "
|
|
54
|
+
"Resend": "Отправить",
|
|
55
|
+
"Search GIFs": "Поиск GIF",
|
|
56
|
+
"Select More Photos": "",
|
|
57
|
+
"Send a message": "Отправить сообщение",
|
|
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": "Разблокировать пользователя",
|
|
63
|
+
"Unknown User": "",
|
|
64
|
+
"Unmute User": "Включить микрофон",
|
|
65
|
+
"Unpin from Conversation": "Открепить от беседы",
|
|
66
|
+
"Unread Messages": "",
|
|
67
|
+
"Video": "",
|
|
68
68
|
"You": "",
|
|
69
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": "
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
+
"{{ replyCount }} Replies": "",
|
|
73
|
+
"{{ replyCount }} Thread Replies": "",
|
|
74
|
+
"{{ user }} is typing": "",
|
|
75
75
|
"🏙 Attachment...": ""
|
|
76
76
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
2
|
+
"1 Reply": "",
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
5
|
+
"Allow camera access in device settings": "",
|
|
6
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": "",
|
|
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.": "",
|
|
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
17
|
"Editing Message": "",
|
|
18
18
|
"Emoji matching": "Emoji eşleştirme",
|
|
19
19
|
"Empty message...": "",
|
|
@@ -22,55 +22,55 @@
|
|
|
22
22
|
"Error loading messages for this channel...": "",
|
|
23
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": "",
|
|
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
28
|
"How about sending your first message to a friend?": "",
|
|
29
29
|
"Instant Commands": "Anlık Komutlar",
|
|
30
30
|
"Let's start chatting!": "",
|
|
31
|
-
"Links are disabled": "
|
|
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.": "",
|
|
36
36
|
"Message Reactions": "",
|
|
37
37
|
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
38
|
+
"Message flagged": "Mesaj işaretlendi",
|
|
39
|
+
"Mute User": "Kullanıcıyı sessize al",
|
|
40
40
|
"Not supported": "",
|
|
41
41
|
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
42
|
+
"Ok": "Tamam",
|
|
43
43
|
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "
|
|
45
|
-
"Photo": "
|
|
46
|
-
"Photos and Videos": "
|
|
47
|
-
"Pin to Conversation": "",
|
|
44
|
+
"Open Settings": "",
|
|
45
|
+
"Photo": "",
|
|
46
|
+
"Photos and Videos": "",
|
|
47
|
+
"Pin to Conversation": "Konuşmaya sabitle",
|
|
48
48
|
"Pinned by": "",
|
|
49
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
50
|
-
"Please select a channel first": "
|
|
49
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
50
|
+
"Please select a channel first": "",
|
|
51
51
|
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
52
|
+
"Reply": "Yanıtla",
|
|
53
53
|
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
55
|
-
"Search GIFs": "",
|
|
56
|
-
"Select More Photos": "
|
|
57
|
-
"Send a message": "",
|
|
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": "",
|
|
63
|
-
"Unknown User": "
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
66
|
-
"Unread Messages": "
|
|
67
|
-
"Video": "
|
|
54
|
+
"Resend": "Yeniden gönder",
|
|
55
|
+
"Search GIFs": "GIF Ara",
|
|
56
|
+
"Select More Photos": "",
|
|
57
|
+
"Send a message": "Mesaj gönder",
|
|
58
|
+
"Sending links is not allowed in this conversation": "",
|
|
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
|
+
"Unknown User": "",
|
|
64
|
+
"Unmute User": "Kullanıcının sesini aç",
|
|
65
|
+
"Unpin from Conversation": "Sabitlemeyi kaldır",
|
|
66
|
+
"Unread Messages": "",
|
|
67
|
+
"Video": "",
|
|
68
68
|
"You": "",
|
|
69
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": "
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
+
"{{ replyCount }} Replies": "",
|
|
73
|
+
"{{ replyCount }} Thread Replies": "",
|
|
74
|
+
"{{ user }} is typing": "",
|
|
75
75
|
"🏙 Attachment...": ""
|
|
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"}
|
|
@@ -297,7 +297,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
297
297
|
__self: _this,
|
|
298
298
|
__source: {
|
|
299
299
|
fileName: _jsxFileName,
|
|
300
|
-
lineNumber:
|
|
300
|
+
lineNumber: 223,
|
|
301
301
|
columnNumber: 5
|
|
302
302
|
}
|
|
303
303
|
}, _react["default"].createElement(_reactNative.TouchableOpacity, {
|
|
@@ -312,7 +312,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
312
312
|
__self: _this,
|
|
313
313
|
__source: {
|
|
314
314
|
fileName: _jsxFileName,
|
|
315
|
-
lineNumber:
|
|
315
|
+
lineNumber: 224,
|
|
316
316
|
columnNumber: 7
|
|
317
317
|
}
|
|
318
318
|
}, item.paused ? _react["default"].createElement(_icons.Play, {
|
|
@@ -322,7 +322,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
322
322
|
__self: _this,
|
|
323
323
|
__source: {
|
|
324
324
|
fileName: _jsxFileName,
|
|
325
|
-
lineNumber:
|
|
325
|
+
lineNumber: 234,
|
|
326
326
|
columnNumber: 11
|
|
327
327
|
}
|
|
328
328
|
}) : _react["default"].createElement(_icons.Pause, {
|
|
@@ -332,7 +332,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
332
332
|
__self: _this,
|
|
333
333
|
__source: {
|
|
334
334
|
fileName: _jsxFileName,
|
|
335
|
-
lineNumber:
|
|
335
|
+
lineNumber: 236,
|
|
336
336
|
columnNumber: 11
|
|
337
337
|
}
|
|
338
338
|
})), _react["default"].createElement(_reactNative.View, {
|
|
@@ -340,7 +340,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
340
340
|
__self: _this,
|
|
341
341
|
__source: {
|
|
342
342
|
fileName: _jsxFileName,
|
|
343
|
-
lineNumber:
|
|
343
|
+
lineNumber: 239,
|
|
344
344
|
columnNumber: 7
|
|
345
345
|
}
|
|
346
346
|
}, _react["default"].createElement(_reactNative.Text, {
|
|
@@ -357,7 +357,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
357
357
|
__self: _this,
|
|
358
358
|
__source: {
|
|
359
359
|
fileName: _jsxFileName,
|
|
360
|
-
lineNumber:
|
|
360
|
+
lineNumber: 240,
|
|
361
361
|
columnNumber: 9
|
|
362
362
|
}
|
|
363
363
|
}, item.file.name.slice(0, 12) + '...' + item.file.name.slice(lastIndexOfDot)), _react["default"].createElement(_reactNative.View, {
|
|
@@ -369,7 +369,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
369
369
|
__self: _this,
|
|
370
370
|
__source: {
|
|
371
371
|
fileName: _jsxFileName,
|
|
372
|
-
lineNumber:
|
|
372
|
+
lineNumber: 259,
|
|
373
373
|
columnNumber: 9
|
|
374
374
|
}
|
|
375
375
|
}, _native.Sound.Player && _react["default"].createElement(_native.Sound.Player, {
|
|
@@ -383,7 +383,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
383
383
|
__self: _this,
|
|
384
384
|
__source: {
|
|
385
385
|
fileName: _jsxFileName,
|
|
386
|
-
lineNumber:
|
|
386
|
+
lineNumber: 268,
|
|
387
387
|
columnNumber: 13
|
|
388
388
|
}
|
|
389
389
|
}), _react["default"].createElement(_reactNative.Text, {
|
|
@@ -393,7 +393,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
393
393
|
__self: _this,
|
|
394
394
|
__source: {
|
|
395
395
|
fileName: _jsxFileName,
|
|
396
|
-
lineNumber:
|
|
396
|
+
lineNumber: 278,
|
|
397
397
|
columnNumber: 11
|
|
398
398
|
}
|
|
399
399
|
}, progressDuration), _react["default"].createElement(_reactNative.View, {
|
|
@@ -401,7 +401,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
401
401
|
__self: _this,
|
|
402
402
|
__source: {
|
|
403
403
|
fileName: _jsxFileName,
|
|
404
|
-
lineNumber:
|
|
404
|
+
lineNumber: 281,
|
|
405
405
|
columnNumber: 11
|
|
406
406
|
}
|
|
407
407
|
}, _react["default"].createElement(_ProgressControl.ProgressControl, {
|
|
@@ -415,7 +415,7 @@ var AudioAttachmentWithContext = function AudioAttachmentWithContext(props) {
|
|
|
415
415
|
__self: _this,
|
|
416
416
|
__source: {
|
|
417
417
|
fileName: _jsxFileName,
|
|
418
|
-
lineNumber:
|
|
418
|
+
lineNumber: 282,
|
|
419
419
|
columnNumber: 13
|
|
420
420
|
}
|
|
421
421
|
})))));
|
|
@@ -425,7 +425,7 @@ var AudioAttachment = function AudioAttachment(props) {
|
|
|
425
425
|
__self: _this,
|
|
426
426
|
__source: {
|
|
427
427
|
fileName: _jsxFileName,
|
|
428
|
-
lineNumber:
|
|
428
|
+
lineNumber: 311,
|
|
429
429
|
columnNumber: 3
|
|
430
430
|
}
|
|
431
431
|
}));
|