Skip to content

Commit

Permalink
Export Query and ast from the defining component instead of services
Browse files Browse the repository at this point in the history
  • Loading branch information
pugnascotia committed Dec 20, 2018
1 parent 98a3dfa commit 23563ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ export {
} from './progress';

export {
EuiSearchBar
EuiSearchBar,
Query,
Ast
} from './search_bar';

export {
Expand Down
3 changes: 1 addition & 2 deletions src/components/search_bar/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { EuiSearchBar } from './search_bar';
export { QueryType } from './search_bar';
export { EuiSearchBar, QueryType, Query, Ast } from './search_bar';
export { SearchBoxConfigPropTypes } from './search_box';
export { SearchFiltersFiltersType } from './search_filters';
2 changes: 2 additions & 0 deletions src/components/search_bar/search_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import PropTypes from 'prop-types';
import { Query } from './query';
import { EuiFlexItem } from '../flex/flex_item';

export { Query, AST as Ast } from './query';

export const QueryType = PropTypes.oneOfType([ PropTypes.instanceOf(Query), PropTypes.string ]);

export const SearchBarPropTypes = {
Expand Down
6 changes: 0 additions & 6 deletions src/services/index.js → src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ export {
Pager
} from './paging';

// TODO: Migrate these services into the services directory.
export {
Query,
AST as Ast,
} from '../components/search_bar/query';

export {
Random
} from './random';
Expand Down

0 comments on commit 23563ee

Please sign in to comment.