stream-chat-react-native-core 5.24.0-beta.2 → 5.24.0-beta.4

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 (130) hide show
  1. package/lib/commonjs/components/Channel/Channel.js +30 -22
  2. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  3. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -0
  4. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  5. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +52 -18
  6. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  7. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +4 -1
  8. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  9. package/lib/commonjs/components/Message/Message.js +28 -6
  10. package/lib/commonjs/components/Message/Message.js.map +1 -1
  11. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js +84 -0
  12. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js.map +1 -0
  13. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  14. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  15. package/lib/commonjs/components/index.js +11 -0
  16. package/lib/commonjs/components/index.js.map +1 -1
  17. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +51 -39
  18. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  19. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +4 -8
  20. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  21. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  22. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  23. package/lib/commonjs/i18n/en.json +3 -0
  24. package/lib/commonjs/i18n/es.json +4 -1
  25. package/lib/commonjs/i18n/fr.json +28 -25
  26. package/lib/commonjs/i18n/he.json +4 -1
  27. package/lib/commonjs/i18n/hi.json +28 -25
  28. package/lib/commonjs/i18n/it.json +28 -25
  29. package/lib/commonjs/i18n/ja.json +4 -1
  30. package/lib/commonjs/i18n/ko.json +4 -1
  31. package/lib/commonjs/i18n/nl.json +28 -25
  32. package/lib/commonjs/i18n/ru.json +28 -25
  33. package/lib/commonjs/i18n/tr.json +28 -25
  34. package/lib/commonjs/utils/removeReservedFields.js +1 -1
  35. package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
  36. package/lib/commonjs/utils/utils.js +5 -3
  37. package/lib/commonjs/utils/utils.js.map +1 -1
  38. package/lib/commonjs/version.json +1 -1
  39. package/lib/module/components/Channel/Channel.js +30 -22
  40. package/lib/module/components/Channel/Channel.js.map +1 -1
  41. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -0
  42. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  43. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +52 -18
  44. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  45. package/lib/module/components/ChannelPreview/ChannelPreview.js +4 -1
  46. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  47. package/lib/module/components/Message/Message.js +28 -6
  48. package/lib/module/components/Message/Message.js.map +1 -1
  49. package/lib/module/components/Message/MessageSimple/MessageBounce.js +84 -0
  50. package/lib/module/components/Message/MessageSimple/MessageBounce.js.map +1 -0
  51. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  52. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  53. package/lib/module/components/index.js +11 -0
  54. package/lib/module/components/index.js.map +1 -1
  55. package/lib/module/contexts/messageInputContext/MessageInputContext.js +51 -39
  56. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  57. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +4 -8
  58. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  59. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  60. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  61. package/lib/module/i18n/en.json +3 -0
  62. package/lib/module/i18n/es.json +4 -1
  63. package/lib/module/i18n/fr.json +28 -25
  64. package/lib/module/i18n/he.json +4 -1
  65. package/lib/module/i18n/hi.json +28 -25
  66. package/lib/module/i18n/it.json +28 -25
  67. package/lib/module/i18n/ja.json +4 -1
  68. package/lib/module/i18n/ko.json +4 -1
  69. package/lib/module/i18n/nl.json +28 -25
  70. package/lib/module/i18n/ru.json +28 -25
  71. package/lib/module/i18n/tr.json +28 -25
  72. package/lib/module/utils/removeReservedFields.js +1 -1
  73. package/lib/module/utils/removeReservedFields.js.map +1 -1
  74. package/lib/module/utils/utils.js +5 -3
  75. package/lib/module/utils/utils.js.map +1 -1
  76. package/lib/module/version.json +1 -1
  77. package/lib/typescript/components/Channel/Channel.d.ts +1 -1
  78. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  79. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -1
  80. package/lib/typescript/components/Message/Message.d.ts +1 -1
  81. package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +12 -0
  82. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -0
  83. package/lib/typescript/components/index.d.ts +1 -0
  84. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -2
  85. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -2
  86. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +7 -2
  87. package/lib/typescript/i18n/en.json +3 -0
  88. package/lib/typescript/i18n/es.json +4 -1
  89. package/lib/typescript/i18n/fr.json +28 -25
  90. package/lib/typescript/i18n/he.json +4 -1
  91. package/lib/typescript/i18n/hi.json +28 -25
  92. package/lib/typescript/i18n/it.json +28 -25
  93. package/lib/typescript/i18n/ja.json +4 -1
  94. package/lib/typescript/i18n/ko.json +4 -1
  95. package/lib/typescript/i18n/nl.json +28 -25
  96. package/lib/typescript/i18n/ru.json +28 -25
  97. package/lib/typescript/i18n/tr.json +28 -25
  98. package/lib/typescript/utils/Streami18n.d.ts +3 -0
  99. package/lib/typescript/utils/removeReservedFields.d.ts +2 -1
  100. package/lib/typescript/utils/utils.d.ts +11 -1
  101. package/package.json +2 -2
  102. package/src/components/Channel/Channel.tsx +26 -7
  103. package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -0
  104. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +6 -3
  105. package/src/components/ChannelPreview/ChannelPreview.tsx +5 -5
  106. package/src/components/Message/Message.tsx +26 -2
  107. package/src/components/Message/MessageSimple/MessageBounce.tsx +119 -0
  108. package/src/components/Message/hooks/useMessageActionHandlers.ts +1 -2
  109. package/src/components/Message/hooks/useMessageActions.tsx +1 -1
  110. package/src/components/index.ts +1 -0
  111. package/src/contexts/messageInputContext/MessageInputContext.tsx +27 -8
  112. package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +8 -8
  113. package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +1 -1
  114. package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +6 -1
  115. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +3 -9
  116. package/src/contexts/messagesContext/MessagesContext.tsx +7 -2
  117. package/src/i18n/en.json +3 -0
  118. package/src/i18n/es.json +4 -1
  119. package/src/i18n/fr.json +28 -25
  120. package/src/i18n/he.json +4 -1
  121. package/src/i18n/hi.json +28 -25
  122. package/src/i18n/it.json +28 -25
  123. package/src/i18n/ja.json +4 -1
  124. package/src/i18n/ko.json +4 -1
  125. package/src/i18n/nl.json +28 -25
  126. package/src/i18n/ru.json +28 -25
  127. package/src/i18n/tr.json +28 -25
  128. package/src/utils/removeReservedFields.ts +5 -2
  129. package/src/utils/utils.ts +16 -2
  130. package/src/version.json +1 -1
