chore: move exports to unstable
This commit is contained in:
@@ -69,4 +69,3 @@ export {
|
||||
getCorrelationsService,
|
||||
setCorrelationsService,
|
||||
} from './services/CorrelationsService';
|
||||
export { getAppPluginMetas, getAppPluginMeta, type AppPluginMetas } from './services/plugins';
|
||||
|
||||
@@ -11,3 +11,5 @@
|
||||
|
||||
// This is a dummy export so typescript doesn't error importing an "empty module"
|
||||
export const unstable = {};
|
||||
|
||||
export { getAppPluginMetas, getAppPluginMeta, type AppPluginMetas } from './services/plugins';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type DefaultBodyType, HttpResponse, HttpResponseResolver, PathParams, http } from 'msw';
|
||||
|
||||
import { getAppPluginMetas } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
import server from '@grafana/test-utils/server';
|
||||
import { mockDataSource, mockFolder } from 'app/features/alerting/unified/mocks';
|
||||
import {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { HttpResponse, http } from 'msw';
|
||||
|
||||
import { PluginLoadingStrategy, PluginMeta } from '@grafana/data';
|
||||
import { getAppPluginMetas } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
import { plugins } from 'app/features/alerting/unified/testSetup/plugins';
|
||||
|
||||
const PLUGIN_NOT_FOUND_RESPONSE = { message: 'Plugin not found, no installed plugin with that id' };
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { DataSourceInstanceSettings, DataSourceJsonData } from '@grafana/data';
|
||||
import { config, getAppPluginMetas } from '@grafana/runtime';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { SupportedPlugin } from '../types/pluginBridges';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { capitalize } from 'lodash';
|
||||
|
||||
import { AlertState } from '@grafana/data';
|
||||
import { getAppPluginMeta } from '@grafana/runtime';
|
||||
import { getAppPluginMeta } from '@grafana/runtime/unstable';
|
||||
import {
|
||||
Alert,
|
||||
AlertingRule,
|
||||
|
||||
+2
-1
@@ -3,8 +3,9 @@ import { useEffect, useState } from 'react';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { Trans, t } from '@grafana/i18n';
|
||||
import { config, getAppPluginMeta } from '@grafana/runtime';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { UserStorage } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta } from '@grafana/runtime/unstable';
|
||||
import { Alert, LinkButton, useStyles2 } from '@grafana/ui';
|
||||
import { contextSrv } from 'app/core/services/context_srv';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { pick } from 'lodash';
|
||||
|
||||
import { llm } from '@grafana/llm';
|
||||
import { getAppPluginMeta } from '@grafana/runtime';
|
||||
import { getAppPluginMeta } from '@grafana/runtime/unstable';
|
||||
import { Panel } from '@grafana/schema';
|
||||
|
||||
import { DashboardModel } from '../../state/DashboardModel';
|
||||
|
||||
@@ -2,8 +2,8 @@ import React from 'react';
|
||||
import { firstValueFrom, take } from 'rxjs';
|
||||
|
||||
import { PluginLoadingStrategy } from '@grafana/data';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { log } from '../logs/log';
|
||||
import { resetLogMock } from '../logs/testUtils';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { firstValueFrom, take } from 'rxjs';
|
||||
|
||||
import { PluginLoadingStrategy } from '@grafana/data';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { log } from '../logs/log';
|
||||
import { resetLogMock } from '../logs/testUtils';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { firstValueFrom, take } from 'rxjs';
|
||||
|
||||
import { PluginLoadingStrategy } from '@grafana/data';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { log } from '../logs/log';
|
||||
import { resetLogMock } from '../logs/testUtils';
|
||||
|
||||
@@ -2,8 +2,8 @@ import React from 'react';
|
||||
import { firstValueFrom, take } from 'rxjs';
|
||||
|
||||
import { PluginLoadingStrategy } from '@grafana/data';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { log } from '../logs/log';
|
||||
import { resetLogMock } from '../logs/testUtils';
|
||||
|
||||
@@ -2,8 +2,9 @@ import { act, render, renderHook, screen, waitFor } from '@testing-library/react
|
||||
import type { JSX } from 'react';
|
||||
|
||||
import { PluginContextProvider, PluginLoadingStrategy, PluginMeta, PluginType } from '@grafana/data';
|
||||
import { config, getAppPluginMetas } from '@grafana/runtime';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { ExtensionRegistriesProvider } from './ExtensionRegistriesContext';
|
||||
import { log } from './logs/log';
|
||||
|
||||
@@ -8,8 +8,9 @@ import {
|
||||
PluginMeta,
|
||||
PluginType,
|
||||
} from '@grafana/data';
|
||||
import { config, getAppPluginMeta } from '@grafana/runtime';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta } from '@grafana/runtime/unstable';
|
||||
|
||||
import { ExtensionRegistriesProvider } from './ExtensionRegistriesContext';
|
||||
import * as errors from './errors';
|
||||
|
||||
@@ -8,8 +8,8 @@ import {
|
||||
PluginMeta,
|
||||
PluginType,
|
||||
} from '@grafana/data';
|
||||
import { getAppPluginMeta } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta } from '@grafana/runtime/unstable';
|
||||
|
||||
import { ExtensionRegistriesProvider } from './ExtensionRegistriesContext';
|
||||
import * as errors from './errors';
|
||||
|
||||
@@ -8,8 +8,8 @@ import {
|
||||
PluginMeta,
|
||||
PluginType,
|
||||
} from '@grafana/data';
|
||||
import { getAppPluginMeta } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta } from '@grafana/runtime/unstable';
|
||||
|
||||
import { ExtensionRegistriesProvider } from './ExtensionRegistriesContext';
|
||||
import * as errors from './errors';
|
||||
|
||||
@@ -2,8 +2,9 @@ import { render, screen, waitFor } from '@testing-library/react';
|
||||
import { type Unsubscribable } from 'rxjs';
|
||||
|
||||
import { dateTime, usePluginContext, PluginLoadingStrategy } from '@grafana/data';
|
||||
import { config, AppPluginConfig, getAppPluginMetas, getAppPluginMeta } from '@grafana/runtime';
|
||||
import { config, AppPluginConfig } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
import { appEvents } from 'app/core/app_events';
|
||||
import { ShowModalReactEvent } from 'app/types/events';
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@ import {
|
||||
PluginExtensionPoints,
|
||||
ExtensionInfo,
|
||||
} from '@grafana/data';
|
||||
import { reportInteraction, config, AppPluginConfig, getAppPluginMetas, getAppPluginMeta } from '@grafana/runtime';
|
||||
import { reportInteraction, config, AppPluginConfig } from '@grafana/runtime';
|
||||
import { getAppPluginMeta, getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
import { Modal } from '@grafana/ui';
|
||||
import { appEvents } from 'app/core/app_events';
|
||||
import { getPluginSettings } from 'app/features/plugins/pluginSettings';
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
PluginLoadingStrategy,
|
||||
PluginType,
|
||||
} from '@grafana/data';
|
||||
import { getAppPluginMetas } from '@grafana/runtime';
|
||||
import { setAppPluginMetas } from '@grafana/runtime/internal';
|
||||
import { getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { createLogMock } from './logs/testUtils';
|
||||
import {
|
||||
|
||||
@@ -10,7 +10,8 @@ import {
|
||||
PluginExtensionPointPatterns,
|
||||
} from '@grafana/data';
|
||||
import { PluginAddedLinksConfigureFunc } from '@grafana/data/internal';
|
||||
import { getAppPluginMeta, isPluginExtensionLink } from '@grafana/runtime';
|
||||
import { isPluginExtensionLink } from '@grafana/runtime';
|
||||
import { getAppPluginMeta } from '@grafana/runtime/unstable';
|
||||
|
||||
import * as errors from './errors';
|
||||
import { ExtensionsLog } from './logs/log';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PluginType, patchArrayVectorProrotypeMethods } from '@grafana/data';
|
||||
import { config, getAppPluginMetas } from '@grafana/runtime';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { getAppPluginMetas } from '@grafana/runtime/unstable';
|
||||
|
||||
import { transformPluginSourceForCDN } from '../cdn/utils';
|
||||
import { resolvePluginUrlWithCache } from '../loader/pluginInfoCache';
|
||||
|
||||
Reference in New Issue
Block a user