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.
- package/lib/commonjs/components/Attachment/FileAttachment.js +10 -7
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +8 -6
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +20 -16
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +16 -14
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +4 -2
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +29 -32
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +7 -5
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +10 -8
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +10 -8
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +12 -10
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +20 -17
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +13 -11
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js +8 -14
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +11 -8
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +32 -29
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +17 -15
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +0 -4
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/hooks/useViewport.js +47 -0
- package/lib/commonjs/hooks/useViewport.js.map +1 -0
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/fr.json +48 -48
- package/lib/commonjs/i18n/hi.json +48 -48
- package/lib/commonjs/i18n/it.json +48 -48
- package/lib/commonjs/i18n/nl.json +48 -48
- package/lib/commonjs/i18n/ru.json +48 -48
- package/lib/commonjs/i18n/tr.json +48 -48
- package/lib/commonjs/utils/utils.js +1 -15
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +10 -7
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +8 -6
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +20 -16
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +16 -14
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +4 -2
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +29 -32
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +7 -5
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +10 -8
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js +10 -8
- package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/module/components/Indicators/EmptyStateIndicator.js +12 -10
- package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +20 -17
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/MessageList/InlineUnreadIndicator.js +13 -11
- package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionList.js +8 -14
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +11 -8
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js +32 -29
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +17 -15
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +0 -4
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/hooks/useViewport.js +47 -0
- package/lib/module/hooks/useViewport.js.map +1 -0
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/fr.json +48 -48
- package/lib/module/i18n/hi.json +48 -48
- package/lib/module/i18n/it.json +48 -48
- package/lib/module/i18n/nl.json +48 -48
- package/lib/module/i18n/ru.json +48 -48
- package/lib/module/i18n/tr.json +48 -48
- package/lib/module/utils/utils.js +1 -15
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +0 -3
- package/lib/typescript/hooks/useViewport.d.ts +11 -0
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/fr.json +48 -48
- package/lib/typescript/i18n/hi.json +48 -48
- package/lib/typescript/i18n/it.json +48 -48
- package/lib/typescript/i18n/nl.json +48 -48
- package/lib/typescript/i18n/ru.json +48 -48
- package/lib/typescript/i18n/tr.json +48 -48
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +1 -1
- package/lib/typescript/utils/Streami18n.d.ts +0 -4
- package/lib/typescript/utils/utils.d.ts +0 -2
- package/package.json +1 -1
- package/src/components/Attachment/FileAttachment.tsx +12 -3
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +3 -1
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +4 -3
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +4 -3
- package/src/components/ImageGallery/ImageGallery.tsx +9 -19
- package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +5 -3
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +5 -3
- package/src/components/ImageGallery/components/ImageGrid.tsx +2 -1
- package/src/components/Indicators/EmptyStateIndicator.tsx +4 -5
- package/src/components/Message/MessageSimple/MessageContent.tsx +3 -1
- package/src/components/MessageList/InlineUnreadIndicator.tsx +2 -1
- package/src/components/MessageOverlay/MessageActionList.tsx +3 -11
- package/src/components/MessageOverlay/MessageActionListItem.tsx +5 -2
- package/src/components/MessageOverlay/MessageOverlay.tsx +5 -3
- package/src/components/Thread/components/ThreadFooterComponent.tsx +2 -1
- package/src/contexts/themeContext/utils/theme.ts +0 -7
- package/src/hooks/useViewport.ts +41 -0
- package/src/i18n/en.json +1 -1
- package/src/i18n/fr.json +48 -48
- package/src/i18n/hi.json +48 -48
- package/src/i18n/it.json +48 -48
- package/src/i18n/nl.json +48 -48
- package/src/i18n/ru.json +48 -48
- package/src/i18n/tr.json +48 -48
- package/src/utils/utils.ts +0 -13
- package/src/version.json +1 -1
package/src/i18n/tr.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
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?": "
|
|
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": "
|
|
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": "
|
|
23
|
-
"Flag": "
|
|
24
|
-
"Flag Message": "
|
|
25
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
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": "
|
|
37
|
-
"Mute User": "
|
|
38
|
-
"Not supported": "",
|
|
36
|
+
"Message flagged": "",
|
|
37
|
+
"Mute User": "",
|
|
38
|
+
"Not supported": "Desteklenmiyor",
|
|
39
39
|
"Nothing yet...": "",
|
|
40
|
-
"Ok": "
|
|
40
|
+
"Ok": "",
|
|
41
41
|
"Only visible to you": "",
|
|
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": "",
|
|
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": "
|
|
49
|
+
"Reply": "",
|
|
50
50
|
"Reply to Message": "",
|
|
51
|
-
"Resend": "
|
|
51
|
+
"Resend": "",
|
|
52
52
|
"Search GIFs": "",
|
|
53
|
-
"Select More Photos": "
|
|
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.": "
|
|
58
|
-
"Thread Reply": "
|
|
59
|
-
"Unblock User": "
|
|
60
|
-
"Unknown User": "
|
|
61
|
-
"Unmute User": "
|
|
62
|
-
"Unpin from Conversation": "
|
|
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": "
|
|
64
|
+
"Video": "",
|
|
65
65
|
"You": "",
|
|
66
66
|
"You can't send messages in this channel": "",
|
|
67
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "
|
|
68
|
-
"{{ index }} of {{ photoLength }}": "
|
|
69
|
-
"{{ replyCount }} Replies": "
|
|
70
|
-
"{{ replyCount }} Thread Replies": "
|
|
71
|
-
"{{ user }} is typing": "
|
|
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
|
}
|
package/src/utils/utils.ts
CHANGED
|
@@ -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