stream-chat-react-native-core 5.22.0-beta.2 → 5.22.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 (136) hide show
  1. package/lib/commonjs/components/Attachment/FileAttachment.js +10 -7
  2. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  3. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +8 -6
  4. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  5. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +20 -16
  6. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  7. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +16 -14
  8. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  9. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +4 -2
  10. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  11. package/lib/commonjs/components/ImageGallery/ImageGallery.js +29 -32
  12. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  13. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +7 -5
  14. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  15. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +10 -8
  16. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  17. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +10 -8
  18. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  19. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +12 -10
  20. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
  21. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +20 -17
  22. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  23. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +13 -11
  24. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  25. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +8 -14
  26. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  27. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +11 -8
  28. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  29. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +32 -29
  30. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  31. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +17 -15
  32. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  33. package/lib/commonjs/contexts/themeContext/utils/theme.js +0 -4
  34. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  35. package/lib/commonjs/hooks/useViewport.js +47 -0
  36. package/lib/commonjs/hooks/useViewport.js.map +1 -0
  37. package/lib/commonjs/i18n/en.json +1 -1
  38. package/lib/commonjs/i18n/fr.json +48 -48
  39. package/lib/commonjs/i18n/hi.json +48 -48
  40. package/lib/commonjs/i18n/it.json +48 -48
  41. package/lib/commonjs/i18n/nl.json +48 -48
  42. package/lib/commonjs/i18n/ru.json +48 -48
  43. package/lib/commonjs/i18n/tr.json +48 -48
  44. package/lib/commonjs/utils/utils.js +1 -15
  45. package/lib/commonjs/utils/utils.js.map +1 -1
  46. package/lib/commonjs/version.json +1 -1
  47. package/lib/module/components/Attachment/FileAttachment.js +10 -7
  48. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  49. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +8 -6
  50. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  51. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +20 -16
  52. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  53. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +16 -14
  54. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  55. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +4 -2
  56. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  57. package/lib/module/components/ImageGallery/ImageGallery.js +29 -32
  58. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  59. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +7 -5
  60. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  61. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +10 -8
  62. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  63. package/lib/module/components/ImageGallery/components/ImageGrid.js +10 -8
  64. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  65. package/lib/module/components/Indicators/EmptyStateIndicator.js +12 -10
  66. package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
  67. package/lib/module/components/Message/MessageSimple/MessageContent.js +20 -17
  68. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  69. package/lib/module/components/MessageList/InlineUnreadIndicator.js +13 -11
  70. package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  71. package/lib/module/components/MessageOverlay/MessageActionList.js +8 -14
  72. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  73. package/lib/module/components/MessageOverlay/MessageActionListItem.js +11 -8
  74. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  75. package/lib/module/components/MessageOverlay/MessageOverlay.js +32 -29
  76. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  77. package/lib/module/components/Thread/components/ThreadFooterComponent.js +17 -15
  78. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  79. package/lib/module/contexts/themeContext/utils/theme.js +0 -4
  80. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  81. package/lib/module/hooks/useViewport.js +47 -0
  82. package/lib/module/hooks/useViewport.js.map +1 -0
  83. package/lib/module/i18n/en.json +1 -1
  84. package/lib/module/i18n/fr.json +48 -48
  85. package/lib/module/i18n/hi.json +48 -48
  86. package/lib/module/i18n/it.json +48 -48
  87. package/lib/module/i18n/nl.json +48 -48
  88. package/lib/module/i18n/ru.json +48 -48
  89. package/lib/module/i18n/tr.json +48 -48
  90. package/lib/module/utils/utils.js +1 -15
  91. package/lib/module/utils/utils.js.map +1 -1
  92. package/lib/module/version.json +1 -1
  93. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -1
  94. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
  95. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +1 -1
  96. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +1 -1
  97. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +0 -3
  98. package/lib/typescript/hooks/useViewport.d.ts +11 -0
  99. package/lib/typescript/i18n/en.json +1 -1
  100. package/lib/typescript/i18n/fr.json +48 -48
  101. package/lib/typescript/i18n/hi.json +48 -48
  102. package/lib/typescript/i18n/it.json +48 -48
  103. package/lib/typescript/i18n/nl.json +48 -48
  104. package/lib/typescript/i18n/ru.json +48 -48
  105. package/lib/typescript/i18n/tr.json +48 -48
  106. package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +1 -1
  107. package/lib/typescript/utils/Streami18n.d.ts +0 -4
  108. package/lib/typescript/utils/utils.d.ts +0 -2
  109. package/package.json +1 -1
  110. package/src/components/Attachment/FileAttachment.tsx +12 -3
  111. package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -2
  112. package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +3 -1
  113. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +4 -3
  114. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +4 -3
  115. package/src/components/ImageGallery/ImageGallery.tsx +9 -19
  116. package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +5 -3
  117. package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +5 -3
  118. package/src/components/ImageGallery/components/ImageGrid.tsx +2 -1
  119. package/src/components/Indicators/EmptyStateIndicator.tsx +4 -5
  120. package/src/components/Message/MessageSimple/MessageContent.tsx +3 -1
  121. package/src/components/MessageList/InlineUnreadIndicator.tsx +2 -1
  122. package/src/components/MessageOverlay/MessageActionList.tsx +3 -11
  123. package/src/components/MessageOverlay/MessageActionListItem.tsx +5 -2
  124. package/src/components/MessageOverlay/MessageOverlay.tsx +5 -3
  125. package/src/components/Thread/components/ThreadFooterComponent.tsx +2 -1
  126. package/src/contexts/themeContext/utils/theme.ts +0 -7
  127. package/src/hooks/useViewport.ts +41 -0
  128. package/src/i18n/en.json +1 -1
  129. package/src/i18n/fr.json +48 -48
  130. package/src/i18n/hi.json +48 -48
  131. package/src/i18n/it.json +48 -48
  132. package/src/i18n/nl.json +48 -48
  133. package/src/i18n/ru.json +48 -48
  134. package/src/i18n/tr.json +48 -48
  135. package/src/utils/utils.ts +0 -13
  136. package/src/version.json +1 -1
