Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32958423
D6760.1768283591.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D6760.1768283591.diff
View Options
diff --git a/lib/shared/typeahead-utils.js b/lib/shared/mention-utils.js
rename from lib/shared/typeahead-utils.js
rename to lib/shared/mention-utils.js
diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js
--- a/native/chat/chat-input-bar.react.js
+++ b/native/chat/chat-input-bar.react.js
@@ -32,6 +32,11 @@
relativeMemberInfoSelectorForMembersOfThread,
userStoreSearchIndex,
} from 'lib/selectors/user-selectors.js';
+import {
+ getTypeaheadUserSuggestions,
+ getTypeaheadRegexMatches,
+ type Selection,
+} from 'lib/shared/mention-utils.js';
import { localIDPrefix, trimMessage } from 'lib/shared/message-utils.js';
import SearchIndex from 'lib/shared/search-index.js';
import {
@@ -43,11 +48,6 @@
draftKeyFromThreadID,
colorIsDark,
} from 'lib/shared/thread-utils.js';
-import {
- getTypeaheadUserSuggestions,
- getTypeaheadRegexMatches,
- type Selection,
-} from 'lib/shared/typeahead-utils.js';
import type { CalendarQuery } from 'lib/types/entry-types.js';
import type { LoadingStatus } from 'lib/types/loading-types.js';
import type { PhotoPaste } from 'lib/types/media-types.js';
diff --git a/native/chat/typeahead-tooltip.react.js b/native/chat/typeahead-tooltip.react.js
--- a/native/chat/typeahead-tooltip.react.js
+++ b/native/chat/typeahead-tooltip.react.js
@@ -8,7 +8,7 @@
type TypeaheadMatchedStrings,
type Selection,
getNewTextAndSelection,
-} from 'lib/shared/typeahead-utils.js';
+} from 'lib/shared/mention-utils.js';
import type { RelativeMemberInfo } from 'lib/types/thread-types.js';
import Button from '../components/button.react.js';
diff --git a/native/components/selectable-text-input.js b/native/components/selectable-text-input.js
--- a/native/components/selectable-text-input.js
+++ b/native/components/selectable-text-input.js
@@ -2,7 +2,7 @@
import * as React from 'react';
-import type { Selection } from 'lib/shared/typeahead-utils.js';
+import type { Selection } from 'lib/shared/mention-utils.js';
import type { ClearableTextInputProps } from './clearable-text-input.js';
// eslint-disable-next-line import/extensions
diff --git a/native/components/selectable-text-input.react.ios.js b/native/components/selectable-text-input.react.ios.js
--- a/native/components/selectable-text-input.react.ios.js
+++ b/native/components/selectable-text-input.react.ios.js
@@ -3,7 +3,7 @@
import _debounce from 'lodash/debounce.js';
import * as React from 'react';
-import type { Selection } from 'lib/shared/typeahead-utils.js';
+import type { Selection } from 'lib/shared/mention-utils.js';
// eslint-disable-next-line import/extensions
import ClearableTextInput from './clearable-text-input.react';
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
@@ -15,6 +15,11 @@
userStoreSearchIndex,
relativeMemberInfoSelectorForMembersOfThread,
} from 'lib/selectors/user-selectors.js';
+import {
+ getTypeaheadUserSuggestions,
+ getTypeaheadRegexMatches,
+} from 'lib/shared/mention-utils.js';
+import type { TypeaheadMatchedStrings } from 'lib/shared/mention-utils.js';
import { localIDPrefix, trimMessage } from 'lib/shared/message-utils.js';
import {
threadHasPermission,
@@ -23,11 +28,6 @@
threadActualMembers,
checkIfDefaultMembersAreVoiced,
} from 'lib/shared/thread-utils.js';
-import {
- getTypeaheadUserSuggestions,
- getTypeaheadRegexMatches,
-} from 'lib/shared/typeahead-utils.js';
-import type { TypeaheadMatchedStrings } from 'lib/shared/typeahead-utils.js';
import type { CalendarQuery } from 'lib/types/entry-types.js';
import type { LoadingStatus } from 'lib/types/loading-types.js';
import { messageTypes } from 'lib/types/message-types.js';
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
@@ -3,7 +3,7 @@
import classNames from 'classnames';
import * as React from 'react';
-import type { TypeaheadMatchedStrings } from 'lib/shared/typeahead-utils.js';
+import type { TypeaheadMatchedStrings } from 'lib/shared/mention-utils.js';
import type { RelativeMemberInfo } from 'lib/types/thread-types.js';
import { leastPositiveResidue } from 'lib/utils/math-utils.js';
diff --git a/web/utils/typeahead-utils.js b/web/utils/typeahead-utils.js
--- a/web/utils/typeahead-utils.js
+++ b/web/utils/typeahead-utils.js
@@ -4,7 +4,7 @@
import * as React from 'react';
import { oldValidUsernameRegexString } from 'lib/shared/account-utils.js';
-import { getNewTextAndSelection } from 'lib/shared/typeahead-utils.js';
+import { getNewTextAndSelection } from 'lib/shared/mention-utils.js';
import { stringForUserExplicit } from 'lib/shared/user-utils.js';
import type { SetState } from 'lib/types/hook-types.js';
import type { RelativeMemberInfo } from 'lib/types/thread-types.js';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 13, 5:53 AM (4 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5926509
Default Alt Text
D6760.1768283591.diff (4 KB)
Attached To
Mode
D6760: [lib] Rename typeahead-utils.js to mention-utils.js
Attached
Detach File
Event Timeline
Log In to Comment