Skip to content

Commit 92d177e

Browse files
committed
fix: circular deps
1 parent e25cb96 commit 92d177e

File tree

7 files changed

+24
-22
lines changed

7 files changed

+24
-22
lines changed

examples/ExpoMessaging/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6043,10 +6043,10 @@ stream-chat-react-native-core@8.1.0:
60436043
version "0.0.0"
60446044
uid ""
60456045

6046-
stream-chat@^9.36.1:
6047-
version "9.36.2"
6048-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.36.2.tgz#cd2cfac1f8d7b045c34dce51e2de1cb66bf288f5"
6049-
integrity sha512-sSCxTXJOf0BLDMZ2/cqvFged/LLbiWoIhs7v3UsRj0EM0T8tTam7zpU77TSccNDlK5j1C1/llSUVyMLc7aCDsA==
6046+
stream-chat@^9.40.0:
6047+
version "9.41.0"
6048+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.41.0.tgz#ad88d7919aaf1d3c35b4a431a8cd464cb640f146"
6049+
integrity sha512-Rgp3vULGKYxHZ/aCeundly6ngdBGttTPz+YknmWhbqvNlEhPB/RM61CpQPHgPyfkSm+osJT3tEV9fKd+I/S77g==
60506050
dependencies:
60516051
"@types/jsonwebtoken" "^9.0.8"
60526052
"@types/ws" "^8.5.14"

package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@ import type { FlatListProps } from 'react-native';
44

55
import { Pressable } from 'react-native-gesture-handler';
66

7-
import { Channel } from 'stream-chat';
7+
import type { Channel } from 'stream-chat';
88

99
import { ChannelPreviewMutedStatus } from './ChannelPreviewMutedStatus';
1010
import { ChannelPreviewTitle } from './ChannelPreviewTitle';
1111
import { useIsChannelMuted } from './hooks/useIsChannelMuted';
1212

13-
import { useBottomSheetContext, useTheme, useTranslationContext } from '../../contexts';
13+
import { useBottomSheetContext } from '../../contexts/bottomSheetContext/BottomSheetContext';
1414
import { useSwipeRegistryContext } from '../../contexts/swipeableContext/SwipeRegistryContext';
15-
import { useStableCallback } from '../../hooks';
15+
import { useTheme } from '../../contexts/themeContext/ThemeContext';
16+
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
17+
import { useStableCallback } from '../../hooks/useStableCallback';
1618
import { primitives } from '../../theme';
17-
import { ChannelActionItem } from '../ChannelList/hooks/useChannelActionItems';
19+
import type { ChannelActionItem } from '../ChannelList/hooks/useChannelActionItems';
1820
import { useChannelMembersState } from '../ChannelList/hooks/useChannelMembersState';
1921
import { useChannelMuteActive } from '../ChannelList/hooks/useChannelMuteActive';
2022
import { useChannelOnlineMemberCount } from '../ChannelList/hooks/useChannelOnlineMemberCount';
2123
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';
2426

2527
export type ChannelDetailsHeaderProps = { channel: Channel };
2628

package/src/components/ChannelPreview/ChannelPreviewStatus.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useMemo } from 'react';
22
import { StyleSheet, Text } from 'react-native';
33

4-
import { ChannelPreviewProps } from './ChannelPreview';
4+
import type { ChannelPreviewProps } from './ChannelPreview';
55
import type { ChannelPreviewViewPropsWithContext } from './ChannelPreviewView';
66

77
import { useTheme } from '../../contexts/themeContext/ThemeContext';

package/src/components/ChannelPreview/ChannelPreviewView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { useMemo } from 'react';
22
import { Pressable, StyleSheet, View } from 'react-native';
33

