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.
Files changed (104) hide show
  1. package/lib/commonjs/components/Attachment/AudioAttachment.js +12 -12
  2. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  3. package/lib/commonjs/components/Channel/Channel.js +65 -46
  4. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  5. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +2 -0
  6. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  7. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
  8. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  9. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +19 -19
  10. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  11. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +13 -13
  12. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  13. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  14. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  15. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +61 -40
  16. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  17. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -2
  18. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  19. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  20. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  21. package/lib/commonjs/i18n/en.json +1 -1
  22. package/lib/commonjs/i18n/fr.json +48 -48
  23. package/lib/commonjs/i18n/hi.json +48 -48
  24. package/lib/commonjs/i18n/it.json +48 -48
  25. package/lib/commonjs/i18n/nl.json +48 -48
  26. package/lib/commonjs/i18n/ru.json +48 -48
  27. package/lib/commonjs/i18n/tr.json +48 -48
  28. package/lib/commonjs/types/types.js.map +1 -1
  29. package/lib/commonjs/utils/compressImage.js +37 -0
  30. package/lib/commonjs/utils/compressImage.js.map +1 -0
  31. package/lib/commonjs/version.json +1 -1
  32. package/lib/module/components/Attachment/AudioAttachment.js +12 -12
  33. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  34. package/lib/module/components/Channel/Channel.js +65 -46
  35. package/lib/module/components/Channel/Channel.js.map +1 -1
  36. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +2 -0
  37. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  38. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
  39. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  40. package/lib/module/components/MessageInput/FileUploadPreview.js +19 -19
  41. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  42. package/lib/module/components/MessageInput/ImageUploadPreview.js +13 -13
  43. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  44. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  45. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  46. package/lib/module/contexts/messageInputContext/MessageInputContext.js +61 -40
  47. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  48. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -2
  49. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  50. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  51. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  52. package/lib/module/i18n/en.json +1 -1
  53. package/lib/module/i18n/fr.json +48 -48
  54. package/lib/module/i18n/hi.json +48 -48
  55. package/lib/module/i18n/it.json +48 -48
  56. package/lib/module/i18n/nl.json +48 -48
  57. package/lib/module/i18n/ru.json +48 -48
  58. package/lib/module/i18n/tr.json +48 -48
  59. package/lib/module/types/types.js.map +1 -1
  60. package/lib/module/utils/compressImage.js +37 -0
  61. package/lib/module/utils/compressImage.js.map +1 -0
  62. package/lib/module/version.json +1 -1
  63. package/lib/typescript/components/Attachment/AudioAttachment.d.ts +1 -1
  64. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  65. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -1
  66. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
  67. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +5 -0
  68. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +3 -23
  69. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +2 -2
  70. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +2 -2
  71. package/lib/typescript/i18n/en.json +1 -1
  72. package/lib/typescript/i18n/fr.json +48 -48
  73. package/lib/typescript/i18n/hi.json +48 -48
  74. package/lib/typescript/i18n/it.json +48 -48
  75. package/lib/typescript/i18n/nl.json +48 -48
  76. package/lib/typescript/i18n/ru.json +48 -48
  77. package/lib/typescript/i18n/tr.json +48 -48
  78. package/lib/typescript/types/types.d.ts +20 -0
  79. package/lib/typescript/utils/compressImage.d.ts +8 -0
  80. package/package.json +2 -2
  81. package/src/components/Attachment/AudioAttachment.tsx +2 -1
  82. package/src/components/Channel/Channel.tsx +32 -8
  83. package/src/components/Channel/hooks/useCreateChannelContext.ts +2 -0
  84. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -9
  85. package/src/components/MessageInput/FileUploadPreview.tsx +1 -2
  86. package/src/components/MessageInput/ImageUploadPreview.tsx +1 -2
  87. package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +1 -1
  88. package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +1 -1
  89. package/src/contexts/channelContext/ChannelContext.tsx +5 -0
  90. package/src/contexts/messageInputContext/MessageInputContext.tsx +80 -68
  91. package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +3 -3
  92. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -2
  93. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +2 -2
  94. package/src/contexts/messagesContext/MessagesContext.tsx +2 -2
  95. package/src/i18n/en.json +1 -1
  96. package/src/i18n/fr.json +48 -48
  97. package/src/i18n/hi.json +48 -48
  98. package/src/i18n/it.json +48 -48
  99. package/src/i18n/nl.json +48 -48
  100. package/src/i18n/ru.json +48 -48
  101. package/src/i18n/tr.json +48 -48
  102. package/src/types/types.ts +23 -0
  103. package/src/utils/compressImage.ts +32 -0
  104. package/src/version.json +1 -1
