Changeset View
Changeset View
Standalone View
Standalone View
web/chat/typeahead-tooltip.react.js
// @flow | // @flow | ||||
import classNames from 'classnames'; | import classNames from 'classnames'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import type { TypeaheadMatchedStrings } from 'lib/shared/typeahead-utils'; | |||||
import type { RelativeMemberInfo } from 'lib/types/thread-types'; | import type { RelativeMemberInfo } from 'lib/types/thread-types'; | ||||
import { leastPositiveResidue } from 'lib/utils/math-utils'; | import { leastPositiveResidue } from 'lib/utils/math-utils'; | ||||
import type { InputState } from '../input/input-state'; | import type { InputState } from '../input/input-state'; | ||||
import { | import { | ||||
getTypeaheadOverlayScroll, | getTypeaheadOverlayScroll, | ||||
getTypeaheadTooltipActions, | getTypeaheadTooltipActions, | ||||
getTypeaheadTooltipButtons, | getTypeaheadTooltipButtons, | ||||
getTypeaheadTooltipPosition, | getTypeaheadTooltipPosition, | ||||
} from '../utils/typeahead-utils'; | } from '../utils/typeahead-utils'; | ||||
import type { TypeaheadMatchedStrings } from './chat-input-bar.react'; | |||||
import css from './typeahead-tooltip.css'; | import css from './typeahead-tooltip.css'; | ||||
export type TypeaheadTooltipProps = { | export type TypeaheadTooltipProps = { | ||||
+inputState: InputState, | +inputState: InputState, | ||||
+textarea: HTMLTextAreaElement, | +textarea: HTMLTextAreaElement, | ||||
+matchedStrings: TypeaheadMatchedStrings, | +matchedStrings: TypeaheadMatchedStrings, | ||||
+suggestedUsers: $ReadOnlyArray<RelativeMemberInfo>, | +suggestedUsers: $ReadOnlyArray<RelativeMemberInfo>, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |