sentry: update plugin instance export name
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-sentry': patch
|
||||
---
|
||||
|
||||
Export the plugin instance as `sentryPlugin`. The plugin instance is still exported as `plugin` as well, but it will be removed in the future.
|
||||
@@ -20,9 +20,9 @@ import {
|
||||
} from '@backstage/core';
|
||||
import { useEntity } from '@backstage/plugin-catalog-react';
|
||||
import React from 'react';
|
||||
import { plugin, rootRouteRef } from './plugin';
|
||||
import { sentryPlugin, rootRouteRef } from './plugin';
|
||||
|
||||
export const EntitySentryContent = plugin.provide(
|
||||
export const EntitySentryContent = sentryPlugin.provide(
|
||||
createRoutableExtension({
|
||||
mountPoint: rootRouteRef,
|
||||
component: () =>
|
||||
@@ -38,7 +38,7 @@ export const EntitySentryContent = plugin.provide(
|
||||
}),
|
||||
);
|
||||
|
||||
export const EntitySentryCard = plugin.provide(
|
||||
export const EntitySentryCard = sentryPlugin.provide(
|
||||
createComponentExtension({
|
||||
component: {
|
||||
lazy: () =>
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
|
||||
export * from './api';
|
||||
export * from './components';
|
||||
export { plugin } from './plugin';
|
||||
export { sentryPlugin, sentryPlugin as plugin } from './plugin';
|
||||
export { EntitySentryCard, EntitySentryContent } from './extensions';
|
||||
export { Router } from './components/Router';
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { plugin } from './plugin';
|
||||
import { sentryPlugin } from './plugin';
|
||||
|
||||
describe('sentry', () => {
|
||||
it('should export plugin', () => {
|
||||
expect(plugin).toBeDefined();
|
||||
expect(sentryPlugin).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ export const rootRouteRef = createRouteRef({
|
||||
title: 'Sentry',
|
||||
});
|
||||
|
||||
export const plugin = createPlugin({
|
||||
export const sentryPlugin = createPlugin({
|
||||
id: 'sentry',
|
||||
apis: [
|
||||
createApiFactory({
|
||||
|
||||
Reference in New Issue
Block a user