stream-chat-react-native-core 9.0.0-beta.27 → 9.0.0-beta.29
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 +29 -9
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy/GiphyImage.js +4 -4
- package/lib/commonjs/components/Attachment/Giphy/GiphyImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js +3 -3
- package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js +1 -1
- package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +2 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.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/Skeleton.js +1 -1
- package/lib/commonjs/components/ChannelList/Skeleton.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 +14 -12
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.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/ImageGallery.js +3 -3
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +2 -1
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +7 -3
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.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/components/AttachmentPreview/ImageAttachmentUploadPreview.js +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.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/PollInputDialog.js +1 -1
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +2 -2
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItemSkeleton.js +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItemSkeleton.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +145 -44
- 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/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/overlayContext/ClosingPortalHostsLayer.js +10 -1
- package/lib/commonjs/contexts/overlayContext/ClosingPortalHostsLayer.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +16 -7
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.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/version.json +1 -1
- package/lib/module/components/Attachment/Gallery.js +29 -9
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy/GiphyImage.js +4 -4
- package/lib/module/components/Attachment/Giphy/GiphyImage.js.map +1 -1
- package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js +3 -3
- package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
- package/lib/module/components/Attachment/ImageLoadingIndicator.js +1 -1
- package/lib/module/components/Attachment/ImageLoadingIndicator.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +2 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.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/Skeleton.js +1 -1
- package/lib/module/components/ChannelList/Skeleton.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 +14 -12
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.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/ImageGallery.js +3 -3
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/Message/Message.js +2 -1
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageItemView.js +7 -3
- package/lib/module/components/Message/MessageItemView/MessageItemView.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/components/AttachmentPreview/ImageAttachmentUploadPreview.js +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.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/PollInputDialog.js +1 -1
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +2 -2
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItemSkeleton.js +1 -1
- package/lib/module/components/ThreadList/ThreadListItemSkeleton.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +145 -44
- 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/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/overlayContext/ClosingPortalHostsLayer.js +10 -1
- package/lib/module/contexts/overlayContext/ClosingPortalHostsLayer.js.map +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +16 -7
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.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/version.json +1 -1
- package/lib/typescript/components/Attachment/Giphy/GiphyImage.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/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/Message/Message.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/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.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/overlayContext/MessageOverlayHostLayer.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessagePreviewText.d.ts.map +1 -1
- package/package.json +2 -4
- package/src/components/Attachment/Gallery.tsx +21 -5
- package/src/components/Attachment/Giphy/GiphyImage.tsx +6 -3
- package/src/components/Attachment/ImageLoadingFailedIndicator.tsx +1 -2
- package/src/components/Attachment/ImageLoadingIndicator.tsx +1 -1
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +2 -2
- package/src/components/Channel/Channel.tsx +1 -1
- package/src/components/ChannelList/Skeleton.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 +9 -7
- 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/ImageGallery.tsx +3 -3
- package/src/components/Message/Message.tsx +2 -1
- package/src/components/Message/MessageItemView/MessageItemView.tsx +8 -3
- package/src/components/Message/MessageItemView/__tests__/MessageContent.test.js +28 -0
- package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.js +32 -1
- package/src/components/Message/hooks/useCreateMessageContext.ts +3 -0
- package/src/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.tsx +1 -1
- package/src/components/MessageMenu/MessageUserReactions.tsx +1 -5
- package/src/components/Poll/components/PollInputDialog.tsx +1 -1
- package/src/components/Reply/Reply.tsx +2 -2
- package/src/components/ThreadList/ThreadListItemSkeleton.tsx +1 -1
- package/src/components/UIComponents/BottomSheetModal.tsx +242 -56
- 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/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/overlayContext/ClosingPortalHostsLayer.tsx +11 -1
- package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +17 -10
- package/src/hooks/messagePreview/useMessagePreviewText.tsx +5 -6
- package/src/version.json +1 -1
- package/bin/patch-bottom-sheet-5.1.8-pr-2561.js +0 -246
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,EACL,qBAAqB,EAErB,SAAS,EAGT,SAAS,EACV,MAAM,cAAc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AAc,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,8BAA8B,EAAE,kBAAkB,GAAG,iBAAiB,CAAC,CAAC;AA40BnF,MAAM,MAAM,YAAY,GAAG,OAAO,CAChC,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,gBAAgB,GAAG,SAAS,CAAC,CAC5E,GACC,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,SAAS,CAAC,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,sBAgC1C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
3
3
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
4
|
-
export type MessageItemViewPropsWithContext = Pick<MessageContextValue, 'alignment' | 'channel' | 'groupStyles' | 'isMyMessage' | 'message' | 'onlyEmojis' | 'otherAttachments' | 'setQuotedMessage' | 'lastGroupMessage' | 'contextMenuAnchorRef' | 'members'> & Pick<MessagesContextValue, 'customMessageSwipeAction' | 'enableMessageGroupingByUser' | 'enableSwipeToReply' | 'myMessageTheme' | 'MessageAuthor' | 'MessageContent' | 'MessageDeleted' | 'MessageError' | 'MessageFooter' | 'MessageHeader' | 'MessageReplies' | 'MessageSpacer' | 'MessageSwipeContent' | 'messageSwipeToReplyHitSlop' | 'ReactionListBottom' | 'reactionListPosition' | 'reactionListType' | 'ReactionListTop'>;
|
|
4
|
+
export type MessageItemViewPropsWithContext = Pick<MessageContextValue, 'alignment' | 'channel' | 'groupStyles' | 'hasAttachmentActions' | 'isMyMessage' | 'message' | 'onlyEmojis' | 'otherAttachments' | 'setQuotedMessage' | 'lastGroupMessage' | 'contextMenuAnchorRef' | 'members'> & Pick<MessagesContextValue, 'customMessageSwipeAction' | 'enableMessageGroupingByUser' | 'enableSwipeToReply' | 'myMessageTheme' | 'MessageAuthor' | 'MessageContent' | 'MessageDeleted' | 'MessageError' | 'MessageFooter' | 'MessageHeader' | 'MessageReplies' | 'MessageSpacer' | 'MessageSwipeContent' | 'messageSwipeToReplyHitSlop' | 'ReactionListBottom' | 'reactionListPosition' | 'reactionListType' | 'ReactionListTop'>;
|
|
5
5
|
export type MessageItemViewProps = Partial<MessageItemViewPropsWithContext>;
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageItemView.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageItemView/MessageItemView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAEL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAwL3D,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,mBAAmB,EACjB,WAAW,GACX,SAAS,GACT,aAAa,GACb,aAAa,GACb,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,sBAAsB,GACtB,SAAS,CACZ,GACC,IAAI,CACF,oBAAoB,EAClB,0BAA0B,GAC1B,6BAA6B,GAC7B,oBAAoB,GACpB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,4BAA4B,GAC5B,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,GAClB,iBAAiB,CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageItemView.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageItemView/MessageItemView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAEL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAwL3D,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,mBAAmB,EACjB,WAAW,GACX,SAAS,GACT,aAAa,GACb,sBAAsB,GACtB,aAAa,GACb,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,sBAAsB,GACtB,SAAS,CACZ,GACC,IAAI,CACF,oBAAoB,EAClB,0BAA0B,GAC1B,6BAA6B,GAC7B,oBAAoB,GACpB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,4BAA4B,GAC5B,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,GAClB,iBAAiB,CACpB,CAAC;AA4RJ,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,eAAe;YAAW,oBAAoB;;CA0E1D,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
2
|
-
export declare const useCreateMessageContext: ({ actionsEnabled, alignment, channel, contextMenuAnchorRef, deliveredToCount, dismissOverlay, files, goToMessage, groupStyles, handleAction, handleReaction, handleToggleReaction, hasReactions, messageHasOnlySingleAttachment, images, isMessageAIGenerated, isMyMessage, lastGroupMessage, members, message, messageOverlayId, messageContentOrder, myMessageTheme, onLongPress, onlyEmojis, onOpenThread, onPress, onPressIn, onThreadSelect, otherAttachments, preventPress, reactions, readBy, showAvatar, showMessageOverlay, showReactionsOverlay, showMessageStatus, threadList, videos, setQuotedMessage, }: MessageContextValue) => MessageContextValue;
|
|
2
|
+
export declare const useCreateMessageContext: ({ actionsEnabled, alignment, channel, contextMenuAnchorRef, deliveredToCount, dismissOverlay, files, goToMessage, groupStyles, handleAction, hasAttachmentActions, handleReaction, handleToggleReaction, hasReactions, messageHasOnlySingleAttachment, images, isMessageAIGenerated, isMyMessage, lastGroupMessage, members, message, messageOverlayId, messageContentOrder, myMessageTheme, onLongPress, onlyEmojis, onOpenThread, onPress, onPressIn, onThreadSelect, otherAttachments, preventPress, reactions, readBy, showAvatar, showMessageOverlay, showReactionsOverlay, showMessageStatus, threadList, videos, setQuotedMessage, }: MessageContextValue) => MessageContextValue;
|
|
3
3
|
//# sourceMappingURL=useCreateMessageContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessageContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useCreateMessageContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAc3F,eAAO,MAAM,uBAAuB,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateMessageContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useCreateMessageContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAc3F,eAAO,MAAM,uBAAuB,GAAI,6mBA0CrC,mBAAmB,wBAkFrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageUserReactions.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageMenu/MessageUserReactions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAOxD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAajD,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,IAAI,CACF,oBAAoB,EACpB,4BAA4B,GAAG,0BAA0B,GAAG,oBAAoB,CACjF,CACF,GACC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC,GAAG;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAMJ,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG;IACpD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,OAAO,wBAAwB,sBAc/E,CAAC;AAgBF,eAAO,MAAM,oBAAoB,GAAI,OAAO,yBAAyB,
|
|
1
|
+
{"version":3,"file":"MessageUserReactions.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageMenu/MessageUserReactions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAOxD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAajD,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,IAAI,CACF,oBAAoB,EACpB,4BAA4B,GAAG,0BAA0B,GAAG,oBAAoB,CACjF,CACF,GACC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC,GAAG;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAMJ,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG;IACpD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,OAAO,wBAAwB,sBAc/E,CAAC;AAgBF,eAAO,MAAM,oBAAoB,GAAI,OAAO,yBAAyB,sBAwNpE,CAAC"}
|
|
@@ -13,6 +13,10 @@ export type BottomSheetModalProps = {
|
|
|
13
13
|
* The height of the modal.
|
|
14
14
|
*/
|
|
15
15
|
height?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the sheet should wrap its content up to the provided `height`.
|
|
18
|
+
*/
|
|
19
|
+
enableDynamicSizing?: boolean;
|
|
16
20
|
/**
|
|
17
21
|
* Whether the sheet content should be lazy loaded or not. Particularly
|
|
18
22
|
* useful when the content is something heavy and we don't want to disrupt
|
|
@@ -20,5 +24,5 @@ export type BottomSheetModalProps = {
|
|
|
20
24
|
*/
|
|
21
25
|
lazy?: boolean;
|
|
22
26
|
};
|
|
23
|
-
export declare const BottomSheetModal: (props: PropsWithChildren<BottomSheetModalProps>) => React.JSX.Element;
|
|
27
|
+
export declare const BottomSheetModal: (props: PropsWithChildren<BottomSheetModalProps>) => React.JSX.Element | null;
|
|
24
28
|
//# sourceMappingURL=BottomSheetModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/BottomSheetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/BottomSheetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAuCf,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAyeF,eAAO,MAAM,gBAAgB,GAAI,OAAO,iBAAiB,CAAC,qBAAqB,CAAC,6BAM/E,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const BOTTOM_SHEET_HANDLE_HEIGHT = 4;
|
|
2
|
+
export declare const BOTTOM_SHEET_HANDLE_MARGIN_VERTICAL = 8;
|
|
3
|
+
export declare const BOTTOM_SHEET_HANDLE_TOTAL_HEIGHT: number;
|
|
4
|
+
type GetBottomSheetBaseHeightParams = {
|
|
5
|
+
contentHeight: number | undefined;
|
|
6
|
+
enableDynamicSizing: boolean;
|
|
7
|
+
height: number;
|
|
8
|
+
maxHeight: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const getBottomSheetBaseHeight: ({ contentHeight, enableDynamicSizing, height, maxHeight, }: GetBottomSheetBaseHeightParams) => number;
|
|
11
|
+
type GetBottomSheetSnapPointsParams = {
|
|
12
|
+
baseHeight: number;
|
|
13
|
+
maxHeight: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const getBottomSheetSnapPoints: ({ baseHeight, maxHeight, }: GetBottomSheetSnapPointsParams) => number[];
|
|
16
|
+
type GetBottomSheetTopSnapIndexParams = {
|
|
17
|
+
baseHeight: number;
|
|
18
|
+
maxHeight: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const getBottomSheetTopSnapIndex: ({ baseHeight, maxHeight, }: GetBottomSheetTopSnapIndexParams) => 0 | 1;
|
|
21
|
+
type GetBottomSheetSnapPointTranslateYParams = {
|
|
22
|
+
baseHeight: number;
|
|
23
|
+
maxHeight: number;
|
|
24
|
+
snapIndex: number;
|
|
25
|
+
};
|
|
26
|
+
export declare const getBottomSheetSnapPointTranslateY: ({ baseHeight, maxHeight, snapIndex, }: GetBottomSheetSnapPointTranslateYParams) => number;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=BottomSheetModal.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetModal.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/BottomSheetModal.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAC5C,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,gCAAgC,QACyB,CAAC;AAEvE,KAAK,8BAA8B,GAAG;IACpC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,4DAKtC,8BAA8B,WAYhC,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,4BAGtC,8BAA8B,aAQhC,CAAC;AAEF,KAAK,gCAAgC,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,4BAGxC,gCAAgC,UAIlC,CAAC;AAEF,KAAK,uCAAuC,GAAG;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAAI,uCAI/C,uCAAuC,WAQzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamBottomSheetModalFlatList.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/StreamBottomSheetModalFlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAO7C,KAAK,mCAAmC,CAAC,KAAK,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;AAEvE,eAAO,MAAM,8BAA8B,GAAI,KAAK,EAAG,gDAGpD,mCAAmC,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"StreamBottomSheetModalFlatList.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/StreamBottomSheetModalFlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAO7C,KAAK,mCAAmC,CAAC,KAAK,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;AAEvE,eAAO,MAAM,8BAA8B,GAAI,KAAK,EAAG,gDAGpD,mCAAmC,CAAC,KAAK,CAAC,sBA6B5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Avatar/ChannelAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAC;AAapD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ChannelAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Avatar/ChannelAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAC;AAapD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBAsDtD,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { SharedValue } from 'react-native-reanimated';
|
|
|
3
3
|
export type BottomSheetContextValue = {
|
|
4
4
|
close: (closeAnimationFinishedCallback?: () => void) => void;
|
|
5
5
|
currentSnapIndex: SharedValue<number>;
|
|
6
|
+
topSnapIndex: SharedValue<number>;
|
|
6
7
|
};
|
|
7
8
|
export declare const BottomSheetContext: React.Context<BottomSheetContextValue>;
|
|
8
9
|
export type BottomSheetProviderProps = PropsWithChildren<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/bottomSheetContext/BottomSheetContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,CAAC,8BAA8B,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAC7D,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheetContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/bottomSheetContext/BottomSheetContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,CAAC,8BAA8B,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAC7D,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,wCAE9B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,KAAK,EAAE,uBAAuB,CAAC;CAChC,CAAC,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,qBAAqB,wBAAwB,sBAIhF,CAAC;AAEF,eAAO,MAAM,qBAAqB,+BAUjC,CAAC"}
|
|
@@ -2,14 +2,14 @@ import React, { PropsWithChildren } from 'react';
|
|
|
2
2
|
import type { View } from 'react-native';
|
|
3
3
|
import type { Attachment, LocalMessage } from 'stream-chat';
|
|
4
4
|
import type { ActionHandler } from '../../components/Attachment/Attachment';
|
|
5
|
-
import { ReactionSummary } from '../../components/Message/hooks/useProcessReactions';
|
|
5
|
+
import type { ReactionSummary } from '../../components/Message/hooks/useProcessReactions';
|
|
6
6
|
import type { MessagePressableHandlerPayload, PressableHandlerPayload } from '../../components/Message/Message';
|
|
7
7
|
import type { GroupType } from '../../components/MessageList/hooks/useMessageList';
|
|
8
8
|
import type { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
|
|
9
9
|
import type { MessageContentType } from '../../contexts/messagesContext/MessagesContext';
|
|
10
10
|
import type { DeepPartial } from '../../contexts/themeContext/ThemeContext';
|
|
11
11
|
import type { Theme } from '../../contexts/themeContext/utils/theme';
|
|
12
|
-
import { MessageComposerAPIContextValue } from '../messageComposerContext/MessageComposerAPIContext';
|
|
12
|
+
import type { MessageComposerAPIContextValue } from '../messageComposerContext/MessageComposerAPIContext';
|
|
13
13
|
export type Alignment = 'right' | 'left';
|
|
14
14
|
export type MessageContextValue = {
|
|
15
15
|
/** Whether or not actions can be performed on message */
|
|
@@ -31,6 +31,8 @@ export type MessageContextValue = {
|
|
|
31
31
|
groupStyles: GroupType[];
|
|
32
32
|
/** Handler for actions. Actions in combination with attachments can be used to build [commands](https://getstream.io/chat/docs/#channel_commands). */
|
|
33
33
|
handleAction: ActionHandler;
|
|
34
|
+
/** Whether or not any message attachment exposes actions. */
|
|
35
|
+
hasAttachmentActions: boolean;
|
|
34
36
|
handleToggleReaction: (reactionType: string) => Promise<void>;
|
|
35
37
|
/** Whether or not message has reactions */
|
|
36
38
|
hasReactions: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageContext/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageContext/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,IAAI,EAAE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UAAU,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD;;OAEG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACpC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,iBAAiB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9E,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,SAAS,CAAC,GAClD,IAAI,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAAC;AAE3D,eAAO,MAAM,cAAc,oCAE1B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,sBAG7B,iBAAiB,CAAC;IACnB,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,CAAC,sBAID,CAAC;AAEF,eAAO,MAAM,iBAAiB,2BAI7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageOverlayHostLayer.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/MessageOverlayHostLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAuDlD,KAAK,4BAA4B,GAAG;IAClC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,yBAAyB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"MessageOverlayHostLayer.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/MessageOverlayHostLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAuDlD,KAAK,4BAA4B,GAAG;IAClC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,yBAAyB,4BAA4B,sBA6S5F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessagePreviewText.d.ts","sourceRoot":"","sources":["../../../../src/hooks/messagePreview/useMessagePreviewText.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAEZ,YAAY,EACZ,eAAe,EAEhB,MAAM,aAAa,CAAC;AAWrB,eAAO,MAAM,qBAAqB,GAAI,cAEnC;IACD,OAAO,CAAC,EAAE,YAAY,GAAG,eAAe,GAAG,YAAY,GAAG,IAAI,CAAC;CAChE,
|
|
1
|
+
{"version":3,"file":"useMessagePreviewText.d.ts","sourceRoot":"","sources":["../../../../src/hooks/messagePreview/useMessagePreviewText.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAEZ,YAAY,EACZ,eAAe,EAEhB,MAAM,aAAa,CAAC;AAWrB,eAAO,MAAM,qBAAqB,GAAI,cAEnC;IACD,OAAO,CAAC,EAAE,YAAY,GAAG,eAAe,GAAG,YAAY,GAAG,IAAI,CAAC;CAChE,uBA+EA,CAAC"}
|
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.29",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"src",
|
|
21
21
|
"lib",
|
|
22
|
-
"bin/patch-bottom-sheet-5.1.8-pr-2561.js",
|
|
23
22
|
"package.json",
|
|
24
23
|
"README.md"
|
|
25
24
|
],
|
|
@@ -37,7 +36,6 @@
|
|
|
37
36
|
"prepare-distribution": "cd examples/SampleApp && npm version patch && react-native-version && git add ./ && git commit -m 'Bump build version' --no-verify",
|
|
38
37
|
"prettier": "prettier --list-different '**/*.{js,ts,tsx,md,json}' eslint.config.mjs ../.prettierrc babel.config.js",
|
|
39
38
|
"prettier-fix": "prettier --write '**/*.{js,ts,tsx,md,json}' eslint.config.mjs ../.prettierrc babel.config.js",
|
|
40
|
-
"postinstall": "node ./bin/patch-bottom-sheet-5.1.8-pr-2561.js",
|
|
41
39
|
"test:coverage": "yarn test:unit --coverage",
|
|
42
40
|
"test:unit": "TZ=UTC jest",
|
|
43
41
|
"validate-translations": "node bin/validate-translations.js",
|
|
@@ -72,7 +70,7 @@
|
|
|
72
70
|
]
|
|
73
71
|
},
|
|
74
72
|
"dependencies": {
|
|
75
|
-
"@gorhom/bottom-sheet": "5.
|
|
73
|
+
"@gorhom/bottom-sheet": "5.2.9",
|
|
76
74
|
"@ungap/structured-clone": "^1.3.0",
|
|
77
75
|
"dayjs": "1.11.13",
|
|
78
76
|
"emoji-regex": "^10.4.0",
|
|
@@ -347,7 +347,7 @@ const GalleryThumbnail = ({
|
|
|
347
347
|
{colIndex === numOfColumns - 1 && rowIndex === numOfRows - 1 && imagesAndVideos.length > 4 ? (
|
|
348
348
|
<View
|
|
349
349
|
style={[
|
|
350
|
-
StyleSheet.
|
|
350
|
+
StyleSheet.absoluteFill,
|
|
351
351
|
styles.moreImagesContainer,
|
|
352
352
|
{ backgroundColor: semantics.backgroundCoreOverlayDark },
|
|
353
353
|
borderRadius,
|
|
@@ -617,7 +617,11 @@ const useStyles = () => {
|
|
|
617
617
|
overflow: 'hidden',
|
|
618
618
|
},
|
|
619
619
|
imageLoadingErrorIndicatorStyle: {
|
|
620
|
-
|
|
620
|
+
bottom: 0,
|
|
621
|
+
left: 0,
|
|
622
|
+
position: 'absolute',
|
|
623
|
+
right: 0,
|
|
624
|
+
top: 0,
|
|
621
625
|
alignItems: 'center',
|
|
622
626
|
justifyContent: 'center',
|
|
623
627
|
},
|
|
@@ -633,7 +637,11 @@ const useStyles = () => {
|
|
|
633
637
|
position: 'absolute',
|
|
634
638
|
},
|
|
635
639
|
imageReloadContainerStyle: {
|
|
636
|
-
|
|
640
|
+
bottom: 0,
|
|
641
|
+
left: 0,
|
|
642
|
+
position: 'absolute',
|
|
643
|
+
right: 0,
|
|
644
|
+
top: 0,
|
|
637
645
|
alignItems: 'center',
|
|
638
646
|
justifyContent: 'center',
|
|
639
647
|
},
|
|
@@ -648,12 +656,20 @@ const useStyles = () => {
|
|
|
648
656
|
fontWeight: primitives.typographyFontWeightSemiBold,
|
|
649
657
|
},
|
|
650
658
|
imageLoadingErrorContainer: {
|
|
651
|
-
|
|
659
|
+
bottom: 0,
|
|
660
|
+
left: 0,
|
|
661
|
+
position: 'absolute',
|
|
662
|
+
right: 0,
|
|
663
|
+
top: 0,
|
|
652
664
|
alignItems: 'center',
|
|
653
665
|
justifyContent: 'center',
|
|
654
666
|
},
|
|
655
667
|
imageLoadingErrorWrapper: {
|
|
656
|
-
|
|
668
|
+
bottom: 0,
|
|
669
|
+
left: 0,
|
|
670
|
+
position: 'absolute',
|
|
671
|
+
right: 0,
|
|
672
|
+
top: 0,
|
|
657
673
|
overflow: 'hidden',
|
|
658
674
|
},
|
|
659
675
|
});
|
|
@@ -97,12 +97,16 @@ const GiphyImageWithContext = (props: GiphyImagePropsWithContext) => {
|
|
|
97
97
|
style={[styles.giphy, giphyDimensions, giphy]}
|
|
98
98
|
/>
|
|
99
99
|
{isLoadingImageError && (
|
|
100
|
-
<View
|
|
100
|
+
<View
|
|
101
|
+
style={[StyleSheet.absoluteFill, styles.imageIndicatorContainer, imageIndicatorContainer]}
|
|
102
|
+
>
|
|
101
103
|
<ImageLoadingFailedIndicator onReloadImage={onReloadImage} />
|
|
102
104
|
</View>
|
|
103
105
|
)}
|
|
104
106
|
{isLoadingImage && (
|
|
105
|
-
<View
|
|
107
|
+
<View
|
|
108
|
+
style={[StyleSheet.absoluteFill, styles.imageIndicatorContainer, imageIndicatorContainer]}
|
|
109
|
+
>
|
|
106
110
|
<ImageLoadingIndicator />
|
|
107
111
|
</View>
|
|
108
112
|
)}
|
|
@@ -201,7 +205,6 @@ const useStyles = () => {
|
|
|
201
205
|
},
|
|
202
206
|
imageContainer: {},
|
|
203
207
|
imageIndicatorContainer: {
|
|
204
|
-
...StyleSheet.absoluteFillObject,
|
|
205
208
|
alignItems: 'center',
|
|
206
209
|
justifyContent: 'center',
|
|
207
210
|
},
|
|
@@ -34,7 +34,7 @@ export const ImageLoadingFailedIndicator = ({
|
|
|
34
34
|
accessibilityLabel='Image Loading Error Indicator'
|
|
35
35
|
onLongPress={onLongPress}
|
|
36
36
|
onPress={onReloadImage}
|
|
37
|
-
style={styles.imageLoadingErrorIndicatorStyle}
|
|
37
|
+
style={[StyleSheet.absoluteFill, styles.imageLoadingErrorIndicatorStyle]}
|
|
38
38
|
>
|
|
39
39
|
<RetryBadge size='lg' />
|
|
40
40
|
</Pressable>
|
|
@@ -48,7 +48,6 @@ const useStyles = () => {
|
|
|
48
48
|
return useMemo(() => {
|
|
49
49
|
return StyleSheet.create({
|
|
50
50
|
imageLoadingErrorIndicatorStyle: {
|
|
51
|
-
...StyleSheet.absoluteFillObject,
|
|
52
51
|
alignItems: 'center',
|
|
53
52
|
justifyContent: 'center',
|
|
54
53
|
backgroundColor: semantics.backgroundCoreOverlayLight,
|
|
@@ -14,7 +14,7 @@ export const ImageLoadingIndicator = () => {
|
|
|
14
14
|
accessible
|
|
15
15
|
enabled
|
|
16
16
|
gradientColor={semantics.skeletonLoadingHighlight}
|
|
17
|
-
style={StyleSheet.
|
|
17
|
+
style={StyleSheet.absoluteFill}
|
|
18
18
|
>
|
|
19
19
|
<View pointerEvents='none' style={styles.centered}>
|
|
20
20
|
<ActivityIndicator />
|
package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx
CHANGED
|
@@ -79,7 +79,7 @@ const AttachmentVideo = (props: AttachmentPickerItemType) => {
|
|
|
79
79
|
image,
|
|
80
80
|
]}
|
|
81
81
|
>
|
|
82
|
-
<Image source={{ uri: thumb_url }} style={StyleSheet.
|
|
82
|
+
<Image source={{ uri: thumb_url }} style={StyleSheet.absoluteFill} />
|
|
83
83
|
<View style={[styles.overlay, imageOverlay]}>
|
|
84
84
|
<ImageOverlaySelectedComponent index={selectedIndex} />
|
|
85
85
|
</View>
|
|
@@ -138,7 +138,7 @@ const AttachmentImage = (props: AttachmentPickerItemType) => {
|
|
|
138
138
|
image,
|
|
139
139
|
]}
|
|
140
140
|
>
|
|
141
|
-
<Image source={{ uri }} style={StyleSheet.
|
|
141
|
+
<Image source={{ uri }} style={StyleSheet.absoluteFill} />
|
|
142
142
|
<View style={[styles.overlay, imageOverlay]}>
|
|
143
143
|
<ImageOverlaySelectedComponent index={selectedIndex} />
|
|
144
144
|
</View>
|
|
@@ -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,
|
|
@@ -19,7 +19,7 @@ const SkeletonBlock = ({ style }: { style: React.ComponentProps<typeof View>['st
|
|
|
19
19
|
baseColor={semantics.backgroundCoreSurfaceDefault}
|
|
20
20
|
duration={animationTime}
|
|
21
21
|
gradientColor={semantics.skeletonLoadingHighlight}
|
|
22
|
-
style={StyleSheet.
|
|
22
|
+
style={StyleSheet.absoluteFill}
|
|
23
23
|
/>
|
|
24
24
|
</View>
|
|
25
25
|
);
|
|
@@ -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} />
|
|
@@ -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';
|