9e01335694
Refactor channelMention suggestions into new textareaSuggestions component Install @mui/material packages Move channel mentioning to use @mui/Autocomplete combobox without search functionality Add support for suggesting Emotes while typing ':' Improve label to display matching term Add back and improved support for searching while mentioning Add support for suggesting emojis Fix non concatenated strings Add key to groups and options Fix dispatch props Fix Popper positioning to be consistent Fix and Improve searching Add back support for Winning Uri Filter default emojis with the same name as emotes Remove unused topSuggestion component Fix text color on darkmode Fix livestream updating state from both websocket and reducer and causing double of the same comments to appear Fix blur and focus commentCreate events Fix no name after @ error
53 lines
1.1 KiB
JavaScript
53 lines
1.1 KiB
JavaScript
// @flow
|
|
import * as ACTIONS from 'constants/action_types';
|
|
|
|
declare type SearchOptions = {
|
|
// :(
|
|
// https://github.com/facebook/flow/issues/6492
|
|
RESULT_COUNT: number,
|
|
CLAIM_TYPE: string,
|
|
INCLUDE_FILES: string,
|
|
INCLUDE_CHANNELS: string,
|
|
INCLUDE_FILES_AND_CHANNELS: string,
|
|
MEDIA_AUDIO: string,
|
|
MEDIA_VIDEO: string,
|
|
MEDIA_TEXT: string,
|
|
MEDIA_IMAGE: string,
|
|
MEDIA_APPLICATION: string,
|
|
SORT: string,
|
|
SORT_ACCENDING: string,
|
|
SORT_DESCENDING: string,
|
|
EXACT: string,
|
|
TIME_FILTER: string,
|
|
TIME_FILTER_LAST_HOUR: string,
|
|
TIME_FILTER_TODAY: string,
|
|
TIME_FILTER_THIS_WEEK: string,
|
|
TIME_FILTER_THIS_MONTH: string,
|
|
TIME_FILTER_THIS_YEAR: string,
|
|
};
|
|
|
|
declare type SearchState = {
|
|
options: SearchOptions,
|
|
resultsByQuery: {},
|
|
results: Array<string>,
|
|
hasReachedMaxResultsLength: {},
|
|
searching: boolean,
|
|
mentionQuery: string,
|
|
};
|
|
|
|
declare type SearchSuccess = {
|
|
type: ACTIONS.SEARCH_SUCCESS,
|
|
data: {
|
|
query: string,
|
|
from: number,
|
|
size: number,
|
|
uris: Array<string>,
|
|
recsys: string,
|
|
query: string,
|
|
},
|
|
};
|
|
|
|
declare type UpdateSearchOptions = {
|
|
type: ACTIONS.UPDATE_SEARCH_OPTIONS,
|
|
data: SearchOptions,
|
|
};
|