package/src/i18n/it.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
- "1 Reply": "1 Risposta",
3
- "1 Thread Reply": "1 Risposta alla Discussione",
4
- "Allow access to your Gallery": "Consenti l'accesso alla tua galleria",
5
- "Allow camera access in device settings": "Consenti l'accesso alla fotocamera nelle impostazioni del dispositivo",
6
- "Also send to channel": "",
2
+ "1 Reply": "",
3
+ "1 Thread Reply": "",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "Invia anche al canale",
7
7
  "Are you sure you want to permanently delete this message?": "Sei sicuro di voler eliminare definitivamente questo messaggio?",
8
+ "Are you sure?": "Sei sicuro?",
8
9
  "Block User": "Blocca Utente",
9
10
  "Cancel": "Annulla",
10
11
  "Cannot Flag Message": "Impossibile Segnalare Messaggio",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considera come il tuo commento potrebbe far sentire gli altri e assicurati di seguire le nostre Linee guida della community",
11
13
  "Copy Message": "Copia Messaggio",
12
14
  "Delete": "Elimina",
13
15
  "Delete Message": "Cancella il Messaggio",
14
- "Device camera is used to take photos or videos.": "La fotocamera del dispositivo viene utilizzata per scattare foto o video.",
16
+ "Device camera is used to take photos or videos.": "",
15
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "Vuoi inviare una copia di questo messaggio a un moderatore per ulteriori indagini?",
16
18
  "Edit Message": "Modifica Messaggio",
