stream-chat-react-native-core 5.22.2-beta.1 → 5.22.2-beta.3

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 (52) hide show
  1. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js +2 -2
  2. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  3. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js +2 -2
  4. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  5. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js +9 -12
  6. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  7. package/lib/commonjs/i18n/en.json +1 -1
  8. package/lib/commonjs/i18n/fr.json +43 -43
  9. package/lib/commonjs/i18n/hi.json +43 -43
  10. package/lib/commonjs/i18n/it.json +43 -43
  11. package/lib/commonjs/i18n/nl.json +43 -43
  12. package/lib/commonjs/i18n/ru.json +43 -43
  13. package/lib/commonjs/i18n/tr.json +43 -43
  14. package/lib/commonjs/native.js.map +1 -1
  15. package/lib/commonjs/version.json +1 -1
  16. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js +2 -2
  17. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  18. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js +2 -2
  19. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  20. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js +9 -12
  21. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  22. package/lib/module/i18n/en.json +1 -1
  23. package/lib/module/i18n/fr.json +43 -43
  24. package/lib/module/i18n/hi.json +43 -43
  25. package/lib/module/i18n/it.json +43 -43
  26. package/lib/module/i18n/nl.json +43 -43
  27. package/lib/module/i18n/ru.json +43 -43
  28. package/lib/module/i18n/tr.json +43 -43
  29. package/lib/module/native.js.map +1 -1
  30. package/lib/module/version.json +1 -1
  31. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.d.ts +1 -1
  32. package/lib/typescript/i18n/en.json +1 -1
  33. package/lib/typescript/i18n/fr.json +43 -43
  34. package/lib/typescript/i18n/hi.json +43 -43
  35. package/lib/typescript/i18n/it.json +43 -43
  36. package/lib/typescript/i18n/nl.json +43 -43
  37. package/lib/typescript/i18n/ru.json +43 -43
  38. package/lib/typescript/i18n/tr.json +43 -43
  39. package/lib/typescript/native.d.ts +1 -1
  40. package/package.json +1 -1
  41. package/src/components/Message/MessageSimple/utils/generateMarkdownText.ts +2 -2
  42. package/src/components/Message/MessageSimple/utils/parseLinks.test.ts +6 -11
  43. package/src/components/Message/MessageSimple/utils/parseLinks.ts +2 -2
  44. package/src/i18n/en.json +1 -1
  45. package/src/i18n/fr.json +43 -43
  46. package/src/i18n/hi.json +43 -43
  47. package/src/i18n/it.json +43 -43
  48. package/src/i18n/nl.json +43 -43
  49. package/src/i18n/ru.json +43 -43
  50. package/src/i18n/tr.json +43 -43
  51. package/src/native.ts +1 -1
  52. package/src/version.json +1 -1
