Skip to content

Commit

Permalink
Fix es_ui_shared imports (#62526)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth authored Apr 6, 2020
1 parent 102fa1b commit f86dac7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/plugins/es_ui_shared/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

export { JsonEditor, OnJsonEditorUpdateHandler } from './components/json_editor';

export { SectionLoading } from './components/section_loading';

export { CronEditor, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR } from './components/cron_editor';

export {
SendRequestConfig,
SendRequestResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
WEEK,
MONTH,
YEAR,
} from '../../../../../../src/plugins/es_ui_shared/public/components/cron_editor';
} from '../../../../../../src/plugins/es_ui_shared/public';
import { indexPatterns } from '../../../../../../src/plugins/data/public';
import { setHttp } from '../../public/crud_app/services';
import { mockHttpRequest, pageHelpers } from './helpers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import {
EuiTitle,
} from '@elastic/eui';

// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { CronEditor } from '../../../../../../../../../src/plugins/es_ui_shared/public/components/cron_editor';
import { CronEditor } from '../../../../../../../../../src/plugins/es_ui_shared/public';
import { indexPatterns } from '../../../../../../../../../src/plugins/data/public';

import { indices } from '../../../../shared_imports';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import cloneDeep from 'lodash/lang/cloneDeep';
import get from 'lodash/object/get';
import pick from 'lodash/object/pick';

// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { WEEK } from '../../../../../../../../../src/plugins/es_ui_shared/public/components/cron_editor';
import { WEEK } from '../../../../../../../../../src/plugins/es_ui_shared/public';

import { validateId } from './validate_id';
import { validateIndexPattern } from './validate_index_pattern';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
import moment from 'moment-timezone';
import _ from 'lodash';
import { NotificationsStart } from 'src/core/public';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { SectionLoading } from '../../../../../../../src/plugins/es_ui_shared/public/components/section_loading';
import { SectionLoading } from '../../../../../../../src/plugins/es_ui_shared/public';
import { ApiKey, ApiKeyToInvalidate } from '../../../../common/model';
import { APIKeysAPIClient } from '../api_keys_api_client';
import { DocumentationLinksService } from '../documentation_links';
Expand Down
5 changes: 1 addition & 4 deletions x-pack/plugins/snapshot_restore/public/shared_imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export {
UseRequestConfig,
sendRequest,
useRequest,
} from '../../../../src/plugins/es_ui_shared/public';

export {
CronEditor,
DAY,
} from '../../../../src/plugins/es_ui_shared/public/components/cron_editor';
} from '../../../../src/plugins/es_ui_shared/public';

0 comments on commit f86dac7

Please sign in to comment.