stream-chat-react-native-core 5.31.0 → 5.31.1-beta.1
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/Message/MessageSimple/MessageFooter.js +8 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js +12 -3
- package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/es.json +68 -68
- package/lib/commonjs/i18n/fr.json +68 -68
- package/lib/commonjs/i18n/he.json +68 -68
- package/lib/commonjs/i18n/hi.json +68 -68
- package/lib/commonjs/i18n/it.json +68 -68
- package/lib/commonjs/i18n/ja.json +68 -68
- package/lib/commonjs/i18n/ko.json +68 -68
- package/lib/commonjs/i18n/nl.json +68 -68
- package/lib/commonjs/i18n/pt-BR.json +68 -68
- package/lib/commonjs/i18n/ru.json +68 -68
- package/lib/commonjs/i18n/tr.json +68 -68
- package/lib/commonjs/utils/getDateString.js +2 -2
- package/lib/commonjs/utils/getDateString.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +8 -0
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTimestamp.js +12 -3
- package/lib/module/components/Message/MessageSimple/MessageTimestamp.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/es.json +68 -68
- package/lib/module/i18n/fr.json +68 -68
- package/lib/module/i18n/he.json +68 -68
- package/lib/module/i18n/hi.json +68 -68
- package/lib/module/i18n/it.json +68 -68
- package/lib/module/i18n/ja.json +68 -68
- package/lib/module/i18n/ko.json +68 -68
- package/lib/module/i18n/nl.json +68 -68
- package/lib/module/i18n/pt-BR.json +68 -68
- package/lib/module/i18n/ru.json +68 -68
- package/lib/module/i18n/tr.json +68 -68
- package/lib/module/utils/getDateString.js +2 -2
- package/lib/module/utils/getDateString.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts +4 -0
- package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/es.json +68 -68
- package/lib/typescript/i18n/fr.json +68 -68
- package/lib/typescript/i18n/he.json +68 -68
- package/lib/typescript/i18n/hi.json +68 -68
- package/lib/typescript/i18n/it.json +68 -68
- package/lib/typescript/i18n/ja.json +68 -68
- package/lib/typescript/i18n/ko.json +68 -68
- package/lib/typescript/i18n/nl.json +68 -68
- package/lib/typescript/i18n/pt-BR.json +68 -68
- package/lib/typescript/i18n/ru.json +68 -68
- package/lib/typescript/i18n/tr.json +68 -68
- package/lib/typescript/utils/getDateString.d.ts +1 -1
- package/lib/typescript/utils/getDateString.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Message/MessageSimple/MessageFooter.tsx +12 -3
- package/src/components/Message/MessageSimple/MessageTimestamp.tsx +22 -6
- package/src/i18n/en.json +1 -1
- package/src/i18n/es.json +68 -68
- package/src/i18n/fr.json +68 -68
- package/src/i18n/he.json +68 -68
- package/src/i18n/hi.json +68 -68
- package/src/i18n/it.json +68 -68
- package/src/i18n/ja.json +68 -68
- package/src/i18n/ko.json +68 -68
- package/src/i18n/nl.json +68 -68
- package/src/i18n/pt-BR.json +68 -68
- package/src/i18n/ru.json +68 -68
- package/src/i18n/tr.json +68 -68
- package/src/utils/getDateString.ts +3 -3
- package/src/version.json +1 -1
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
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
|
-
"Are you sure?": "
|
|
9
|
-
"Block User": "
|
|
10
|
-
"Cancel": "
|
|
11
|
-
"Cannot Flag Message": "
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "
|
|
13
|
-
"Copy Message": "
|
|
14
|
-
"Delete": "
|
|
15
|
-
"Delete Message": "
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
18
|
-
"Edit Message": "
|
|
19
|
-
"Edited": "
|
|
20
|
-
"Editing Message": "
|
|
21
|
-
"Emoji matching": "
|
|
22
|
-
"Empty 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
|
+
"Are you sure?": "",
|
|
9
|
+
"Block User": "",
|
|
10
|
+
"Cancel": "",
|
|
11
|
+
"Cannot Flag Message": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
+
"Copy Message": "",
|
|
14
|
+
"Delete": "",
|
|
15
|
+
"Delete Message": "",
|
|
16
|
+
"Device camera is used to take photos or videos.": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
+
"Edit Message": "",
|
|
19
|
+
"Edited": "",
|
|
20
|
+
"Editing Message": "",
|
|
21
|
+
"Emoji matching": "",
|
|
22
|
+
"Empty message...": "",
|
|
23
23
|
"Error loading": "Ошибка при загрузке",
|
|
24
|
-
"Error loading channel list...": "
|
|
24
|
+
"Error loading channel list...": "",
|
|
25
25
|
"Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
|
|
26
|
-
"Error while loading, please reload/refresh": "
|
|
27
|
-
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "
|
|
28
|
-
"File type not supported": "
|
|
29
|
-
"Flag": "
|
|
30
|
-
"Flag Message": "
|
|
31
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
32
|
-
"Hold to start recording.": "
|
|
33
|
-
"How about sending your first message to a friend?": "
|
|
34
|
-
"Instant Commands": "
|
|
35
|
-
"Let's start chatting!": "
|
|
36
|
-
"Links are disabled": "
|
|
26
|
+
"Error while loading, please reload/refresh": "",
|
|
27
|
+
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
|
|
28
|
+
"File type not supported": "",
|
|
29
|
+
"Flag": "",
|
|
30
|
+
"Flag Message": "",
|
|
31
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
32
|
+
"Hold to start recording.": "",
|
|
33
|
+
"How about sending your first message to a friend?": "",
|
|
34
|
+
"Instant Commands": "",
|
|
35
|
+
"Let's start chatting!": "",
|
|
36
|
+
"Links are disabled": "",
|
|
37
37
|
"Loading channels...": "Загружаю каналы...",
|
|
38
38
|
"Loading messages...": "Загружаю сообщения...",
|
|
39
39
|
"Loading...": "Загружаю...",
|
|
40
40
|
"Message Reactions": "Сообщения Реакции",
|
|
41
41
|
"Message deleted": "Сообщение удалено",
|
|
42
|
-
"Message flagged": "
|
|
43
|
-
"Mute User": "
|
|
44
|
-
"No chats here yet…": "
|
|
45
|
-
"Not supported": "
|
|
46
|
-
"Nothing yet...": "
|
|
47
|
-
"Ok": "
|
|
42
|
+
"Message flagged": "",
|
|
43
|
+
"Mute User": "",
|
|
44
|
+
"No chats here yet…": "",
|
|
45
|
+
"Not supported": "",
|
|
46
|
+
"Nothing yet...": "",
|
|
47
|
+
"Ok": "",
|
|
48
48
|
"Only visible to you": "Видно только вам",
|
|
49
|
-
"Open Settings": "
|
|
50
|
-
"Photo": "
|
|
51
|
-
"Photos and Videos": "
|
|
52
|
-
"Pin to Conversation": "
|
|
49
|
+
"Open Settings": "",
|
|
50
|
+
"Photo": "",
|
|
51
|
+
"Photos and Videos": "",
|
|
52
|
+
"Pin to Conversation": "",
|
|
53
53
|
"Pinned by": "Закреплено пользователем",
|
|
54
|
-
"Please allow Audio permissions in settings.": "
|
|
55
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
56
|
-
"Please select a channel first": "
|
|
54
|
+
"Please allow Audio permissions in settings.": "",
|
|
55
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
56
|
+
"Please select a channel first": "",
|
|
57
57
|
"Reconnecting...": "Переподключение...",
|
|
58
|
-
"Reply": "
|
|
59
|
-
"Reply to Message": "
|
|
60
|
-
"Resend": "
|
|
61
|
-
"Search GIFs": "
|
|
62
|
-
"Select More Photos": "
|
|
63
|
-
"Send Anyway": "
|
|
64
|
-
"Send a message": "
|
|
65
|
-
"Sending links is not allowed in this conversation": "
|
|
66
|
-
"Slow mode ON": "
|
|
67
|
-
"The message has been reported to a moderator.": "
|
|
68
|
-
"Thread Reply": "
|
|
69
|
-
"Unblock User": "
|
|
70
|
-
"Unknown User": "
|
|
71
|
-
"Unmute User": "
|
|
72
|
-
"Unpin from Conversation": "
|
|
73
|
-
"Unread Messages": "
|
|
74
|
-
"Video": "
|
|
58
|
+
"Reply": "",
|
|
59
|
+
"Reply to Message": "",
|
|
60
|
+
"Resend": "",
|
|
61
|
+
"Search GIFs": "",
|
|
62
|
+
"Select More Photos": "",
|
|
63
|
+
"Send Anyway": "",
|
|
64
|
+
"Send a message": "",
|
|
65
|
+
"Sending links is not allowed in this conversation": "",
|
|
66
|
+
"Slow mode ON": "",
|
|
67
|
+
"The message has been reported to a moderator.": "",
|
|
68
|
+
"Thread Reply": "",
|
|
69
|
+
"Unblock User": "",
|
|
70
|
+
"Unknown User": "",
|
|
71
|
+
"Unmute User": "",
|
|
72
|
+
"Unpin from Conversation": "",
|
|
73
|
+
"Unread Messages": "",
|
|
74
|
+
"Video": "",
|
|
75
75
|
"You": "Вы",
|
|
76
|
-
"You can't send messages in this channel": "
|
|
77
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "
|
|
78
|
-
"{{ index }} of {{ photoLength }}": "
|
|
79
|
-
"{{ replyCount }} Replies": "
|
|
76
|
+
"You can't send messages in this channel": "",
|
|
77
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
78
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
79
|
+
"{{ replyCount }} Replies": "",
|
|
80
80
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
|
|
81
|
-
"{{ user }} is typing": "
|
|
82
|
-
"🏙 Attachment...": "
|
|
81
|
+
"{{ user }} is typing": "",
|
|
82
|
+
"🏙 Attachment...": ""
|
|
83
83
|
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
3
3
|
"1 Thread Reply": "1 Konu Yanıtı",
|
|
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
|
-
"Are you sure?": "
|
|
9
|
-
"Block User": "
|
|
10
|
-
"Cancel": "
|
|
11
|
-
"Cannot Flag Message": "
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "
|
|
13
|
-
"Copy Message": "
|
|
14
|
-
"Delete": "
|
|
15
|
-
"Delete Message": "
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
18
|
-
"Edit Message": "
|
|
19
|
-
"Edited": "
|
|
20
|
-
"Editing Message": "
|
|
21
|
-
"Emoji matching": "
|
|
22
|
-
"Empty 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
|
+
"Are you sure?": "",
|
|
9
|
+
"Block User": "",
|
|
10
|
+
"Cancel": "",
|
|
11
|
+
"Cannot Flag Message": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
+
"Copy Message": "",
|
|
14
|
+
"Delete": "",
|
|
15
|
+
"Delete Message": "",
|
|
16
|
+
"Device camera is used to take photos or videos.": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
+
"Edit Message": "",
|
|
19
|
+
"Edited": "",
|
|
20
|
+
"Editing Message": "",
|
|
21
|
+
"Emoji matching": "",
|
|
22
|
+
"Empty message...": "",
|
|
23
23
|
"Error loading": "Yükleme hatası",
|
|
24
|
-
"Error loading channel list...": "
|
|
24
|
+
"Error loading channel list...": "",
|
|
25
25
|
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
26
|
-
"Error while loading, please reload/refresh": "
|
|
27
|
-
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "
|
|
28
|
-
"File type not supported": "
|
|
29
|
-
"Flag": "
|
|
30
|
-
"Flag Message": "
|
|
31
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
32
|
-
"Hold to start recording.": "
|
|
33
|
-
"How about sending your first message to a friend?": "
|
|
34
|
-
"Instant Commands": "
|
|
35
|
-
"Let's start chatting!": "
|
|
36
|
-
"Links are disabled": "
|
|
26
|
+
"Error while loading, please reload/refresh": "",
|
|
27
|
+
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
|
|
28
|
+
"File type not supported": "",
|
|
29
|
+
"Flag": "",
|
|
30
|
+
"Flag Message": "",
|
|
31
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
32
|
+
"Hold to start recording.": "",
|
|
33
|
+
"How about sending your first message to a friend?": "",
|
|
34
|
+
"Instant Commands": "",
|
|
35
|
+
"Let's start chatting!": "",
|
|
36
|
+
"Links are disabled": "",
|
|
37
37
|
"Loading channels...": "Kanallar yükleniyor...",
|
|
38
38
|
"Loading messages...": "Mesajlar yükleniyor...",
|
|
39
39
|
"Loading...": "Yükleniyor...",
|
|
40
40
|
"Message Reactions": "Mesaj Tepkileri",
|
|
41
41
|
"Message deleted": "Mesaj silindi",
|
|
42
|
-
"Message flagged": "
|
|
43
|
-
"Mute User": "
|
|
44
|
-
"No chats here yet…": "
|
|
45
|
-
"Not supported": "
|
|
46
|
-
"Nothing yet...": "
|
|
47
|
-
"Ok": "
|
|
42
|
+
"Message flagged": "",
|
|
43
|
+
"Mute User": "",
|
|
44
|
+
"No chats here yet…": "",
|
|
45
|
+
"Not supported": "",
|
|
46
|
+
"Nothing yet...": "",
|
|
47
|
+
"Ok": "",
|
|
48
48
|
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
49
|
-
"Open Settings": "
|
|
50
|
-
"Photo": "
|
|
51
|
-
"Photos and Videos": "
|
|
52
|
-
"Pin to Conversation": "
|
|
49
|
+
"Open Settings": "",
|
|
50
|
+
"Photo": "",
|
|
51
|
+
"Photos and Videos": "",
|
|
52
|
+
"Pin to Conversation": "",
|
|
53
53
|
"Pinned by": "Tarafından sabitlendi",
|
|
54
|
-
"Please allow Audio permissions in settings.": "
|
|
55
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
56
|
-
"Please select a channel first": "
|
|
54
|
+
"Please allow Audio permissions in settings.": "",
|
|
55
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
56
|
+
"Please select a channel first": "",
|
|
57
57
|
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
58
|
-
"Reply": "
|
|
59
|
-
"Reply to Message": "
|
|
60
|
-
"Resend": "
|
|
61
|
-
"Search GIFs": "
|
|
62
|
-
"Select More Photos": "
|
|
63
|
-
"Send Anyway": "
|
|
64
|
-
"Send a message": "
|
|
65
|
-
"Sending links is not allowed in this conversation": "
|
|
66
|
-
"Slow mode ON": "
|
|
67
|
-
"The message has been reported to a moderator.": "
|
|
68
|
-
"Thread Reply": "
|
|
69
|
-
"Unblock User": "
|
|
70
|
-
"Unknown User": "
|
|
71
|
-
"Unmute User": "
|
|
72
|
-
"Unpin from Conversation": "
|
|
73
|
-
"Unread Messages": "
|
|
74
|
-
"Video": "
|
|
58
|
+
"Reply": "",
|
|
59
|
+
"Reply to Message": "",
|
|
60
|
+
"Resend": "",
|
|
61
|
+
"Search GIFs": "",
|
|
62
|
+
"Select More Photos": "",
|
|
63
|
+
"Send Anyway": "",
|
|
64
|
+
"Send a message": "",
|
|
65
|
+
"Sending links is not allowed in this conversation": "",
|
|
66
|
+
"Slow mode ON": "",
|
|
67
|
+
"The message has been reported to a moderator.": "",
|
|
68
|
+
"Thread Reply": "",
|
|
69
|
+
"Unblock User": "",
|
|
70
|
+
"Unknown User": "",
|
|
71
|
+
"Unmute User": "",
|
|
72
|
+
"Unpin from Conversation": "",
|
|
73
|
+
"Unread Messages": "",
|
|
74
|
+
"Video": "",
|
|
75
75
|
"You": "Sen",
|
|
76
|
-
"You can't send messages in this channel": "
|
|
77
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "
|
|
78
|
-
"{{ index }} of {{ photoLength }}": "
|
|
79
|
-
"{{ replyCount }} Replies": "
|
|
76
|
+
"You can't send messages in this channel": "",
|
|
77
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
78
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
79
|
+
"{{ replyCount }} Replies": "",
|
|
80
80
|
"{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
|
|
81
|
-
"{{ user }} is typing": "
|
|
82
|
-
"🏙 Attachment...": "
|
|
81
|
+
"{{ user }} is typing": "",
|
|
82
|
+
"🏙 Attachment...": ""
|
|
83
83
|
}
|
|
@@ -25,6 +25,6 @@ export declare const noParsingFunctionWarning = "MessageTimestamp was called but
|
|
|
25
25
|
/**
|
|
26
26
|
* Utility funcyion to format the date string.
|
|
27
27
|
*/
|
|
28
|
-
export declare function getDateString({ calendar, date, format, formatDate, tDateTimeParser, }: DateFormatterOptions): string | number |
|
|
28
|
+
export declare function getDateString({ calendar, date, format, formatDate, tDateTimeParser, }: DateFormatterOptions): string | number | undefined;
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=getDateString.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDateString.d.ts","sourceRoot":"","sources":["../../../src/utils/getDateString.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAE3D,UAAU,oBAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,MAAM,CAAC;IACpD;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,wBAAwB,oFAC8C,CAAC;AAEpF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,UAAU,EACV,eAAe,GAChB,EAAE,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"getDateString.d.ts","sourceRoot":"","sources":["../../../src/utils/getDateString.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAE3D,UAAU,oBAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,MAAM,CAAC;IACpD;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,wBAAwB,oFAC8C,CAAC;AAEpF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,UAAU,EACV,eAAe,GAChB,EAAE,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAyBpD"}
|
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.31.
|
|
4
|
+
"version": "5.31.1-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -28,6 +28,7 @@ import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
|
28
28
|
|
|
29
29
|
type MessageFooterComponentProps = {
|
|
30
30
|
date?: string | Date;
|
|
31
|
+
formattedDate?: string | Date;
|
|
31
32
|
isDeleted?: boolean;
|
|
32
33
|
};
|
|
33
34
|
|
|
@@ -89,6 +90,7 @@ const MessageFooterWithContext = <
|
|
|
89
90
|
alignment,
|
|
90
91
|
date,
|
|
91
92
|
deletedMessagesVisibilityType,
|
|
93
|
+
formattedDate,
|
|
92
94
|
isDeleted,
|
|
93
95
|
isEditedMessageOpen,
|
|
94
96
|
lastGroupMessage,
|
|
@@ -116,7 +118,7 @@ const MessageFooterWithContext = <
|
|
|
116
118
|
{deletedMessagesVisibilityType === 'sender' && (
|
|
117
119
|
<OnlyVisibleToYouComponent alignment={alignment} />
|
|
118
120
|
)}
|
|
119
|
-
<MessageTimestamp format='LT' timestamp={date} />
|
|
121
|
+
<MessageTimestamp format='LT' formattedDate={formattedDate} timestamp={date} />
|
|
120
122
|
</View>
|
|
121
123
|
);
|
|
122
124
|
}
|
|
@@ -135,7 +137,7 @@ const MessageFooterWithContext = <
|
|
|
135
137
|
<Text style={[styles.text, { color: grey }, messageUser]}>{message.user.name}</Text>
|
|
136
138
|
) : null}
|
|
137
139
|
{showMessageStatus && <MessageStatus />}
|
|
138
|
-
<MessageTimestamp format='LT' timestamp={date} />
|
|
140
|
+
<MessageTimestamp format='LT' formattedDate={formattedDate} timestamp={date} />
|
|
139
141
|
|
|
140
142
|
{isEditedMessage(message) && !isEditedMessageOpen && (
|
|
141
143
|
<>
|
|
@@ -157,7 +159,9 @@ const MessageFooterWithContext = <
|
|
|
157
159
|
</>
|
|
158
160
|
)}
|
|
159
161
|
</View>
|
|
160
|
-
{isEditedMessageOpen &&
|
|
162
|
+
{isEditedMessageOpen && (
|
|
163
|
+
<MessageEditedTimestamp format='LT' formattedDate={formattedDate} timestamp={date} />
|
|
164
|
+
)}
|
|
161
165
|
</>
|
|
162
166
|
);
|
|
163
167
|
};
|
|
@@ -169,6 +173,7 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
169
173
|
const {
|
|
170
174
|
alignment: prevAlignment,
|
|
171
175
|
date: prevDate,
|
|
176
|
+
formattedDate: prevFormattedDate,
|
|
172
177
|
isEditedMessageOpen: prevIsEditedMessageOpen,
|
|
173
178
|
lastGroupMessage: prevLastGroupMessage,
|
|
174
179
|
members: prevMembers,
|
|
@@ -179,6 +184,7 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
179
184
|
const {
|
|
180
185
|
alignment: nextAlignment,
|
|
181
186
|
date: nextDate,
|
|
187
|
+
formattedDate: nextFormattedDate,
|
|
182
188
|
isEditedMessageOpen: nextIsEditedMessageOpen,
|
|
183
189
|
lastGroupMessage: nextLastGroupMessage,
|
|
184
190
|
members: nextMembers,
|
|
@@ -226,6 +232,9 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
226
232
|
const dateEqual = prevDate === nextDate;
|
|
227
233
|
if (!dateEqual) return false;
|
|
228
234
|
|
|
235
|
+
const formattedDateEqual = prevFormattedDate === nextFormattedDate;
|
|
236
|
+
if (!formattedDateEqual) return false;
|
|
237
|
+
|
|
229
238
|
return true;
|
|
230
239
|
};
|
|
231
240
|
|
|
@@ -22,6 +22,10 @@ export type MessageTimestampProps = Partial<Pick<TranslationContextValue, 'tDate
|
|
|
22
22
|
* A function to format the date.
|
|
23
23
|
*/
|
|
24
24
|
formatDate?: (date: TDateTimeParserInput) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Already Formatted date
|
|
27
|
+
*/
|
|
28
|
+
formattedDate?: string | Date;
|
|
25
29
|
/**
|
|
26
30
|
* The timestamp of the message.
|
|
27
31
|
*/
|
|
@@ -29,7 +33,15 @@ export type MessageTimestampProps = Partial<Pick<TranslationContextValue, 'tDate
|
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
export const MessageTimestamp = (props: MessageTimestampProps) => {
|
|
32
|
-
const {
|
|
36
|
+
const {
|
|
37
|
+
calendar,
|
|
38
|
+
format,
|
|
39
|
+
formatDate,
|
|
40
|
+
formattedDate,
|
|
41
|
+
tDateTimeParser: propsTDateTimeParser,
|
|
42
|
+
timestamp,
|
|
43
|
+
} = props;
|
|
44
|
+
|
|
33
45
|
const {
|
|
34
46
|
theme: {
|
|
35
47
|
colors: { grey },
|
|
@@ -40,9 +52,15 @@ export const MessageTimestamp = (props: MessageTimestampProps) => {
|
|
|
40
52
|
} = useTheme();
|
|
41
53
|
const { tDateTimeParser: contextTDateTimeParser } = useTranslationContext();
|
|
42
54
|
|
|
55
|
+
if (formattedDate) {
|
|
56
|
+
return (
|
|
57
|
+
<Text style={[styles.text, { color: grey }, timestampText]}>{formattedDate.toString()}</Text>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
43
61
|
if (!timestamp) return null;
|
|
44
62
|
|
|
45
|
-
const
|
|
63
|
+
const dateString = getDateString({
|
|
46
64
|
calendar,
|
|
47
65
|
date: timestamp,
|
|
48
66
|
format,
|
|
@@ -50,11 +68,9 @@ export const MessageTimestamp = (props: MessageTimestampProps) => {
|
|
|
50
68
|
tDateTimeParser: propsTDateTimeParser || contextTDateTimeParser,
|
|
51
69
|
});
|
|
52
70
|
|
|
53
|
-
if (!
|
|
71
|
+
if (!dateString) return null;
|
|
54
72
|
|
|
55
|
-
return (
|
|
56
|
-
<Text style={[styles.text, { color: grey }, timestampText]}>{formattedDate.toString()}</Text>
|
|
57
|
-
);
|
|
73
|
+
return <Text style={[styles.text, { color: grey }, timestampText]}>{dateString.toString()}</Text>;
|
|
58
74
|
};
|
|
59
75
|
|
|
60
76
|
const styles = StyleSheet.create({
|
package/src/i18n/en.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"File type not supported": "File type not supported",
|
|
29
29
|
"Flag": "Flag",
|
|
30
30
|
"Flag Message": "Flag Message",
|
|
31
|
-
"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
|
|
31
|
+
"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",
|
|
32
32
|
"Hold to start recording.": "Hold to start recording.",
|
|
33
33
|
"How about sending your first message to a friend?": "How about sending your first message to a friend?",
|
|
34
34
|
"Instant Commands": "Instant Commands",
|
package/src/i18n/es.json
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
3
3
|
"1 Thread Reply": "1 respuesta de hilo",
|
|
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
|
-
"Are you sure?": "
|
|
9
|
-
"Block User": "
|
|
10
|
-
"Cancel": "
|
|
11
|
-
"Cannot Flag Message": "
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "
|
|
13
|
-
"Copy Message": "
|
|
14
|
-
"Delete": "
|
|
15
|
-
"Delete Message": "
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
18
|
-
"Edit Message": "
|
|
19
|
-
"Edited": "
|
|
20
|
-
"Editing Message": "
|
|
21
|
-
"Emoji matching": "
|
|
22
|
-
"Empty 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
|
+
"Are you sure?": "",
|
|
9
|
+
"Block User": "",
|
|
10
|
+
"Cancel": "",
|
|
11
|
+
"Cannot Flag Message": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
+
"Copy Message": "",
|
|
14
|
+
"Delete": "",
|
|
15
|
+
"Delete Message": "",
|
|
16
|
+
"Device camera is used to take photos or videos.": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
+
"Edit Message": "",
|
|
19
|
+
"Edited": "",
|
|
20
|
+
"Editing Message": "",
|
|
21
|
+
"Emoji matching": "",
|
|
22
|
+
"Empty message...": "",
|
|
23
23
|
"Error loading": "Error al cargar",
|
|
24
|
-
"Error loading channel list...": "
|
|
24
|
+
"Error loading channel list...": "",
|
|
25
25
|
"Error loading messages for this channel...": "Error al cargar los mensajes de este canal...",
|
|
26
|
-
"Error while loading, please reload/refresh": "
|
|
27
|
-
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "
|
|
28
|
-
"File type not supported": "
|
|
29
|
-
"Flag": "
|
|
30
|
-
"Flag Message": "
|
|
31
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
32
|
-
"Hold to start recording.": "
|
|
33
|
-
"How about sending your first message to a friend?": "
|
|
34
|
-
"Instant Commands": "
|
|
35
|
-
"Let's start chatting!": "
|
|
36
|
-
"Links are disabled": "
|
|
26
|
+
"Error while loading, please reload/refresh": "",
|
|
27
|
+
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
|
|
28
|
+
"File type not supported": "",
|
|
29
|
+
"Flag": "",
|
|
30
|
+
"Flag Message": "",
|
|
31
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
32
|
+
"Hold to start recording.": "",
|
|
33
|
+
"How about sending your first message to a friend?": "",
|
|
34
|
+
"Instant Commands": "",
|
|
35
|
+
"Let's start chatting!": "",
|
|
36
|
+
"Links are disabled": "",
|
|
37
37
|
"Loading channels...": "Cargando canales...",
|
|
38
38
|
"Loading messages...": "Cargando mensajes...",
|
|
39
39
|
"Loading...": "Cargando...",
|
|
40
40
|
"Message Reactions": "Reacciones al mensaje",
|
|
41
41
|
"Message deleted": "Mensaje eliminado",
|
|
42
|
-
"Message flagged": "
|
|
43
|
-
"Mute User": "
|
|
44
|
-
"No chats here yet…": "
|
|
45
|
-
"Not supported": "
|
|
46
|
-
"Nothing yet...": "
|
|
47
|
-
"Ok": "
|
|
42
|
+
"Message flagged": "",
|
|
43
|
+
"Mute User": "",
|
|
44
|
+
"No chats here yet…": "",
|
|
45
|
+
"Not supported": "",
|
|
46
|
+
"Nothing yet...": "",
|
|
47
|
+
"Ok": "",
|
|
48
48
|
"Only visible to you": "Solo visible para ti",
|
|
49
|
-
"Open Settings": "
|
|
50
|
-
"Photo": "
|
|
51
|
-
"Photos and Videos": "
|
|
52
|
-
"Pin to Conversation": "
|
|
49
|
+
"Open Settings": "",
|
|
50
|
+
"Photo": "",
|
|
51
|
+
"Photos and Videos": "",
|
|
52
|
+
"Pin to Conversation": "",
|
|
53
53
|
"Pinned by": "Fijado por",
|
|
54
|
-
"Please allow Audio permissions in settings.": "
|
|
55
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
56
|
-
"Please select a channel first": "
|
|
54
|
+
"Please allow Audio permissions in settings.": "",
|
|
55
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
56
|
+
"Please select a channel first": "",
|
|
57
57
|
"Reconnecting...": "Reconectando...",
|
|
58
|
-
"Reply": "
|
|
59
|
-
"Reply to Message": "
|
|
60
|
-
"Resend": "
|
|
61
|
-
"Search GIFs": "
|
|
62
|
-
"Select More Photos": "
|
|
63
|
-
"Send Anyway": "
|
|
64
|
-
"Send a message": "
|
|
65
|
-
"Sending links is not allowed in this conversation": "
|
|
66
|
-
"Slow mode ON": "
|
|
67
|
-
"The message has been reported to a moderator.": "
|
|
68
|
-
"Thread Reply": "
|
|
69
|
-
"Unblock User": "
|
|
70
|
-
"Unknown User": "
|
|
71
|
-
"Unmute User": "
|
|
72
|
-
"Unpin from Conversation": "
|
|
73
|
-
"Unread Messages": "
|
|
74
|
-
"Video": "
|
|
58
|
+
"Reply": "",
|
|
59
|
+
"Reply to Message": "",
|
|
60
|
+
"Resend": "",
|
|
61
|
+
"Search GIFs": "",
|
|
62
|
+
"Select More Photos": "",
|
|
63
|
+
"Send Anyway": "",
|
|
64
|
+
"Send a message": "",
|
|
65
|
+
"Sending links is not allowed in this conversation": "",
|
|
66
|
+
"Slow mode ON": "",
|
|
67
|
+
"The message has been reported to a moderator.": "",
|
|
68
|
+
"Thread Reply": "",
|
|
69
|
+
"Unblock User": "",
|
|
70
|
+
"Unknown User": "",
|
|
71
|
+
"Unmute User": "",
|
|
72
|
+
"Unpin from Conversation": "",
|
|
73
|
+
"Unread Messages": "",
|
|
74
|
+
"Video": "",
|
|
75
75
|
"You": "Tú",
|
|
76
|
-
"You can't send messages in this channel": "
|
|
77
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "
|
|
78
|
-
"{{ index }} of {{ photoLength }}": "
|
|
79
|
-
"{{ replyCount }} Replies": "
|
|
76
|
+
"You can't send messages in this channel": "",
|
|
77
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
78
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
79
|
+
"{{ replyCount }} Replies": "",
|
|
80
80
|
"{{ replyCount }} Thread Replies": "{{ replyCount }} respuestas de hilo",
|
|
81
|
-
"{{ user }} is typing": "
|
|
82
|
-
"🏙 Attachment...": "
|
|
81
|
+
"{{ user }} is typing": "",
|
|
82
|
+
"🏙 Attachment...": ""
|
|
83
83
|
}
|