stream-chat-react-native-core 5.22.0-beta.7 → 5.22.0-beta.8

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 (70) hide show
  1. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +4 -4
  2. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  3. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js +7 -5
  4. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  5. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.test.js +8 -0
  6. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.test.js.map +1 -0
  7. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +17 -16
  8. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  9. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +30 -20
  10. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  11. package/lib/commonjs/components/MessageInput/MessageInput.js +1 -1
  12. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  13. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +7 -7
  14. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  15. package/lib/commonjs/i18n/fr.json +12 -12
  16. package/lib/commonjs/i18n/hi.json +12 -12
  17. package/lib/commonjs/i18n/it.json +12 -12
  18. package/lib/commonjs/i18n/nl.json +12 -12
  19. package/lib/commonjs/i18n/ru.json +12 -12
  20. package/lib/commonjs/i18n/tr.json +12 -12
  21. package/lib/commonjs/types/types.js.map +1 -1
  22. package/lib/commonjs/version.json +1 -1
  23. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +4 -4
  24. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  25. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js +7 -5
  26. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  27. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.test.js +8 -0
  28. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.test.js.map +1 -0
  29. package/lib/module/components/Message/MessageSimple/utils/renderText.js +17 -16
  30. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  31. package/lib/module/components/MessageInput/FileUploadPreview.js +30 -20
  32. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  33. package/lib/module/components/MessageInput/MessageInput.js +1 -1
  34. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  35. package/lib/module/contexts/messageInputContext/MessageInputContext.js +7 -7
  36. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  37. package/lib/module/i18n/fr.json +12 -12
  38. package/lib/module/i18n/hi.json +12 -12
  39. package/lib/module/i18n/it.json +12 -12
  40. package/lib/module/i18n/nl.json +12 -12
  41. package/lib/module/i18n/ru.json +12 -12
  42. package/lib/module/i18n/tr.json +12 -12
  43. package/lib/module/types/types.js.map +1 -1
  44. package/lib/module/version.json +1 -1
  45. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts +1 -3
  46. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.test.d.ts +1 -0
  47. package/lib/typescript/i18n/fr.json +12 -12
  48. package/lib/typescript/i18n/hi.json +12 -12
  49. package/lib/typescript/i18n/it.json +12 -12
  50. package/lib/typescript/i18n/nl.json +12 -12
  51. package/lib/typescript/i18n/ru.json +12 -12
  52. package/lib/typescript/i18n/tr.json +12 -12
  53. package/lib/typescript/types/types.d.ts +8 -11
  54. package/package.json +1 -1
  55. package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +4 -4
  56. package/src/components/Message/MessageSimple/utils/generateMarkdownText.test.ts +23 -0
  57. package/src/components/Message/MessageSimple/utils/generateMarkdownText.ts +12 -13
  58. package/src/components/Message/MessageSimple/utils/renderText.tsx +2 -1
  59. package/src/components/MessageInput/FileUploadPreview.tsx +16 -1
  60. package/src/components/MessageInput/MessageInput.tsx +1 -1
  61. package/src/components/MessageInput/__tests__/MessageInput.test.js +2 -2
  62. package/src/contexts/messageInputContext/MessageInputContext.tsx +2 -2
  63. package/src/i18n/fr.json +12 -12
  64. package/src/i18n/hi.json +12 -12
  65. package/src/i18n/it.json +12 -12
  66. package/src/i18n/nl.json +12 -12
  67. package/src/i18n/ru.json +12 -12
  68. package/src/i18n/tr.json +12 -12
  69. package/src/types/types.ts +8 -12
  70. package/src/version.json +1 -1
package/src/i18n/ru.json CHANGED
@@ -15,23 +15,23 @@
15
15
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
16
  "Edit Message": "",
17
17
  "Editing Message": "",
18
- "Emoji matching": "",
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": "Тип файла не поддерживается",
24
+ "File type not supported": "",
25
25
  "Flag": "",
26
26
  "Flag Message": "",
27
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
- "Instant Commands": "",
29
+ "Instant Commands": "Мгновенные Команды",
30
30
  "Let's start chatting!": "",
31
31
  "Links are disabled": "",
32
- "Loading channels...": "Загружаю каналы...",
33
- "Loading messages...": "Загружаю сообщения...",
34
- "Loading...": "Загружаю...",
32
+ "Loading channels...": "",
33
+ "Loading messages...": "",
34
+ "Loading...": "",
35
35
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
36
  "Message Reactions": "",
37
37
  "Message deleted": "",
@@ -40,23 +40,23 @@
40
40
  "Not supported": "не поддерживается",
41
41
  "Nothing yet...": "",
42
42
  "Ok": "",
43
- "Only visible to you": "Видно только вам",
43
+ "Only visible to you": "",
44
44
  "Open Settings": "",
45
45
  "Photo": "Фото",
46
46
  "Photos and Videos": "",
47
47
  "Pin to Conversation": "",
48
48
  "Pinned by": "",
49
49
  "Please enable access to your photos and videos so you can share them.": "",
