{
return (
{queryBar}
- {searchBarExtensions}
{queryEditor}
{!!!this.props.isEnhancementsEnabled && filterBar}
diff --git a/src/plugins/data/public/ui/search_bar_extensions/search_bar_extension.tsx b/src/plugins/data/public/ui/search_bar_extensions/search_bar_extension.tsx
index e22ed9220dd3..88a3fcdfbb08 100644
--- a/src/plugins/data/public/ui/search_bar_extensions/search_bar_extension.tsx
+++ b/src/plugins/data/public/ui/search_bar_extensions/search_bar_extension.tsx
@@ -18,7 +18,7 @@ export interface SearchBarExtensionDependencies {
/**
* Currently selected index patterns.
*/
- indexPatterns?: IIndexPattern[];
+ indexPatterns?: Array;
}
export interface SearchBarExtensionConfig {
diff --git a/src/plugins/data/public/ui/types.ts b/src/plugins/data/public/ui/types.ts
index f03cd85169ac..c07af4db757a 100644
--- a/src/plugins/data/public/ui/types.ts
+++ b/src/plugins/data/public/ui/types.ts
@@ -8,7 +8,8 @@ import { SearchInterceptor } from '../search';
import { IndexPatternSelectProps } from './index_pattern_select';
import { StatefulSearchBarProps } from './search_bar';
import { Settings } from './settings';
-import { SearchBarExtensionConfig } from './search_bar_extensions/search_bar_extension';
+import { SearchBarExtensionConfig } from './search_bar_extensions';
+import { SuggestionsComponentProps } from './typeahead/suggestions_component';
export * from './settings';
@@ -64,6 +65,7 @@ export interface IUiStart {
queryEnhancements: Map;
IndexPatternSelect: React.ComponentType;
SearchBar: React.ComponentType;
+ SuggestionsComponent: React.ComponentType;
Settings: Settings;
containerRef: HTMLDivElement | null;
container$: BehaviorSubject;
diff --git a/src/plugins/data/public/ui/ui_service.ts b/src/plugins/data/public/ui/ui_service.ts
index 99be6b1d2862..b24fc3ee21d0 100644
--- a/src/plugins/data/public/ui/ui_service.ts
+++ b/src/plugins/data/public/ui/ui_service.ts
@@ -13,6 +13,7 @@ import { createSearchBar } from './search_bar/create_search_bar';
import { createSettings } from './settings';
import { DataPublicPluginStart } from '../types';
import { IStorageWrapper } from '../../../opensearch_dashboards_utils/public';
+import { SuggestionsComponent } from './typeahead';
/** @internal */
// eslint-disable-next-line @typescript-eslint/no-empty-interface
@@ -71,6 +72,7 @@ export class UiService implements Plugin {
queryEnhancements: this.queryEnhancements,
IndexPatternSelect: createIndexPatternSelect(core.savedObjects.client),
SearchBar,
+ SuggestionsComponent,
Settings,
containerRef: this.containerRef,
container$: this.container$,