@@ -1,30 +1,30 @@
1
1
  {
2
- "1 Reply": "1 Antwoord",
2
+ "1 Reply": "",
3
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": "Stuur ook naar kanaal",
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": "",
17
- "Editing Message": "Bericht aanpassen",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "",
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
+ "Editing Message": "",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
25
- "Flag": "",
26
- "Flag Message": "",
27
- "Flag action failed either due to a network issue or the message is already flagged": "",
24
+ "File type not supported": "Bestandstype niet ondersteund",
25
+ "Flag": "Markeer",
26
+ "Flag Message": "Markeer bericht",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
@@ -33,43 +33,43 @@
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
35
35
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maximale uploadlimiet voor bestandsgrootte bereikt. Upload een bestand van minder dan {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
36
- "Message Reactions": "Bericht Reacties",
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": "Alleen zichtbaar voor jou",
44
- "Open Settings": "Open instellingen",
45
- "Photo": "",
46
- "Photos and Videos": "Foto's en video's",
47
- "Pin to Conversation": "",
48
- "Pinned by": "Vastgemaakt door",
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.",
44
+ "Open Settings": "",
45
+ "Photo": "Foto",
46
+ "Photos and Videos": "",
47
+ "Pin to Conversation": "Vastmaken aan gesprek",
48
+ "Pinned by": "",
49
+ "Please enable access to your photos and videos so you can share them.": "",
50
50
  "Please select a channel first": "Selecteer eerst een kanaal",
51
51
  "Reconnecting...": "",
52
- "Reply": "",
52
+ "Reply": "Antwoord",
53
53
  "Reply to Message": "",
54
- "Resend": "",
54
+ "Resend": "Opnieuw versturen",
55
55
  "Search GIFs": "",
56
- "Select More Photos": "Selecteer Meer foto's",
56
+ "Select More Photos": "",
57
57
  "Send a message": "",
58
58
  "Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
59
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": "",
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": "Video",
68
68
  "You": "",
69
- "You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
69
+ "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
71
+ "{{ index }} of {{ photoLength }}": "",
72
+ "{{ replyCount }} Replies": "",
73
73
  "{{ replyCount }} Thread Replies": "{{replyCount}} Discussiereacties",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""
@@ -1,30 +1,30 @@
1
1
  {
2
- "1 Reply": "1 Ответ",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "1 тема Ответить",
4
- "Allow access to your Gallery": "Разрешить доступ к вашей галерее",
5
- "Allow camera access in device settings": "Разрешите доступ к камере в настройках устройства.",
6
- "Also send to channel": "Также отправить на канал",
7
- "Are you sure you want to permanently delete this message?": "",
8
- "Block User": "",
9
- "Cancel": "",
10
- "Cannot Flag Message": "",
11
- "Copy Message": "",
12
- "Delete": "",
13
- "Delete Message": "",
14
- "Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
15
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
- "Edit Message": "",
17
- "Editing Message": "Редактирование сообщения",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
8
+ "Block User": "Заблокировать пользователя",
9
+ "Cancel": "Отмена",
10
+ "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
11
+ "Copy Message": "Копировать сообщение",
12
+ "Delete": "удалять",
13
+ "Delete Message": "Удалить сообщение",
14
+ "Device camera is used to take photos or videos.": "",
15
+ "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
16
+ "Edit Message": "Редактировать сообщение",
17
+ "Editing Message": "",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
25
- "Flag": "",
26
- "Flag Message": "",
27
- "Flag action failed either due to a network issue or the message is already flagged": "",
24
+ "File type not supported": "Тип файла не поддерживается",
25
+ "Flag": "Пометить",
26
+ "Flag Message": "Пометить сообщение",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
@@ -33,43 +33,43 @@
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
35
35
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Достигнут предел максимального размера файла для загрузки. Загрузите файл размером менее {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} МБ.",
36
- "Message Reactions": "Сообщения Реакции",
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": "",
48
- "Pinned by": "Закреплено пользователем",
49
- "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
44
+ "Open Settings": "",
45
+ "Photo": "Фото",
46
+ "Photos and Videos": "",
47
+ "Pin to Conversation": "Закрепить к беседе",
48
+ "Pinned by": "",
49
+ "Please enable access to your photos and videos so you can share them.": "",
50
50
  "Please select a channel first": "Пожалуйста, сначала выберите канал",
51
51
  "Reconnecting...": "",
52
- "Reply": "",
52
+ "Reply": "Ответить",
53
53
  "Reply to Message": "",
54
- "Resend": "",
54
+ "Resend": "Отправить",
55
55
  "Search GIFs": "",
56
- "Select More Photos": "Выбрать больше фотографий",
56
+ "Select More Photos": "",
57
57
  "Send a message": "",
58
58
  "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
59
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": "",
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
- "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
69
+ "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
71
+ "{{ index }} of {{ photoLength }}": "",
72
+ "{{ replyCount }} Replies": "",
73
73
  "{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""
@@ -1,30 +1,30 @@
1
1
  {
2
- "1 Reply": "1 Cevap",
2
+ "1 Reply": "",
3
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": "Kanala da gönder",
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": "",
17
- "Editing Message": "Mesaj Düzenleniyor",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "",
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
+ "Editing Message": "",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
25
- "Flag": "",
26
- "Flag Message": "",
27
- "Flag action failed either due to a network issue or the message is already flagged": "",
24
+ "File type not supported": "Dosya türü desteklenmiyor",
25
+ "Flag": "Raporla",
26
+ "Flag Message": "Mesajı Raporla",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
@@ -33,43 +33,43 @@
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
35
35
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maksimum dosya boyutu yükleme sınırına ulaşıldı. Lütfen {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB'ın altında bir dosya yükleyin.",
36
- "Message Reactions": "Mesaj Tepkileri",
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": "Sadece siz görebilirsiniz",
44
- "Open Settings": "Ayarları aç",
45
- "Photo": "",
46
- "Photos and Videos": "Fotoğraflar ve Videolar",
47
- "Pin to Conversation": "",
48
- "Pinned by": "Tarafından sabitlendi",
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.",
44
+ "Open Settings": "",
45
+ "Photo": "Fotoğraf",
46
+ "Photos and Videos": "",
47
+ "Pin to Conversation": "Konuşmaya sabitle",
48
+ "Pinned by": "",
49
+ "Please enable access to your photos and videos so you can share them.": "",
50
50
  "Please select a channel first": "Lütfen önce bir kanal seçiniz",
51
51
  "Reconnecting...": "",
52
- "Reply": "",
52
+ "Reply": "Yanıtla",
53
53
  "Reply to Message": "",
54
- "Resend": "",
54
+ "Resend": "Yeniden gönder",
55
55
  "Search GIFs": "",
56
- "Select More Photos": "Daha Fazla Fotoğraf Seçin",
56
+ "Select More Photos": "",
57
57
  "Send a message": "",
58
58
  "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
59
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": "",
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": "Video",
68
68
  "You": "",
69
- "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
69
+ "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
71
+ "{{ index }} of {{ photoLength }}": "",
72
+ "{{ replyCount }} Replies": "",
73
73
  "{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""
@@ -196,12 +196,12 @@ export declare type VideoType = {
196
196
  };
197
197
  export declare let Video: React.ComponentType<VideoType>;
198
198
  declare type Handlers = {
199
- iOS14RefreshGallerySelection: iOS14RefreshGallerySelection;
200
199
  compressImage?: CompressImage;
201
200
  deleteFile?: DeleteFile;
202
201
  FlatList?: typeof DefaultFlatList;
203
202
  getLocalAssetUri?: GetLocalAssetUri;
204
203
  getPhotos?: GetPhotos;
204
+ iOS14RefreshGallerySelection?: iOS14RefreshGallerySelection;
205
205
  NetInfo?: NetInfo;
206
206
  oniOS14GalleryLibrarySelectionChange?: OniOS14LibrarySelectionChange;
207
207
  pickDocument?: PickDocument;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "5.22.2-beta.1",
4
+ "version": "5.22.2-beta.3",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -24,13 +24,13 @@ export const generateMarkdownText = (text?: string) => {
24
24
  // Convert raw links/emails in the text to respective markdown syntax.
25
25
  // Eg: Hi @getstream.io -> Hi @[getstream.io](getstream.io).
26
26
  const normalRegEx = new RegExp(escapeRegExp(linkInfo.raw), 'g');
27
- const markdown = `[${displayLink}](${linkInfo.encodedUrl})`;
27
+ const markdown = `[${displayLink}](${linkInfo.url})`;
28
28
  resultText = text.replace(normalRegEx, markdown);
29
29
 
30
30
  // After previous step, in some cases, the mentioned user after `@` might have a link/email so we convert it back to normal raw text.
31
31
  // Eg: Hi, @[test.user@gmail.com](mailto:test.user@gmail.com) to @test.user@gmail.com.
32
32
  const mentionsRegex = new RegExp(
33
- `@\\[${escapeRegExp(displayLink)}\\]\\(${escapeRegExp(linkInfo.encodedUrl)}\\)`,
33
+ `@\\[${escapeRegExp(displayLink)}\\]\\(${escapeRegExp(linkInfo.url)}\\)`,
34
34
  'g',
35
35
  );
36
36
  resultText = resultText.replace(mentionsRegex, `@${displayLink}`);
@@ -16,10 +16,7 @@ describe('parseLinksFromText', () => {
16
16
  ],
17
17
  ['reactnative.dev', 'http://reactnative.dev'],
18
18
  ['hinge.health/schedule-with-a-coach', 'http://hinge.health/schedule-with-a-coach'],
19
- [
20
- 'https://zh.wikipedia.org/wiki/挪威牛油危機',
21
- 'https://zh.wikipedia.org/wiki/%E6%8C%AA%E5%A8%81%E7%89%9B%E6%B2%B9%E5%8D%B1%E6%A9%9F',
22
- ],
19
+ ['https://zh.wikipedia.org/wiki/挪威牛油危機', 'https://zh.wikipedia.org/wiki/挪威牛油危機'],
23
20
  [
24
21
  'https://getstream.io/chat/docs/react-native/?language=javascript',
25
22
  'https://getstream.io/chat/docs/react-native/?language=javascript',
@@ -32,7 +29,7 @@ describe('parseLinksFromText', () => {
32
29
  ],
33
30
  ])('Returns the encoded value of %p as %p', (link, expected) => {
34
31
  const result = parseLinksFromText(link);
35
- expect(result[0]?.encodedUrl).toBe(expected);
32
+ expect(result[0]?.url).toBe(expected);
36
33
  });
37
34
  it('parses fqdn', () => {
38
35
  const input = `We have put the apim bol,
@@ -43,9 +40,8 @@ describe('parseLinksFromText', () => {
43
40
  const result = parseLinksFromText(input);
44
41
  expect(result).toEqual([
45
42
  {
46
- encodedUrl:
47
- 'https://www.contrived-example.com:8080/sub/page.php?p1=1%F0%9F%87%B3%F0%9F%87%B4&p2=2#fragment-identifier',
48
43
  raw: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',
44
+ url: 'https://www.contrived-example.com:8080/sub/page.php?p1=1🇳🇴&p2=2#fragment-identifier',
49
45
  },
50
46
  ]);
51
47
  });
@@ -56,15 +52,15 @@ describe('parseLinksFromText', () => {
56
52
  ['support_rn@getstream.io'],
57
53
  ])('Can parse the email address %p', (email) => {
58
54
  const result = parseLinksFromText(email);
59
- expect(result[0].encodedUrl).toBe('mailto:' + email);
55
+ expect(result[0].url).toBe('mailto:' + email);
60
56
  expect(result[0].raw).toBe(email);
61
57
  });
62
58
  it("doesn't double the mailto prefix", () => {
63
59
  const input = 'mailto:support@getstream.io';
64
60
  const result = parseLinksFromText(input);
65
61
  expect(result[0]).toEqual({
66
- encodedUrl: input,
67
62
  raw: input,
63
+ url: input,
68
64
  });
69
65
  });
70
66
  it('Does not falsely parse LINKs from text content', () => {
@@ -77,15 +73,14 @@ describe('parseLinksFromText', () => {
77
73
  getstream.io
78
74
  `;
79
75
  const result = parseLinksFromText(input);
80
- console.log({ result });
81
76
  expect(result).toHaveLength(2);
82
77
  });
83
78
  it('Encodes incomplete emoji unicode', () => {
84
79
  const input = 'https://getstream.io/�';
85
80
  const result = parseLinksFromText(input);
86
81
  expect(result[0]).toEqual({
87
- encodedUrl: 'https://getstream.io/%EF%BF%BD',
88
82
  raw: input,
83
+ url: 'https://getstream.io/�',
89
84
  });
90
85
  });
91
86
  });
@@ -1,8 +1,8 @@
1
1
  import { find } from 'linkifyjs';
2
2
 
3
3
  interface LinkInfo {
4
- encodedUrl: string;
5
4
  raw: string;
5
+ url: string;
6
6
  }
7
7
 
8
8
  /**
@@ -27,8 +27,8 @@ export const parseLinksFromText = (input: string): LinkInfo[] => {
27
27
  const emails = find(strippedInput, 'email');
28
28
 
29
29
  const result: LinkInfo[] = [...links, ...emails].map(({ href, value }) => ({
30
- encodedUrl: encodeURI(href),
31
30
  raw: value,
31
+ url: href,
32
32
  }));
33
33
 
34
34
  return result;
package/src/i18n/en.json CHANGED
@@ -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!",
package/src/i18n/fr.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "1 Reply": "1 Réponse",
2
+ "1 Reply": "",
3
3
  "1 Thread Reply": "Réponse à 1 fil",
4
- "Allow access to your Gallery": "Autoriser l'accès à votre galerie",
5
- "Allow camera access in device settings": "Autoriser l'accès à la caméra dans les paramètres de l'appareil",
6
- "Also send to channel": "Envoyer également à la chaîne",
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.": "L'appareil photo de l'appareil est utilisé pour prendre des photos ou des vidéos.",
15
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
- "Edit Message": "",
17
- "Editing Message": "Édite un message",
4
+ "Allow access to your Gallery": "",
5
+ "Allow camera access in device settings": "",
6
+ "Also send to channel": "",
7
+ "Are you sure you want to permanently delete this message?": "Êtes-vous sûr de vouloir supprimer définitivement ce message?",
8
+ "Block User": "Bloquer un utilisateur",
9
+ "Cancel": "Annuler",
10
+ "Cannot Flag Message": "Impossible de signaler le message",
11
+ "Copy Message": "Copier le message",
12
+ "Delete": "Supprimer",
13
+ "Delete Message": "Supprimer un 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?": "Voulez-vous envoyer une copie de ce message à un modérateur pour une enquête plus approfondie?",
16
+ "Edit Message": "Éditer un message",
17
+ "Editing Message": "",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
25
- "Flag": "",
26
- "Flag Message": "",
27
- "Flag action failed either due to a network issue or the message is already flagged": "",
24
+ "File type not supported": "Le type de fichier n'est pas pris en charge",
25
+ "Flag": "Signaler",
26
+ "Flag Message": "Signaler le message",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "L'action de signalisation a échoué en raison d'un problème de réseau ou le message est déjà signalé.",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
@@ -33,43 +33,43 @@
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
35
35
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Taille maximale de téléchargement de fichier atteinte. Veuillez télécharger un fichier inférieur à {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} Mo.",
36
- "Message Reactions": "Réactions aux messages",
36
+ "Message Reactions": "",
37
37
  "Message deleted": "",
38
- "Message flagged": "",
39
- "Mute User": "",
38
+ "Message flagged": "Message signalé",
39
+ "Mute User": "Utilisateur muet",
40
40
  "Not supported": "",
41
41
  "Nothing yet...": "",
42
- "Ok": "",
42
+ "Ok": "Ok",
43
43
  "Only visible to you": "Seulement visible par vous",
44
- "Open Settings": "Ouvrir les paramètres",
45
- "Photo": "",
46
- "Photos and Videos": "Photos et vidéos",
47
- "Pin to Conversation": "",
48
- "Pinned by": "Épinglé par",
49
- "Please enable access to your photos and videos so you can share them.": "Veuillez autoriser l'accès à vos photos et vidéos afin de pouvoir les partager.",
44
+ "Open Settings": "",
45
+ "Photo": "Photo",
46
+ "Photos and Videos": "",
47
+ "Pin to Conversation": "Épingler à la conversation",
48
+ "Pinned by": "",
49
+ "Please enable access to your photos and videos so you can share them.": "",
50
50
  "Please select a channel first": "Veuillez d'abord selectionnez un canal",
51
51
  "Reconnecting...": "",
52
- "Reply": "",
52
+ "Reply": "Répondre",
53
53
  "Reply to Message": "",
54
- "Resend": "",
54
+ "Resend": "Renvoyer",
55
55
  "Search GIFs": "",
56
- "Select More Photos": "Sélectionner plus de photos",
56
+ "Select More Photos": "",
57
57
  "Send a message": "",
58
58
  "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
59
59
  "Slow mode ON": "",
60
- "The message has been reported to a moderator.": "",
61
- "Thread Reply": "",
62
- "Unblock User": "",
63
- "Unknown User": "Utilisateur inconnu",
64
- "Unmute User": "",
65
- "Unpin from Conversation": "",
66
- "Unread Messages": "Messages non lus",
67
- "Video": "",
60
+ "The message has been reported to a moderator.": "Le message a été signalé à un modérateur.",
61
+ "Thread Reply": "Réponse à la discussion",
62
+ "Unblock User": "Débloquer Utilisateur",
63
+ "Unknown User": "",
64
+ "Unmute User": "Activer le son de Utilisateur",
65
+ "Unpin from Conversation": "Décrocher de la conversation",
66
+ "Unread Messages": "",
67
+ "Video": "Vidéo",
68
68
  "You": "",
69
- "You can't send messages in this channel": "You can't send messages in this channel",
69
+ "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "{{ index }} sur {{ photoLength }}",
72
- "{{ replyCount }} Replies": "{{ replyCount }} Réponses",
71
+ "{{ index }} of {{ photoLength }}": "",
72
+ "{{ replyCount }} Replies": "",
73
73
  "{{ replyCount }} Thread Replies": "{{replyCount}} Réponses à la discussion",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""