Skip to content

Commit

Permalink
explicit ui exports from data plugin (#57764)
Browse files Browse the repository at this point in the history
* explicit ui exports

* Fix imports in data plugin

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
Liza Katz and elasticmachine authored Mar 2, 2020
1 parent 810a6b4 commit c9ebeb7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
15 changes: 14 additions & 1 deletion src/plugins/data/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,19 @@ export {
export { IRequestTypesMap, IResponseTypesMap } from './search';
export * from './search';

/*
* UI components
*/

export {
SearchBar,
SearchBarProps,
StatefulSearchBarProps,
FilterBar,
QueryStringInput,
IndexPatternSelect,
} from './ui';

/**
* Types to be shared externally
* @public
Expand All @@ -310,7 +323,7 @@ export {
TimefilterContract,
TimeHistoryContract,
} from './query';
export * from './ui';

export {
// kbn field types
castEsToKbnFieldTypeName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ import {
import { FormattedMessage } from '@kbn/i18n/react';
import { debounce, compact, isEqual } from 'lodash';
import { Toast } from 'src/core/public';
import { IDataPluginServices, IIndexPattern, SuggestionsComponent, Query } from '../..';
import { IDataPluginServices, IIndexPattern, Query } from '../..';
import { QuerySuggestion, QuerySuggestionTypes } from '../../autocomplete';

import { withKibana, KibanaReactContextValue, toMountPoint } from '../../../../kibana_react/public';
import { fetchIndexPatterns } from './fetch_index_patterns';
import { QueryLanguageSwitcher } from './language_switcher';
import { PersistedLog, getQueryLog, matchPairs, toUser, fromUser } from '../../query';
import { SuggestionsComponent } from '..';

interface Props {
kibana: KibanaReactContextValue<IDataPluginServices>;
Expand Down
4 changes: 1 addition & 3 deletions src/plugins/data/public/ui/search_bar/search_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ import {
IIndexPattern,
FilterBar,
SavedQuery,
SavedQueryMeta,
SaveQueryForm,
SavedQueryManagementComponent,
} from '../..';
import { QueryBarTopRow } from '../query_string_input/query_bar_top_row';
import { SavedQueryAttributes, TimeHistoryContract } from '../../query';
import { SavedQueryMeta, SavedQueryManagementComponent, SaveQueryForm } from '..';

interface SearchBarInjectedDeps {
kibana: KibanaReactContextValue<IDataPluginServices>;
Expand Down

0 comments on commit c9ebeb7

Please sign in to comment.