50
- "Please select a channel first": "Пожалуйста, сначала выберите канал",
50
+ "Please select a channel first": "",
51
51
  "Reconnecting...": "",
52
52
  "Reply": "",
53
53
  "Reply to Message": "",
54
54
  "Resend": "",
55
- "Search GIFs": "",
55
+ "Search GIFs": "Поиск GIF",
56
56
  "Select More Photos": "",
57
- "Send a message": "",
57
+ "Send a message": "Отправить сообщение",
58
58
  "Sending links is not allowed in this conversation": "",
59
- "Slow mode ON": "",
59
+ "Slow mode ON": "Медленный режим включен",
60
60
  "The message has been reported to a moderator.": "",
61
61
  "Thread Reply": "",
62
62
  "Unblock User": "",
@@ -66,7 +66,7 @@
66
66
  "Unread Messages": "",
67
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": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
71
71
  "{{ index }} of {{ photoLength }}": "",
72
72
  "{{ replyCount }} Replies": "",
package/src/i18n/tr.json CHANGED
@@ -15,23 +15,23 @@
15
15
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
16
  "Edit Message": "",
17
17
  "Editing Message": "",
18
- "Emoji matching": "",
18
+ "Emoji matching": "Emoji eşleştirme",
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": "Dosya türü desteklenmiyor",
24
+ "File type not supported": "",
25
25
  "Flag": "",
26
26
  "Flag Message": "",
27
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
- "Instant Commands": "",
29
+ "Instant Commands": "Anlık Komutlar",
30
30
  "Let's start chatting!": "",
31
31
  "Links are disabled": "",
32
- "Loading channels...": "Kanallar yükleniyor...",
33
- "Loading messages...": "Mesajlar yükleniyor...",
34
- "Loading...": "Yükleniyor...",
32
+ "Loading channels...": "",
33
+ "Loading messages...": "",
34
+ "Loading...": "",
35
35
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
36
  "Message Reactions": "",
37
37
  "Message deleted": "",
@@ -40,23 +40,23 @@
40
40
  "Not supported": "Desteklenmiyor",
41
41
  "Nothing yet...": "",
42
42
  "Ok": "",
43
- "Only visible to you": "Sadece siz görebilirsiniz",
43
+ "Only visible to you": "",
44
44
  "Open Settings": "",
45
45
  "Photo": "Fotoğraf",
46
46
  "Photos and Videos": "",
47
47
  "Pin to Conversation": "",
48
48
  "Pinned by": "",
49
49
  "Please enable access to your photos and videos so you can share them.": "",
50
- "Please select a channel first": "Lütfen önce bir kanal seçiniz",
50
+ "Please select a channel first": "",
51
51
  "Reconnecting...": "",
52
52
  "Reply": "",
53
53
  "Reply to Message": "",
54
54
  "Resend": "",
55
- "Search GIFs": "",
55
+ "Search GIFs": "GIF Ara",
56
56
  "Select More Photos": "",
57
- "Send a message": "",
57
+ "Send a message": "Mesaj gönder",
58
58
  "Sending links is not allowed in this conversation": "",
59
- "Slow mode ON": "",
59
+ "Slow mode ON": "Yavaş Mod Açık",
60
60
  "The message has been reported to a moderator.": "",
61
61
  "Thread Reply": "",
62
62
  "Unblock User": "",
@@ -66,7 +66,7 @@
66
66
  "Unread Messages": "",
67
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": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
71
71
  "{{ index }} of {{ photoLength }}": "",
72
72
  "{{ replyCount }} Replies": "",
@@ -1,33 +1,29 @@
1
1
  import type { ExtendableGenerics, LiteralStringForUnion } from 'stream-chat';
2
2
 
3
3
  export type Asset = {
4
- duration: number | null;
5
- filename: string;
4
+ duration: number;
6
5
  height: number;
6
+ name: string;
7
7
  source: 'camera' | 'picker';
8
8
  type: string;
9
9
  uri: string;
10
10
  width: number;
11
- fileSize?: number;
12
11
  id?: string;
13
- size?: number | string;
12
+ size?: number;
14
13
  };
15
14
 
16
- export type FileAssetType = {
15
+ export type File = {
17
16
  name: string;
17
+ duration?: number;
18
+ id?: string;
18
19
  mimeType?: string;
19
- size?: number | string;
20
+ size?: number;
20
21
  // The uri should be of type `string`. But is `string|undefined` because the same type is used for the response from Stream's Attachment. This shall be fixed.
21
22
  uri?: string;
22
23
  };
23
24
 
24
- export type File = FileAssetType & {
25
- duration?: string | null;
26
- id?: string;
27
- };
28
-
29
25
  export type DefaultAttachmentType = UnknownType & {
30
- file_size?: number | string;
26
+ file_size?: number;
31
27
  mime_type?: string;
32
28
  originalFile?: File;
33
29
  };
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.22.0-beta.7"
2
+ "version": "5.22.0-beta.8"
3
3
  }