4-
import { ChannelPreviewProps } from './ChannelPreview';
4+
import type { ChannelPreviewProps } from './ChannelPreview';
55
import { ChannelPreviewMessage } from './ChannelPreviewMessage';
66
import { ChannelPreviewMutedStatus } from './ChannelPreviewMutedStatus';
77
import { ChannelPreviewStatus } from './ChannelPreviewStatus';
88
import { ChannelPreviewTitle } from './ChannelPreviewTitle';
99
import { ChannelPreviewUnreadCount } from './ChannelPreviewUnreadCount';
1010

11-
import { LastMessageType } from './hooks/useChannelPreviewData';
11+
import type { LastMessageType } from './hooks/useChannelPreviewData';
1212

1313
import {
1414
ChannelsContextValue,

package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
import React, { PropsWithChildren, useCallback, useMemo, useState } from 'react';
22
import { StyleSheet } from 'react-native';
33

4-
import { SharedValue } from 'react-native-reanimated';
4+
import type { SharedValue } from 'react-native-reanimated';
55

6-
import { Channel } from 'stream-chat';
6+
import type { Channel } from 'stream-chat';
77

88
import { ChannelDetailsBottomSheet as DefaultChannelDetailsBottomSheet } from './ChannelDetailsBottomSheet';
99
import type { ChannelDetailsBottomSheetProps } from './ChannelDetailsBottomSheet';
1010
import { useIsChannelMuted } from './hooks/useIsChannelMuted';
1111

12-
import { useTheme } from '../../contexts';
1312
import { useSwipeRegistryContext } from '../../contexts/swipeableContext/SwipeRegistryContext';
13+
import { useTheme } from '../../contexts/themeContext/ThemeContext';
1414
import { MenuPointHorizontal, Mute, Sound } from '../../icons';
15-
import { GetChannelActionItems } from '../ChannelList/hooks/useChannelActionItems';
15+
import type { GetChannelActionItems } from '../ChannelList/hooks/useChannelActionItems';
1616
import { useChannelActionItems } from '../ChannelList/hooks/useChannelActionItems';
1717
import { useChannelActions } from '../ChannelList/hooks/useChannelActions';
18+
import { BottomSheetModal } from '../UIComponents/BottomSheetModal';
1819
import {
19-
BottomSheetModal,
2020
RightActions,
2121
SwipableActionItem,
2222
SwipableWrapper,
2323
SwipableWrapperProps,
24-
} from '../UIComponents';
24+
} from '../UIComponents/SwipableWrapper';
2525

2626
export const OpenChannelDetailsButton = () => {
2727
const {

package/src/contexts/messageComposerContext/MessageComposerContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from './MessageComposerAPIContext';
99

1010
import { ChannelProps } from '../../components';
11-
import { useStableCallback } from '../../hooks';
11+
import { useStableCallback } from '../../hooks/useStableCallback';
1212
import { useCreateMessageComposer } from '../messageInputContext/hooks/useCreateMessageComposer';
1313
import { ThreadContextValue } from '../threadContext/ThreadContext';
1414
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';

package/src/contexts/messageContext/MessageContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { View } from 'react-native';
44
import type { Attachment, LocalMessage } from 'stream-chat';
55

66
import type { ActionHandler } from '../../components/Attachment/Attachment';
7-
import { ReactionSummary } from '../../components/Message/hooks/useProcessReactions';
7+
import type { ReactionSummary } from '../../components/Message/hooks/useProcessReactions';
88
import type {
99
MessagePressableHandlerPayload,
1010
PressableHandlerPayload,
@@ -15,7 +15,7 @@ import type { MessageContentType } from '../../contexts/messagesContext/Messages
1515
import type { DeepPartial } from '../../contexts/themeContext/ThemeContext';
1616
import type { Theme } from '../../contexts/themeContext/utils/theme';
1717

18-
import { MessageComposerAPIContextValue } from '../messageComposerContext/MessageComposerAPIContext';
18+
import type { MessageComposerAPIContextValue } from '../messageComposerContext/MessageComposerAPIContext';
1919
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
2020

2121
export type Alignment = 'right' | 'left';

0 commit comments

Comments
 (0)