Plugins: moving the DataSourcePicker to grafana/runtime so it can be reused in plugins (#31628)

* moved the datasource picker to grafana-runtime.

* fixed imports.

* added e2e selectors as an external package.

* adding react as external package.

* exposing dependent types for DataSourcePicker.

* added docs for ui components.

* moving component to components.
This commit is contained in:
Marcus Andersson
2021-03-18 10:44:26 +01:00
committed by GitHub
parent 8fafe95728
commit 69201bbf8c
23 changed files with 124 additions and 61 deletions

View File

@@ -17,7 +17,8 @@ import {
UrlQueryMap,
} from '@grafana/data';
import { AppNotificationSeverity } from 'app/types';
import { Alert, InfoBox, Tooltip } from '@grafana/ui';
import { Alert, InfoBox, Tooltip, PluginSignatureBadge } from '@grafana/ui';
import Page from 'app/core/components/Page/Page';
import { getPluginSettings } from './PluginSettingsCache';
import { importAppPlugin, importDataSourcePlugin, importPanelPlugin } from './plugin_loader';
@@ -29,7 +30,6 @@ import { appEvents } from 'app/core/core';
import { config } from 'app/core/config';
import { contextSrv } from '../../core/services/context_srv';
import { css } from 'emotion';
import { PluginSignatureBadge } from './PluginSignatureBadge';
import { selectors } from '@grafana/e2e-selectors';
import { ShowModalEvent } from 'app/types/events';
import { GrafanaRouteComponentProps } from 'app/core/navigation/types';