17
- "Editing Message": "Modificando il Messaggio",
18
- "Emoji matching": "Abbinamento emoji",
19
+ "Editing Message": "",
20
+ "Emoji matching": "",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
@@ -26,14 +28,14 @@
26
28
  "Flag Message": "Contrassegna Messaggio",
27
29
  "Flag action failed either due to a network issue or the message is already flagged": "L'azione di segnalazione non è riuscita a causa di un problema di rete o il messaggio è già segnalato.",
28
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "Comandi Istantanei",
31
+ "Instant Commands": "",
30
32
  "Let's start chatting!": "",
31
33
  "Links are disabled": "I link sono disabilitati",
32
- "Loading channels...": "Caricamento canali in corso...",
33
- "Loading messages...": "Caricamento messaggi...",
34
- "Loading...": "Caricamento...",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "È stato raggiunto il limite massimo di caricamento delle dimensioni del file. Carica un file inferiore a {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
36
- "Message Reactions": "Reazioni ai Messaggi",
38
+ "Message Reactions": "",
37
39
  "Message deleted": "",
38
40
  "Message flagged": "Messaggio contrassegnato",
39
41
  "Mute User": "Utente Muto",
@@ -41,36 +43,37 @@
41
43
  "Nothing yet...": "",
42
44
  "Ok": "Ok",
43
45
  "Only visible to you": "",
44
- "Open Settings": "Apri Impostazioni",
45
- "Photo": "Foto",
46
- "Photos and Videos": "Foto e Video",
46
+ "Open Settings": "",
47
+ "Photo": "",
48
+ "Photos and Videos": "",
47
49
  "Pin to Conversation": "Metti in evidenza",
48
50
  "Pinned by": "",
49
- "Please enable access to your photos and videos so you can share them.": "Abilita l'accesso alle tue foto e ai tuoi video in modo da poterli condividere.",
51
+ "Please enable access to your photos and videos so you can share them.": "",
50
52
  "Please select a channel first": "Seleziona un canale",
51
53
  "Reconnecting...": "",
52
54
  "Reply": "Rispondi",
53
55
  "Reply to Message": "",
54
56
  "Resend": "Invia di nuovo",
55
57
  "Search GIFs": "",
56
- "Select More Photos": "Seleziona Altre foto",
58
+ "Select More Photos": "",
59
+ "Send Anyway": "Invia comunque",
57
60
  "Send a message": "",
58
61
  "Sending links is not allowed in this conversation": "L'invio di link non è consentito in questa conversazione",
59
62
  "Slow mode ON": "",
60
63
  "The message has been reported to a moderator.": "Il messaggio è stato segnalato a un moderatore.",
61
64
  "Thread Reply": "Rispondi alla Discussione",
62
65
  "Unblock User": "Sblocca utente",
63
- "Unknown User": "Utente sconosciuto",
66
+ "Unknown User": "",
64
67
  "Unmute User": "Riattiva utente",
65
68
  "Unpin from Conversation": "Rimuovi dagli elementi in evidenza",
66
- "Unread Messages": "",
67
- "Video": "Video",
69
+ "Unread Messages": "Messaggi non letti",
70
+ "Video": "",
68
71
  "You": "",
69
- "You can't send messages in this channel": "",
72
+ "You can't send messages in this channel": "Non puoi inviare messaggi in questo canale",
70
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} di {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Risposte",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Risposte alle Conversazione",
74
+ "{{ index }} of {{ photoLength }}": "",
75
+ "{{ replyCount }} Replies": "",
76
+ "{{ replyCount }} Thread Replies": "",
74
77
  "{{ user }} is typing": "",
75
78
  "🏙 Attachment...": ""
76
79
  }
package/src/i18n/ja.json CHANGED
@@ -76,5 +76,8 @@
76
76
  "How about sending your first message to a friend?": "初めてのメッセージを友達に送ってみてはいかがでしょうか?",
77
77
  "Allow camera access in device settings": "デバイス設定でカメラへのアクセスを許可する",
78
78
  "Device camera is used to take photos or videos.": "デバイスのカメラは写真やビデオの撮影に使用されます。",
