stream-chat-react 12.5.1 → 12.5.2
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.
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import type { CommandResponse, UserResponse } from 'stream-chat';
|
|
3
3
|
import type { TriggerSettings } from '../MessageInput/DefaultTriggerProvider';
|
|
4
4
|
import type { CustomTrigger, DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
5
|
-
import
|
|
5
|
+
import { EmojiSearchIndex, EmojiSearchIndexResult } from '../MessageInput';
|
|
6
6
|
type ObjectUnion<T> = T[keyof T];
|
|
7
7
|
export type SuggestionCommand<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = CommandResponse<StreamChatGenerics>;
|
|
8
8
|
export type SuggestionUser<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = UserResponse<StreamChatGenerics>;
|
|
9
|
-
export type SuggestionEmoji<T extends UnknownType = UnknownType> =
|
|
9
|
+
export type SuggestionEmoji<T extends UnknownType = UnknownType> = EmojiSearchIndexResult & T;
|
|
10
10
|
export type SuggestionItem<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, T extends UnknownType = UnknownType> = SuggestionUser<StreamChatGenerics> | SuggestionCommand<StreamChatGenerics> | SuggestionEmoji<T>;
|
|
11
11
|
export type SuggestionItemProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, T extends UnknownType = UnknownType> = {
|
|
12
12
|
className: string;
|