Skip to content

Commit

Permalink
change imports so webpack upgrade works
Browse files Browse the repository at this point in the history
Signed-off-by: Jacques Metevier <jmetevier@gmail.com>
  • Loading branch information
jmetev1 committed May 18, 2023
1 parent 08cafbc commit 1b4c51c
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 22 deletions.
Expand Up @@ -35,7 +35,7 @@ import {
FieldValueSelectionFilter,
FieldValueSelectionFilterProps,
} from './field_value_selection_filter';
import { Query } from '../query';
import { Query } from '../query/query';

describe('FieldValueSelectionFilter', () => {
test('render - options as a function', () => {
Expand Down
Expand Up @@ -37,7 +37,7 @@ import { OuiFilterButton, OuiFilterSelectItem } from '../../filter_group';
import { OuiLoadingChart } from '../../loading';
import { OuiSpacer } from '../../spacer';
import { OuiIcon } from '../../icon';
import { Query } from '../query';
import { Query } from '../query/query';
import { Clause, Operator, OperatorType, Value } from '../query/ast';

export interface FieldValueOptionType {
Expand Down
Expand Up @@ -31,7 +31,7 @@
import React from 'react';
import { requiredProps } from '../../../test';
import { shallow } from 'enzyme';
import { Query } from '../query';
import { Query } from '../query/query';
import {
FieldValueToggleFilter,
FieldValueToggleFilterProps,
Expand Down
Expand Up @@ -31,7 +31,7 @@
import React, { Component } from 'react';
import { OuiFilterButton } from '../../filter_group';
import { isNil } from '../../../services/predicate';
import { Query } from '../query';
import { Query } from '../query/query';
import { Clause, OperatorType, Value } from '../query/ast';

export interface FieldValueToggleFilterConfigType {
Expand Down
Expand Up @@ -31,7 +31,7 @@
import React from 'react';
import { requiredProps } from '../../../test';
import { shallow } from 'enzyme';
import { Query } from '../query';
import { Query } from '../query/query';
import {
FieldValueToggleGroupFilter,
FieldValueToggleGroupFilterProps,
Expand Down
Expand Up @@ -30,7 +30,7 @@

import React, { Component } from 'react';
import { OuiFilterButton } from '../../filter_group';
import { Query } from '../query';
import { Query } from '../query/query';
import { OperatorType } from '../query/ast';

export interface FieldValueToggleGroupFilterItemType {
Expand Down
2 changes: 1 addition & 1 deletion src/components/search_bar/filters/filters.tsx
Expand Up @@ -42,7 +42,7 @@ import {
FieldValueToggleGroupFilter,
FieldValueToggleGroupFilterConfigType,
} from './field_value_toggle_group_filter';
import { Query } from '../query';
import { Query } from '../query/query';

export const createFilter = (
index: number,
Expand Down
2 changes: 1 addition & 1 deletion src/components/search_bar/filters/is_filter.test.tsx
Expand Up @@ -32,7 +32,7 @@ import React from 'react';
import { requiredProps } from '../../../test';
import { shallow } from 'enzyme';
import { IsFilter, IsFilterProps } from './is_filter';
import { Query } from '../query';
import { Query } from '../query/query';

describe('IsFilter', () => {
test('render', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/search_bar/filters/is_filter.tsx
Expand Up @@ -31,7 +31,7 @@
import React, { Component } from 'react';
import { OuiFilterButton } from '../../filter_group';
import { isNil } from '../../../services/predicate';
import { Query } from '../query';
import { Query } from '../query/query';
import { Clause } from '../query/ast';

export interface IsFilterConfigType {
Expand Down
10 changes: 3 additions & 7 deletions src/components/search_bar/index.ts
Expand Up @@ -28,12 +28,8 @@
* under the License.
*/

export {
OuiSearchBar,
OuiSearchBarProps,
QueryType,
Query,
Ast,
} from './search_bar';
export { OuiSearchBar, OuiSearchBarProps, QueryType } from './search_bar';
export { Query } from './query/query';
export { AST as Ast } from './query';
export { SearchFilterConfig } from './search_filters';
export { FieldValueOptionType } from './filters/field_value_selection_filter';
2 changes: 1 addition & 1 deletion src/components/search_bar/search_bar.test.tsx
Expand Up @@ -33,7 +33,7 @@ import React from 'react';
import { requiredProps } from '../../test';
import { mount, shallow } from 'enzyme';
import { OuiSearchBar } from './search_bar';
import { Query } from './query';
import { Query } from './query/query';
import { keys } from '../../services';
import { SearchFilterConfig } from './search_filters';

Expand Down
4 changes: 1 addition & 3 deletions src/components/search_bar/search_bar.tsx
Expand Up @@ -33,12 +33,10 @@ import { isString } from '../../services/predicate';
import { OuiFlexGroup, OuiFlexItem } from '../flex';
import { OuiSearchBox, SchemaType } from './search_box';
import { OuiSearchFilters, SearchFilterConfig } from './search_filters';
import { Query } from './query';
import { Query } from './query/query';
import { CommonProps } from '../common';
import { OuiFieldSearchProps } from '../form/field_search';

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

export type QueryType = Query | string;

type Tools = ReactElement | ReactElement[];
Expand Down
2 changes: 1 addition & 1 deletion src/components/search_bar/search_filters.test.tsx
Expand Up @@ -32,7 +32,7 @@ import React from 'react';
import { requiredProps } from '../../test';
import { shallow } from 'enzyme';
import { OuiSearchFilters, SearchFilterConfig } from './search_filters';
import { Query } from './query';
import { Query } from './query/query';

describe('OuiSearchFilters', () => {
test('render - no filters', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/search_bar/search_filters.tsx
Expand Up @@ -30,7 +30,7 @@

import React, { Component, Fragment, ReactElement } from 'react';
import { createFilter, SearchFilterConfig } from './filters';
import { Query } from './query';
import { Query } from './query/query';
import { OuiFilterGroup } from '../filter_group';

export { SearchFilterConfig } from './filters';
Expand Down

0 comments on commit 1b4c51c

Please sign in to comment.