79
- "Open Settings": "設定を開く"
79
+ "Open Settings": "設定を開く",
80
+ "Send Anyway": "とにかく送信",
81
+ "Are you sure?": "本当によろしいですか?",
82
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "あなたのコメントが他の人にどのように影響するか考え、必ずコミュニティガイドラインに従ってください"
80
83
  }
package/src/i18n/ko.json CHANGED
@@ -75,5 +75,8 @@
75
75
  "How about sending your first message to a friend?": "친구에게 첫 번째 메시지를 보내는 것은 어떻습니까?",
76
76
  "Allow camera access in device settings": "기기 설정에서 카메라 액세스를 허용하세요.",
77
77
  "Device camera is used to take photos or videos.": "기기 카메라는 사진이나 동영상을 촬영하는 데 사용됩니다.",
78
- "Open Settings": "설정 열기"
78
+ "Open Settings": "설정 열기",
79
+ "Send Anyway": "그래도 보내기",
80
+ "Are you sure?": "확실합니까?",
81
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "당신의 댓글이 다른 사람들에게 어떤 영향을 줄지 고려하고 반드시 우리의 커뮤니티 가이드라인을 따르십시오"
79
82
  }
package/src/i18n/nl.json CHANGED
@@ -1,21 +1,23 @@
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",
6
- "Also send to channel": "",
2
+ "1 Reply": "",
3
+ "1 Thread Reply": "",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "Stuur ook naar kanaal",
7
7
  "Are you sure you want to permanently delete this message?": "Weet u zeker dat u dit bericht definitief wilt verwijderen?",
8
+ "Are you sure?": "Weet je het zeker?",
8
9
  "Block User": "Blokkeer Gebruiker",
9
10
  "Cancel": "Annuleer",
10
11
  "Cannot Flag Message": "Kan bericht niet rapporteren",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Denk na over hoe jouw opmerking anderen zou kunnen laten voelen en zorg ervoor dat je onze Community-richtlijnen volgt",
11
13
  "Copy Message": "Bericht kopiëren",
12
14
  "Delete": "Verwijderen",
13
15
  "Delete Message": "Verwijder bericht",
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.",
16
+ "Device camera is used to take photos or videos.": "",
15
17
  "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
18
  "Edit Message": "Pas bericht aan",
17
- "Editing Message": "Bericht aanpassen",
18
- "Emoji matching": "Emoji-overeenkomsten",
19
+ "Editing Message": "",
20
+ "Emoji matching": "",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
@@ -26,14 +28,14 @@
26
28
  "Flag Message": "Markeer bericht",
27
29
  "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
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "Directe Opdrachten",
31
+ "Instant Commands": "",
30
32
  "Let's start chatting!": "",
31
33
  "Links are disabled": "Het versturen van links staat uit",
32
- "Loading channels...": "Kanalen aan het laden...",
33
- "Loading messages...": "Berichten aan het laden...",
34
- "Loading...": "Aan het laden...",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maximale uploadlimiet voor bestandsgrootte bereikt. Upload een bestand van minder dan {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
36
- "Message Reactions": "Bericht Reacties",
38
+ "Message Reactions": "",
37
39
  "Message deleted": "",
38
40
  "Message flagged": "Bericht gemarkeerd",
39
41
  "Mute User": "Gebruiker dempen",
@@ -41,36 +43,37 @@
41
43
  "Nothing yet...": "",
42
44
  "Ok": "Oké",
43
45
  "Only visible to you": "",
44
- "Open Settings": "Open instellingen",
45
- "Photo": "Foto",
46
- "Photos and Videos": "Foto's en video's",
46
+ "Open Settings": "",
47
+ "Photo": "",
48
+ "Photos and Videos": "",
47
49
  "Pin to Conversation": "Vastmaken aan gesprek",
48
50
  "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.",
51
+ "Please enable access to your photos and videos so you can share them.": "",
50
52
  "Please select a channel first": "Selecteer eerst een kanaal",
51
53
  "Reconnecting...": "",
52
54
  "Reply": "Antwoord",
53
55
  "Reply to Message": "",
54
56
  "Resend": "Opnieuw versturen",
55
57
  "Search GIFs": "",
56
- "Select More Photos": "Selecteer Meer foto's",
58
+ "Select More Photos": "",
59
+ "Send Anyway": "Toch verzenden",
57
60
  "Send a message": "",
58
61
  "Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
59
62
  "Slow mode ON": "",
60
63
  "The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
61
64
  "Thread Reply": "Discussie beantwoorden",
62
65
  "Unblock User": "Deblokkeer gebruiker",
63
- "Unknown User": "Onbekende gebruiker",
66
+ "Unknown User": "",
64
67
  "Unmute User": "Dempen van gebruiker opheffen",
65
68
  "Unpin from Conversation": "Losmaken van gesprek",
66
- "Unread Messages": "",
67
- "Video": "Video",
69
+ "Unread Messages": "Ongelezen Berichten",
70
+ "Video": "",
68
71
  "You": "",
69
- "You can't send messages in this channel": "",
72
+ "You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
70
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Discussiereacties",
74
+ "{{ index }} of {{ photoLength }}": "",
75
+ "{{ replyCount }} Replies": "",
76
+ "{{ replyCount }} Thread Replies": "",
74
77
  "{{ user }} is typing": "",
75
78
  "🏙 Attachment...": ""
76
79
  }
