stream-chat-react-native-core 5.28.0-beta.3 → 5.28.0-beta.5
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/AttachmentPicker/AttachmentPicker.js +10 -43
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/{AttachmentSelectionBar.js → AttachmentPickerSelectionBar.js} +6 -6
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +29 -53
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +2 -6
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +6 -3
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/index.js +4 -4
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -2
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +18 -9
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/hooks/index.js +11 -0
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useScreenDimensions.js +47 -0
- package/lib/commonjs/hooks/useScreenDimensions.js.map +1 -0
- package/lib/commonjs/i18n/es.json +17 -17
- package/lib/commonjs/i18n/fr.json +17 -17
- package/lib/commonjs/i18n/he.json +17 -17
- package/lib/commonjs/i18n/hi.json +17 -17
- package/lib/commonjs/i18n/it.json +17 -17
- package/lib/commonjs/i18n/ja.json +17 -17
- package/lib/commonjs/i18n/ko.json +17 -17
- package/lib/commonjs/i18n/nl.json +17 -17
- package/lib/commonjs/i18n/pt-BR.json +14 -14
- package/lib/commonjs/i18n/ru.json +17 -17
- package/lib/commonjs/i18n/tr.json +14 -14
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +10 -43
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/{AttachmentSelectionBar.js → AttachmentPickerSelectionBar.js} +6 -6
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -0
- package/lib/module/components/ImageGallery/ImageGallery.js +29 -53
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +2 -6
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +6 -3
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/index.js +4 -4
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -2
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +18 -9
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/hooks/index.js +11 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useScreenDimensions.js +47 -0
- package/lib/module/hooks/useScreenDimensions.js.map +1 -0
- package/lib/module/i18n/es.json +17 -17
- package/lib/module/i18n/fr.json +17 -17
- package/lib/module/i18n/he.json +17 -17
- package/lib/module/i18n/hi.json +17 -17
- package/lib/module/i18n/it.json +17 -17
- package/lib/module/i18n/ja.json +17 -17
- package/lib/module/i18n/ko.json +17 -17
- package/lib/module/i18n/nl.json +17 -17
- package/lib/module/i18n/pt-BR.json +14 -14
- package/lib/module/i18n/ru.json +17 -17
- package/lib/module/i18n/tr.json +14 -14
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +30 -12
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts +3 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +2 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +32 -3
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +2 -3
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/hooks/index.d.ts +1 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -1
- package/lib/typescript/hooks/useScreenDimensions.d.ts +12 -0
- package/lib/typescript/hooks/useScreenDimensions.d.ts.map +1 -0
- package/lib/typescript/i18n/es.json +17 -17
- package/lib/typescript/i18n/fr.json +17 -17
- package/lib/typescript/i18n/he.json +17 -17
- package/lib/typescript/i18n/hi.json +17 -17
- package/lib/typescript/i18n/it.json +17 -17
- package/lib/typescript/i18n/ja.json +17 -17
- package/lib/typescript/i18n/ko.json +17 -17
- package/lib/typescript/i18n/nl.json +17 -17
- package/lib/typescript/i18n/pt-BR.json +14 -14
- package/lib/typescript/i18n/ru.json +17 -17
- package/lib/typescript/i18n/tr.json +14 -14
- package/package.json +1 -1
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +21 -69
- package/src/components/AttachmentPicker/components/{AttachmentSelectionBar.tsx → AttachmentPickerSelectionBar.tsx} +2 -2
- package/src/components/ImageGallery/ImageGallery.tsx +31 -79
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -19
- package/src/components/MessageInput/MessageInput.tsx +11 -7
- package/src/components/MessageInput/__tests__/MessageInput.test.js +2 -0
- package/src/components/MessageInput/hooks/useCountdown.ts +1 -1
- package/src/components/MessageList/MessageList.tsx +4 -4
- package/src/components/index.ts +1 -1
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +34 -10
- package/src/contexts/overlayContext/OverlayContext.tsx +5 -4
- package/src/contexts/overlayContext/OverlayProvider.tsx +11 -8
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useScreenDimensions.ts +41 -0
- package/src/i18n/es.json +17 -17
- package/src/i18n/fr.json +17 -17
- package/src/i18n/he.json +17 -17
- package/src/i18n/hi.json +17 -17
- package/src/i18n/it.json +17 -17
- package/src/i18n/ja.json +17 -17
- package/src/i18n/ko.json +17 -17
- package/src/i18n/nl.json +17 -17
- package/src/i18n/pt-BR.json +14 -14
- package/src/i18n/ru.json +17 -17
- package/src/i18n/tr.json +14 -14
- package/src/version.json +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +0 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +0 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentSelectionBar.d.ts +0 -3
- package/lib/typescript/components/AttachmentPicker/components/AttachmentSelectionBar.d.ts.map +0 -1
|
@@ -5,46 +5,46 @@
|
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
8
|
+
"Are you sure?": "확실합니까?",
|
|
9
9
|
"Block User": "",
|
|
10
10
|
"Cancel": "",
|
|
11
11
|
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "당신의 댓글이 다른 사람들에게 어떤 영향을 줄지 고려하고 반드시 우리의 커뮤니티 가이드라인을 따르십시오",
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
17
|
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
|
-
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
19
|
+
"Editing Message": "메시지 편집중",
|
|
20
|
+
"Emoji matching": "이모티콘 매칭",
|
|
21
21
|
"Empty message...": "",
|
|
22
22
|
"Error loading": "",
|
|
23
23
|
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "",
|
|
25
25
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
26
|
+
"File type not supported": "",
|
|
27
27
|
"Flag": "",
|
|
28
28
|
"Flag Message": "",
|
|
29
29
|
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
30
30
|
"How about sending your first message to a friend?": "",
|
|
31
|
-
"Instant Commands": "",
|
|
31
|
+
"Instant Commands": "인스턴트 명령",
|
|
32
32
|
"Let's start chatting!": "",
|
|
33
33
|
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "
|
|
35
|
-
"Loading messages...": "
|
|
36
|
-
"Loading...": "
|
|
34
|
+
"Loading channels...": "",
|
|
35
|
+
"Loading messages...": "",
|
|
36
|
+
"Loading...": "",
|
|
37
37
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
38
38
|
"Message Reactions": "",
|
|
39
39
|
"Message deleted": "메시지가 삭제되었습니다.",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
42
|
+
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "",
|
|
45
|
+
"Only visible to you": "당신만 볼 수 있습니다",
|
|
46
46
|
"Open Settings": "",
|
|
47
|
-
"Photo": "
|
|
47
|
+
"Photo": "",
|
|
48
48
|
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "",
|
|
59
|
+
"Send Anyway": "그래도 보내기",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
62
62
|
"Slow mode ON": "",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "
|
|
71
|
-
"You": "
|
|
70
|
+
"Video": "",
|
|
71
|
+
"You": "",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} 외 {{ nonSelfUserLength }}명이 입력 중입니다",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "",
|
|
77
|
+
"{{ user }} is typing": "{{ user }} 타이핑 중",
|
|
78
78
|
"🏙 Attachment...": ""
|
|
79
79
|
}
|
|
@@ -5,46 +5,46 @@
|
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
8
|
+
"Are you sure?": "Weet je het zeker?",
|
|
9
9
|
"Block User": "",
|
|
10
10
|
"Cancel": "",
|
|
11
11
|
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Denk na over hoe jouw opmerking anderen zou kunnen laten voelen en zorg ervoor dat je onze Community-richtlijnen volgt",
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
17
|
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
|
-
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
19
|
+
"Editing Message": "Bericht aanpassen",
|
|
20
|
+
"Emoji matching": "Emoji-overeenkomsten",
|
|
21
21
|
"Empty message...": "",
|
|
22
22
|
"Error loading": "",
|
|
23
23
|
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "",
|
|
25
25
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
26
|
+
"File type not supported": "",
|
|
27
27
|
"Flag": "",
|
|
28
28
|
"Flag Message": "",
|
|
29
29
|
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
30
30
|
"How about sending your first message to a friend?": "",
|
|
31
|
-
"Instant Commands": "",
|
|
31
|
+
"Instant Commands": "Directe Opdrachten",
|
|
32
32
|
"Let's start chatting!": "",
|
|
33
33
|
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "
|
|
35
|
-
"Loading messages...": "
|
|
36
|
-
"Loading...": "
|
|
34
|
+
"Loading channels...": "",
|
|
35
|
+
"Loading messages...": "",
|
|
36
|
+
"Loading...": "",
|
|
37
37
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
38
38
|
"Message Reactions": "",
|
|
39
39
|
"Message deleted": "Bericht verwijderd",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
42
|
+
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "",
|
|
45
|
+
"Only visible to you": "Alleen zichtbaar voor jou",
|
|
46
46
|
"Open Settings": "",
|
|
47
|
-
"Photo": "
|
|
47
|
+
"Photo": "",
|
|
48
48
|
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "",
|
|
59
|
+
"Send Anyway": "Toch verzenden",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
62
62
|
"Slow mode ON": "",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "
|
|
71
|
-
"You": "
|
|
70
|
+
"Video": "",
|
|
71
|
+
"You": "",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "",
|
|
77
|
+
"{{ user }} is typing": "{{ user }} is aan het typen",
|
|
78
78
|
"🏙 Attachment...": ""
|
|
79
79
|
}
|
|
@@ -5,30 +5,30 @@
|
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
8
|
+
"Are you sure?": "Tem certeza?",
|
|
9
9
|
"Block User": "",
|
|
10
10
|
"Cancel": "",
|
|
11
11
|
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considere como seu comentário pode fazer os outros se sentirem e certifique-se de seguir nossas Diretrizes da Comunidade",
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
17
|
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
|
-
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
19
|
+
"Editing Message": "Editando Mensagem",
|
|
20
|
+
"Emoji matching": "Correspondência de Emoji",
|
|
21
21
|
"Empty message...": "",
|
|
22
22
|
"Error loading": "",
|
|
23
23
|
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "",
|
|
25
25
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
26
|
+
"File type not supported": "",
|
|
27
27
|
"Flag": "",
|
|
28
28
|
"Flag Message": "",
|
|
29
29
|
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
30
30
|
"How about sending your first message to a friend?": "",
|
|
31
|
-
"Instant Commands": "",
|
|
31
|
+
"Instant Commands": "Comandos Instantâneos",
|
|
32
32
|
"Let's start chatting!": "",
|
|
33
33
|
"Links are disabled": "",
|
|
34
34
|
"Loading channels...": "",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"Message deleted": "Mensagem excluída",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
42
|
+
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "",
|
|
45
|
+
"Only visible to you": "Apenas visível para você",
|
|
46
46
|
"Open Settings": "",
|
|
47
|
-
"Photo": "
|
|
47
|
+
"Photo": "",
|
|
48
48
|
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "",
|
|
59
|
+
"Send Anyway": "Enviar de qualquer maneira",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
62
62
|
"Slow mode ON": "",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "
|
|
71
|
-
"You": "
|
|
70
|
+
"Video": "",
|
|
71
|
+
"You": "",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "",
|
|
77
|
+
"{{ user }} is typing": "{{ user }} está digitando",
|
|
78
78
|
"🏙 Attachment...": ""
|
|
79
79
|
}
|
|
@@ -5,46 +5,46 @@
|
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
8
|
+
"Are you sure?": "Вы уверены?",
|
|
9
9
|
"Block User": "",
|
|
10
10
|
"Cancel": "",
|
|
11
11
|
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
17
|
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
|
-
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
19
|
+
"Editing Message": "Редактирование сообщения",
|
|
20
|
+
"Emoji matching": "Соответствие эмодзи",
|
|
21
21
|
"Empty message...": "",
|
|
22
22
|
"Error loading": "",
|
|
23
23
|
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "",
|
|
25
25
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
26
|
+
"File type not supported": "",
|
|
27
27
|
"Flag": "",
|
|
28
28
|
"Flag Message": "",
|
|
29
29
|
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
30
30
|
"How about sending your first message to a friend?": "",
|
|
31
|
-
"Instant Commands": "",
|
|
31
|
+
"Instant Commands": "Мгновенные Команды",
|
|
32
32
|
"Let's start chatting!": "",
|
|
33
33
|
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "
|
|
35
|
-
"Loading messages...": "
|
|
36
|
-
"Loading...": "
|
|
34
|
+
"Loading channels...": "",
|
|
35
|
+
"Loading messages...": "",
|
|
36
|
+
"Loading...": "",
|
|
37
37
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
38
38
|
"Message Reactions": "",
|
|
39
39
|
"Message deleted": "Сообщение удалено",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
42
|
+
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "",
|
|
45
|
+
"Only visible to you": "Видно только вам",
|
|
46
46
|
"Open Settings": "",
|
|
47
|
-
"Photo": "
|
|
47
|
+
"Photo": "",
|
|
48
48
|
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "",
|
|
59
|
+
"Send Anyway": "Всё равно отправить",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
62
62
|
"Slow mode ON": "",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "
|
|
71
|
-
"You": "
|
|
70
|
+
"Video": "",
|
|
71
|
+
"You": "",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "",
|
|
77
|
+
"{{ user }} is typing": "{{ user }} пишет",
|
|
78
78
|
"🏙 Attachment...": ""
|
|
79
79
|
}
|
|
@@ -5,30 +5,30 @@
|
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
6
|
"Also send to channel": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Are you sure?": "",
|
|
8
|
+
"Are you sure?": "Emin misiniz?",
|
|
9
9
|
"Block User": "",
|
|
10
10
|
"Cancel": "",
|
|
11
11
|
"Cannot Flag Message": "",
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Yorumunuzun diğerlerini nasıl hissettirebileceğini düşünün ve topluluk kurallarımızı takip ettiğinizden emin olun",
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
17
|
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
|
-
"Editing Message": "",
|
|
20
|
-
"Emoji matching": "",
|
|
19
|
+
"Editing Message": "Mesaj Düzenleniyor",
|
|
20
|
+
"Emoji matching": "Emoji eşleştirme",
|
|
21
21
|
"Empty message...": "",
|
|
22
22
|
"Error loading": "",
|
|
23
23
|
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "",
|
|
25
25
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
26
|
+
"File type not supported": "",
|
|
27
27
|
"Flag": "",
|
|
28
28
|
"Flag Message": "",
|
|
29
29
|
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
30
30
|
"How about sending your first message to a friend?": "",
|
|
31
|
-
"Instant Commands": "",
|
|
31
|
+
"Instant Commands": "Anlık Komutlar",
|
|
32
32
|
"Let's start chatting!": "",
|
|
33
33
|
"Links are disabled": "",
|
|
34
34
|
"Loading channels...": "",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"Message deleted": "Mesaj silindi",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
42
|
+
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "",
|
|
45
|
+
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
46
46
|
"Open Settings": "",
|
|
47
|
-
"Photo": "
|
|
47
|
+
"Photo": "",
|
|
48
48
|
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "",
|
|
59
|
+
"Send Anyway": "Yine de Gönder",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
62
62
|
"Slow mode ON": "",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "
|
|
71
|
-
"You": "
|
|
70
|
+
"Video": "",
|
|
71
|
+
"You": "",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "",
|
|
77
|
+
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
78
78
|
"🏙 Attachment...": ""
|
|
79
79
|
}
|
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.28.0-beta.
|
|
4
|
+
"version": "5.28.0-beta.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import { BackHandler,
|
|
2
|
+
import { BackHandler, Keyboard, Platform, StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import BottomSheet, { BottomSheetFlatList
|
|
4
|
+
import BottomSheet, { BottomSheetFlatList } from '@gorhom/bottom-sheet';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
6
|
import duration from 'dayjs/plugin/duration';
|
|
7
7
|
|
|
@@ -9,9 +9,12 @@ import type { AttachmentPickerErrorProps } from './components/AttachmentPickerEr
|
|
|
9
9
|
|
|
10
10
|
import { renderAttachmentPickerItem } from './components/AttachmentPickerItem';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
AttachmentPickerContextValue,
|
|
14
|
+
useAttachmentPickerContext,
|
|
15
|
+
} from '../../contexts/attachmentPickerContext/AttachmentPickerContext';
|
|
13
16
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
14
|
-
import {
|
|
17
|
+
import { useScreenDimensions } from '../../hooks/useScreenDimensions';
|
|
15
18
|
import { getPhotos, oniOS14GalleryLibrarySelectionChange } from '../../native';
|
|
16
19
|
import type { Asset } from '../../types/types';
|
|
17
20
|
|
|
@@ -23,15 +26,13 @@ const styles = StyleSheet.create({
|
|
|
23
26
|
},
|
|
24
27
|
});
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
AttachmentPickerBottomSheetHandle: React.FC<BottomSheetHandleProps>;
|
|
29
|
+
export type AttachmentPickerProps = Pick<
|
|
30
|
+
AttachmentPickerContextValue,
|
|
31
|
+
| 'AttachmentPickerBottomSheetHandle'
|
|
32
|
+
| 'attachmentPickerBottomSheetHandleHeight'
|
|
33
|
+
| 'attachmentSelectionBarHeight'
|
|
34
|
+
| 'attachmentPickerBottomSheetHeight'
|
|
35
|
+
> & {
|
|
35
36
|
/**
|
|
36
37
|
* Custom UI component to render error component while opening attachment picker.
|
|
37
38
|
*
|
|
@@ -54,13 +55,10 @@ export type AttachmentPickerProps = {
|
|
|
54
55
|
* **Default** [ImageOverlaySelectedComponent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageOverlaySelectedComponent.tsx)
|
|
55
56
|
*/
|
|
56
57
|
ImageOverlaySelectedComponent: React.ComponentType;
|
|
57
|
-
attachmentPickerBottomSheetHandleHeight?: number;
|
|
58
|
-
attachmentPickerBottomSheetHeight?: number;
|
|
59
58
|
attachmentPickerErrorButtonText?: string;
|
|
60
59
|
attachmentPickerErrorText?: string;
|
|
61
60
|
numberOfAttachmentImagesToLoadPerCall?: number;
|
|
62
61
|
numberOfAttachmentPickerImageColumns?: number;
|
|
63
|
-
translucentStatusBar?: boolean;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
64
|
export const AttachmentPicker = React.forwardRef(
|
|
@@ -77,7 +75,6 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
77
75
|
ImageOverlaySelectedComponent,
|
|
78
76
|
numberOfAttachmentImagesToLoadPerCall,
|
|
79
77
|
numberOfAttachmentPickerImageColumns,
|
|
80
|
-
translucentStatusBar,
|
|
81
78
|
} = props;
|
|
82
79
|
|
|
83
80
|
const {
|
|
@@ -97,9 +94,9 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
97
94
|
setSelectedPicker,
|
|
98
95
|
topInset,
|
|
99
96
|
} = useAttachmentPickerContext();
|
|
100
|
-
const { vh } =
|
|
97
|
+
const { vh: screenVh } = useScreenDimensions();
|
|
101
98
|
|
|
102
|
-
const
|
|
99
|
+
const fullScreenHeight = screenVh(100);
|
|
103
100
|
|
|
104
101
|
const [currentIndex, setCurrentIndex] = useState(-1);
|
|
105
102
|
const endCursorRef = useRef<string>();
|
|
@@ -239,63 +236,18 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
239
236
|
setSelectedImages,
|
|
240
237
|
}));
|
|
241
238
|
|
|
242
|
-
const handleHeight = attachmentPickerBottomSheetHandleHeight
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* This is to handle issues with Android measurements coming back incorrect.
|
|
246
|
-
* If the StatusBar height is perfectly 1/2 of the difference between the two
|
|
247
|
-
* dimensions for screen and window, it is incorrect and we need to account for
|
|
248
|
-
* this. If you use a translucent header bar more adjustments are needed.
|
|
249
|
-
*/
|
|
250
|
-
const getAndroidBottomBarHeightAdjustment = (): number => {
|
|
251
|
-
if (Platform.OS === 'android') {
|
|
252
|
-
const statusBarHeight = StatusBar.currentHeight ?? 0;
|
|
253
|
-
const bottomBarHeight = fullScreenHeight - screenHeight - statusBarHeight;
|
|
254
|
-
if (bottomBarHeight === statusBarHeight) {
|
|
255
|
-
return translucentStatusBar ? 0 : statusBarHeight;
|
|
256
|
-
} else {
|
|
257
|
-
if (translucentStatusBar) {
|
|
258
|
-
if (bottomBarHeight > statusBarHeight) {
|
|
259
|
-
return -bottomBarHeight + statusBarHeight;
|
|
260
|
-
} else {
|
|
261
|
-
return bottomBarHeight > 0 ? -statusBarHeight : 0;
|
|
262
|
-
}
|
|
263
|
-
} else {
|
|
264
|
-
return bottomBarHeight > 0 ? 0 : statusBarHeight;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
return 0;
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
const getInitialSnapPoint = (): number => {
|
|
272
|
-
if (attachmentPickerBottomSheetHeight !== undefined) {
|
|
273
|
-
return attachmentPickerBottomSheetHeight;
|
|
274
|
-
}
|
|
275
|
-
if (Platform.OS === 'android') {
|
|
276
|
-
return (
|
|
277
|
-
308 +
|
|
278
|
-
(fullScreenHeight - screenHeight + getAndroidBottomBarHeightAdjustment()) -
|
|
279
|
-
handleHeight
|
|
280
|
-
);
|
|
281
|
-
} else {
|
|
282
|
-
return 308 + (fullScreenHeight - screenHeight);
|
|
283
|
-
}
|
|
284
|
-
};
|
|
239
|
+
const handleHeight = attachmentPickerBottomSheetHandleHeight;
|
|
285
240
|
|
|
286
|
-
const initialSnapPoint =
|
|
241
|
+
const initialSnapPoint = attachmentPickerBottomSheetHeight;
|
|
287
242
|
|
|
288
|
-
const finalSnapPoint =
|
|
289
|
-
Platform.OS === 'android'
|
|
290
|
-
? fullScreenHeight - topInset - handleHeight
|
|
291
|
-
: fullScreenHeight - topInset;
|
|
243
|
+
const finalSnapPoint = fullScreenHeight - topInset;
|
|
292
244
|
|
|
293
245
|
/**
|
|
294
246
|
* Snap points changing cause a rerender of the position,
|
|
295
247
|
* this is an issue if you are calling close on the bottom sheet.
|
|
296
248
|
*/
|
|
297
249
|
const snapPoints = useMemo(
|
|
298
|
-
() => [
|
|
250
|
+
() => [initialSnapPoint, finalSnapPoint],
|
|
299
251
|
[initialSnapPoint, finalSnapPoint],
|
|
300
252
|
);
|
|
301
253
|
|
|
@@ -334,7 +286,7 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
334
286
|
</BottomSheet>
|
|
335
287
|
{selectedPicker === 'images' && photoError && (
|
|
336
288
|
<AttachmentPickerError
|
|
337
|
-
attachmentPickerBottomSheetHeight={
|
|
289
|
+
attachmentPickerBottomSheetHeight={attachmentPickerBottomSheetHeight}
|
|
338
290
|
attachmentPickerErrorButtonText={attachmentPickerErrorButtonText}
|
|
339
291
|
AttachmentPickerErrorImage={AttachmentPickerErrorImage}
|
|
340
292
|
attachmentPickerErrorText={attachmentPickerErrorText}
|
|
@@ -19,7 +19,7 @@ const styles = StyleSheet.create({
|
|
|
19
19
|
},
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const AttachmentPickerSelectionBar = () => {
|
|
23
23
|
const {
|
|
24
24
|
attachmentSelectionBarHeight,
|
|
25
25
|
CameraSelectorIcon,
|
|
@@ -75,7 +75,7 @@ export const AttachmentSelectionBar = () => {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
|
-
<View style={[styles.container, container, { height: attachmentSelectionBarHeight
|
|
78
|
+
<View style={[styles.container, container, { height: attachmentSelectionBarHeight }]}>
|
|
79
79
|
<TouchableOpacity
|
|
80
80
|
hitSlop={{ bottom: 15, top: 15 }}
|
|
81
81
|
onPress={() => setPicker('images')}
|