Skip to content

Commit 2a83f75

Browse files
committed
feat: expose internal contexts and composer components in the public API
These components/hooks/contexts were used internally and referenced by the docs but were never re-exported from the package barrels, so consumers could not import them. Wire them into the public API: - context: VirtualizedMessageListContext, VirtualizedMessageListContextProvider, useVirtualizedMessageListContext, VirtualizedMessageListContextValue - components: SummarizedMessagePreview + useLatestMessagePreview (and its ChannelPreviewMessageType / ChannelPreviewDeliveryStatus / LatestMessagePreviewData / UseLatestMessagePreviewParams types) - message composer: VoiceRecordingPreviewSlot component; MessageComposerActions and AdditionalMessageComposerActions Purely additive barrel re-exports; no behavior change. yarn types and eslint pass.
1 parent 05236db commit 2a83f75

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/MessageComposer/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
export * from './AttachmentSelector';
2-
export { AttachmentPreviewList } from './AttachmentPreviewList';
2+
export {
3+
AttachmentPreviewList,
4+
VoiceRecordingPreviewSlot,
5+
} from './AttachmentPreviewList';
36
export type {
47
AttachmentPreviewListProps,
58
FileAttachmentPreviewProps,
@@ -16,6 +19,7 @@ export * from './hooks';
1619
export * from './icons';
1720
export * from './LinkPreviewList';
1821
export * from './MessageComposer';
22+
export * from './MessageComposerActions';
1923
export * from './MessageComposerUI';
2024
export * from './QuotedMessagePreview';
2125
export * from './SendButton';

src/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export * from './Notifications';
3838
export * from './Poll';
3939
export * from './Reactions';
4040
export * from './SafeAnchor';
41+
export * from './SummarizedMessagePreview';
4142
export * from './TextareaComposer';
4243
export * from './Thread';
4344
export * from './Threads';

src/context/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ export * from './ModalContext';
1414
export * from './PollContext';
1515
export * from './TranslationContext';
1616
export * from './TypingContext';
17+
export * from './VirtualizedMessageListContext';
1718
export * from './WithComponents';

0 commit comments

Comments
 (0)