package/src/i18n/ru.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
- "1 Reply": "1 Ответ",
3
- "1 Thread Reply": "1 тема Ответить",
4
- "Allow access to your Gallery": "Разрешить доступ к вашей галерее",
5
- "Allow camera access in device settings": "Разрешите доступ к камере в настройках устройства.",
6
- "Also send to channel": "",
2
+ "1 Reply": "",
3
+ "1 Thread Reply": "",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "Также отправить на канал",
7
7
  "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
8
+ "Are you sure?": "Вы уверены?",
8
9
  "Block User": "Заблокировать пользователя",
9
10
  "Cancel": "Отмена",
10
11
  "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
11
13
  "Copy Message": "Копировать сообщение",
12
14
  "Delete": "удалять",
13
15
  "Delete Message": "Удалить сообщение",
14
- "Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
16
+ "Device camera is used to take photos or videos.": "",
15
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
16
18
  "Edit Message": "Редактировать сообщение",
17
- "Editing Message": "Редактирование сообщения",
18
- "Emoji matching": "Соответствие эмодзи",
19
+ "Editing Message": "",
20
+ "Emoji matching": "",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
@@ -26,14 +28,14 @@
26
28
  "Flag Message": "Пометить сообщение",
27
29
  "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
28
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "Мгновенные Команды",
31
+ "Instant Commands": "",
30
32
  "Let's start chatting!": "",
31
33
  "Links are disabled": "Ссылки отключены",
32
- "Loading channels...": "Загружаю каналы...",
33
- "Loading messages...": "Загружаю сообщения...",
34
- "Loading...": "Загружаю...",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Достигнут предел максимального размера файла для загрузки. Загрузите файл размером менее {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} МБ.",
36
- "Message Reactions": "Сообщения Реакции",
38
+ "Message Reactions": "",
37
39
  "Message deleted": "",
38
40
  "Message flagged": "Сообщение отмечено",
39
41
  "Mute User": "Отключить пользователя",
@@ -41,36 +43,37 @@
41
43
  "Nothing yet...": "",
42
44
  "Ok": "Oк",
43
45
  "Only visible to you": "",
44
- "Open Settings": "Открыть настройки",
45
- "Photo": "Фото",
46
- "Photos and Videos": "Фото и видео",
46
+ "Open Settings": "",
47
+ "Photo": "",
48
+ "Photos and Videos": "",
47
49
  "Pin to Conversation": "Закрепить к беседе",
48
50
  "Pinned by": "",
49
- "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
51
+ "Please enable access to your photos and videos so you can share them.": "",
50
52
  "Please select a channel first": "Пожалуйста, сначала выберите канал",
51
53
  "Reconnecting...": "",
52
54
  "Reply": "Ответить",
53
55
  "Reply to Message": "",
54
56
  "Resend": "Отправить",