package/src/i18n/tr.json CHANGED
@@ -1,17 +1,17 @@
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",
2
+ "1 Reply": "",
3
+ "1 Thread Reply": "",
4
+ "Allow access to your Gallery": "",
5
5
  "Also send to channel": "",
6
- "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
7
- "Block User": "Kullanıcıyı engelle",
8
- "Cancel": "İptal",
9
- "Cannot Flag Message": "Raporlama Başarısız",
10
- "Copy Message": "Mesajı Kopyala",
11
- "Delete": "Sil",
12
- "Delete Message": "Mesajı Sil",
13
- "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?",
14
- "Edit Message": "Mesajı Düzenle",
6
+ "Are you sure you want to permanently delete this message?": "",
7
+ "Block User": "",
8
+ "Cancel": "",
9
+ "Cannot Flag Message": "",
10
+ "Copy Message": "",
11
+ "Delete": "",
12
+ "Delete Message": "",
13
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
14
+ "Edit Message": "",
15
15
  "Editing Message": "",
16
16
  "Emoji matching": "Emoji eşleştirme",
17
17
  "Empty message...": "",
@@ -19,55 +19,55 @@
19
19
  "Error loading channel list...": "",
20
20
  "Error loading messages for this channel...": "",
21
21
  "Error while loading, please reload/refresh": "",
22
- "File type not supported": "Dosya türü desteklenmiyor",
23
- "Flag": "Raporla",
24
- "Flag Message": "Mesajı Raporla",
25
- "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.",
22
+ "File type not supported": "",
23
+ "Flag": "",
24
+ "Flag Message": "",
25
+ "Flag action failed either due to a network issue or the message is already flagged": "",
26
26
  "How about sending your first message to a friend?": "",
27
27
  "Instant Commands": "Anlık Komutlar",
28
28
  "Let's start chatting!": "",
29
- "Links are disabled": "",
30
- "Loading channels...": "",
31
- "Loading messages...": "",
32
- "Loading...": "",
33
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
34
- "Message Reactions": "",
29
+ "Links are disabled": "Bağlantılar devre dışı",
30
+ "Loading channels...": "Kanallar yükleniyor...",
31
+ "Loading messages...": "Mesajlar yükleniyor...",
32
+ "Loading...": "Yükleniyor...",
33
+ "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.",
34
+ "Message Reactions": "Mesaj Tepkileri",
35
35
  "Message deleted": "",
