stream-chat-react-native-core 9.0.0-beta.26 → 9.0.0-beta.28
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/Giphy/Giphy.js +19 -7
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +3 -3
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerGenericContent.js +24 -16
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerGenericContent.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +1 -1
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelActionItems.js +0 -15
- package/lib/commonjs/components/ChannelList/hooks/useChannelActionItems.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +15 -13
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +2 -0
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +1 -0
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +11 -9
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +5 -4
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js +3 -3
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +2 -10
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +39 -5
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +11 -7
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +18 -8
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +3 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +2 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +8 -0
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +1 -1
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +15 -5
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js +3 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +141 -40
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.utils.js +53 -0
- package/lib/commonjs/components/UIComponents/BottomSheetModal.utils.js.map +1 -0
- package/lib/commonjs/components/UIComponents/StreamBottomSheetModalFlatList.js +9 -5
- package/lib/commonjs/components/UIComponents/StreamBottomSheetModalFlatList.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js +1 -1
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/components/ui/Button/hooks/useButtonStyles.js +1 -1
- package/lib/commonjs/components/ui/Button/hooks/useButtonStyles.js.map +1 -1
- package/lib/commonjs/contexts/bottomSheetContext/BottomSheetContext.js.map +1 -1
- package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js +4 -4
- package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +1 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js +4 -4
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/commonjs/i18n/en.json +3 -2
- package/lib/commonjs/i18n/es.json +3 -2
- package/lib/commonjs/i18n/fr.json +3 -2
- package/lib/commonjs/i18n/he.json +3 -2
- package/lib/commonjs/i18n/hi.json +3 -2
- package/lib/commonjs/i18n/it.json +3 -2
- package/lib/commonjs/i18n/ja.json +3 -2
- package/lib/commonjs/i18n/ko.json +3 -2
- package/lib/commonjs/i18n/nl.json +3 -2
- package/lib/commonjs/i18n/pt-br.json +3 -2
- package/lib/commonjs/i18n/ru.json +3 -2
- package/lib/commonjs/i18n/tr.json +3 -2
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js +19 -7
- package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +3 -3
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerGenericContent.js +24 -16
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerGenericContent.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +1 -1
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelActionItems.js +0 -15
- package/lib/module/components/ChannelList/hooks/useChannelActionItems.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +15 -13
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +2 -0
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js +1 -0
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +11 -9
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js +5 -4
- package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js +3 -3
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/Message/Message.js +2 -10
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageContent.js +39 -5
- package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageItemView.js +11 -7
- package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js +18 -8
- package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +3 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +2 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +8 -0
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/PollInputDialog.js +1 -1
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +15 -5
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js +3 -1
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +141 -40
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.utils.js +53 -0
- package/lib/module/components/UIComponents/BottomSheetModal.utils.js.map +1 -0
- package/lib/module/components/UIComponents/StreamBottomSheetModalFlatList.js +9 -5
- package/lib/module/components/UIComponents/StreamBottomSheetModalFlatList.js.map +1 -1
- package/lib/module/components/ui/Avatar/ChannelAvatar.js +1 -1
- package/lib/module/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/module/components/ui/Button/hooks/useButtonStyles.js +1 -1
- package/lib/module/components/ui/Button/hooks/useButtonStyles.js.map +1 -1
- package/lib/module/contexts/bottomSheetContext/BottomSheetContext.js.map +1 -1
- package/lib/module/contexts/messageComposerContext/MessageComposerContext.js +4 -4
- package/lib/module/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +1 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js +4 -4
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/module/i18n/en.json +3 -2
- package/lib/module/i18n/es.json +3 -2
- package/lib/module/i18n/fr.json +3 -2
- package/lib/module/i18n/he.json +3 -2
- package/lib/module/i18n/hi.json +3 -2
- package/lib/module/i18n/it.json +3 -2
- package/lib/module/i18n/ja.json +3 -2
- package/lib/module/i18n/ko.json +3 -2
- package/lib/module/i18n/nl.json +3 -2
- package/lib/module/i18n/pt-br.json +3 -2
- package/lib/module/i18n/ru.json +3 -2
- package/lib/module/i18n/tr.json +3 -2
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts +1 -1
- package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerGenericContent.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelActionItems.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/LoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts +5 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.utils.d.ts +28 -0
- package/lib/typescript/components/UIComponents/BottomSheetModal.utils.d.ts.map +1 -0
- package/lib/typescript/components/UIComponents/StreamBottomSheetModalFlatList.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/ChannelAvatar.d.ts.map +1 -1
- package/lib/typescript/contexts/bottomSheetContext/BottomSheetContext.d.ts +1 -0
- package/lib/typescript/contexts/bottomSheetContext/BottomSheetContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +4 -2
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +1 -0
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +1 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessagePreviewText.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +3 -2
- package/lib/typescript/i18n/es.json +3 -2
- package/lib/typescript/i18n/fr.json +3 -2
- package/lib/typescript/i18n/he.json +3 -2
- package/lib/typescript/i18n/hi.json +3 -2
- package/lib/typescript/i18n/it.json +3 -2
- package/lib/typescript/i18n/ja.json +3 -2
- package/lib/typescript/i18n/ko.json +3 -2
- package/lib/typescript/i18n/nl.json +3 -2
- package/lib/typescript/i18n/pt-br.json +3 -2
- package/lib/typescript/i18n/ru.json +3 -2
- package/lib/typescript/i18n/tr.json +3 -2
- package/lib/typescript/utils/i18n/Streami18n.d.ts +3 -2
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Attachment/Giphy/Giphy.tsx +19 -7
- package/src/components/Attachment/__tests__/Giphy.test.js +33 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +3 -3
- package/src/components/AttachmentPicker/components/AttachmentPickerGenericContent.tsx +23 -13
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +3 -1
- package/src/components/Channel/Channel.tsx +1 -1
- package/src/components/ChannelList/hooks/__tests__/useChannelActionItems.test.tsx +12 -45
- package/src/components/ChannelList/hooks/useChannelActionItems.tsx +1 -19
- package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +10 -8
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +3 -1
- package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +1 -1
- package/src/components/ChannelPreview/ChannelPreviewView.tsx +3 -2
- package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +8 -7
- package/src/components/ChannelPreview/__tests__/ChannelDetailsBottomSheet.test.tsx +1 -1
- package/src/components/ChannelPreview/__tests__/ChannelLastMessagePreview.test.tsx +32 -0
- package/src/components/ChannelPreview/__tests__/ChannelSwipableWrapper.test.tsx +5 -2
- package/src/components/ImageGallery/components/ImageGrid.tsx +3 -1
- package/src/components/Indicators/LoadingIndicator.tsx +7 -5
- package/src/components/Message/Message.tsx +2 -12
- package/src/components/Message/MessageItemView/MessageContent.tsx +44 -7
- package/src/components/Message/MessageItemView/MessageItemView.tsx +15 -7
- package/src/components/Message/MessageItemView/MessageReplies.tsx +1 -1
- package/src/components/Message/MessageItemView/MessageStatus.tsx +16 -5
- package/src/components/Message/MessageItemView/__tests__/MessageContent.test.js +72 -1
- package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.js +52 -1
- package/src/components/Message/hooks/useCreateMessageContext.ts +3 -0
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +1 -0
- package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap +1 -1
- package/src/components/MessageMenu/MessageUserReactions.tsx +1 -5
- package/src/components/Poll/components/MultipleVotesSettings.tsx +8 -0
- package/src/components/Poll/components/PollInputDialog.tsx +1 -1
- package/src/components/Poll/components/PollOption.tsx +25 -9
- package/src/components/ThreadList/ThreadList.tsx +1 -1
- package/src/components/UIComponents/BottomSheetModal.tsx +237 -53
- package/src/components/UIComponents/BottomSheetModal.utils.ts +82 -0
- package/src/components/UIComponents/StreamBottomSheetModalFlatList.tsx +14 -5
- package/src/components/UIComponents/__tests__/BottomSheetModal.utils.test.ts +111 -0
- package/src/components/ui/Avatar/ChannelAvatar.tsx +5 -1
- package/src/components/ui/Button/hooks/useButtonStyles.ts +1 -1
- package/src/contexts/bottomSheetContext/BottomSheetContext.tsx +1 -0
- package/src/contexts/messageComposerContext/MessageComposerContext.tsx +1 -1
- package/src/contexts/messageContext/MessageContext.tsx +4 -2
- package/src/contexts/themeContext/utils/theme.ts +2 -0
- package/src/hooks/messagePreview/useMessagePreviewText.tsx +5 -6
- package/src/i18n/en.json +3 -2
- package/src/i18n/es.json +3 -2
- package/src/i18n/fr.json +3 -2
- package/src/i18n/he.json +3 -2
- package/src/i18n/hi.json +3 -2
- package/src/i18n/it.json +3 -2
- package/src/i18n/ja.json +3 -2
- package/src/i18n/ko.json +3 -2
- package/src/i18n/nl.json +3 -2
- package/src/i18n/pt-br.json +3 -2
- package/src/i18n/ru.json +3 -2
- package/src/i18n/tr.json +3 -2
- package/src/version.json +1 -1
|
@@ -164,8 +164,9 @@
|
|
|
164
164
|
"Change in Settings": "Cambia in Impostazioni",
|
|
165
165
|
"Create a poll and let everyone vote": "Crea un sondaggio e lascia che tutti votino",
|
|
166
166
|
"Open Camera": "Apri fotocamera",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"Open Files": "Apri file",
|
|
168
|
+
"Select files to share": "Seleziona file da condividere",
|
|
169
|
+
"Take a photo and share": "Scatta una foto e condividila",
|
|
169
170
|
"Take a video and share": "Registra un video e condividilo",
|
|
170
171
|
"You have not granted access to your camera": "Non hai concesso l’accesso alla fotocamera",
|
|
171
172
|
"{{count}} Reactions_many": "{{count}} reazioni",
|
|
@@ -164,8 +164,9 @@
|
|
|
164
164
|
"Change in Settings": "設定で変更",
|
|
165
165
|
"Create a poll and let everyone vote": "投票を作成してみんなに投票してもらう",
|
|
166
166
|
"Open Camera": "カメラを開く",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"Open Files": "ファイルを開く",
|
|
168
|
+
"Select files to share": "共有するファイルを選択",
|
|
169
|
+
"Take a photo and share": "写真を撮って共有",
|
|
169
170
|
"Take a video and share": "動画を撮影して共有",
|
|
170
171
|
"You have not granted access to your camera": "カメラへのアクセスが許可されていません",
|
|
171
172
|
"{{count}} Reactions_many": "{{count}}件のリアクション",
|
|
@@ -164,8 +164,9 @@
|
|
|
164
164
|
"Change in Settings": "설정에서 변경",
|
|
165
165
|
"Create a poll and let everyone vote": "투표를 만들어 모두가 투표하게 하세요",
|
|
166
166
|
"Open Camera": "카메라 열기",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"Open Files": "파일 열기",
|
|
168
|
+
"Select files to share": "공유할 파일 선택",
|
|
169
|
+
"Take a photo and share": "사진을 찍고 공유",
|
|
169
170
|
"Take a video and share": "동영상을 촬영하고 공유",
|
|
170
171
|
"You have not granted access to your camera": "카메라 접근 권한이 없습니다",
|
|
171
172
|
"{{count}} Reactions_many": "{{count}}개의 반응",
|
|
@@ -164,8 +164,9 @@
|
|
|
164
164
|
"Change in Settings": "Wijzigen in Instellingen",
|
|
165
165
|
"Create a poll and let everyone vote": "Maak een peiling en laat iedereen stemmen",
|
|
166
166
|
"Open Camera": "Camera openen",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"Open Files": "Bestanden openen",
|
|
168
|
+
"Select files to share": "Selecteer bestanden om te delen",
|
|
169
|
+
"Take a photo and share": "Maak een foto en deel deze",
|
|
169
170
|
"Take a video and share": "Maak een video en deel deze",
|
|
170
171
|
"You have not granted access to your camera": "Je hebt geen toegang tot je camera verleend",
|
|
171
172
|
"{{count}} Reactions_many": "{{count}} reacties",
|
|
@@ -164,8 +164,9 @@
|
|
|
164
164
|
"Change in Settings": "Alterar nos Ajustes",
|
|
165
165
|
"Create a poll and let everyone vote": "Crie uma enquete e deixe todos votarem",
|
|
166
166
|
"Open Camera": "Abrir camera",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"Open Files": "Abrir arquivos",
|
|
168
|
+
"Select files to share": "Selecione arquivos para compartilhar",
|
|
169
|
+
"Take a photo and share": "Tire uma foto e compartilhe",
|
|
169
170
|
"Take a video and share": "Grave um video e compartilhe",
|
|
170
171
|
"You have not granted access to your camera": "Você não concedeu acesso à sua câmera",
|
|
171
172
|
"{{count}} Reactions_many": "{{count}} reações",
|
|
@@ -164,8 +164,9 @@
|
|
|
164
164
|
"Change in Settings": "Изменить в настройках",
|
|
165
165
|
"Create a poll and let everyone vote": "Создайте опрос и дайте всем проголосовать",
|
|
166
166
|
"Open Camera": "Открыть камеру",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"Open Files": "Открыть файлы",
|
|
168
|
+
"Select files to share": "Выберите файлы для отправки",
|
|
169
|
+
"Take a photo and share": "Сделайте фото и поделитесь",
|
|
169
170
|
"Take a video and share": "Снимите видео и поделитесь",
|
|
170
171
|
"You have not granted access to your camera": "Вы не предоставили доступ к вашей камере",
|
|
171
172
|
"{{count}} Reactions_many": "{{count}} реакций",
|
|
@@ -164,8 +164,9 @@
|
|
|
164
164
|
"Change in Settings": "Ayarlar'da değiştir",
|
|
165
165
|
"Create a poll and let everyone vote": "Bir anket oluşturun ve herkesin oy vermesine izin verin",
|
|
166
166
|
"Open Camera": "Kamerayı aç",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"Open Files": "Dosyaları aç",
|
|
168
|
+
"Select files to share": "Paylaşmak için dosyaları seç",
|
|
169
|
+
"Take a photo and share": "Fotoğraf çek ve paylaş",
|
|
169
170
|
"Take a video and share": "Video çek ve paylaş",
|
|
170
171
|
"You have not granted access to your camera": "Kameranıza erişim izni vermediniz",
|
|
171
172
|
"{{count}} Reactions_many": "{{count}} tepki",
|
|
@@ -299,8 +299,9 @@ export declare class Streami18n {
|
|
|
299
299
|
"Change in Settings": string;
|
|
300
300
|
"Create a poll and let everyone vote": string;
|
|
301
301
|
"Open Camera": string;
|
|
302
|
-
"
|
|
303
|
-
"
|
|
302
|
+
"Open Files": string;
|
|
303
|
+
"Select files to share": string;
|
|
304
|
+
"Take a photo and share": string;
|
|
304
305
|
"Take a video and share": string;
|
|
305
306
|
"You have not granted access to your camera": string;
|
|
306
307
|
"{{count}} Reactions_many": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA2B;IAE1C;;OAEG;IACG,cAAc;;;;IAmBpB;;OAEG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,OAAO,CAAC,OAAO,cAAc,CAAC,EAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IA+BtC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;IASvD;;;OAGG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM;IAsBlC,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW5D,8BAA8B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW/D,iBAAiB,CAAC,SAAS,EAAE,SAAS;CAQvC"}
|
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": "9.0.0-beta.
|
|
4
|
+
"version": "9.0.0-beta.28",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -22,7 +22,7 @@ import { Button } from '../../ui/';
|
|
|
22
22
|
|
|
23
23
|
export type GiphyPropsWithContext = Pick<
|
|
24
24
|
MessageContextValue,
|
|
25
|
-
'handleAction' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
|
|
25
|
+
'handleAction' | 'isMyMessage' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
|
|
26
26
|
> &
|
|
27
27
|
Pick<MessagesContextValue, 'additionalPressableProps' | 'giphyVersion'> & {
|
|
28
28
|
attachment: Attachment;
|
|
@@ -34,6 +34,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
|
|
|
34
34
|
attachment,
|
|
35
35
|
giphyVersion,
|
|
36
36
|
handleAction,
|
|
37
|
+
isMyMessage,
|
|
37
38
|
onLongPress,
|
|
38
39
|
onPress,
|
|
39
40
|
onPressIn,
|
|
@@ -53,7 +54,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
|
|
|
53
54
|
},
|
|
54
55
|
} = useTheme();
|
|
55
56
|
|
|
56
|
-
const styles = useStyles();
|
|
57
|
+
const styles = useStyles({ isMyMessage });
|
|
57
58
|
|
|
58
59
|
const uri = image_url || thumb_url;
|
|
59
60
|
|
|
@@ -122,7 +123,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
|
|
|
122
123
|
}
|
|
123
124
|
}}
|
|
124
125
|
testID='giphy-attachment'
|
|
125
|
-
style={styles.container}
|
|
126
|
+
style={[styles.container, container]}
|
|
126
127
|
{...additionalPressableProps}
|
|
127
128
|
>
|
|
128
129
|
<GiphyImage attachment={attachment} giphyVersion={giphyVersion} />
|
|
@@ -134,10 +135,12 @@ const areEqual = (prevProps: GiphyPropsWithContext, nextProps: GiphyPropsWithCon
|
|
|
134
135
|
const {
|
|
135
136
|
attachment: { actions: prevActions, image_url: prevImageUrl, thumb_url: prevThumbUrl },
|
|
136
137
|
giphyVersion: prevGiphyVersion,
|
|
138
|
+
isMyMessage: prevIsMyMessage,
|
|
137
139
|
} = prevProps;
|
|
138
140
|
const {
|
|
139
141
|
attachment: { actions: nextActions, image_url: nextImageUrl, thumb_url: nextThumbUrl },
|
|
140
142
|
giphyVersion: nextGiphyVersion,
|
|
143
|
+
isMyMessage: nextIsMyMessage,
|
|
141
144
|
} = nextProps;
|
|
142
145
|
|
|
143
146
|
const imageUrlEqual = prevImageUrl === nextImageUrl;
|
|
@@ -165,6 +168,11 @@ const areEqual = (prevProps: GiphyPropsWithContext, nextProps: GiphyPropsWithCon
|
|
|
165
168
|
return false;
|
|
166
169
|
}
|
|
167
170
|
|
|
171
|
+
const isMyMessageEqual = prevIsMyMessage === nextIsMyMessage;
|
|
172
|
+
if (!isMyMessageEqual) {
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
|
|
168
176
|
return true;
|
|
169
177
|
};
|
|
170
178
|
|
|
@@ -178,7 +186,8 @@ export type GiphyProps = Partial<GiphyPropsWithContext> & {
|
|
|
178
186
|
* UI component for card in attachments.
|
|
179
187
|
*/
|
|
180
188
|
export const Giphy = (props: GiphyProps) => {
|
|
181
|
-
const { handleAction, onLongPress, onPress, onPressIn, preventPress } =
|
|
189
|
+
const { handleAction, isMyMessage, onLongPress, onPress, onPressIn, preventPress } =
|
|
190
|
+
useMessageContext();
|
|
182
191
|
const { additionalPressableProps, giphyVersion } = useMessagesContext();
|
|
183
192
|
|
|
184
193
|
return (
|
|
@@ -187,6 +196,7 @@ export const Giphy = (props: GiphyProps) => {
|
|
|
187
196
|
additionalPressableProps,
|
|
188
197
|
giphyVersion,
|
|
189
198
|
handleAction,
|
|
199
|
+
isMyMessage,
|
|
190
200
|
onLongPress,
|
|
191
201
|
onPress,
|
|
192
202
|
onPressIn,
|
|
@@ -199,14 +209,16 @@ export const Giphy = (props: GiphyProps) => {
|
|
|
199
209
|
|
|
200
210
|
Giphy.displayName = 'Giphy{messageItemView{giphy}}';
|
|
201
211
|
|
|
202
|
-
const useStyles = () => {
|
|
212
|
+
const useStyles = ({ isMyMessage }: Pick<GiphyPropsWithContext, 'isMyMessage'>) => {
|
|
203
213
|
const {
|
|
204
214
|
theme: { semantics },
|
|
205
215
|
} = useTheme();
|
|
206
216
|
return useMemo(() => {
|
|
207
217
|
return StyleSheet.create({
|
|
208
218
|
container: {
|
|
209
|
-
backgroundColor:
|
|
219
|
+
backgroundColor: isMyMessage
|
|
220
|
+
? semantics.chatBgAttachmentOutgoing
|
|
221
|
+
: semantics.chatBgAttachmentIncoming,
|
|
210
222
|
borderRadius: primitives.radiusLg,
|
|
211
223
|
maxWidth: 256, // TODO: Not sure how to fix this
|
|
212
224
|
overflow: 'hidden',
|
|
@@ -240,5 +252,5 @@ const useStyles = () => {
|
|
|
240
252
|
lineHeight: primitives.typographyLineHeightTight,
|
|
241
253
|
},
|
|
242
254
|
});
|
|
243
|
-
}, [semantics]);
|
|
255
|
+
}, [isMyMessage, semantics]);
|
|
244
256
|
};
|
|
@@ -14,7 +14,7 @@ import { MessageProvider } from '../../../contexts/messageContext/MessageContext
|
|
|
14
14
|
import { MessagesProvider } from '../../../contexts/messagesContext/MessagesContext';
|
|
15
15
|
import { OverlayProvider } from '../../../contexts/overlayContext/OverlayProvider';
|
|
16
16
|
|
|
17
|
-
import { ThemeProvider } from '../../../contexts/themeContext/ThemeContext';
|
|
17
|
+
import { mergeThemes, ThemeProvider } from '../../../contexts/themeContext/ThemeContext';
|
|
18
18
|
import { getOrCreateChannelApi } from '../../../mock-builders/api/getOrCreateChannel';
|
|
19
19
|
import { useMockedApis } from '../../../mock-builders/api/useMockedApis';
|
|
20
20
|
import { generateGiphyAttachment } from '../../../mock-builders/generator/attachment';
|
|
@@ -36,6 +36,8 @@ const streami18n = new Streami18n({
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
describe('Giphy', () => {
|
|
39
|
+
const lightTheme = mergeThemes({ scheme: 'light' });
|
|
40
|
+
|
|
39
41
|
const getAttachmentComponent = (props, messageContextValue = {}) => {
|
|
40
42
|
const message = generateMessage();
|
|
41
43
|
return (
|
|
@@ -115,6 +117,36 @@ describe('Giphy', () => {
|
|
|
115
117
|
});
|
|
116
118
|
});
|
|
117
119
|
|
|
120
|
+
it('uses the outgoing attachment background for outgoing giphys', async () => {
|
|
121
|
+
render(getAttachmentComponent({ attachment }, { isMyMessage: true }));
|
|
122
|
+
|
|
123
|
+
await waitFor(() => {
|
|
124
|
+
const style = screen.getByTestId('giphy-attachment').props.style;
|
|
125
|
+
expect(style).toEqual(
|
|
126
|
+
expect.arrayContaining([
|
|
127
|
+
expect.objectContaining({
|
|
128
|
+
backgroundColor: lightTheme.semantics.chatBgAttachmentOutgoing,
|
|
129
|
+
}),
|
|
130
|
+
]),
|
|
131
|
+
);
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it('uses the incoming attachment background for incoming giphys', async () => {
|
|
136
|
+
render(getAttachmentComponent({ attachment }, { isMyMessage: false }));
|
|
137
|
+
|
|
138
|
+
await waitFor(() => {
|
|
139
|
+
const style = screen.getByTestId('giphy-attachment').props.style;
|
|
140
|
+
expect(style).toEqual(
|
|
141
|
+
expect.arrayContaining([
|
|
142
|
+
expect.objectContaining({
|
|
143
|
+
backgroundColor: lightTheme.semantics.chatBgAttachmentIncoming,
|
|
144
|
+
}),
|
|
145
|
+
]),
|
|
146
|
+
);
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
118
150
|
it('"giphy" attachment size should be customisable', async () => {
|
|
119
151
|
attachment.giphy = giphy;
|
|
120
152
|
render(getAttachmentComponent({ attachment, giphyVersion: 'fixed_height' }));
|
|
@@ -201,7 +201,7 @@ export const AttachmentCameraPicker = (
|
|
|
201
201
|
onPress={openCameraPicker}
|
|
202
202
|
height={height}
|
|
203
203
|
buttonText={t('Open Camera')}
|
|
204
|
-
description={t('Take a video and share')}
|
|
204
|
+
description={t(videoOnly ? 'Take a video and share' : 'Take a photo and share')}
|
|
205
205
|
/>
|
|
206
206
|
);
|
|
207
207
|
};
|
|
@@ -216,8 +216,8 @@ export const AttachmentFilePicker = (props: AttachmentPickerContentProps) => {
|
|
|
216
216
|
Icon={FilePickerIcon}
|
|
217
217
|
onPress={pickFile}
|
|
218
218
|
height={height}
|
|
219
|
-
buttonText={t('
|
|
220
|
-
description={t('
|
|
219
|
+
buttonText={t('Open Files')}
|
|
220
|
+
description={t('Select files to share')}
|
|
221
221
|
/>
|
|
222
222
|
);
|
|
223
223
|
};
|
|
@@ -21,12 +21,20 @@ const useStyles = () => {
|
|
|
21
21
|
paddingHorizontal: primitives.spacing2xl,
|
|
22
22
|
paddingBottom: primitives.spacing3xl,
|
|
23
23
|
},
|
|
24
|
-
infoContainer: {
|
|
24
|
+
infoContainer: {
|
|
25
|
+
flex: 1,
|
|
26
|
+
gap: primitives.spacingSm,
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
},
|
|
30
|
+
actionContainer: {
|
|
31
|
+
gap: primitives.spacingMd,
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
justifyContent: 'center',
|
|
34
|
+
},
|
|
25
35
|
text: {
|
|
26
36
|
fontSize: primitives.typographyFontSizeMd,
|
|
27
37
|
color: semantics.textSecondary,
|
|
28
|
-
marginTop: 8,
|
|
29
|
-
marginHorizontal: 24,
|
|
30
38
|
textAlign: 'center',
|
|
31
39
|
maxWidth: 200,
|
|
32
40
|
},
|
|
@@ -54,13 +62,13 @@ export const AttachmentPickerGenericContent = (props: AttachmentPickerGenericCon
|
|
|
54
62
|
theme: {
|
|
55
63
|
semantics,
|
|
56
64
|
attachmentPicker: {
|
|
57
|
-
content: { container, text, infoContainer },
|
|
65
|
+
content: { actionContainer, container, text, infoContainer },
|
|
58
66
|
},
|
|
59
67
|
},
|
|
60
68
|
} = useTheme();
|
|
61
69
|
|
|
62
70
|
const ThemedIcon = useCallback(
|
|
63
|
-
() => <Icon width={
|
|
71
|
+
() => <Icon width={32} height={32} stroke={semantics.textTertiary} />,
|
|
64
72
|
[Icon, semantics.textTertiary],
|
|
65
73
|
);
|
|
66
74
|
|
|
@@ -76,15 +84,17 @@ export const AttachmentPickerGenericContent = (props: AttachmentPickerGenericCon
|
|
|
76
84
|
>
|
|
77
85
|
<View style={[styles.infoContainer, infoContainer]}>
|
|
78
86
|
<ThemedIcon />
|
|
79
|
-
<
|
|
87
|
+
<View style={[styles.actionContainer, actionContainer]}>
|
|
88
|
+
<Text style={[styles.text, text]}>{description}</Text>
|
|
89
|
+
<Button
|
|
90
|
+
variant={'secondary'}
|
|
91
|
+
type={'outline'}
|
|
92
|
+
size={'md'}
|
|
93
|
+
label={buttonText}
|
|
94
|
+
onPress={onPress}
|
|
95
|
+
/>
|
|
96
|
+
</View>
|
|
80
97
|
</View>
|
|
81
|
-
<Button
|
|
82
|
-
variant={'secondary'}
|
|
83
|
-
type={'outline'}
|
|
84
|
-
size={'lg'}
|
|
85
|
-
label={buttonText}
|
|
86
|
-
onPress={onPress}
|
|
87
|
-
/>
|
|
88
98
|
</View>
|
|
89
99
|
);
|
|
90
100
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { FlatList } from 'react-native-gesture-handler';
|
|
3
5
|
|
|
4
6
|
import Animated, { LinearTransition, ZoomIn, ZoomOut } from 'react-native-reanimated';
|
|
5
7
|
|
|
@@ -575,7 +575,7 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
575
575
|
asyncMessagesLockDistance = 50,
|
|
576
576
|
asyncMessagesMinimumPressDuration = 500,
|
|
577
577
|
asyncMessagesSlideToCancelDistance = 75,
|
|
578
|
-
audioRecordingSendOnComplete =
|
|
578
|
+
audioRecordingSendOnComplete = false,
|
|
579
579
|
AttachButton = AttachButtonDefault,
|
|
580
580
|
Attachment = AttachmentDefault,
|
|
581
581
|
attachmentPickerBottomSheetHeight = disableAttachmentPicker ? 72 : 333,
|
|
@@ -90,31 +90,19 @@ describe('useChannelActionItems', () => {
|
|
|
90
90
|
it('returns default channel action items', () => {
|
|
91
91
|
const { result } = renderHook(() => useChannelActionItems({ channel }));
|
|
92
92
|
|
|
93
|
-
expect(result.current).toHaveLength(
|
|
93
|
+
expect(result.current).toHaveLength(3);
|
|
94
94
|
expect(result.current.map((item) => item.action)).toEqual([
|
|
95
95
|
channelActions.muteChannel,
|
|
96
|
-
channelActions.archive,
|
|
97
96
|
channelActions.leave,
|
|
98
97
|
expect.any(Function),
|
|
99
98
|
]);
|
|
100
|
-
expect(result.current.map((item) => item.id)).toEqual([
|
|
101
|
-
'mute',
|
|
102
|
-
'archive',
|
|
103
|
-
'leave',
|
|
104
|
-
'deleteChannel',
|
|
105
|
-
]);
|
|
99
|
+
expect(result.current.map((item) => item.id)).toEqual(['mute', 'leave', 'deleteChannel']);
|
|
106
100
|
expect(result.current.map((item) => item.type)).toEqual([
|
|
107
|
-
'standard',
|
|
108
101
|
'standard',
|
|
109
102
|
'destructive',
|
|
110
103
|
'destructive',
|
|
111
104
|
]);
|
|
112
|
-
expect(result.current.map((item) => item.placement)).toEqual([
|
|
113
|
-
'swipe',
|
|
114
|
-
'both',
|
|
115
|
-
'sheet',
|
|
116
|
-
'sheet',
|
|
117
|
-
]);
|
|
105
|
+
expect(result.current.map((item) => item.placement)).toEqual(['swipe', 'sheet', 'sheet']);
|
|
118
106
|
});
|
|
119
107
|
|
|
120
108
|
it('uses custom getChannelActionItems with context and defaultItems when provided', () => {
|
|
@@ -178,25 +166,18 @@ describe('getChannelActionItems', () => {
|
|
|
178
166
|
|
|
179
167
|
expect(actionItems.map((item) => item.action)).toEqual([
|
|
180
168
|
channelActions.muteChannel,
|
|
181
|
-
channelActions.archive,
|
|
182
169
|
channelActions.leave,
|
|
183
170
|
expect.any(Function),
|
|
184
171
|
]);
|
|
185
|
-
expect(actionItems.map((item) => item.id)).toEqual([
|
|
186
|
-
'mute',
|
|
187
|
-
'archive',
|
|
188
|
-
'leave',
|
|
189
|
-
'deleteChannel',
|
|
190
|
-
]);
|
|
172
|
+
expect(actionItems.map((item) => item.id)).toEqual(['mute', 'leave', 'deleteChannel']);
|
|
191
173
|
expect(actionItems.map((item) => item.type)).toEqual([
|
|
192
|
-
'standard',
|
|
193
174
|
'standard',
|
|
194
175
|
'destructive',
|
|
195
176
|
'destructive',
|
|
196
177
|
]);
|
|
197
178
|
});
|
|
198
179
|
|
|
199
|
-
it('returns direct-chat variants for mute
|
|
180
|
+
it('returns direct-chat variants for mute and block states', () => {
|
|
200
181
|
const channelActions = createChannelActions();
|
|
201
182
|
const actionItems = buildDefaultChannelActionItems({
|
|
202
183
|
actions: channelActions,
|
|
@@ -208,34 +189,20 @@ describe('getChannelActionItems', () => {
|
|
|
208
189
|
t: (value) => value,
|
|
209
190
|
});
|
|
210
191
|
|
|
211
|
-
expect(actionItems.map((item) => item.id)).toEqual([
|
|
212
|
-
'mute',
|
|
213
|
-
'block',
|
|
214
|
-
'archive',
|
|
215
|
-
'leave',
|
|
216
|
-
'deleteChannel',
|
|
217
|
-
]);
|
|
192
|
+
expect(actionItems.map((item) => item.id)).toEqual(['mute', 'block', 'leave', 'deleteChannel']);
|
|
218
193
|
expect(actionItems.map((item) => item.action)).toEqual([
|
|
219
194
|
channelActions.unmuteUser,
|
|
220
195
|
channelActions.unblockUser,
|
|
221
|
-
channelActions.unarchive,
|
|
222
196
|
channelActions.leave,
|
|
223
197
|
expect.any(Function),
|
|
224
198
|
]);
|
|
225
199
|
expect(actionItems.map((item) => item.label)).toEqual([
|
|
226
200
|
'Unmute User',
|
|
227
201
|
'Unblock User',
|
|
228
|
-
'Unarchive Chat',
|
|
229
202
|
'Leave Chat',
|
|
230
203
|
'Delete Chat',
|
|
231
204
|
]);
|
|
232
|
-
expect(actionItems.map((item) => item.placement)).toEqual([
|
|
233
|
-
'sheet',
|
|
234
|
-
'sheet',
|
|
235
|
-
'sheet',
|
|
236
|
-
'sheet',
|
|
237
|
-
'sheet',
|
|
238
|
-
]);
|
|
205
|
+
expect(actionItems.map((item) => item.placement)).toEqual(['sheet', 'sheet', 'sheet', 'sheet']);
|
|
239
206
|
});
|
|
240
207
|
|
|
241
208
|
it('omits delete action when current user is not the channel creator', () => {
|
|
@@ -249,10 +216,10 @@ describe('getChannelActionItems', () => {
|
|
|
249
216
|
t: (value) => value,
|
|
250
217
|
});
|
|
251
218
|
|
|
252
|
-
expect(actionItems.map((item) => item.id)).toEqual(['mute', '
|
|
219
|
+
expect(actionItems.map((item) => item.id)).toEqual(['mute', 'leave']);
|
|
253
220
|
});
|
|
254
221
|
|
|
255
|
-
it('uses group variants for
|
|
222
|
+
it('uses group mute variants for labels and placements', () => {
|
|
256
223
|
const channelActions = createChannelActions();
|
|
257
224
|
const actionItems = buildDefaultChannelActionItems({
|
|
258
225
|
actions: channelActions,
|
|
@@ -268,9 +235,9 @@ describe('getChannelActionItems', () => {
|
|
|
268
235
|
expect(actionItems[0].label).toBe('Unmute Group');
|
|
269
236
|
expect(actionItems[0].placement).toBe('swipe');
|
|
270
237
|
|
|
271
|
-
expect(actionItems[1].action).toBe(channelActions.
|
|
272
|
-
expect(actionItems[1].label).toBe('
|
|
273
|
-
expect(actionItems[1].placement).toBe('
|
|
238
|
+
expect(actionItems[1].action).toBe(channelActions.leave);
|
|
239
|
+
expect(actionItems[1].label).toBe('Leave Group');
|
|
240
|
+
expect(actionItems[1].placement).toBe('sheet');
|
|
274
241
|
});
|
|
275
242
|
|
|
276
243
|
it('shows delete confirmation and calls deleteChannel on destructive confirm', async () => {
|
|
@@ -12,7 +12,7 @@ import { useIsDirectChat } from './useIsDirectChat';
|
|
|
12
12
|
|
|
13
13
|
import { useTheme, useTranslationContext } from '../../../contexts';
|
|
14
14
|
import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
15
|
-
import {
|
|
15
|
+
import { IconProps, Mute, BlockUser, Delete, Sound } from '../../../icons';
|
|
16
16
|
import { ArrowBoxLeft } from '../../../icons/leave';
|
|
17
17
|
|
|
18
18
|
export type ChannelActionHandler = () => Promise<void> | void;
|
|
@@ -56,10 +56,8 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
56
56
|
) => {
|
|
57
57
|
const {
|
|
58
58
|
actions: {
|
|
59
|
-
archive,
|
|
60
59
|
deleteChannel,
|
|
61
60
|
leave,
|
|
62
|
-
unarchive,
|
|
63
61
|
muteChannel,
|
|
64
62
|
unmuteChannel,
|
|
65
63
|
muteUser,
|
|
@@ -67,7 +65,6 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
67
65
|
blockUser,
|
|
68
66
|
unblockUser,
|
|
69
67
|
},
|
|
70
|
-
isArchived,
|
|
71
68
|
isDirectChat,
|
|
72
69
|
muteActive,
|
|
73
70
|
t,
|
|
@@ -128,21 +125,6 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
128
125
|
});
|
|
129
126
|
}
|
|
130
127
|
|
|
131
|
-
actionItems.push({
|
|
132
|
-
action: isArchived ? unarchive : archive,
|
|
133
|
-
Icon: (props) => <ChannelActionsIcon Icon={Archive} {...props} />,
|
|
134
|
-
id: 'archive',
|
|
135
|
-
label: isDirectChat
|
|
136
|
-
? isArchived
|
|
137
|
-
? t('Unarchive Chat')
|
|
138
|
-
: t('Archive Chat')
|
|
139
|
-
: isArchived
|
|
140
|
-
? t('Unarchive Group')
|
|
141
|
-
: t('Archive Group'),
|
|
142
|
-
placement: isDirectChat ? 'sheet' : 'both',
|
|
143
|
-
type: 'standard',
|
|
144
|
-
});
|
|
145
|
-
|
|
146
128
|
actionItems.push({
|
|
147
129
|
action: leave,
|
|
148
130
|
Icon: (props) => <ChannelActionsIcon Icon={ArrowBoxLeft} {...props} />,
|
|
@@ -4,23 +4,25 @@ import type { FlatListProps } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { Pressable } from 'react-native-gesture-handler';
|
|
6
6
|
|
|
7
|
-
import { Channel } from 'stream-chat';
|
|
7
|
+
import type { Channel } from 'stream-chat';
|
|
8
8
|
|
|
9
9
|
import { ChannelPreviewMutedStatus } from './ChannelPreviewMutedStatus';
|
|
10
10
|
import { ChannelPreviewTitle } from './ChannelPreviewTitle';
|
|
11
11
|
import { useIsChannelMuted } from './hooks/useIsChannelMuted';
|
|
12
12
|
|
|
13
|
-
import { useBottomSheetContext
|
|
13
|
+
import { useBottomSheetContext } from '../../contexts/bottomSheetContext/BottomSheetContext';
|
|
14
14
|
import { useSwipeRegistryContext } from '../../contexts/swipeableContext/SwipeRegistryContext';
|
|
15
|
-
import {
|
|
15
|
+
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
16
|
+
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
17
|
+
import { useStableCallback } from '../../hooks/useStableCallback';
|
|
16
18
|
import { primitives } from '../../theme';
|
|
17
|
-
import { ChannelActionItem } from '../ChannelList/hooks/useChannelActionItems';
|
|
19
|
+
import type { ChannelActionItem } from '../ChannelList/hooks/useChannelActionItems';
|
|
18
20
|
import { useChannelMembersState } from '../ChannelList/hooks/useChannelMembersState';
|
|
19
21
|
import { useChannelMuteActive } from '../ChannelList/hooks/useChannelMuteActive';
|
|
20
22
|
import { useChannelOnlineMemberCount } from '../ChannelList/hooks/useChannelOnlineMemberCount';
|
|
21
23
|
import { useIsDirectChat } from '../ChannelList/hooks/useIsDirectChat';
|
|
22
|
-
import { ChannelAvatar } from '../ui';
|
|
23
|
-
import { StreamBottomSheetModalFlatList } from '../UIComponents';
|
|
24
|
+
import { ChannelAvatar } from '../ui/Avatar/ChannelAvatar';
|
|
25
|
+
import { StreamBottomSheetModalFlatList } from '../UIComponents/StreamBottomSheetModalFlatList';
|
|
24
26
|
|
|
25
27
|
export type ChannelDetailsHeaderProps = { channel: Channel };
|
|
26
28
|
|
|
@@ -55,7 +57,7 @@ export const ChannelDetailsHeader = ({ channel }: ChannelDetailsHeaderProps) =>
|
|
|
55
57
|
|
|
56
58
|
return (
|
|
57
59
|
<View style={styles.headerContainer}>
|
|
58
|
-
<ChannelAvatar channel={channel} size={'
|
|
60
|
+
<ChannelAvatar channel={channel} size={'xl'} />
|
|
59
61
|
<View style={styles.metaContainer}>
|
|
60
62
|
<View style={styles.titleContainer}>
|
|
61
63
|
<ChannelPreviewTitle channel={channel} />
|
|
@@ -141,7 +143,7 @@ const useStyles = () => {
|
|
|
141
143
|
flexDirection: 'row',
|
|
142
144
|
padding: primitives.spacingSm,
|
|
143
145
|
gap: primitives.spacingSm,
|
|
144
|
-
backgroundColor:
|
|
146
|
+
backgroundColor: 'transparent',
|
|
145
147
|
...header.container,
|
|
146
148
|
},
|
|
147
149
|
headerMeta: {
|
|
@@ -104,7 +104,9 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
|
|
|
104
104
|
return (
|
|
105
105
|
<View style={styles.container}>
|
|
106
106
|
<PollIcon height={16} width={16} stroke={semantics.textSecondary} />
|
|
107
|
-
<Text style={styles.subtitle}>
|
|
107
|
+
<Text ellipsizeMode='tail' numberOfLines={1} style={styles.subtitle}>
|
|
108
|
+
{pollLabel}
|
|
109
|
+
</Text>
|
|
108
110
|
</View>
|
|
109
111
|
);
|
|
110
112
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, Text } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { ChannelPreviewProps } from './ChannelPreview';
|
|
4
|
+
import type { ChannelPreviewProps } from './ChannelPreview';
|
|
5
5
|
import type { ChannelPreviewViewPropsWithContext } from './ChannelPreviewView';
|
|
6
6
|
|
|
7
7
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|