55
57
  "Search GIFs": "",
56
- "Select More Photos": "Выбрать больше фотографий",
58
+ "Select More Photos": "",
59
+ "Send Anyway": "Всё равно отправить",
57
60
  "Send a message": "",
58
61
  "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
59
62
  "Slow mode ON": "",
60
63
  "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
61
64
  "Thread Reply": "Тема Ответить",
62
65
  "Unblock User": "Разблокировать пользователя",
63
- "Unknown User": "Неизвестный пользователь",
66
+ "Unknown User": "",
64
67
  "Unmute User": "Включить микрофон",
65
68
  "Unpin from Conversation": "Открепить от беседы",
66
- "Unread Messages": "",
67
- "Video": "видео",
69
+ "Unread Messages": "Непрочитанные Сообщения",
70
+ "Video": "",
68
71
  "You": "",
69
- "You can't send messages in this channel": "",
72
+ "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
70
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
74
+ "{{ index }} of {{ photoLength }}": "",
75
+ "{{ replyCount }} Replies": "",
76
+ "{{ replyCount }} Thread Replies": "",
74
77
  "{{ user }} is typing": "",
75
78
  "🏙 Attachment...": ""
76
79
  }
package/src/i18n/tr.json CHANGED
@@ -1,21 +1,23 @@
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",
6
- "Also send to channel": "",
2
+ "1 Reply": "",
3
+ "1 Thread Reply": "",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "Kanala da gönder",
7
7
  "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
8
+ "Are you sure?": "Emin misiniz?",
8
9
  "Block User": "Kullanıcıyı engelle",
9
10
  "Cancel": "İptal",
10
11
  "Cannot Flag Message": "Raporlama Başarısız",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Yorumunuzun diğerlerini nasıl hissettirebileceğini düşünün ve topluluk kurallarımızı takip ettiğinizden emin olun",
11
13
  "Copy Message": "Mesajı Kopyala",
12
14
  "Delete": "Sil",
13
15
  "Delete Message": "Mesajı Sil",
14
- "Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
16
+ "Device camera is used to take photos or videos.": "",
15
17
  "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
18
  "Edit Message": "Mesajı Düzenle",
17
- "Editing Message": "Mesaj Düzenleniyor",
18
- "Emoji matching": "Emoji eşleştirme",
19
+ "Editing Message": "",
20
+ "Emoji matching": "",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
@@ -26,14 +28,14 @@
26
28
  "Flag Message": "Mesajı Raporla",
27
29
  "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
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "Anlık Komutlar",
31
+ "Instant Commands": "",
30
32
  "Let's start chatting!": "",
31
33
  "Links are disabled": "Bağlantılar devre dışı",
32
- "Loading channels...": "Kanallar yükleniyor...",
33
- "Loading messages...": "Mesajlar yükleniyor...",
34
- "Loading...": "Yükleniyor...",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maksimum dosya boyutu yükleme sınırına ulaşıldı. Lütfen {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB'ın altında bir dosya yükleyin.",
36
- "Message Reactions": "Mesaj Tepkileri",
38
+ "Message Reactions": "",
37
39
  "Message deleted": "",
38
40
  "Message flagged": "Mesaj işaretlendi",
39
41
  "Mute User": "Kullanıcıyı sessize al",
@@ -41,36 +43,37 @@
41
43
  "Nothing yet...": "",
42
44
  "Ok": "Tamam",
43
45
  "Only visible to you": "",
44
- "Open Settings": "Ayarları aç",
45
- "Photo": "Fotoğraf",
46
- "Photos and Videos": "Fotoğraflar ve Videolar",
46
+ "Open Settings": "",
47
+ "Photo": "",
48
+ "Photos and Videos": "",
47
49
  "Pin to Conversation": "Konuşmaya sabitle",
48
50
  "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.",
51
+ "Please enable access to your photos and videos so you can share them.": "",
50
52
  "Please select a channel first": "Lütfen önce bir kanal seçiniz",
51
53
  "Reconnecting...": "",
52
54
  "Reply": "Yanıtla",
53
55
  "Reply to Message": "",
54
56
  "Resend": "Yeniden gönder",
55
57
  "Search GIFs": "",
56
- "Select More Photos": "Daha Fazla Fotoğraf Seçin",
58
+ "Select More Photos": "",
59
+ "Send Anyway": "Yine de Gönder",
57
60
  "Send a message": "",
58
61
  "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
59
62
  "Slow mode ON": "",
60
63
  "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
61
64
  "Thread Reply": "Konu Yanıtı",
62
65
  "Unblock User": "Kullanıcının engelini kaldır",
63
- "Unknown User": "Bilinmeyen kullanıcı",
66
+ "Unknown User": "",
64
67
  "Unmute User": "Kullanıcının sesini aç",
65
68
  "Unpin from Conversation": "Sabitlemeyi kaldır",
66
- "Unread Messages": "",
67
- "Video": "Video",
69
+ "Unread Messages": "Okunmamış Mesajlar",
70
+ "Video": "",
68
71
  "You": "",
69
- "You can't send messages in this channel": "",
72
+ "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
70
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
73
- "{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
74
+ "{{ index }} of {{ photoLength }}": "",
75
+ "{{ replyCount }} Replies": "",
76
+ "{{ replyCount }} Thread Replies": "",
74
77
  "{{ user }} is typing": "",
75
78
  "🏙 Attachment...": ""
76
79
  }