36
- "Message flagged": "Mesaj işaretlendi",
37
- "Mute User": "Kullanıcıyı sessize al",
38
- "Not supported": "",
36
+ "Message flagged": "",
37
+ "Mute User": "",
38
+ "Not supported": "Desteklenmiyor",
39
39
  "Nothing yet...": "",
40
- "Ok": "Tamam",
40
+ "Ok": "",
41
41
  "Only visible to you": "",
42
- "Photo": "Fotoğraf",
43
- "Photos and Videos": "Fotoğraflar ve Videolar",
44
- "Pin to Conversation": "Konuşmaya sabitle",
45
- "Pinned by": "Tarafından sabitlendi",
46
- "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.",
47
- "Please select a channel first": "",
42
+ "Photo": "",
43
+ "Photos and Videos": "",
44
+ "Pin to Conversation": "",
45
+ "Pinned by": "",
46
+ "Please enable access to your photos and videos so you can share them.": "",
47
+ "Please select a channel first": "Lütfen önce bir kanal seçiniz",
48
48
  "Reconnecting...": "",
49
- "Reply": "Yanıtla",
49
+ "Reply": "",
50
50
  "Reply to Message": "",
51
- "Resend": "Yeniden gönder",
51
+ "Resend": "",
52
52
  "Search GIFs": "",
53
- "Select More Photos": "Daha Fazla Fotoğraf Seçin",
53
+ "Select More Photos": "",
54
54
  "Send a message": "",
55
- "Sending links is not allowed in this conversation": "",
55
+ "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
56
56
  "Slow mode ON": "",
57
- "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
58
- "Thread Reply": "Konu Yanıtı",
59
- "Unblock User": "Kullanıcının engelini kaldır",
60
- "Unknown User": "Bilinmeyen kullanıcı",
61
- "Unmute User": "Kullanıcının sesini aç",
62
- "Unpin from Conversation": "Sabitlemeyi kaldır",
57
+ "The message has been reported to a moderator.": "",
58
+ "Thread Reply": "",
59
+ "Unblock User": "",
60
+ "Unknown User": "",
61
+ "Unmute User": "",
62
+ "Unpin from Conversation": "",
63
63
  "Unread Messages": "",
64
- "Video": "Video",
64
+ "Video": "",
65
65
  "You": "",
66
66
  "You can't send messages in this channel": "",
67
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
68
- "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
69
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
70
- "{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
71
- "{{ user }} is typing": "{{ user }} yazıyor",
67
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
68
+ "{{ index }} of {{ photoLength }}": "",
69
+ "{{ replyCount }} Replies": "",
70
+ "{{ replyCount }} Thread Replies": "",
71
+ "{{ user }} is typing": "",
72
72
  "🏙 Attachment...": ""
73
73
  }
@@ -1,5 +1,4 @@
1
1
  import type React from 'react';
2
- import { Dimensions } from 'react-native';
3
2
 
4
3
  import type { DebouncedFunc } from 'lodash';
5
4
  import debounce from 'lodash/debounce';
@@ -519,18 +518,6 @@ export const getUrlWithoutParams = (url?: string) => {
519
518
 
520
519
  export const isLocalUrl = (url: string) => url.indexOf('http') !== 0;
521
520
 
522
- export const vw = (percentageWidth: number, rounded = false) => {
523
- const value = Dimensions.get('window').width * (percentageWidth / 100);
524
- return rounded ? Math.round(value) : value;
525
- };
526
-
527
- export const vh = (percentageHeight: number, rounded = false) => {
528
- const height = Dimensions.get('window').height;
529
-
530
- const value = height * (percentageHeight / 100);
531
- return rounded ? Math.round(value) : value;
532
- };
533
-
534
521
  export const generateRandomId = (a = ''): string =>
535
522
  a
536
523
  ? /* eslint-disable no-bitwise */
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.22.0-beta.2"
2
+ "version": "5.22.0-beta.4"
3
3
  }