@pagerduty/backstage-plugin 0.15.9-alpha.0 → 0.15.9-next.5

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.
Files changed (44) hide show
  1. package/README.md +36 -0
  2. package/dist/alpha.d.ts +8 -0
  3. package/dist/alpha.esm.js +67 -0
  4. package/dist/alpha.esm.js.map +1 -0
  5. package/dist/components/ChangeEvents/ChangeEventListItem.esm.js +37 -34
  6. package/dist/components/ChangeEvents/ChangeEventListItem.esm.js.map +1 -1
  7. package/dist/components/ChangeEvents/ChangeEvents.esm.js +10 -2
  8. package/dist/components/ChangeEvents/ChangeEvents.esm.js.map +1 -1
  9. package/dist/components/EntityPagerDutyCard/index.esm.js +13 -10
  10. package/dist/components/EntityPagerDutyCard/index.esm.js.map +1 -1
  11. package/dist/components/EntityPagerDutySmallCard/index.esm.js +13 -10
  12. package/dist/components/EntityPagerDutySmallCard/index.esm.js.map +1 -1
  13. package/dist/components/Escalation/EscalationPolicy.esm.js +2 -10
  14. package/dist/components/Escalation/EscalationPolicy.esm.js.map +1 -1
  15. package/dist/components/Escalation/EscalationUser.esm.js +15 -25
  16. package/dist/components/Escalation/EscalationUser.esm.js.map +1 -1
  17. package/dist/components/Incident/IncidentListItem.esm.js +17 -15
  18. package/dist/components/Incident/IncidentListItem.esm.js.map +1 -1
  19. package/dist/components/Incident/Incidents.esm.js +10 -2
  20. package/dist/components/Incident/Incidents.esm.js.map +1 -1
  21. package/dist/components/PagerDutyCard/index.esm.js +81 -89
  22. package/dist/components/PagerDutyCard/index.esm.js.map +1 -1
  23. package/dist/components/PagerDutyCardCommon/InsightsCard.esm.js +2 -1
  24. package/dist/components/PagerDutyCardCommon/InsightsCard.esm.js.map +1 -1
  25. package/dist/components/PagerDutyCardCommon/OpenServiceButton.esm.js +24 -29
  26. package/dist/components/PagerDutyCardCommon/OpenServiceButton.esm.js.map +1 -1
  27. package/dist/components/PagerDutyCardCommon/ServiceStandardsCard.esm.js +59 -38
  28. package/dist/components/PagerDutyCardCommon/ServiceStandardsCard.esm.js.map +1 -1
  29. package/dist/components/PagerDutyCardCommon/StatusCard.esm.js +3 -3
  30. package/dist/components/PagerDutyCardCommon/StatusCard.esm.js.map +1 -1
  31. package/dist/components/PagerDutyCardCommon/TriggerIncidentButton.esm.js +24 -29
  32. package/dist/components/PagerDutyCardCommon/TriggerIncidentButton.esm.js.map +1 -1
  33. package/dist/components/PagerDutyPage/MappingTable.esm.js +30 -19
  34. package/dist/components/PagerDutyPage/MappingTable.esm.js.map +1 -1
  35. package/dist/components/PagerDutyPage/index.esm.js +47 -82
  36. package/dist/components/PagerDutyPage/index.esm.js.map +1 -1
  37. package/dist/components/PagerDutySmallCard/index.esm.js +34 -54
  38. package/dist/components/PagerDutySmallCard/index.esm.js.map +1 -1
  39. package/dist/components/TriggerDialog/TriggerDialog.esm.js +12 -8
  40. package/dist/components/TriggerDialog/TriggerDialog.esm.js.map +1 -1
  41. package/dist/index.d.ts +5 -3
  42. package/dist/index.esm.js +1 -0
  43. package/dist/index.esm.js.map +1 -1
  44. package/package.json +31 -7
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
5
5
  import { DiscoveryApi, FetchApi, ConfigApi } from '@backstage/core-plugin-api';
6
6
  import { ReactNode } from 'react';
7
7
  import { PagerDutySetting, PagerDutyEntityMappingsResponse, PagerDutyServiceResponse, PagerDutyIncidentsResponse, PagerDutyChangeEventsResponse, PagerDutyServiceStandardsResponse, PagerDutyServiceMetricsResponse, PagerDutyUser } from '@pagerduty/backstage-plugin-common';
8
+ export { rootRouteRef } from './alpha.js';
9
+ import '@backstage/frontend-plugin-api';
8
10
 
9
11
  /** @public */
10
12
  declare const isPluginApplicableToEntity$1: (entity: Entity) => boolean;
@@ -42,9 +44,9 @@ declare const pagerDutyPlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {}
42
44
  /** @public */
43
45
  declare const PagerDutyPage: () => react_jsx_runtime.JSX.Element;
44
46
  /** @public */
