mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 01:15:46 +08:00

* feat: add generic plugin extension functions * updated betterer. * Fixed type issues after sync with main. * Remved extensions from datasource and panel. * Added validation for extension function registry. * Added tests and validation logic for function extensions registry. * removed prop already existing on base. * fixed lint error. --------- Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
25 lines
990 B
TypeScript
25 lines
990 B
TypeScript
import { getCoreExtensionConfigurations } from '../getCoreExtensionConfigurations';
|
|
|
|
import { AddedComponentsRegistry } from './AddedComponentsRegistry';
|
|
import { AddedFunctionsRegistry } from './AddedFunctionsRegistry';
|
|
import { AddedLinksRegistry } from './AddedLinksRegistry';
|
|
import { ExposedComponentsRegistry } from './ExposedComponentsRegistry';
|
|
import { PluginExtensionRegistries } from './types';
|
|
|
|
export const addedComponentsRegistry = new AddedComponentsRegistry();
|
|
export const exposedComponentsRegistry = new ExposedComponentsRegistry();
|
|
export const addedLinksRegistry = new AddedLinksRegistry();
|
|
export const addedFunctionsRegistry = new AddedFunctionsRegistry();
|
|
export const pluginExtensionRegistries: PluginExtensionRegistries = {
|
|
addedComponentsRegistry,
|
|
exposedComponentsRegistry,
|
|
addedLinksRegistry,
|
|
addedFunctionsRegistry,
|
|
};
|
|
|
|
// Registering core extensions
|
|
addedLinksRegistry.register({
|
|
pluginId: 'grafana',
|
|
configs: getCoreExtensionConfigurations(),
|
|
});
|