stream-chat-react-native-core 5.26.1-beta.2 → 5.27.0-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/AttachmentPicker/AttachmentPicker.js +7 -11
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +27 -0
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -0
- package/lib/commonjs/components/Chat/Chat.js +12 -5
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +15 -11
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/i18n/es.json +32 -32
- package/lib/commonjs/i18n/fr.json +32 -32
- package/lib/commonjs/i18n/he.json +32 -32
- package/lib/commonjs/i18n/hi.json +31 -31
- package/lib/commonjs/i18n/it.json +31 -31
- package/lib/commonjs/i18n/ja.json +31 -31
- package/lib/commonjs/i18n/ko.json +31 -31
- package/lib/commonjs/i18n/nl.json +31 -31
- package/lib/commonjs/i18n/pt-BR.json +31 -31
- package/lib/commonjs/i18n/ru.json +31 -31
- package/lib/commonjs/i18n/tr.json +31 -31
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/StreamChatRN.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +7 -11
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +27 -0
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -0
- package/lib/module/components/Chat/Chat.js +12 -5
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js +2 -2
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +15 -11
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/i18n/es.json +32 -32
- package/lib/module/i18n/fr.json +32 -32
- package/lib/module/i18n/he.json +32 -32
- package/lib/module/i18n/hi.json +31 -31
- package/lib/module/i18n/it.json +31 -31
- package/lib/module/i18n/ja.json +31 -31
- package/lib/module/i18n/ko.json +31 -31
- package/lib/module/i18n/nl.json +31 -31
- package/lib/module/i18n/pt-BR.json +31 -31
- package/lib/module/i18n/ru.json +31 -31
- package/lib/module/i18n/tr.json +31 -31
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/StreamChatRN.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +4 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.d.ts +2 -0
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +4 -0
- package/lib/typescript/i18n/es.json +32 -32
- package/lib/typescript/i18n/fr.json +32 -32
- package/lib/typescript/i18n/he.json +32 -32
- package/lib/typescript/i18n/hi.json +31 -31
- package/lib/typescript/i18n/it.json +31 -31
- package/lib/typescript/i18n/ja.json +31 -31
- package/lib/typescript/i18n/ko.json +31 -31
- package/lib/typescript/i18n/nl.json +31 -31
- package/lib/typescript/i18n/pt-BR.json +31 -31
- package/lib/typescript/i18n/ru.json +31 -31
- package/lib/typescript/i18n/tr.json +31 -31
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/utils/StreamChatRN.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +8 -19
- package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx +10 -0
- package/src/components/Chat/Chat.tsx +7 -1
- package/src/components/Chat/hooks/useCreateChatContext.ts +2 -0
- package/src/contexts/chatContext/ChatContext.tsx +4 -0
- package/src/contexts/overlayContext/OverlayProvider.tsx +3 -0
- package/src/i18n/es.json +32 -32
- package/src/i18n/fr.json +32 -32
- package/src/i18n/he.json +32 -32
- package/src/i18n/hi.json +31 -31
- package/src/i18n/it.json +31 -31
- package/src/i18n/ja.json +31 -31
- package/src/i18n/ko.json +31 -31
- package/src/i18n/nl.json +31 -31
- package/src/i18n/pt-BR.json +31 -31
- package/src/i18n/ru.json +31 -31
- package/src/i18n/tr.json +31 -31
- package/src/index.ts +1 -1
- package/src/utils/StreamChatRN.ts +2 -0
- package/src/version.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "1 Cevap",
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
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
8
|
"Are you sure?": "",
|
|
@@ -13,49 +13,49 @@
|
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
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": "
|
|
19
|
+
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
21
|
+
"Empty message...": "Boş mesaj...",
|
|
22
22
|
"Error loading": "Yükleme hatası",
|
|
23
|
-
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "",
|
|
23
|
+
"Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
|
|
24
|
+
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
25
|
+
"Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
|
|
26
|
+
"File type not supported": "Dosya türü desteklenmiyor",
|
|
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
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
32
|
+
"Let's start chatting!": "Haydi sohbete başlayalım!",
|
|
33
33
|
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
34
|
+
"Loading channels...": "Kanallar yükleniyor...",
|
|
35
|
+
"Loading messages...": "Mesajlar yükleniyor...",
|
|
36
|
+
"Loading...": "Yükleniyor...",
|
|
37
37
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
38
|
-
"Message Reactions": "",
|
|
39
|
-
"Message deleted": "",
|
|
38
|
+
"Message Reactions": "Mesaj Tepkileri",
|
|
39
|
+
"Message deleted": "Mesaj silindi",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
43
|
-
"Nothing yet...": "",
|
|
42
|
+
"Not supported": "",
|
|
43
|
+
"Nothing yet...": "Henüz değil...",
|
|
44
44
|
"Ok": "",
|
|
45
45
|
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
46
|
-
"Open Settings": "
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "
|
|
46
|
+
"Open Settings": "",
|
|
47
|
+
"Photo": "Fotoğraf",
|
|
48
|
+
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "Tarafından sabitlendi",
|
|
51
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
51
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
52
52
|
"Please select a channel first": "",
|
|
53
|
-
"Reconnecting...": "",
|
|
53
|
+
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
54
54
|
"Reply": "",
|
|
55
55
|
"Reply to Message": "Mesajı Yanıtla",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "GIF Ara",
|
|
58
|
-
"Select More Photos": "
|
|
58
|
+
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
60
|
"Send a message": "Mesaj gönder",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
65
65
|
"Unblock User": "",
|
|
66
|
-
"Unknown User": "
|
|
66
|
+
"Unknown User": "",
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "Okunmamış Mesajlar",
|
|
70
|
-
"Video": "",
|
|
71
|
-
"You": "",
|
|
70
|
+
"Video": "Video",
|
|
71
|
+
"You": "Sen",
|
|
72
72
|
"You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
74
|
-
"{{ index }} of {{ photoLength }}": "
|
|
74
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "{{ replyCount }} Cevap",
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Ek..."
|
|
79
79
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from './hooks';
|
|
3
|
-
export { registerNativeHandlers, NetInfo } from './native';
|
|
3
|
+
export { registerNativeHandlers, NetInfo, iOS14RefreshGallerySelection } from './native';
|
|
4
4
|
export * from './contexts';
|
|
5
5
|
export * from './emoji-data';
|
|
6
6
|
export * from './icons';
|
|
@@ -4,6 +4,8 @@ type StreamConfig = {
|
|
|
4
4
|
/**
|
|
5
5
|
* StreamChatRN - Global config for the RN Chat SDK
|
|
6
6
|
* This config is used to enable/disable features and options for the SDK.
|
|
7
|
+
*
|
|
8
|
+
* @deprecated Use the `resizableCDNHosts` prop in the `Chat` component, instead. StreamChatRN will not be exposed starting the next major release.
|
|
7
9
|
*/
|
|
8
10
|
export declare class StreamChatRN {
|
|
9
11
|
/**
|
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.
|
|
4
|
+
"version": "5.27.0-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
BackHandler,
|
|
4
|
-
Button,
|
|
5
|
-
Dimensions,
|
|
6
|
-
Keyboard,
|
|
7
|
-
Platform,
|
|
8
|
-
StatusBar,
|
|
9
|
-
StyleSheet,
|
|
10
|
-
} from 'react-native';
|
|
2
|
+
import { BackHandler, Dimensions, Keyboard, Platform, StatusBar, StyleSheet } from 'react-native';
|
|
11
3
|
|
|
12
4
|
import BottomSheet, { BottomSheetFlatList, BottomSheetHandleProps } from '@gorhom/bottom-sheet';
|
|
13
5
|
import dayjs from 'dayjs';
|
|
@@ -19,13 +11,8 @@ import { renderAttachmentPickerItem } from './components/AttachmentPickerItem';
|
|
|
19
11
|
|
|
20
12
|
import { useAttachmentPickerContext } from '../../contexts/attachmentPickerContext/AttachmentPickerContext';
|
|
21
13
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
22
|
-
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
23
14
|
import { useViewport } from '../../hooks/useViewport';
|
|
24
|
-
import {
|
|
25
|
-
getPhotos,
|
|
26
|
-
iOS14RefreshGallerySelection,
|
|
27
|
-
oniOS14GalleryLibrarySelectionChange,
|
|
28
|
-
} from '../../native';
|
|
15
|
+
import { getPhotos, oniOS14GalleryLibrarySelectionChange } from '../../native';
|
|
29
16
|
import type { Asset } from '../../types/types';
|
|
30
17
|
|
|
31
18
|
dayjs.extend(duration);
|
|
@@ -57,6 +44,10 @@ export type AttachmentPickerProps = {
|
|
|
57
44
|
* **Default** [AttachmentPickerErrorImage](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/AttachmentPickerErrorImage.tsx)
|
|
58
45
|
*/
|
|
59
46
|
AttachmentPickerErrorImage: React.ComponentType;
|
|
47
|
+
/**
|
|
48
|
+
* Custom UI Component to render select more photos for selected gallery access in iOS.
|
|
49
|
+
*/
|
|
50
|
+
AttachmentPickerIOSSelectMorePhotos: React.ComponentType;
|
|
60
51
|
/**
|
|
61
52
|
* Custom UI component to render overlay component, that shows up on top of [selected image](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png) (with tick mark)
|
|
62
53
|
*
|
|
@@ -82,6 +73,7 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
82
73
|
attachmentPickerErrorButtonText,
|
|
83
74
|
AttachmentPickerErrorImage,
|
|
84
75
|
attachmentPickerErrorText,
|
|
76
|
+
AttachmentPickerIOSSelectMorePhotos,
|
|
85
77
|
ImageOverlaySelectedComponent,
|
|
86
78
|
numberOfAttachmentImagesToLoadPerCall,
|
|
87
79
|
numberOfAttachmentPickerImageColumns,
|
|
@@ -117,7 +109,6 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
117
109
|
const [loadingPhotos, setLoadingPhotos] = useState(false);
|
|
118
110
|
const [photos, setPhotos] = useState<Asset[]>([]);
|
|
119
111
|
const attemptedToLoadPhotosOnOpenRef = useRef(false);
|
|
120
|
-
const { t } = useTranslationContext();
|
|
121
112
|
|
|
122
113
|
const getMorePhotos = useCallback(async () => {
|
|
123
114
|
if (
|
|
@@ -323,9 +314,7 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
323
314
|
ref={ref}
|
|
324
315
|
snapPoints={snapPoints}
|
|
325
316
|
>
|
|
326
|
-
{iOSLimited &&
|
|
327
|
-
<Button onPress={iOS14RefreshGallerySelection} title={t('Select More Photos')} />
|
|
328
|
-
)}
|
|
317
|
+
{iOSLimited && <AttachmentPickerIOSSelectMorePhotos />}
|
|
329
318
|
<BottomSheetFlatList
|
|
330
319
|
contentContainerStyle={[
|
|
331
320
|
styles.container,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
5
|
+
import { iOS14RefreshGallerySelection } from '../../../native';
|
|
6
|
+
|
|
7
|
+
export const AttachmentPickerIOSSelectMorePhotos = () => {
|
|
8
|
+
const { t } = useTranslationContext();
|
|
9
|
+
return <Button onPress={iOS14RefreshGallerySelection} title={t('Select More Photos')} />;
|
|
10
|
+
};
|
|
@@ -27,6 +27,7 @@ import { SDK } from '../../native';
|
|
|
27
27
|
import { QuickSqliteClient } from '../../store/QuickSqliteClient';
|
|
28
28
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
29
29
|
import { DBSyncManager } from '../../utils/DBSyncManager';
|
|
30
|
+
import { StreamChatRN } from '../../utils/StreamChatRN';
|
|
30
31
|
import type { Streami18n } from '../../utils/Streami18n';
|
|
31
32
|
import { version } from '../../version.json';
|
|
32
33
|
|
|
@@ -35,7 +36,7 @@ init();
|
|
|
35
36
|
export type ChatProps<
|
|
36
37
|
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
37
38
|
> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> &
|
|
38
|
-
Partial<Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent'>> & {
|
|
39
|
+
Partial<Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent' | 'resizableCDNHosts'>> & {
|
|
39
40
|
/**
|
|
40
41
|
* When false, ws connection won't be disconnection upon backgrounding the app.
|
|
41
42
|
* To receive push notifications, its necessary that user doesn't have active
|
|
@@ -142,6 +143,7 @@ const ChatWithContext = <
|
|
|
142
143
|
enableOfflineSupport = false,
|
|
143
144
|
i18nInstance,
|
|
144
145
|
ImageComponent = Image,
|
|
146
|
+
resizableCDNHosts = ['.stream-io-cdn.com'],
|
|
145
147
|
style,
|
|
146
148
|
} = props;
|
|
147
149
|
|
|
@@ -169,6 +171,9 @@ const ChatWithContext = <
|
|
|
169
171
|
const debugRef = useDebugContext();
|
|
170
172
|
const isDebugModeEnabled = __DEV__ && debugRef && debugRef.current;
|
|
171
173
|
|
|
174
|
+
// Set the `resizableCDNHosts` as per the prop.
|
|
175
|
+
StreamChatRN.setConfig({ resizableCDNHosts });
|
|
176
|
+
|
|
172
177
|
useEffect(() => {
|
|
173
178
|
if (client) {
|
|
174
179
|
client.setUserAgent(`${SDK}-${Platform.OS}-${version}`);
|
|
@@ -209,6 +214,7 @@ const ChatWithContext = <
|
|
|
209
214
|
ImageComponent,
|
|
210
215
|
isOnline,
|
|
211
216
|
mutedUsers,
|
|
217
|
+
resizableCDNHosts,
|
|
212
218
|
setActiveChannel,
|
|
213
219
|
});
|
|
214
220
|
|
|
@@ -14,6 +14,7 @@ export const useCreateChatContext = <
|
|
|
14
14
|
ImageComponent,
|
|
15
15
|
isOnline,
|
|
16
16
|
mutedUsers,
|
|
17
|
+
resizableCDNHosts,
|
|
17
18
|
setActiveChannel,
|
|
18
19
|
}: ChatContextValue<StreamChatGenerics>) => {
|
|
19
20
|
const channelId = channel?.id;
|
|
@@ -34,6 +35,7 @@ export const useCreateChatContext = <
|
|
|
34
35
|
ImageComponent,
|
|
35
36
|
isOnline,
|
|
36
37
|
mutedUsers,
|
|
38
|
+
resizableCDNHosts,
|
|
37
39
|
setActiveChannel,
|
|
38
40
|
}),
|
|
39
41
|
[channelId, clientValues, connectionRecovering, isOnline, mutedUsersLength],
|
|
@@ -65,6 +65,10 @@ export type ChatContextValue<
|
|
|
65
65
|
* @overrideType Channel
|
|
66
66
|
*/
|
|
67
67
|
channel?: Channel<StreamChatGenerics>;
|
|
68
|
+
/**
|
|
69
|
+
* This option allows you to specify a list of CDNs that offer image resizing.
|
|
70
|
+
*/
|
|
71
|
+
resizableCDNHosts?: string[];
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
export const ChatContext = React.createContext(DEFAULT_BASE_CONTEXT_VALUE as ChatContextValue);
|
|
@@ -18,6 +18,7 @@ import { AttachmentPicker } from '../../components/AttachmentPicker/AttachmentPi
|
|
|
18
18
|
import { AttachmentPickerBottomSheetHandle as DefaultAttachmentPickerBottomSheetHandle } from '../../components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle';
|
|
19
19
|
import { AttachmentPickerError as DefaultAttachmentPickerError } from '../../components/AttachmentPicker/components/AttachmentPickerError';
|
|
20
20
|
import { AttachmentPickerErrorImage as DefaultAttachmentPickerErrorImage } from '../../components/AttachmentPicker/components/AttachmentPickerErrorImage';
|
|
21
|
+
import { AttachmentPickerIOSSelectMorePhotos as DefaultAttachmentPickerIOSSelectMorePhotos } from '../../components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos';
|
|
21
22
|
import { CameraSelectorIcon as DefaultCameraSelectorIcon } from '../../components/AttachmentPicker/components/CameraSelectorIcon';
|
|
22
23
|
import { FileSelectorIcon as DefaultFileSelectorIcon } from '../../components/AttachmentPicker/components/FileSelectorIcon';
|
|
23
24
|
import { ImageOverlaySelectedComponent as DefaultImageOverlaySelectedComponent } from '../../components/AttachmentPicker/components/ImageOverlaySelectedComponent';
|
|
@@ -73,6 +74,7 @@ export const OverlayProvider = <
|
|
|
73
74
|
AttachmentPickerErrorImage = DefaultAttachmentPickerErrorImage,
|
|
74
75
|
attachmentPickerErrorText,
|
|
75
76
|
attachmentSelectionBarHeight,
|
|
77
|
+
AttachmentPickerIOSSelectMorePhotos = DefaultAttachmentPickerIOSSelectMorePhotos,
|
|
76
78
|
bottomInset,
|
|
77
79
|
CameraSelectorIcon = DefaultCameraSelectorIcon,
|
|
78
80
|
children,
|
|
@@ -132,6 +134,7 @@ export const OverlayProvider = <
|
|
|
132
134
|
attachmentPickerErrorButtonText,
|
|
133
135
|
AttachmentPickerErrorImage,
|
|
134
136
|
attachmentPickerErrorText,
|
|
137
|
+
AttachmentPickerIOSSelectMorePhotos,
|
|
135
138
|
attachmentSelectionBarHeight,
|
|
136
139
|
ImageOverlaySelectedComponent,
|
|
137
140
|
numberOfAttachmentImagesToLoadPerCall,
|
package/src/i18n/es.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "1 respuesta",
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
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
8
|
"Are you sure?": "",
|
|
@@ -13,49 +13,49 @@
|
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
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": "
|
|
19
|
+
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
21
|
+
"Empty message...": "Mensaje vacío...",
|
|
22
22
|
"Error loading": "Error al cargar",
|
|
23
|
-
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "",
|
|
23
|
+
"Error loading channel list...": "Error al cargar la lista de canales...",
|
|
24
|
+
"Error loading messages for this channel...": "Error al cargar los mensajes de este canal...",
|
|
25
|
+
"Error while loading, please reload/refresh": "Error al cargar, por favor recarga/actualiza",
|
|
26
|
+
"File type not supported": "Tipo de archivo no admitido",
|
|
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
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "¿Qué tal enviar tu primer mensaje a un amigo?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
32
|
+
"Let's start chatting!": "¡Empecemos a charlar!",
|
|
33
33
|
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
34
|
+
"Loading channels...": "Cargando canales...",
|
|
35
|
+
"Loading messages...": "Cargando mensajes...",
|
|
36
|
+
"Loading...": "Cargando...",
|
|
37
37
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
38
|
-
"Message Reactions": "",
|
|
39
|
-
"Message deleted": "",
|
|
38
|
+
"Message Reactions": "Reacciones al mensaje",
|
|
39
|
+
"Message deleted": "Mensaje eliminado",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
43
|
-
"Nothing yet...": "",
|
|
42
|
+
"Not supported": "",
|
|
43
|
+
"Nothing yet...": "Aún no hay nada...",
|
|
44
44
|
"Ok": "",
|
|
45
45
|
"Only visible to you": "Solo visible para ti",
|
|
46
|
-
"Open Settings": "
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "
|
|
46
|
+
"Open Settings": "",
|
|
47
|
+
"Photo": "Foto",
|
|
48
|
+
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "Fijado por",
|
|
51
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
51
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
52
52
|
"Please select a channel first": "",
|
|
53
|
-
"Reconnecting...": "",
|
|
53
|
+
"Reconnecting...": "Reconectando...",
|
|
54
54
|
"Reply": "",
|
|
55
55
|
"Reply to Message": "Responder al mensaje",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "Buscar GIFs",
|
|
58
|
-
"Select More Photos": "
|
|
58
|
+
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
60
|
"Send a message": "Enviar un mensaje",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
65
65
|
"Unblock User": "",
|
|
66
|
-
"Unknown User": "
|
|
66
|
+
"Unknown User": "",
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
|
-
"Unread Messages": "
|
|
70
|
-
"Video": "",
|
|
71
|
-
"You": "",
|
|
69
|
+
"Unread Messages": "",
|
|
70
|
+
"Video": "Video",
|
|
71
|
+
"You": "Tú",
|
|
72
72
|
"You can't send messages in this channel": "No puedes enviar mensajes en este canal",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} y {{ nonSelfUserLength }} más están escribiendo",
|
|
74
|
-
"{{ index }} of {{ photoLength }}": "
|
|
74
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "{{ replyCount }} Respuestas",
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} está escribiendo",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Adjunto..."
|
|
79
79
|
}
|
package/src/i18n/fr.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "1 Réponse",
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
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
8
|
"Are you sure?": "",
|
|
@@ -13,49 +13,49 @@
|
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
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": "
|
|
19
|
+
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
21
|
+
"Empty message...": "Message vide...",
|
|
22
22
|
"Error loading": "Erreur lors du chargement",
|
|
23
|
-
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "",
|
|
23
|
+
"Error loading channel list...": "Erreur lors du chargement de la liste de canaux...",
|
|
24
|
+
"Error loading messages for this channel...": "Erreur lors du chargement des messages de ce canal...",
|
|
25
|
+
"Error while loading, please reload/refresh": "Erreur lors du chargement, veuillez recharger/rafraîchir",
|
|
26
|
+
"File type not supported": "Le type de fichier n'est pas pris en charge",
|
|
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
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "Et si vous envoyiez votre premier message à un ami ?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
32
|
+
"Let's start chatting!": "Commençons à discuter !",
|
|
33
33
|
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
34
|
+
"Loading channels...": "Chargement des canaux...",
|
|
35
|
+
"Loading messages...": "Chargement des messages...",
|
|
36
|
+
"Loading...": "Chargement...",
|
|
37
37
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
38
|
-
"Message Reactions": "",
|
|
39
|
-
"Message deleted": "",
|
|
38
|
+
"Message Reactions": "Réactions aux messages",
|
|
39
|
+
"Message deleted": "Message supprimé",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
43
|
-
"Nothing yet...": "",
|
|
42
|
+
"Not supported": "",
|
|
43
|
+
"Nothing yet...": "Aucun message...",
|
|
44
44
|
"Ok": "",
|
|
45
45
|
"Only visible to you": "Seulement visible par vous",
|
|
46
|
-
"Open Settings": "
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "
|
|
46
|
+
"Open Settings": "",
|
|
47
|
+
"Photo": "Photo",
|
|
48
|
+
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": "Épinglé par",
|
|
51
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
51
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
52
52
|
"Please select a channel first": "",
|
|
53
|
-
"Reconnecting...": "",
|
|
53
|
+
"Reconnecting...": "Se Reconnecter...",
|
|
54
54
|
"Reply": "",
|
|
55
55
|
"Reply to Message": "Répondre au message",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "Rechercher des GIF",
|
|
58
|
-
"Select More Photos": "
|
|
58
|
+
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
60
|
"Send a message": "Envoyer un message",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
65
65
|
"Unblock User": "",
|
|
66
|
-
"Unknown User": "
|
|
66
|
+
"Unknown User": "",
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
|
-
"Unread Messages": "
|
|
70
|
-
"Video": "",
|
|
71
|
-
"You": "",
|
|
69
|
+
"Unread Messages": "",
|
|
70
|
+
"Video": "Vidéo",
|
|
71
|
+
"You": "Toi",
|
|
72
72
|
"You can't send messages in this channel": "You can't send messages in this channel",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} et {{ nonSelfUserLength }} autres sont en train d'écrire",
|
|
74
|
-
"{{ index }} of {{ photoLength }}": "
|
|
74
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "{{ replyCount }} Réponses",
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} est en train d'écrire",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Pièce jointe..."
|
|
79
79
|
}
|
package/src/i18n/he.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "תגובה אחת",
|
|
3
|
-
"1 Thread Reply": "
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
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
8
|
"Are you sure?": "",
|
|
@@ -13,49 +13,49 @@
|
|
|
13
13
|
"Copy Message": "",
|
|
14
14
|
"Delete": "",
|
|
15
15
|
"Delete Message": "",
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
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": "
|
|
19
|
+
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
21
|
+
"Empty message...": "הודעה ריקה...",
|
|
22
22
|
"Error loading": "שגיאה ארעה בעת הטעינה",
|
|
23
|
-
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "",
|
|
23
|
+
"Error loading channel list...": "שגיאה ארעה בטעינת השיחות...",
|
|
24
|
+
"Error loading messages for this channel...": "שגיאה ארעה בטעינת הודעות עבור שיחה זאת...",
|
|
25
|
+
"Error while loading, please reload/refresh": "שגיאה ארעה בזמן הטעינה, אנא טען מחדש/רענן",
|
|
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
|
-
"How about sending your first message to a friend?": "",
|
|
30
|
+
"How about sending your first message to a friend?": "מה דעתך לשלוח את ההודעה הראשונה שלך לחבר?",
|
|
31
31
|
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
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
|
-
"Message Reactions": "",
|
|
39
|
-
"Message deleted": "",
|
|
38
|
+
"Message Reactions": "תגובות להודעה",
|
|
39
|
+
"Message deleted": "ההודעה נמחקה",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "
|
|
43
|
-
"Nothing yet...": "",
|
|
42
|
+
"Not supported": "",
|
|
43
|
+
"Nothing yet...": "אינפורמציה תתקבל בהמשך...",
|
|
44
44
|
"Ok": "",
|
|
45
45
|
"Only visible to you": "גלוי רק לך",
|
|
46
|
-
"Open Settings": "
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "
|
|
46
|
+
"Open Settings": "",
|
|
47
|
+
"Photo": "תמונה",
|
|
48
|
+
"Photos and Videos": "",
|
|
49
49
|
"Pin to Conversation": "",
|
|
50
50
|
"Pinned by": " - הוצמד לשיחה",
|
|
51
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
51
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
52
52
|
"Please select a channel first": "",
|
|
53
|
-
"Reconnecting...": "",
|
|
53
|
+
"Reconnecting...": "מתחבר מחדש...",
|
|
54
54
|
"Reply": "",
|
|
55
55
|
"Reply to Message": "השב/י להודעה",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "חפש/י GIFs",
|
|
58
|
-
"Select More Photos": "
|
|
58
|
+
"Select More Photos": "",
|
|
59
59
|
"Send Anyway": "",
|
|
60
60
|
"Send a message": "שלח/י הודעה",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
65
65
|
"Unblock User": "",
|
|
66
|
-
"Unknown User": "
|
|
66
|
+
"Unknown User": "",
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
|
-
"Unread Messages": "
|
|
70
|
-
"Video": "",
|
|
71
|
-
"You": "",
|
|
69
|
+
"Unread Messages": "",
|
|
70
|
+
"Video": "וִידֵאוֹ",
|
|
71
|
+
"You": "את/ה",
|
|
72
72
|
"You can't send messages in this channel": "את/ב לא יכול/ה לשלוח הודעות בשיחה זו",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ו-{{ nonSelfUserLength }} משתמש/ים אחר/ים מקלידים",
|
|
74
|
-
"{{ index }} of {{ photoLength }}": "
|
|
74
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
75
75
|
"{{ replyCount }} Replies": "{{ replyCount }} תגובות",
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} מקליד/ה",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 קובץ מצורף..."
|
|
79
79
|
}
|