stream-chat-react-native-core 5.24.0-beta.3 → 5.24.0-beta.5

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 (124) 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/Message/Message.js +28 -6
  6. package/lib/commonjs/components/Message/Message.js.map +1 -1
  7. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js +84 -0
  8. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js.map +1 -0
  9. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  10. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  11. package/lib/commonjs/components/MessageInput/SendButton.js +2 -2
  12. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  13. package/lib/commonjs/components/index.js +11 -0
  14. package/lib/commonjs/components/index.js.map +1 -1
  15. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +18 -8
  16. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  17. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +4 -8
  18. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  19. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  20. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  21. package/lib/commonjs/i18n/en.json +3 -0
  22. package/lib/commonjs/i18n/es.json +4 -1
  23. package/lib/commonjs/i18n/fr.json +14 -11
  24. package/lib/commonjs/i18n/he.json +4 -1
  25. package/lib/commonjs/i18n/hi.json +14 -11
  26. package/lib/commonjs/i18n/it.json +14 -11
  27. package/lib/commonjs/i18n/ja.json +4 -1
  28. package/lib/commonjs/i18n/ko.json +4 -1
  29. package/lib/commonjs/i18n/nl.json +14 -11
  30. package/lib/commonjs/i18n/ru.json +14 -11
  31. package/lib/commonjs/i18n/tr.json +14 -11
  32. package/lib/commonjs/utils/removeReservedFields.js +1 -1
  33. package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
  34. package/lib/commonjs/utils/utils.js +5 -1
  35. package/lib/commonjs/utils/utils.js.map +1 -1
  36. package/lib/commonjs/version.json +1 -1
  37. package/lib/module/components/Channel/Channel.js +30 -22
  38. package/lib/module/components/Channel/Channel.js.map +1 -1
  39. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -0
  40. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  41. package/lib/module/components/Message/Message.js +28 -6
  42. package/lib/module/components/Message/Message.js.map +1 -1
  43. package/lib/module/components/Message/MessageSimple/MessageBounce.js +84 -0
  44. package/lib/module/components/Message/MessageSimple/MessageBounce.js.map +1 -0
  45. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  46. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  47. package/lib/module/components/MessageInput/SendButton.js +2 -2
  48. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  49. package/lib/module/components/index.js +11 -0
  50. package/lib/module/components/index.js.map +1 -1
  51. package/lib/module/contexts/messageInputContext/MessageInputContext.js +18 -8
  52. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  53. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +4 -8
  54. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  55. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  56. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  57. package/lib/module/i18n/en.json +3 -0
  58. package/lib/module/i18n/es.json +4 -1
  59. package/lib/module/i18n/fr.json +14 -11
  60. package/lib/module/i18n/he.json +4 -1
  61. package/lib/module/i18n/hi.json +14 -11
  62. package/lib/module/i18n/it.json +14 -11
  63. package/lib/module/i18n/ja.json +4 -1
  64. package/lib/module/i18n/ko.json +4 -1
  65. package/lib/module/i18n/nl.json +14 -11
  66. package/lib/module/i18n/ru.json +14 -11
  67. package/lib/module/i18n/tr.json +14 -11
  68. package/lib/module/utils/removeReservedFields.js +1 -1
  69. package/lib/module/utils/removeReservedFields.js.map +1 -1
  70. package/lib/module/utils/utils.js +5 -1
  71. package/lib/module/utils/utils.js.map +1 -1
  72. package/lib/module/version.json +1 -1
  73. package/lib/typescript/components/Channel/Channel.d.ts +1 -1
  74. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  75. package/lib/typescript/components/Message/Message.d.ts +1 -1
  76. package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +12 -0
  77. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -0
  78. package/lib/typescript/components/index.d.ts +1 -0
  79. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -2
  80. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -2
  81. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +7 -2
  82. package/lib/typescript/i18n/en.json +3 -0
  83. package/lib/typescript/i18n/es.json +4 -1
  84. package/lib/typescript/i18n/fr.json +14 -11
  85. package/lib/typescript/i18n/he.json +4 -1
  86. package/lib/typescript/i18n/hi.json +14 -11
  87. package/lib/typescript/i18n/it.json +14 -11
  88. package/lib/typescript/i18n/ja.json +4 -1
  89. package/lib/typescript/i18n/ko.json +4 -1
  90. package/lib/typescript/i18n/nl.json +14 -11
  91. package/lib/typescript/i18n/ru.json +14 -11
  92. package/lib/typescript/i18n/tr.json +14 -11
  93. package/lib/typescript/utils/Streami18n.d.ts +3 -0
  94. package/lib/typescript/utils/removeReservedFields.d.ts +2 -1
  95. package/lib/typescript/utils/utils.d.ts +11 -0
  96. package/package.json +2 -2
  97. package/src/components/Channel/Channel.tsx +26 -7
  98. package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -0
  99. package/src/components/Message/Message.tsx +26 -2
  100. package/src/components/Message/MessageSimple/MessageBounce.tsx +119 -0
  101. package/src/components/Message/hooks/useMessageActionHandlers.ts +1 -2
  102. package/src/components/Message/hooks/useMessageActions.tsx +1 -1
  103. package/src/components/MessageInput/SendButton.tsx +2 -2
  104. package/src/components/index.ts +1 -0
  105. package/src/contexts/messageInputContext/MessageInputContext.tsx +24 -6
  106. package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +8 -8
  107. package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +1 -1
  108. package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +6 -1
  109. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +3 -9
  110. package/src/contexts/messagesContext/MessagesContext.tsx +7 -2
  111. package/src/i18n/en.json +3 -0
  112. package/src/i18n/es.json +4 -1
  113. package/src/i18n/fr.json +14 -11
  114. package/src/i18n/he.json +4 -1
  115. package/src/i18n/hi.json +14 -11
  116. package/src/i18n/it.json +14 -11
  117. package/src/i18n/ja.json +4 -1
  118. package/src/i18n/ko.json +4 -1
  119. package/src/i18n/nl.json +14 -11
  120. package/src/i18n/ru.json +14 -11
  121. package/src/i18n/tr.json +14 -11
  122. package/src/utils/removeReservedFields.ts +5 -2
  123. package/src/utils/utils.ts +16 -0
  124. package/src/version.json +1 -1
