@@ -38,7 +38,7 @@
|
||||
"@backstage/core-plugin-api": "workspace:^",
|
||||
"@backstage/errors": "workspace:^",
|
||||
"@backstage/plugin-catalog-react": "workspace:^",
|
||||
"@backstage/plugin-home": "workspace:^",
|
||||
"@backstage/plugin-home-react": "workspace:^",
|
||||
"@backstage/theme": "workspace:^",
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
|
||||
@@ -29,8 +29,14 @@ export {
|
||||
|
||||
export * from './components';
|
||||
|
||||
// @deprecated Please use EntityPagerDutyCard
|
||||
/**
|
||||
* @deprecated Please use EntityPagerDutyCard
|
||||
*/
|
||||
export { EntityPagerDutyCard as PagerDutyCard } from './components';
|
||||
|
||||
/**
|
||||
* @deprecated Please use EntityPagerDutyCardProps
|
||||
*/
|
||||
export type { EntityPagerDutyCardProps as PagerDutyCardProps } from './components';
|
||||
|
||||
export * from './api';
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
configApiRef,
|
||||
createComponentExtension,
|
||||
} from '@backstage/core-plugin-api';
|
||||
import { createCardExtension } from '@backstage/plugin-home';
|
||||
import { createCardExtension } from '@backstage/plugin-home-react';
|
||||
import { HomePagePagerDutyCardProps } from './components/HomePagePagerDutyCard/Content';
|
||||
|
||||
export const rootRouteRef = createRouteRef({
|
||||
@@ -60,15 +60,8 @@ export const EntityPagerDutyCard = pagerDutyPlugin.provide(
|
||||
}),
|
||||
);
|
||||
|
||||
export const homePlugin = createPlugin({
|
||||
id: 'pagerduty-home',
|
||||
routes: {
|
||||
root: rootRouteRef,
|
||||
},
|
||||
});
|
||||
|
||||
/** @public */
|
||||
export const HomePagePagerDutyCard = homePlugin.provide(
|
||||
export const HomePagePagerDutyCard = pagerDutyPlugin.provide(
|
||||
createCardExtension<HomePagePagerDutyCardProps>({
|
||||
name: 'HomePagePagerDutyCard',
|
||||
title: 'PagerDuty Homepage Card',
|
||||
|
||||
@@ -7726,7 +7726,7 @@ __metadata:
|
||||
"@backstage/dev-utils": "workspace:^"
|
||||
"@backstage/errors": "workspace:^"
|
||||
"@backstage/plugin-catalog-react": "workspace:^"
|
||||
"@backstage/plugin-home": "workspace:^"
|
||||
"@backstage/plugin-home-react": "workspace:^"
|
||||
"@backstage/test-utils": "workspace:^"
|
||||
"@backstage/theme": "workspace:^"
|
||||
"@material-ui/core": ^4.12.2
|
||||
|
||||
Reference in New Issue
Block a user