@pagerduty/backstage-plugin 0.16.1 → 0.16.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -145,6 +145,12 @@ Now the PagerDuty plugin will display in all your components that include PagerD
145
145
  >
146
146
  > The code samples provided above reflect the default configuration of the PagerDutyCard entity. You have at your disposal some parameters that allow you to [prevent users from creating incidents](https://pagerduty.github.io/backstage-plugin-docs/advanced/enable-read-only-mode), or [hide the change events tab](https://pagerduty.github.io/backstage-plugin-docs/advanced/hide-change-events) or even [hide the on-call](https://pagerduty.github.io/backstage-plugin-docs/advanced/hide-oncall) section of the card.
147
147
 
148
+ > 🚨 Important
149
+ >
150
+ > From version 0.16.0 and later, you need to import the Backstage UI CSS at the root (`src/index.tsx`) of
151
+ your backstage application (`import '@backstage/ui/css/styles.css'`), otherwise the Plugin
152
+ widgets won't look as they should.
153
+
148
154
  ### Configure the Frontend plugin
149
155
 
150
156
  You’ve now added the PagerDuty frontend plugin to your application, but in order for it to show up you will need to configure your entities and the application itself.
@@ -5,7 +5,6 @@ import { pagerDutyPage } from './pages.esm.js';
5
5
  import { pagerDutyNavBarItem } from './nav-items.esm.js';
6
6
  import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
7
7
  import { rootRouteRef } from '../routes.esm.js';
8
- import '@backstage/ui/css/styles.css';
9
8
 
10
9
  const pagerDutyPlugin = createFrontendPlugin({
11
10
  pluginId: "pagerduty",
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFrontendPlugin } from \"@backstage/frontend-plugin-api\";\nimport { pagerDutyEntityCard, pagerDutyEntitySmallCard } from \"../alpha/entity-cards\";\nimport { pagerDutyApi } from \"../alpha/api\";\nimport { pagerDutyPage } from \"../alpha/pages\";\nimport { pagerDutyNavBarItem } from \"../alpha/nav-items\";\nimport { convertLegacyRouteRefs } from \"@backstage/core-compat-api\";\nimport { rootRouteRef } from \"../routes\";\nimport '@backstage/ui/css/styles.css';\n\n/** @alpha */\nexport const pagerDutyPlugin = createFrontendPlugin({\n pluginId: 'pagerduty',\n info: { packageJson: () => import('../../package.json')},\n extensions: [\n pagerDutyEntityCard,\n pagerDutyEntitySmallCard,\n pagerDutyApi,\n pagerDutyPage,\n pagerDutyNavBarItem\n ],\n routes: convertLegacyRouteRefs({\n root: rootRouteRef\n })\n});\n"],"names":[],"mappings":";;;;;;;;;AA0BO,MAAM,kBAAkB,oBAAA,CAAqB;AAAA,EAClD,QAAA,EAAU,WAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAC;AAAA,EACvD,UAAA,EAAY;AAAA,IACV,mBAAA;AAAA,IACA,wBAAA;AAAA,IACA,YAAA;AAAA,IACA,aAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,QAAQ,sBAAA,CAAuB;AAAA,IAC7B,IAAA,EAAM;AAAA,GACP;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFrontendPlugin } from \"@backstage/frontend-plugin-api\";\nimport { pagerDutyEntityCard, pagerDutyEntitySmallCard } from \"../alpha/entity-cards\";\nimport { pagerDutyApi } from \"../alpha/api\";\nimport { pagerDutyPage } from \"../alpha/pages\";\nimport { pagerDutyNavBarItem } from \"../alpha/nav-items\";\nimport { convertLegacyRouteRefs } from \"@backstage/core-compat-api\";\nimport { rootRouteRef } from \"../routes\";\n\n/** @alpha */\nexport const pagerDutyPlugin = createFrontendPlugin({\n pluginId: 'pagerduty',\n info: { packageJson: () => import('../../package.json')},\n extensions: [\n pagerDutyEntityCard,\n pagerDutyEntitySmallCard,\n pagerDutyApi,\n pagerDutyPage,\n pagerDutyNavBarItem\n ],\n routes: convertLegacyRouteRefs({\n root: rootRouteRef\n })\n});\n"],"names":[],"mappings":";;;;;;;;AAyBO,MAAM,kBAAkB,oBAAA,CAAqB;AAAA,EAClD,QAAA,EAAU,WAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAC;AAAA,EACvD,UAAA,EAAY;AAAA,IACV,mBAAA;AAAA,IACA,wBAAA;AAAA,IACA,YAAA;AAAA,IACA,aAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,QAAQ,sBAAA,CAAuB;AAAA,IAC7B,IAAA,EAAM;AAAA,GACP;AACH,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  var name = "@pagerduty/backstage-plugin";
2
2
  var description = "A Backstage plugin that integrates towards PagerDuty";
3
- var version = "0.16.1";
3
+ var version = "0.16.0";
4
4
  var main = "dist/index.esm.js";
5
5
  var types = "dist/index.d.ts";
6
6
  var license = "Apache-2.0";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pagerduty/backstage-plugin",
3
3
  "description": "A Backstage plugin that integrates towards PagerDuty",
4
- "version": "0.16.1",
4
+ "version": "0.16.2-alpha.0",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",