package/src/i18n/hi.json CHANGED
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "डिवाइस सेटिंग्स में कैमरा एक्सेस की अनुमति दें",
6
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
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...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "फ़ाइल प्रकार समर्थित नहीं है",
26
+ "File type not supported": "",
25
27
  "Flag": "",
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
- "Links are disabled": "लिंक अक्षम हैं",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
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.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "समर्थित नहीं",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "केवल आपको दिखाई दे रहा है",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "सेटिंग्स खोलें",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "तस्वीरें और वीडियों",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "द्वारा पिन किया गया",
50
+ "Pinned by": "",
49
51
  "Please enable access to your photos and videos so you can share them.": "कृपया अपनी फ़ोटो और वीडियो तक पहुंच सक्षम करें ताकि आप उन्हें साझा कर सकें।",
50
52
  "Please select a channel first": "कृपया पहले एक चैनल चुनें",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "GIF खोजें",
56
58
  "Select More Photos": "अधिक फ़ोटो चुनें",
59
+ "Send Anyway": "",
57
60
  "Send a message": "एक संदेश भेजें",
58
- "Sending links is not allowed in this conversation": "इस बातचीत में लिंक भेजने की अनुमति नहीं है",
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": "",
package/src/i18n/it.json CHANGED
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "Consenti l'accesso alla fotocamera nelle impostazioni del dispositivo",
6
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
16
  "Device camera is used to take photos or videos.": "La fotocamera del dispositivo viene utilizzata per scattare foto o video.",
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": "Modificando il Messaggio",
20
+ "Emoji matching": "Abbinamento emoji",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "Tipo di file non supportato",
26
+ "File type not supported": "",
25
27
  "Flag": "",
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": "Comandi Istantanei",
30
32
  "Let's start chatting!": "",
31
- "Links are disabled": "I link sono disabilitati",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "Caricamento canali in corso...",
35
+ "Loading messages...": "Caricamento messaggi...",
36
+ "Loading...": "Caricamento...",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "non supportato",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "Visibile solo a te",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "Apri Impostazioni",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "Foto e Video",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "Fissato da",
50
+ "Pinned by": "",
49
51
  "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.",
