From ea906d6574daf38068d25c651677528c8faf5467 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Tue, 7 Nov 2023 12:01:31 +0200 Subject: [PATCH] Move re-exports to highest react package level --- packages/react/src/index.ts | 10 ++++++++++ packages/react/src/prefabs/index.ts | 8 -------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index c2dd44920..147d638ff 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -5,3 +5,13 @@ export * from './hooks'; export * from './prefabs'; export * from './context'; + +// Re-exports from core +export { + ChatMessage, + ReceivedChatMessage, + MessageDecoder, + MessageEncoder, + UserChoices, + setLogLevel, +} from '@livekit/components-core'; diff --git a/packages/react/src/prefabs/index.ts b/packages/react/src/prefabs/index.ts index a5ee88050..e63bfdd77 100644 --- a/packages/react/src/prefabs/index.ts +++ b/packages/react/src/prefabs/index.ts @@ -10,11 +10,3 @@ export { VideoConference, type VideoConferenceProps } from './VideoConference'; export { ControlBar, type ControlBarProps, type ControlBarControls } from './ControlBar'; export { MediaDeviceMenu, type MediaDeviceMenuProps } from './MediaDeviceMenu'; export { AudioConference, type AudioConferenceProps } from './AudioConference'; - -// Re-export types from core -export { - type ChatMessage, - type ReceivedChatMessage, - type MessageDecoder, - type MessageEncoder, -} from '@livekit/components-core';