@@ -1,11 +1,13 @@
1
+ import type { MessageResponse } from 'stream-chat';
2
+
1
3
  import type { MessageType } from '../components/MessageList/hooks/useMessageList';
2
4
  import type { DefaultStreamChatGenerics } from '../types/types';
3
5
 
4
6
  export const removeReservedFields = <
5
7
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
6
8
  >(
7
- message: MessageType<StreamChatGenerics>,
8
- ) => {
9
+ message: MessageType<StreamChatGenerics> | MessageResponse<StreamChatGenerics>,
10
+ ): MessageType<StreamChatGenerics> | MessageResponse<StreamChatGenerics> => {
9
11
  const retryMessage = { ...message };
10
12
  const reserved = [
11
13
  'cid',
@@ -21,6 +23,7 @@ export const removeReservedFields = <
21
23
  'member_count',
22
24
  'type',
23
25
  'updated_at',
26
+ 'reply_count',
24
27
  ];
25
28
  reserved.forEach((key) => {
26
29
  delete retryMessage[key];
@@ -84,6 +84,11 @@ export const getIndicatorTypeForFileState = (
84
84
  return indicatorMap[fileState];
85
85
  };
86
86
 
87
+ /**
88
+ * Utility to check if the message is a Blocked message.
89
+ * @param message
90
+ * @returns boolean
91
+ */
87
92
  export const isBlockedMessage = <
88
93
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
89
94
  >(
@@ -94,6 +99,17 @@ export const isBlockedMessage = <
94
99
  return message.type === 'error' && message.text && pattern.test(message.text);
95
100
  };
96
101
 
102
+ /**
103
+ * Utility to check if the message is a Bounced message.
104
+ * @param message
105
+ * @returns boolean
106
+ */
107
+ export const isBouncedMessage = <
108
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
109
+ >(
110
+ message: MessageType<StreamChatGenerics>,
111
+ ) => message.type === 'error' && message.moderation_details !== undefined;
112
+
97
113
  const defaultAutoCompleteSuggestionsLimit = 10;
98
114
  const defaultMentionAllAppUsersQuery = {
99
115
  filters: {},
@@ -555,8 +571,6 @@ export const hasOnlyEmojis = (text: string) => {
555
571
  return false;
556
572
  }
557
573
  };
558
- export const urlRegex =
559
- /(?:\s|^)((?:https?:\/\/)?(?:[a-z0-9-]+(?:\.[a-z0-9-]+)+)(?::[0-9]+)?(?:\/(?:[^\s]+)?)?)/g;
560
574
 
561
575
  /**
562
576
  * Stringifies a message object
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.24.0-beta.2"
2
+ "version": "5.24.0-beta.4"
3
3
  }