stream-chat-react-native-core 5.0.0-offline-support.5 → 5.0.0-offline-support.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Attachment/Gallery.js +85 -56
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js +29 -29
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/VideoThumbnail.js +18 -16
- package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +10 -10
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js +7 -7
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/handleEventToSyncDB.js +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +15 -8
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +10 -5
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +4 -2
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +4 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +130 -70
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +22 -14
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +2 -2
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +5 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/{components/Attachment/hooks → hooks}/useLoadingImage.js +10 -0
- package/lib/commonjs/hooks/useLoadingImage.js.map +1 -0
- package/lib/commonjs/i18n/en.json +2 -1
- package/lib/commonjs/i18n/fr.json +2 -1
- package/lib/commonjs/i18n/he.json +2 -0
- package/lib/commonjs/i18n/hi.json +2 -1
- package/lib/commonjs/i18n/it.json +2 -1
- package/lib/commonjs/i18n/ja.json +2 -0
- package/lib/commonjs/i18n/ko.json +2 -0
- package/lib/commonjs/i18n/nl.json +2 -1
- package/lib/commonjs/i18n/ru.json +2 -1
- package/lib/commonjs/i18n/tr.json +2 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Gallery.js +85 -56
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js +29 -29
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/VideoThumbnail.js +18 -16
- package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js +10 -10
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js +7 -7
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/handleEventToSyncDB.js +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +15 -8
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +10 -5
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGridHandle.js +1 -1
- package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +4 -2
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js +4 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +130 -70
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +22 -14
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +2 -2
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +5 -1
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/{components/Attachment/hooks → hooks}/useLoadingImage.js +10 -0
- package/lib/module/hooks/useLoadingImage.js.map +1 -0
- package/lib/module/i18n/en.json +2 -1
- package/lib/module/i18n/fr.json +2 -1
- package/lib/module/i18n/he.json +2 -0
- package/lib/module/i18n/hi.json +2 -1
- package/lib/module/i18n/it.json +2 -1
- package/lib/module/i18n/ja.json +2 -0
- package/lib/module/i18n/ko.json +2 -0
- package/lib/module/i18n/nl.json +2 -1
- package/lib/module/i18n/ru.json +2 -1
- package/lib/module/i18n/tr.json +2 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/VideoThumbnail.d.ts +4 -2
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +4 -0
- package/lib/typescript/{components/Attachment/hooks → hooks}/useLoadingImage.d.ts +0 -0
- package/lib/typescript/i18n/en.json +2 -1
- package/lib/typescript/i18n/fr.json +2 -1
- package/lib/typescript/i18n/he.json +2 -0
- package/lib/typescript/i18n/hi.json +2 -1
- package/lib/typescript/i18n/it.json +2 -1
- package/lib/typescript/i18n/ja.json +2 -0
- package/lib/typescript/i18n/ko.json +2 -0
- package/lib/typescript/i18n/nl.json +2 -1
- package/lib/typescript/i18n/ru.json +2 -1
- package/lib/typescript/i18n/tr.json +2 -1
- package/lib/typescript/utils/Streami18n.d.ts +2 -1
- package/package.json +3 -3
- package/src/components/Attachment/Gallery.tsx +68 -25
- package/src/components/Attachment/Giphy.tsx +1 -2
- package/src/components/Attachment/VideoThumbnail.tsx +14 -4
- package/src/components/Avatar/Avatar.tsx +4 -5
- package/src/components/Avatar/GroupAvatar.tsx +15 -16
- package/src/components/ChannelList/hooks/listeners/handleEventToSyncDB.ts +1 -1
- package/src/components/ChannelPreview/ChannelPreview.tsx +12 -10
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +5 -5
- package/src/components/ImageGallery/components/ImageGridHandle.tsx +1 -1
- package/src/components/MessageInput/FileUploadPreview.tsx +3 -3
- package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
- package/src/components/MessageInput/__tests__/__snapshots__/MessageInput.test.js.snap +12 -16
- package/src/components/MessageList/MessageList.tsx +8 -10
- package/src/components/MessageList/__tests__/__snapshots__/TypingIndicator.test.js.snap +42 -45
- package/src/components/Reply/Reply.tsx +15 -3
- package/src/contexts/messageInputContext/MessageInputContext.tsx +7 -7
- package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +3 -3
- package/src/contexts/themeContext/utils/theme.ts +8 -0
- package/src/hooks/useLoadingImage.tsx +16 -0
- package/src/i18n/en.json +2 -1
- package/src/i18n/fr.json +2 -1
- package/src/i18n/he.json +2 -0
- package/src/i18n/hi.json +2 -1
- package/src/i18n/it.json +2 -1
- package/src/i18n/ja.json +2 -0
- package/src/i18n/ko.json +2 -0
- package/src/i18n/nl.json +2 -1
- package/src/i18n/ru.json +2 -1
- package/src/i18n/tr.json +2 -1
- package/src/version.json +1 -1
- package/lib/commonjs/components/Attachment/hooks/useLoadingImage.js.map +0 -1
- package/lib/commonjs/hooks/useImageErrorHandler.js +0 -35
- package/lib/commonjs/hooks/useImageErrorHandler.js.map +0 -1
- package/lib/module/components/Attachment/hooks/useLoadingImage.js.map +0 -1
- package/lib/module/hooks/useImageErrorHandler.js +0 -35
- package/lib/module/hooks/useImageErrorHandler.js.map +0 -1
- package/lib/typescript/hooks/useImageErrorHandler.d.ts +0 -5
- package/src/components/Attachment/hooks/useLoadingImage.tsx +0 -8
- package/src/hooks/useImageErrorHandler.ts +0 -16
|
@@ -9,6 +9,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
12
|
+
var _netinfo = require("@react-native-community/netinfo");
|
|
13
|
+
|
|
12
14
|
var useLoadingImage = function useLoadingImage() {
|
|
13
15
|
var _useState = (0, _react.useState)(true),
|
|
14
16
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
@@ -20,6 +22,14 @@ var useLoadingImage = function useLoadingImage() {
|
|
|
20
22
|
isLoadingImageError = _useState4[0],
|
|
21
23
|
setLoadingImageError = _useState4[1];
|
|
22
24
|
|
|
25
|
+
var _useNetInfo = (0, _netinfo.useNetInfo)(),
|
|
26
|
+
isConnected = _useNetInfo.isConnected;
|
|
27
|
+
|
|
28
|
+
(0, _react.useEffect)(function () {
|
|
29
|
+
if (isConnected && isLoadingImageError) {
|
|
30
|
+
setLoadingImageError(false);
|
|
31
|
+
}
|
|
32
|
+
}, [isConnected]);
|
|
23
33
|
return {
|
|
24
34
|
isLoadingImage: isLoadingImage,
|
|
25
35
|
isLoadingImageError: isLoadingImageError,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useLoadingImage.tsx"],"names":["useLoadingImage","isLoadingImage","setLoadingImage","isLoadingImageError","setLoadingImageError","isConnected"],"mappings":";;;;;;;;;AAAA;;AAEA;;AAEO,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,GAAM;AACnC,kBAA0C,qBAAS,IAAT,CAA1C;AAAA;AAAA,MAAOC,cAAP;AAAA,MAAuBC,eAAvB;;AACA,mBAAoD,qBAAS,KAAT,CAApD;AAAA;AAAA,MAAOC,mBAAP;AAAA,MAA4BC,oBAA5B;;AACA,oBAAwB,0BAAxB;AAAA,MAAQC,WAAR,eAAQA,WAAR;;AACA,wBAAU,YAAM;AACd,QAAIA,WAAW,IAAIF,mBAAnB,EAAwC;AACtCC,MAAAA,oBAAoB,CAAC,KAAD,CAApB;AACD;AACF,GAJD,EAIG,CAACC,WAAD,CAJH;AAMA,SAAO;AAAEJ,IAAAA,cAAc,EAAdA,cAAF;AAAkBE,IAAAA,mBAAmB,EAAnBA,mBAAlB;AAAuCD,IAAAA,eAAe,EAAfA,eAAvC;AAAwDE,IAAAA,oBAAoB,EAApBA;AAAxD,GAAP;AACD,CAXM","sourcesContent":["import { useEffect, useState } from 'react';\n\nimport { useNetInfo } from '@react-native-community/netinfo';\n\nexport const useLoadingImage = () => {\n const [isLoadingImage, setLoadingImage] = useState(true);\n const [isLoadingImageError, setLoadingImageError] = useState(false);\n const { isConnected } = useNetInfo();\n useEffect(() => {\n if (isConnected && isLoadingImageError) {\n setLoadingImageError(false);\n }\n }, [isConnected]);\n\n return { isLoadingImage, isLoadingImageError, setLoadingImage, setLoadingImageError };\n};\n"]}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"Ok": "Ok",
|
|
38
38
|
"Only visible to you": "Only visible to you",
|
|
39
39
|
"Photo": "Photo",
|
|
40
|
-
"Photos": "Photos",
|
|
40
|
+
"Photos and Videos": "Photos and Videos",
|
|
41
41
|
"Pin to Conversation": "Pin to Conversation",
|
|
42
42
|
"Please enable access to your photos and videos so you can share them.": "Please enable access to your photos and videos so you can share them.",
|
|
43
43
|
"Please select a channel first": "Please select a channel first",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"Unmute User": "Unmute User",
|
|
57
57
|
"Unpin from Conversation": "Unpin from Conversation",
|
|
58
58
|
"Unread Messages": "Unread Messages",
|
|
59
|
+
"Video": "Video",
|
|
59
60
|
"You": "You",
|
|
60
61
|
"You can't send messages in this channel": "You can't send messages in this channel",
|
|
61
62
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} and {{ nonSelfUserLength }} more are typing",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"Ok": "Ok",
|
|
38
38
|
"Only visible to you": "Seulement visible par vous",
|
|
39
39
|
"Photo": "Photo",
|
|
40
|
-
"Photos": "Photos",
|
|
40
|
+
"Photos and Videos": "Photos et vidéos",
|
|
41
41
|
"Pin to Conversation": "Épingler à la conversation",
|
|
42
42
|
"Please enable access to your photos and videos so you can share them.": "Veuillez autoriser l'accès à vos photos et vidéos afin de pouvoir les partager.",
|
|
43
43
|
"Please select a channel first": "Veuillez d'abord selectionnez un canal",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"Unmute User": "Activer le son de Utilisateur",
|
|
57
57
|
"Unpin from Conversation": "Décrocher de la conversation",
|
|
58
58
|
"Unread Messages": "Messages non lus",
|
|
59
|
+
"Video": "Vidéo",
|
|
59
60
|
"You": "Toi",
|
|
60
61
|
"You can't send messages in this channel": "You can't send messages in this channel",
|
|
61
62
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} et {{ nonSelfUserLength }} autres sont en train d'écrire",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Only visible to you": "גלוי רק לך",
|
|
39
39
|
"Photo": "תמונה",
|
|
40
40
|
"Photos": "תמונות",
|
|
41
|
+
"Photos and Videos": "תמונות ווידאו",
|
|
41
42
|
"Pin to Conversation": "הצמד/י לשיחה",
|
|
42
43
|
"Please enable access to your photos and videos so you can share them.": "אפשר/י גישה לתמונות ולסרטונים שלך כדי שתוכל/י לשתף אותם.",
|
|
43
44
|
"Please select a channel first": "אנא בחר/י שיחה תחילה",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"Unmute User": "בטל/י השתקת משתמש",
|
|
57
58
|
"Unpin from Conversation": "בטל/י הצמדה לשיחה",
|
|
58
59
|
"Unread Messages": "הודעות שטרם נקרו",
|
|
60
|
+
"Video": "וִידֵאוֹ",
|
|
59
61
|
"You": "את/ה",
|
|
60
62
|
"You can't send messages in this channel": "את/ב לא יכול/ה לשלוח הודעות בשיחה זו",
|
|
61
63
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ו-{{ nonSelfUserLength }} משתמש/ים אחר/ים מקלידים",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"Ok": "ठीक",
|
|
38
38
|
"Only visible to you": "केवल आपको दिखाई दे रहा है",
|
|
39
39
|
"Photo": "तस्वीर",
|
|
40
|
-
"Photos": "तस्वीरें",
|
|
40
|
+
"Photos and Videos": "तस्वीरें और वीडियों",
|
|
41
41
|
"Pin to Conversation": "बातचीत में पिन करें",
|
|
42
42
|
"Please enable access to your photos and videos so you can share them.": "कृपया अपनी फ़ोटो और वीडियो तक पहुंच सक्षम करें ताकि आप उन्हें साझा कर सकें।",
|
|
43
43
|
"Please select a channel first": "कृपया पहले एक चैनल चुनें",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"Unmute User": "उपयोगकर्ता को अनम्यूट करें",
|
|
57
57
|
"Unpin from Conversation": "बातचीत से अनपिन करें",
|
|
58
58
|
"Unread Messages": "अपठित संदेश",
|
|
59
|
+
"Video": "वीडियो",
|
|
59
60
|
"You": "आप",
|
|
60
61
|
"You can't send messages in this channel": "आप इस चैनल में संदेश नहीं भेज सकते",
|
|
61
62
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} और {{ nonSelfUserLength }} अधिक टाइप कर रहे हैं",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"Ok": "Ok",
|
|
38
38
|
"Only visible to you": "Visibile solo a te",
|
|
39
39
|
"Photo": "Foto",
|
|
40
|
-
"Photos": "
|
|
40
|
+
"Photos and Videos": "Foto e Video",
|
|
41
41
|
"Pin to Conversation": "Metti in evidenza",
|
|
42
42
|
"Please enable access to your photos and videos so you can share them.": "Abilita l'accesso alle tue foto e ai tuoi video in modo da poterli condividere.",
|
|
43
43
|
"Please select a channel first": "Seleziona un canale",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"Unmute User": "Riattiva utente",
|
|
57
57
|
"Unpin from Conversation": "Rimuovi dagli elementi in evidenza",
|
|
58
58
|
"Unread Messages": "Messaggi non letti",
|
|
59
|
+
"Video": "Video",
|
|
59
60
|
"You": "Tu",
|
|
60
61
|
"You can't send messages in this channel": "Non puoi inviare messaggi in questo canale",
|
|
61
62
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e altri {{ nonSelfUserLength }} stanno scrivendo",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Ok": "確認",
|
|
30
30
|
"Photo": "写真",
|
|
31
31
|
"Photos": "写真",
|
|
32
|
+
"Photos and Videos": "写真と動画",
|
|
32
33
|
"Pin to Conversation": "会話にピンする",
|
|
33
34
|
"Please enable access to your photos and videos so you can share them.": "写真やビデオへのアクセスを有効にして、共有できるようにしてください。",
|
|
34
35
|
"Please select a channel first": "最初にチャンネルを選択してください",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"Unmute User": "ユーザーのミュートを解除する",
|
|
47
48
|
"Unpin from Conversation": "会話のピンを外す",
|
|
48
49
|
"Unread Messages": "未読メッセージ",
|
|
50
|
+
"Video": "ビデオ",
|
|
49
51
|
"You": "あなた",
|
|
50
52
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }}と{{ nonSelfUserLength }}人がタイピングしています",
|
|
51
53
|
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Ok": "확인",
|
|
30
30
|
"Photo": "사진",
|
|
31
31
|
"Photos": "사진",
|
|
32
|
+
"Photos and Videos": "사진과 동영상",
|
|
32
33
|
"Pin to Conversation": "대화에 고정합니다",
|
|
33
34
|
"Please enable access to your photos and videos so you can share them.": "사진 및 비디오에 대한 액세스를 사용하여 공유 할 수 있도록합니다.",
|
|
34
35
|
"Please select a channel first": "먼저 채널을 선택하십시오",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"Unmute User": "사용자 음소거 해제",
|
|
47
48
|
"Unpin from Conversation": "대화의 핀을 분리합니다",
|
|
48
49
|
"Unread Messages": "읽지 않은 메시지",
|
|
50
|
+
"Video": "동영상",
|
|
49
51
|
"You": "당신",
|
|
50
52
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} 외 {{ nonSelfUserLength }}명이 입력 중입니다",
|
|
51
53
|
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"Ok": "Oké",
|
|
38
38
|
"Only visible to you": "Alleen zichtbaar voor jou",
|
|
39
39
|
"Photo": "Foto",
|
|
40
|
-
"Photos": "Foto's",
|
|
40
|
+
"Photos and Videos": "Foto's en video's",
|
|
41
41
|
"Pin to Conversation": "Vastmaken aan gesprek",
|
|
42
42
|
"Please enable access to your photos and videos so you can share them.": "Schakel toegang tot uw foto's en video's in zodat u ze kunt delen.",
|
|
43
43
|
"Please select a channel first": "Selecteer eerst een kanaal",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"Unmute User": "Dempen van gebruiker opheffen",
|
|
57
57
|
"Unpin from Conversation": "Losmaken van gesprek",
|
|
58
58
|
"Unread Messages": "Ongelezen Berichten",
|
|
59
|
+
"Video": "Video",
|
|
59
60
|
"You": "U",
|
|
60
61
|
"You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
|
|
61
62
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"Ok": "Oк",
|
|
38
38
|
"Only visible to you": "Видно только вам",
|
|
39
39
|
"Photo": "Фото",
|
|
40
|
-
"Photos": "Фото",
|
|
40
|
+
"Photos and Videos": "Фото и видео",
|
|
41
41
|
"Pin to Conversation": "Закрепить к беседе",
|
|
42
42
|
"Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
|
|
43
43
|
"Please select a channel first": "Пожалуйста, сначала выберите канал",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"Unmute User": "Включить микрофон",
|
|
57
57
|
"Unpin from Conversation": "Открепить от беседы",
|
|
58
58
|
"Unread Messages": "Непрочитанные Сообщения",
|
|
59
|
+
"Video": "видео",
|
|
59
60
|
"You": "Вы",
|
|
60
61
|
"You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
|
|
61
62
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"Ok": "Tamam",
|
|
38
38
|
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
39
39
|
"Photo": "Fotoğraf",
|
|
40
|
-
"Photos": "Fotoğraflar",
|
|
40
|
+
"Photos and Videos": "Fotoğraflar ve Videolar",
|
|
41
41
|
"Pin to Conversation": "Konuşmaya sabitle",
|
|
42
42
|
"Please enable access to your photos and videos so you can share them.": "Lütfen paylaşabilmek için fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
|
|
43
43
|
"Please select a channel first": "Lütfen önce bir kanal seçin",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"Unmute User": "Kullanıcının sesini aç",
|
|
57
57
|
"Unpin from Conversation": "Sabitlenmeyi kaldır",
|
|
58
58
|
"Unread Messages": "Okunmamış Mesajlar",
|
|
59
|
+
"Video": "Video",
|
|
59
60
|
"You": "Sen",
|
|
60
61
|
"You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
|
|
61
62
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
@@ -17,8 +17,6 @@ var _reactNative = require("react-native");
|
|
|
17
17
|
|
|
18
18
|
var _GallaryImage = require("./GallaryImage");
|
|
19
19
|
|
|
20
|
-
var _useLoadingImage2 = require("./hooks/useLoadingImage");
|
|
21
|
-
|
|
22
20
|
var _buildGallery = require("./utils/buildGallery/buildGallery");
|
|
23
21
|
|
|
24
22
|
var _getGalleryImageBorderRadius = require("./utils/getGalleryImageBorderRadius");
|
|
@@ -35,6 +33,8 @@ var _OverlayContext = require("../../contexts/overlayContext/OverlayContext");
|
|
|
35
33
|
|
|
36
34
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
37
35
|
|
|
36
|
+
var _useLoadingImage2 = require("../../hooks/useLoadingImage");
|
|
37
|
+
|
|
38
38
|
var _native = require("../../native");
|
|
39
39
|
|
|
40
40
|
var _utils = require("../../utils/utils");
|
|
@@ -73,6 +73,11 @@ var styles = _reactNative.StyleSheet.create({
|
|
|
73
73
|
flex: 1,
|
|
74
74
|
justifyContent: 'center'
|
|
75
75
|
},
|
|
76
|
+
imageLoadingErrorIndicatorStyle: {
|
|
77
|
+
bottom: 4,
|
|
78
|
+
left: 4,
|
|
79
|
+
position: 'absolute'
|
|
80
|
+
},
|
|
76
81
|
imageLoadingIndicatorStyle: {
|
|
77
82
|
alignItems: 'center',
|
|
78
83
|
justifyContent: 'center',
|
|
@@ -156,7 +161,7 @@ var GalleryWithContext = function GalleryWithContext(props) {
|
|
|
156
161
|
__self: _this,
|
|
157
162
|
__source: {
|
|
158
163
|
fileName: _jsxFileName,
|
|
159
|
-
lineNumber:
|
|
164
|
+
lineNumber: 187,
|
|
160
165
|
columnNumber: 5
|
|
161
166
|
}
|
|
162
167
|
}, thumbnailGrid.map(function (rows, colIndex) {
|
|
@@ -170,7 +175,7 @@ var GalleryWithContext = function GalleryWithContext(props) {
|
|
|
170
175
|
__self: _this,
|
|
171
176
|
__source: {
|
|
172
177
|
fileName: _jsxFileName,
|
|
173
|
-
lineNumber:
|
|
178
|
+
lineNumber: 204,
|
|
174
179
|
columnNumber: 11
|
|
175
180
|
}
|
|
176
181
|
}, rows.map(function (thumbnail, rowIndex) {
|
|
@@ -220,7 +225,7 @@ var GalleryWithContext = function GalleryWithContext(props) {
|
|
|
220
225
|
__self: _this,
|
|
221
226
|
__source: {
|
|
222
227
|
fileName: _jsxFileName,
|
|
223
|
-
lineNumber:
|
|
228
|
+
lineNumber: 236,
|
|
224
229
|
columnNumber: 17
|
|
225
230
|
}
|
|
226
231
|
});
|
|
@@ -251,12 +256,6 @@ var GalleryThumbnail = function GalleryThumbnail(_ref) {
|
|
|
251
256
|
thumbnail = _ref.thumbnail,
|
|
252
257
|
VideoThumbnail = _ref.VideoThumbnail;
|
|
253
258
|
|
|
254
|
-
var _useLoadingImage = (0, _useLoadingImage2.useLoadingImage)(),
|
|
255
|
-
isLoadingImage = _useLoadingImage.isLoadingImage,
|
|
256
|
-
isLoadingImageError = _useLoadingImage.isLoadingImageError,
|
|
257
|
-
setLoadingImage = _useLoadingImage.setLoadingImage,
|
|
258
|
-
setLoadingImageError = _useLoadingImage.setLoadingImageError;
|
|
259
|
-
|
|
260
259
|
var _useTheme2 = (0, _ThemeContext.useTheme)(),
|
|
261
260
|
_useTheme2$theme = _useTheme2.theme,
|
|
262
261
|
overlay = _useTheme2$theme.colors.overlay,
|
|
@@ -330,7 +329,7 @@ var GalleryThumbnail = function GalleryThumbnail(_ref) {
|
|
|
330
329
|
__self: _this,
|
|
331
330
|
__source: {
|
|
332
331
|
fileName: _jsxFileName,
|
|
333
|
-
lineNumber:
|
|
332
|
+
lineNumber: 360,
|
|
334
333
|
columnNumber: 5
|
|
335
334
|
}
|
|
336
335
|
}), thumbnail.type === 'video' ? _react["default"].createElement(VideoThumbnail, {
|
|
@@ -342,7 +341,7 @@ var GalleryThumbnail = function GalleryThumbnail(_ref) {
|
|
|
342
341
|
__self: _this,
|
|
343
342
|
__source: {
|
|
344
343
|
fileName: _jsxFileName,
|
|
345
|
-
lineNumber:
|
|
344
|
+
lineNumber: 402,
|
|
346
345
|
columnNumber: 9
|
|
347
346
|
}
|
|
348
347
|
}) : _react["default"].createElement(_reactNative.View, {
|
|
@@ -350,10 +349,76 @@ var GalleryThumbnail = function GalleryThumbnail(_ref) {
|
|
|
350
349
|
__self: _this,
|
|
351
350
|
__source: {
|
|
352
351
|
fileName: _jsxFileName,
|
|
353
|
-
lineNumber:
|
|
352
|
+
lineNumber: 414,
|
|
353
|
+
columnNumber: 9
|
|
354
|
+
}
|
|
355
|
+
}, _react["default"].createElement(GalleryImageThumbnail, {
|
|
356
|
+
borderRadius: borderRadius,
|
|
357
|
+
ImageLoadingFailedIndicator: ImageLoadingFailedIndicator,
|
|
358
|
+
ImageLoadingIndicator: ImageLoadingIndicator,
|
|
359
|
+
thumbnail: thumbnail,
|
|
360
|
+
__self: _this,
|
|
361
|
+
__source: {
|
|
362
|
+
fileName: _jsxFileName,
|
|
363
|
+
lineNumber: 415,
|
|
364
|
+
columnNumber: 11
|
|
365
|
+
}
|
|
366
|
+
})), colIndex === numOfColumns - 1 && rowIndex === numOfRows - 1 && imagesAndVideos.length > 4 ? _react["default"].createElement(_reactNative.View, {
|
|
367
|
+
style: [_reactNative.StyleSheet.absoluteFillObject, styles.moreImagesContainer, {
|
|
368
|
+
backgroundColor: overlay
|
|
369
|
+
}, moreImagesContainer],
|
|
370
|
+
__self: _this,
|
|
371
|
+
__source: {
|
|
372
|
+
fileName: _jsxFileName,
|
|
373
|
+
lineNumber: 424,
|
|
374
|
+
columnNumber: 9
|
|
375
|
+
}
|
|
376
|
+
}, _react["default"].createElement(_reactNative.Text, {
|
|
377
|
+
style: [styles.moreImagesText, moreImagesText],
|
|
378
|
+
__self: _this,
|
|
379
|
+
__source: {
|
|
380
|
+
fileName: _jsxFileName,
|
|
381
|
+
lineNumber: 432,
|
|
382
|
+
columnNumber: 11
|
|
383
|
+
}
|
|
384
|
+
}, "+" + (imagesAndVideos.length - 4))) : null);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
var GalleryImageThumbnail = function GalleryImageThumbnail(_ref2) {
|
|
388
|
+
var borderRadius = _ref2.borderRadius,
|
|
389
|
+
ImageLoadingFailedIndicator = _ref2.ImageLoadingFailedIndicator,
|
|
390
|
+
ImageLoadingIndicator = _ref2.ImageLoadingIndicator,
|
|
391
|
+
thumbnail = _ref2.thumbnail;
|
|
392
|
+
|
|
393
|
+
var _useLoadingImage = (0, _useLoadingImage2.useLoadingImage)(),
|
|
394
|
+
isLoadingImage = _useLoadingImage.isLoadingImage,
|
|
395
|
+
isLoadingImageError = _useLoadingImage.isLoadingImageError,
|
|
396
|
+
setLoadingImage = _useLoadingImage.setLoadingImage,
|
|
397
|
+
setLoadingImageError = _useLoadingImage.setLoadingImageError;
|
|
398
|
+
|
|
399
|
+
var _useTheme3 = (0, _ThemeContext.useTheme)(),
|
|
400
|
+
image = _useTheme3.theme.messageSimple.gallery.image;
|
|
401
|
+
|
|
402
|
+
return _react["default"].createElement(_reactNative.View, {
|
|
403
|
+
style: {
|
|
404
|
+
height: thumbnail.height - 1,
|
|
405
|
+
width: thumbnail.width - 1
|
|
406
|
+
},
|
|
407
|
+
__self: _this,
|
|
408
|
+
__source: {
|
|
409
|
+
fileName: _jsxFileName,
|
|
410
|
+
lineNumber: 464,
|
|
411
|
+
columnNumber: 5
|
|
412
|
+
}
|
|
413
|
+
}, isLoadingImageError ? _react["default"].createElement(ImageLoadingFailedIndicator, {
|
|
414
|
+
style: [styles.imageLoadingErrorIndicatorStyle],
|
|
415
|
+
__self: _this,
|
|
416
|
+
__source: {
|
|
417
|
+
fileName: _jsxFileName,
|
|
418
|
+
lineNumber: 471,
|
|
354
419
|
columnNumber: 9
|
|
355
420
|
}
|
|
356
|
-
}, _react["default"].createElement(MemoizedGalleryImage, {
|
|
421
|
+
}) : _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(MemoizedGalleryImage, {
|
|
357
422
|
onError: function onError(error) {
|
|
358
423
|
console.warn(error);
|
|
359
424
|
setLoadingImage(false);
|
|
@@ -374,7 +439,7 @@ var GalleryThumbnail = function GalleryThumbnail(_ref) {
|
|
|
374
439
|
__self: _this,
|
|
375
440
|
__source: {
|
|
376
441
|
fileName: _jsxFileName,
|
|
377
|
-
lineNumber:
|
|
442
|
+
lineNumber: 474,
|
|
378
443
|
columnNumber: 11
|
|
379
444
|
}
|
|
380
445
|
}), isLoadingImage && _react["default"].createElement(_reactNative.View, {
|
|
@@ -384,7 +449,7 @@ var GalleryThumbnail = function GalleryThumbnail(_ref) {
|
|
|
384
449
|
__self: _this,
|
|
385
450
|
__source: {
|
|
386
451
|
fileName: _jsxFileName,
|
|
387
|
-
lineNumber:
|
|
452
|
+
lineNumber: 494,
|
|
388
453
|
columnNumber: 13
|
|
389
454
|
}
|
|
390
455
|
}, _react["default"].createElement(ImageLoadingIndicator, {
|
|
@@ -392,46 +457,10 @@ var GalleryThumbnail = function GalleryThumbnail(_ref) {
|
|
|
392
457
|
__self: _this,
|
|
393
458
|
__source: {
|
|
394
459
|
fileName: _jsxFileName,
|
|
395
|
-
lineNumber:
|
|
460
|
+
lineNumber: 495,
|
|
396
461
|
columnNumber: 15
|
|
397
462
|
}
|
|
398
|
-
}))
|
|
399
|
-
style: {
|
|
400
|
-
position: 'absolute'
|
|
401
|
-
},
|
|
402
|
-
__self: _this,
|
|
403
|
-
__source: {
|
|
404
|
-
fileName: _jsxFileName,
|
|
405
|
-
lineNumber: 437,
|
|
406
|
-
columnNumber: 13
|
|
407
|
-
}
|
|
408
|
-
}, _react["default"].createElement(ImageLoadingFailedIndicator, {
|
|
409
|
-
style: styles.imageLoadingIndicatorStyle,
|
|
410
|
-
__self: _this,
|
|
411
|
-
__source: {
|
|
412
|
-
fileName: _jsxFileName,
|
|
413
|
-
lineNumber: 438,
|
|
414
|
-
columnNumber: 15
|
|
415
|
-
}
|
|
416
|
-
}))), colIndex === numOfColumns - 1 && rowIndex === numOfRows - 1 && imagesAndVideos.length > 4 ? _react["default"].createElement(_reactNative.View, {
|
|
417
|
-
style: [_reactNative.StyleSheet.absoluteFillObject, styles.moreImagesContainer, {
|
|
418
|
-
backgroundColor: overlay
|
|
419
|
-
}, moreImagesContainer],
|
|
420
|
-
__self: _this,
|
|
421
|
-
__source: {
|
|
422
|
-
fileName: _jsxFileName,
|
|
423
|
-
lineNumber: 444,
|
|
424
|
-
columnNumber: 9
|
|
425
|
-
}
|
|
426
|
-
}, _react["default"].createElement(_reactNative.Text, {
|
|
427
|
-
style: [styles.moreImagesText, moreImagesText],
|
|
428
|
-
__self: _this,
|
|
429
|
-
__source: {
|
|
430
|
-
fileName: _jsxFileName,
|
|
431
|
-
lineNumber: 452,
|
|
432
|
-
columnNumber: 11
|
|
433
|
-
}
|
|
434
|
-
}, "+" + (imagesAndVideos.length - 4))) : null);
|
|
463
|
+
}))));
|
|
435
464
|
};
|
|
436
465
|
|
|
437
466
|
var areEqual = function areEqual(prevProps, nextProps) {
|
|
@@ -548,7 +577,7 @@ var Gallery = function Gallery(props) {
|
|
|
548
577
|
__self: _this,
|
|
549
578
|
__source: {
|
|
550
579
|
fileName: _jsxFileName,
|
|
551
|
-
lineNumber:
|
|
580
|
+
lineNumber: 631,
|
|
552
581
|
columnNumber: 5
|
|
553
582
|
}
|
|
554
583
|
});
|