@@ -1,19 +1,19 @@
1
1
  {
2
- "1 Reply": "1 Antwoord",
3
- "1 Thread Reply": "1 thread antwoord",
4
- "Allow access to your Gallery": "Geef toegang tot uw galerij",
5
- "Allow camera access in device settings": "Sta cameratoegang toe in de apparaatinstellingen",
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.": "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": "",
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": "Het versturen van links staat uit",
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.": "Maximale uploadlimiet voor bestandsgrootte bereikt. Upload een bestand van minder dan {{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": "Open instellingen",
45
- "Photo": "Foto",
46
- "Photos and Videos": "Foto's en video's",
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.": "Schakel toegang tot uw foto's en video's in zodat u ze kunt delen.",
50
- "Please select a channel first": "Selecteer eerst een kanaal",
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": "Selecteer Meer foto's",
57
- "Send a message": "",
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": "",
63
- "Unknown User": "Onbekende gebruiker",
64
- "Unmute User": "",
65
- "Unpin from Conversation": "",
66
- "Unread Messages": "Ongelezen Berichten",
67
- "Video": "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": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Discussiereacties",
74
- "{{ user }} is typing": "{{ user }} is aan het typen",
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": "1 Ответ",
3
- "1 Thread Reply": "1 тема Ответить",
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.": "Достигнут предел максимального размера файла для загрузки. Загрузите файл размером менее {{MAX_FILE_SIZE_TO_UPLOAD_IN_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": "",
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": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
74
- "{{ user }} is typing": "{{ user }} пишет",
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": "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",
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.": "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": "",
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": "Bağlantılar devre dışı",
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.": "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.",
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": "Ayarları aç",
45
- "Photo": "Fotoğraf",
46
- "Photos and Videos": "Fotoğraflar ve Videolar",
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.": "Paylaşım yapabilmek için lutfen fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
50
- "Please select a channel first": "Lütfen önce bir kanal seçiniz",
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": "Daha Fazla Fotoğraf Seçin",
57
- "Send a message": "",
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": "",
63
- "Unknown User": "Bilinmeyen kullanıcı",
64
- "Unmute User": "",
65
- "Unpin from Conversation": "",
66
- "Unread Messages": "Okunmamış Mesajlar",
67
- "Video": "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": "{{ 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",
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"}
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.22.0-beta.9"
2
+ "version": "5.22.1-beta.1"
3
3
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FileUpload } from '../../contexts';
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" | "setQuotedMessageState" | "retrySendMessage" | "setEditingState"> & Pick<ChannelContextValue<StreamChatGenerics>, "channel" | "enforceUniqueReaction"> & Pick<ChatContextValue<StreamChatGenerics>, "client"> & Pick<MessageContextValue<StreamChatGenerics>, "message">) => {
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" | "setQuotedMessageState" | "updateMessage" | "removeMessage" | "retrySendMessage" | "setEditingState" | "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"> & {
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, FileStateValue, TriggerSettings } from '../../utils/utils';
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" | "setQuotedMessageState" | "ShowThreadMessageInChannelButton" | "UploadProgressIndicator" | "additionalTextInputProps" | "autoCompleteSuggestionsLimit" | "autoCompleteTriggerSettings" | "doDocUploadRequest" | "doImageUploadRequest" | "initialValue" | "Input" | "InputButtons" | "maxMessageLength" | "mentionAllAppUsersEnabled" | "mentionAllAppUsersQuery" | "onChangeText" | "SendMessageDisallowedIndicator" | "setInputRef" | keyof LocalMessageInputContext<StreamChatGenerics>>>;
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 { FileUpload, ImageUpload, MessageInputContextValue } from '../MessageInputContext';
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!",