50
52
  "Please select a channel first": "Seleziona un canale",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "Cerca GIF",
56
58
  "Select More Photos": "Seleziona Altre foto",
59
+ "Send Anyway": "",
57
60
  "Send a message": "Mandare un messaggio",
58
- "Sending links is not allowed in this conversation": "L'invio di link non è consentito in questa conversazione",
61
+ "Sending links is not allowed in this conversation": "",
59
62
  "Slow mode ON": "Slowmode attiva",
60
63
  "The message has been reported to a moderator.": "",
61
64
  "Thread Reply": "",
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
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "Sta cameratoegang toe in de apparaatinstellingen",
6
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
16
  "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
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": "Bericht aanpassen",
20
+ "Emoji matching": "Emoji-overeenkomsten",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "Bestandstype niet ondersteund",
26
+ "File type not supported": "",
25
27
  "Flag": "",
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": "Directe Opdrachten",
30
32
  "Let's start chatting!": "",
31
- "Links are disabled": "Het versturen van links staat uit",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "Kanalen aan het laden...",
35
+ "Loading messages...": "Berichten aan het laden...",
36
+ "Loading...": "Aan het laden...",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "niet ondersteund",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "Alleen zichtbaar voor jou",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "Open instellingen",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "Foto's en video's",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "Vastgemaakt door",
50
+ "Pinned by": "",
49
51
  "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
52
  "Please select a channel first": "Selecteer eerst een kanaal",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "Zoek GIF's",
56
58
  "Select More Photos": "Selecteer Meer foto's",
59
+ "Send Anyway": "",
57
60
  "Send a message": "Stuur een bericht",
58
- "Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
61
+ "Sending links is not allowed in this conversation": "",
59
62
  "Slow mode ON": "Langzame modus aan",
60
63
  "The message has been reported to a moderator.": "",
61
64
  "Thread Reply": "",
package/src/i18n/ru.json CHANGED
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "Разрешите доступ к камере в настройках устройства.",
6
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
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...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "Тип файла не поддерживается",
26
+ "File type not supported": "",
25
27
  "Flag": "",
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
- "Links are disabled": "Ссылки отключены",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
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.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "не поддерживается",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "Видно только вам",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "Открыть настройки",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "Фото и видео",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "Закреплено пользователем",
50
+ "Pinned by": "",
49
51
  "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
50
52
  "Please select a channel first": "Пожалуйста, сначала выберите канал",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "Поиск GIF",
56
58
  "Select More Photos": "Выбрать больше фотографий",
59
+ "Send Anyway": "",
57
60
  "Send a message": "Отправить сообщение",
58
- "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
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": "",
package/src/i18n/tr.json CHANGED
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "Cihaz ayarlarında kamera erişimine izin ver",
6
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
16
  "Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
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": "Mesaj Düzenleniyor",
20
+ "Emoji matching": "Emoji eşleştirme",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "Dosya türü desteklenmiyor",
26
+ "File type not supported": "",
25
27
  "Flag": "",
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": "Anlık Komutlar",
30
32
  "Let's start chatting!": "",
31
- "Links are disabled": "Bağlantılar devre dışı",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "Kanallar yükleniyor...",
35
+ "Loading messages...": "Mesajlar yükleniyor...",
36
+ "Loading...": "Yükleniyor...",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "Desteklenmiyor",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "Sadece siz görebilirsiniz",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "Ayarları aç",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "Fotoğraflar ve Videolar",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "Tarafından sabitlendi",
50
+ "Pinned by": "",
49
51
  "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
52
  "Please select a channel first": "Lütfen önce bir kanal seçiniz",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "GIF Ara",
56
58
  "Select More Photos": "Daha Fazla Fotoğraf Seçin",
59
+ "Send Anyway": "",
57
60
  "Send a message": "Mesaj gönder",
58
- "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
61
+ "Sending links is not allowed in this conversation": "",
59
62
  "Slow mode ON": "Yavaş Mod Açık",
60
63
  "The message has been reported to a moderator.": "",
61
64
  "Thread Reply": "",
@@ -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: {},
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.24.0-beta.3"
2
+ "version": "5.24.0-beta.5"
3
3
  }