Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3357961
D6042.id20153.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D6042.id20153.diff
View Options
diff --git a/web/chat/chat-input-bar.react.js b/web/chat/chat-input-bar.react.js
--- a/web/chat/chat-input-bar.react.js
+++ b/web/chat/chat-input-bar.react.js
@@ -51,9 +51,9 @@
import { useSelector } from '../redux/redux-utils';
import { nonThreadCalendarQuery } from '../selectors/nav-selectors';
import SWMansionIcon from '../SWMansionIcon.react';
+import { typeaheadRegex } from '../utils/typeahead-utils';
import css from './chat-input-bar.css';
import TypeaheadTooltip from './typeahead-tooltip.react';
-import { typeaheadRegex } from './typeahead-utils';
type BaseProps = {
+threadInfo: ThreadInfo,
+inputState: InputState,
diff --git a/web/chat/typeahead-tooltip.react.js b/web/chat/typeahead-tooltip.react.js
--- a/web/chat/typeahead-tooltip.react.js
+++ b/web/chat/typeahead-tooltip.react.js
@@ -10,12 +10,12 @@
import Button from '../components/button.react';
import type { InputState } from '../input/input-state';
-import { type TypeaheadMatchedStrings } from './chat-input-bar.react';
-import css from './typeahead-tooltip.css';
import {
getTypeaheadTooltipActions,
getTypeaheadTooltipPosition,
-} from './typeahead-utils';
+} from '../utils/typeahead-utils';
+import type { TypeaheadMatchedStrings } from './chat-input-bar.react';
+import css from './typeahead-tooltip.css';
export type TypeaheadTooltipProps = {
+inputState: InputState,
diff --git a/web/chat/typeahead-utils.js b/web/utils/typeahead-utils.js
rename from web/chat/typeahead-utils.js
rename to web/utils/typeahead-utils.js
--- a/web/chat/typeahead-utils.js
+++ b/web/utils/typeahead-utils.js
@@ -6,13 +6,13 @@
import { stringForUserExplicit } from 'lib/shared/user-utils';
import type { RelativeMemberInfo } from 'lib/types/thread-types';
+import { typeaheadStyle } from '../chat/chat-constants';
+import { type InputState } from '../input/input-state';
+
const typeaheadRegex: RegExp = new RegExp(
`(?<textPrefix>(?:^(?:.|\n)*\\s+)|^)@(?<username>${oldValidUsernameRegexString})?$`,
);
-import { type InputState } from '../input/input-state';
-import { typeaheadStyle } from './chat-constants';
-
export type TypeaheadTooltipAction = {
+key: string,
+onClick: (SyntheticEvent<HTMLButtonElement>) => mixed,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 2:42 AM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577880
Default Alt Text
D6042.id20153.diff (2 KB)
Attached To
Mode
D6042: [web] Keyboard support for typeahead [2/13] - Moved typeahead-utils.js
Attached
Detach File
Event Timeline
Log In to Comment