[v3.6.8] (Sep 1 2023)
[v3.6.8] (Sep 1 2023)
Feats:
- Update
ui/FileViewerto support multiple images- Modify the props structure
export enum ViewerTypes { SINGLE = 'SINGLE', MULTI = 'MULTI', } interface SenderInfo { profileUrl: string; nickname: string; } interface FileInfo { name: string; type: string; url: string; } interface BaseViewer { onClose: (e: React.MouseEvent) => void; } interface SingleFileViewer extends SenderInfo, FileInfo, BaseViewer { viewerType?: typeof ViewerTypes.SINGLE; isByMe?: boolean; disableDelete?: boolean; onDelete: (e: React.MouseEvent) => void; } interface MultiFilesViewer extends SenderInfo, BaseViewer { viewerType: typeof ViewerTypes.MULTI; fileInfoList: FileInfo[]; currentIndex: number; onClickLeft: () => void; onClickRight: () => void; } export type FileViewerComponentProps = SingleFileViewer | MultiFilesViewer;
- Modify the props structure
- Export misc. utils
Channel/utils/getMessagePartsInfoChannel/utils/compareMessagesForGroupingMessage/hooks/useDirtyGetMentionsui/MessageInput/hooks/usePaste
Fixes:
- Apply some props which are related to the
metadatato the ChannelListQuery- Add metadataKey, metadataValues, and metadataStartsWith to the Channel.queries.channelListQuery
- How to use
<Channel or ChannelProvider queries={{ channelListQuery: { metadataKey: 'isMatching', metadataValues: ['true'], } }} />
- Improve types of
ui/FileViewerandChannel/component/FileViewer- Add some props that have been missed
- Fix
<ImageRenderer />not converting number to pixel string - Modify the types on useChannelContext & useThreadContext
useChannelContext.setQuoteMessageshould acceptUserMessage | FileMessageuseThreadContext.sendMessageshould bestring