45
- declare const EntityPagerDutyCard: (props: EntityPagerDutyCardProps) => react_jsx_runtime.JSX.Element;
47
+ declare const EntityPagerDutyCard: (props: EntityPagerDutyCardProps) => react_jsx_runtime.JSX.Element | null;
46
48
  /** @public */
47
- declare const EntityPagerDutySmallCard: (props: EntityPagerDutySmallCardProps) => react_jsx_runtime.JSX.Element;
49
+ declare const EntityPagerDutySmallCard: (props: EntityPagerDutySmallCardProps) => react_jsx_runtime.JSX.Element | null;
48
50
  /** @public */
49
51
  declare const HomePagePagerDutyCard: (props: _backstage_plugin_home_react.CardExtensionProps<HomePagePagerDutyCardProps>) => react_jsx_runtime.JSX.Element;
50
52
 
@@ -171,7 +173,7 @@ declare class PagerDutyClient implements PagerDutyApi {
171
173
  * @public
172
174
  * @deprecated Please use EntityPagerDutyCard
173
175
  */
174
- declare const PagerDutyCard: (props: EntityPagerDutyCardProps) => react_jsx_runtime.JSX.Element;
176
+ declare const PagerDutyCard: (props: EntityPagerDutyCardProps) => react_jsx_runtime.JSX.Element | null;
175
177
  /**
176
178
  * @public
177
179
  * @deprecated Please use EntityPagerDutyCardProps
package/dist/index.esm.js CHANGED
@@ -5,4 +5,5 @@ export { PagerDutyIcon } from './components/Icons/index.esm.js';
5
5
  export { TriggerButton } from './components/TriggerButton/index.esm.js';
6
6
  export { PagerDutyClient, UnauthorizedError, pagerDutyApiRef } from './api/client.esm.js';
7
7
  export { PagerDutyCard } from './deprecated.esm.js';
8
+ export { rootRouteRef } from './alpha.esm.js';
8
9
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
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.15.9-alpha.0",
4
+ "version": "0.15.9-next.5",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -11,13 +11,16 @@
11
11
  "types": "dist/index.d.ts"
12
12
  },
13
13
  "backstage": {
14
- "role": "frontend-plugin",
15
14
  "pluginId": "pagerduty",
15
+ "role": "frontend-plugin",
16
16
  "pluginPackages": [
17
17
  "@pagerduty/backstage-plugin",
18
18
  "@pagerduty/backstage-plugin-common",
19
19
  "@pagerduty/backstage-plugin-backend"
20
- ]
20
+ ],
21
+ "features": {
22
+ "./alpha": "@backstage/FrontendPlugin"
23
+ }
21
24
  },
22
25
  "homepage": "https://github.com/pagerduty/backstage-plugin",
23
26
  "repository": {
@@ -41,13 +44,17 @@
41
44
  "clean": "backstage-cli package clean"
42
45
  },
43
46
  "dependencies": {
47
+ "@backstage/catalog-client": "^1.10.2",
44
48
  "@backstage/catalog-model": "^1.5.0",
49
+ "@backstage/core-compat-api": "^0.4.4",
45
50
  "@backstage/core-components": "^0.14.9",
46
51
  "@backstage/core-plugin-api": "^1.9.3",
47
52
  "@backstage/errors": "^1.2.4",
48
- "@backstage/plugin-catalog-react": "^1.12.2",
53
+ "@backstage/frontend-plugin-api": "^0.10.4",
54
+ "@backstage/plugin-catalog-react": "^1.19.1",
49
55
  "@backstage/plugin-home-react": "^0.1.15",
50
56
  "@backstage/theme": "^0.5.6",
57
+ "@backstage/ui": "^0.6.1",
51
58
  "@emotion/react": "^11.11.4",
52
59
  "@emotion/styled": "^11.11.5",
53
60
  "@material-ui/core": "^4.12.2",
@@ -84,13 +91,30 @@
84
91
  "config.d.ts",
85
92
  "assets/**/*"
86
93
  ],
87
- "configSchema": "config.d.ts",
88
- "module": "./dist/index.esm.js",
94
+ "exports": {
95
+ ".": {
96
+ "import": "./dist/index.esm.js",
97
+ "types": "./dist/index.d.ts",
98
+ "default": "./dist/index.esm.js"
99
+ },
100
+ "./alpha": {
101
+ "backstage": "@backstage/FrontendPlugin",
102
+ "import": "./dist/alpha.esm.js",
103
+ "types": "./dist/alpha.d.ts",
104
+ "default": "./dist/alpha.esm.js"
105
+ },
106
+ "./package.json": "./package.json"
107
+ },
89
108
  "typesVersions": {
90
109
  "*": {
110
+ "alpha": [
111
+ "dist/alpha.d.ts"
112
+ ],
91
113
  "package.json": [
92
114
  "package.json"
93
115
  ]
94
116
  }
95
- }
117
+ },
118
+ "configSchema": "config.d.ts",
119
+ "module": "./dist/index.esm.js"
96
120
  }