@pagerduty/backstage-plugin 0.20.0 → 0.21.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/CHANGELOG.md +11 -0
- package/dist/alpha/pages.esm.js +41 -4
- package/dist/alpha/pages.esm.js.map +1 -1
- package/dist/alpha/plugin.esm.js +4 -3
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +105 -26
- package/dist/api/client.esm.js +136 -0
- package/dist/api/client.esm.js.map +1 -1
- package/dist/components/PagerDutyPage/ConfigurationPage.esm.js +119 -0
- package/dist/components/PagerDutyPage/ConfigurationPage.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFieldModal.esm.js +152 -0
- package/dist/components/PagerDutyPage/CustomFieldModal.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields/ButtonTabs.esm.js +51 -0
- package/dist/components/PagerDutyPage/CustomFields/ButtonTabs.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields/CustomFieldsEmptyState.esm.js +46 -0
- package/dist/components/PagerDutyPage/CustomFields/CustomFieldsEmptyState.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields/CustomFieldsTabPanel.esm.js +154 -0
- package/dist/components/PagerDutyPage/CustomFields/CustomFieldsTabPanel.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields/DeleteCustomFieldDialog.esm.js +63 -0
- package/dist/components/PagerDutyPage/CustomFields/DeleteCustomFieldDialog.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields/SyncLogsFilters.esm.js +126 -0
- package/dist/components/PagerDutyPage/CustomFields/SyncLogsFilters.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields/SyncLogsTab.esm.js +285 -0
- package/dist/components/PagerDutyPage/CustomFields/SyncLogsTab.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields/customFieldErrors.esm.js +13 -0
- package/dist/components/PagerDutyPage/CustomFields/customFieldErrors.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/CustomFields.esm.js +192 -0
- package/dist/components/PagerDutyPage/CustomFields.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/MappingsTable/MappingsTable.esm.js +1 -1
- package/dist/components/PagerDutyPage/MappingsTable/MappingsTable.esm.js.map +1 -1
- package/dist/components/PagerDutyPage/MappingsTable/MappingsTableContent.esm.js +15 -3
- package/dist/components/PagerDutyPage/MappingsTable/MappingsTableContent.esm.js.map +1 -1
- package/dist/components/PagerDutyPage/MappingsTable/NameCell.esm.js +35 -0
- package/dist/components/PagerDutyPage/MappingsTable/NameCell.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/MappingsTable/TableSkeleton.esm.js +26 -29
- package/dist/components/PagerDutyPage/MappingsTable/TableSkeleton.esm.js.map +1 -1
- package/dist/components/PagerDutyPage/ServiceMappingPage.esm.js +22 -0
- package/dist/components/PagerDutyPage/ServiceMappingPage.esm.js.map +1 -0
- package/dist/components/PagerDutyPage/index.esm.js +12 -127
- package/dist/components/PagerDutyPage/index.esm.js.map +1 -1
- package/dist/index.d.ts +50 -3
- package/dist/package.json.esm.js +2 -2
- package/package.json +17 -17
- package/dist/alpha/nav-items.esm.js +0 -21
- package/dist/alpha/nav-items.esm.js.map +0 -1
|
@@ -1,132 +1,17 @@
|
|
|
1
|
-
import { jsxs, jsx
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
|
-
import { makeStyles, CardContent, Typography, createStyles } from '@material-ui/core';
|
|
4
|
-
import { Card, Flex, Text, RadioGroup, Radio } from '@backstage/ui';
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
2
|
import { Page, Header, Content, TabbedLayout } from '@backstage/core-components';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { NotFoundError } from '@backstage/errors';
|
|
3
|
+
import { ServiceMappingPage } from './ServiceMappingPage.esm.js';
|
|
4
|
+
import { CustomFields } from './CustomFields.esm.js';
|
|
5
|
+
import { ConfigurationPage } from './ConfigurationPage.esm.js';
|
|
10
6
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
marginTop: "16px"
|
|
20
|
-
},
|
|
21
|
-
linkStyles: {
|
|
22
|
-
color: "cadetblue"
|
|
23
|
-
},
|
|
24
|
-
descriptionCard: {
|
|
25
|
-
marginBottom: "24px",
|
|
26
|
-
borderRadius: "8px"
|
|
27
|
-
},
|
|
28
|
-
descriptionText: {
|
|
29
|
-
fontSize: "16px",
|
|
30
|
-
color: theme.palette.text.primary,
|
|
31
|
-
lineHeight: 1.5,
|
|
32
|
-
marginBottom: "4px"
|
|
33
|
-
},
|
|
34
|
-
warningText: {
|
|
35
|
-
fontSize: "16px",
|
|
36
|
-
color: theme.palette.text.primary,
|
|
37
|
-
lineHeight: 1.5
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
);
|
|
41
|
-
const PagerDutyPage = () => {
|
|
42
|
-
const { cardStyles, textContainerStyles, linkStyles, descriptionCard, descriptionText, warningText } = useStyles();
|
|
43
|
-
const pagerDutyApi = useApi(pagerDutyApiRef);
|
|
44
|
-
const [
|
|
45
|
-
selectedServiceDependencyStrategy,
|
|
46
|
-
setSelectedServiceDependencyStrategy
|
|
47
|
-
] = useState("disabled");
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
function fetchSetting() {
|
|
50
|
-
pagerDutyApi.getSetting(SERVICE_DEPENDENCY_SYNC_STRATEGY).then((result) => {
|
|
51
|
-
if (result !== void 0) {
|
|
52
|
-
setSelectedServiceDependencyStrategy(result.value);
|
|
53
|
-
}
|
|
54
|
-
}).catch((error) => {
|
|
55
|
-
if (error instanceof NotFoundError) {
|
|
56
|
-
setSelectedServiceDependencyStrategy("disabled");
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
fetchSetting();
|
|
61
|
-
}, [pagerDutyApi]);
|
|
62
|
-
const handleChange = (value) => {
|
|
63
|
-
setSelectedServiceDependencyStrategy(value);
|
|
64
|
-
pagerDutyApi.storeSettings([
|
|
65
|
-
{
|
|
66
|
-
id: SERVICE_DEPENDENCY_SYNC_STRATEGY,
|
|
67
|
-
value
|
|
68
|
-
}
|
|
69
|
-
]);
|
|
70
|
-
};
|
|
71
|
-
return /* @__PURE__ */ jsxs(Page, { themeId: "home", children: [
|
|
72
|
-
/* @__PURE__ */ jsx(Header, { title: "PagerDuty", subtitle: "Advanced configurations" }),
|
|
73
|
-
/* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsxs(TabbedLayout, { children: [
|
|
74
|
-
/* @__PURE__ */ jsx(TabbedLayout.Route, { path: "/service-mapping", title: "Service Mapping", children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
75
|
-
/* @__PURE__ */ jsx(Card, { className: descriptionCard, children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
|
|
76
|
-
/* @__PURE__ */ jsx(Text, { className: descriptionText, children: "Easily map your existing PagerDuty services to entities in Backstage without the need to add anotations to all your projects." }),
|
|
77
|
-
/* @__PURE__ */ jsxs(Text, { className: warningText, children: [
|
|
78
|
-
/* @__PURE__ */ jsx("strong", { children: "Warning:" }),
|
|
79
|
-
" Only 1:1 mapping is allowed at this time."
|
|
80
|
-
] })
|
|
81
|
-
] }) }) }),
|
|
82
|
-
/* @__PURE__ */ jsx(ServiceMappingComponent, {})
|
|
83
|
-
] }) }),
|
|
84
|
-
/* @__PURE__ */ jsx(TabbedLayout.Route, { path: "/settings", title: "Configuration", children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
85
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h4", children: "Plugin configuration" }),
|
|
86
|
-
/* @__PURE__ */ jsx(Typography, { children: "Configure your PagerDuty plugin configuration here" }),
|
|
87
|
-
/* @__PURE__ */ jsxs(
|
|
88
|
-
Card,
|
|
89
|
-
{
|
|
90
|
-
title: "Service dependency synchronization preferences",
|
|
91
|
-
className: cardStyles,
|
|
92
|
-
children: [
|
|
93
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h6", children: "Service dependency synchronization strategy" }),
|
|
94
|
-
/* @__PURE__ */ jsxs(
|
|
95
|
-
RadioGroup,
|
|
96
|
-
{
|
|
97
|
-
label: "Select the main source of truth for your service dependencies",
|
|
98
|
-
value: selectedServiceDependencyStrategy,
|
|
99
|
-
onChange: (value) => handleChange(value),
|
|
100
|
-
children: [
|
|
101
|
-
/* @__PURE__ */ jsx(Radio, { value: "backstage" /* backstage */, children: "Backstage" }),
|
|
102
|
-
/* @__PURE__ */ jsx(Radio, { value: "pagerduty" /* pagerduty */, children: "PagerDuty" }),
|
|
103
|
-
/* @__PURE__ */ jsx(Radio, { value: "both" /* both */, children: "Both" }),
|
|
104
|
-
/* @__PURE__ */ jsx(Radio, { value: "disabled" /* disabled */, children: "Disabled" })
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
/* @__PURE__ */ jsx("div", { className: textContainerStyles, children: /* @__PURE__ */ jsxs(Typography, { children: [
|
|
109
|
-
/* @__PURE__ */ jsx("b", { children: "Warning: " }),
|
|
110
|
-
"Changing this setting will affect how your service dependencies are synchronized and may cause data loss. Check the",
|
|
111
|
-
" ",
|
|
112
|
-
/* @__PURE__ */ jsx(
|
|
113
|
-
"a",
|
|
114
|
-
{
|
|
115
|
-
className: linkStyles,
|
|
116
|
-
href: "https://pagerduty.github.io/backstage-plugin-docs/index.html",
|
|
117
|
-
children: "documentation"
|
|
118
|
-
}
|
|
119
|
-
),
|
|
120
|
-
" ",
|
|
121
|
-
"for more information."
|
|
122
|
-
] }) })
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
] }) })
|
|
127
|
-
] }) })
|
|
128
|
-
] });
|
|
129
|
-
};
|
|
7
|
+
const PagerDutyPage = () => /* @__PURE__ */ jsxs(Page, { themeId: "home", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Header, { title: "PagerDuty", subtitle: "Advanced configurations" }),
|
|
9
|
+
/* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsxs(TabbedLayout, { children: [
|
|
10
|
+
/* @__PURE__ */ jsx(TabbedLayout.Route, { path: "/service-mapping", title: "Service Mapping", children: /* @__PURE__ */ jsx(ServiceMappingPage, {}) }),
|
|
11
|
+
/* @__PURE__ */ jsx(TabbedLayout.Route, { path: "/custom-fields", title: "Custom Fields", children: /* @__PURE__ */ jsx(CustomFields, {}) }),
|
|
12
|
+
/* @__PURE__ */ jsx(TabbedLayout.Route, { path: "/settings", title: "Configuration", children: /* @__PURE__ */ jsx(ConfigurationPage, {}) })
|
|
13
|
+
] }) })
|
|
14
|
+
] });
|
|
130
15
|
|
|
131
16
|
export { PagerDutyPage };
|
|
132
17
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../src/components/PagerDutyPage/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../src/components/PagerDutyPage/index.tsx"],"sourcesContent":["import { Header, Page, Content, TabbedLayout } from '@backstage/core-components';\nimport { ServiceMappingPage } from './ServiceMappingPage';\nimport { CustomFields } from './CustomFields';\nimport { ConfigurationPage } from './ConfigurationPage';\n\n/** @public */\nexport const PagerDutyPage = () => (\n <Page themeId=\"home\">\n <Header title=\"PagerDuty\" subtitle=\"Advanced configurations\" />\n <Content>\n <TabbedLayout>\n <TabbedLayout.Route path=\"/service-mapping\" title=\"Service Mapping\">\n <ServiceMappingPage />\n </TabbedLayout.Route>\n <TabbedLayout.Route path=\"/custom-fields\" title=\"Custom Fields\">\n <CustomFields />\n </TabbedLayout.Route>\n <TabbedLayout.Route path=\"/settings\" title=\"Configuration\">\n <ConfigurationPage />\n </TabbedLayout.Route>\n </TabbedLayout>\n </Content>\n </Page>\n);\n"],"names":[],"mappings":";;;;;;AAMO,MAAM,aAAA,GAAgB,sBAC3B,IAAA,CAAC,IAAA,EAAA,EAAK,SAAQ,MAAA,EACZ,QAAA,EAAA;AAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAO,KAAA,EAAM,WAAA,EAAY,QAAA,EAAS,yBAAA,EAA0B,CAAA;AAAA,kBAC7D,GAAA,CAAC,OAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAC,YAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,YAAA,CAAa,OAAb,EAAmB,IAAA,EAAK,oBAAmB,KAAA,EAAM,iBAAA,EAChD,QAAA,kBAAA,GAAA,CAAC,kBAAA,EAAA,EAAmB,CAAA,EACtB,CAAA;AAAA,oBACA,GAAA,CAAC,YAAA,CAAa,KAAA,EAAb,EAAmB,IAAA,EAAK,kBAAiB,KAAA,EAAM,eAAA,EAC9C,QAAA,kBAAA,GAAA,CAAC,YAAA,EAAA,EAAa,CAAA,EAChB,CAAA;AAAA,oBACA,GAAA,CAAC,YAAA,CAAa,KAAA,EAAb,EAAmB,IAAA,EAAK,aAAY,KAAA,EAAM,eAAA,EACzC,QAAA,kBAAA,GAAA,CAAC,iBAAA,EAAA,EAAkB,CAAA,EACrB;AAAA,GAAA,EACF,CAAA,EACF;AAAA,CAAA,EACF;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
4
4
|
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
|
-
import
|
|
8
|
-
import { PagerDutySetting, PagerDutyEnhancedEntityMappingsResponse, PagerDutyServiceResponse, PagerDutyIncidentsResponse, PagerDutyChangeEventsResponse, PagerDutyService, PagerDutyTeam, PagerDutyServiceStandardsResponse, PagerDutyServiceMetricsResponse, PagerDutyUser, AutoMatchStartResponse, AutoMatchStatusResponse } from '@pagerduty/backstage-plugin-common';
|
|
7
|
+
import { PagerDutySetting, PagerDutyEnhancedEntityMappingsResponse, PagerDutyServiceResponse, PagerDutyIncidentsResponse, PagerDutyChangeEventsResponse, PagerDutyService, PagerDutyTeam, PagerDutyServiceStandardsResponse, PagerDutyServiceMetricsResponse, PagerDutyUser, AutoMatchStartResponse, AutoMatchStatusResponse, BackstageCustomFieldCreateRequest, BackstageCustomField, BackstageCustomFieldsResponse, BackstageCustomFieldUpdateRequest, CustomFieldSyncLogFilters, CustomFieldSyncLogsResponse } from '@pagerduty/backstage-plugin-common';
|
|
9
8
|
export { AutoMatchBackstageComponent, AutoMatchEntityMapping, AutoMatchEntityMappingsResponse, AutoMatchPagerDutyService, AutoMatchScoreBreakdown, AutoMatchStatistics } from '@pagerduty/backstage-plugin-common';
|
|
10
9
|
|
|
11
10
|
/** @public */
|
|
@@ -213,6 +212,35 @@ interface PagerDutyApi {
|
|
|
213
212
|
id: string;
|
|
214
213
|
isDefault: boolean;
|
|
215
214
|
}>>;
|
|
215
|
+
/**
|
|
216
|
+
* Creates a custom field in PagerDuty and stores the mapping.
|
|
217
|
+
*/
|
|
218
|
+
createCustomField(request: BackstageCustomFieldCreateRequest, account?: string): Promise<Result<BackstageCustomField>>;
|
|
219
|
+
/**
|
|
220
|
+
* Fetches all custom fields.
|
|
221
|
+
*/
|
|
222
|
+
getCustomFields(account?: string): Promise<BackstageCustomFieldsResponse>;
|
|
223
|
+
/**
|
|
224
|
+
* Updates an existing custom field mapping.
|
|
225
|
+
*/
|
|
226
|
+
updateCustomField(id: number, request: BackstageCustomFieldUpdateRequest, account?: string): Promise<Result<BackstageCustomField>>;
|
|
227
|
+
/**
|
|
228
|
+
* Enables or disables a custom field. Disabled fields are not synced to
|
|
229
|
+
* PagerDuty and do not count against the PagerDuty custom field hard limit.
|
|
230
|
+
*/
|
|
231
|
+
setCustomFieldEnabled(id: number, enabled: boolean, account?: string): Promise<Result<BackstageCustomField>>;
|
|
232
|
+
/**
|
|
233
|
+
* Deletes a custom field from both Backstage and PagerDuty, reclaiming the slot.
|
|
234
|
+
*/
|
|
235
|
+
deleteCustomField(id: number, account?: string): Promise<Result<void>>;
|
|
236
|
+
/**
|
|
237
|
+
* Fetches sync logs (paginated, filtered) along with the distinct
|
|
238
|
+
* filter values for the given account.
|
|
239
|
+
*/
|
|
240
|
+
getSyncLogs(account?: string, options?: {
|
|
241
|
+
limit?: number;
|
|
242
|
+
offset?: number;
|
|
243
|
+
} & CustomFieldSyncLogFilters): Promise<CustomFieldSyncLogsResponse>;
|
|
216
244
|
}
|
|
217
245
|
/** @public */
|
|
218
246
|
type PagerDutyClientApiDependencies = {
|
|
@@ -223,12 +251,22 @@ type PagerDutyClientApiDependencies = {
|
|
|
223
251
|
type PagerDutyClientApiConfig = PagerDutyClientApiDependencies & {
|
|
224
252
|
eventsBaseUrl?: string;
|
|
225
253
|
};
|
|
254
|
+
/** @public */
|
|
255
|
+
type Result<T> = {
|
|
256
|
+
status: 'ok';
|
|
257
|
+
data: T;
|
|
258
|
+
error: null;
|
|
259
|
+
} | {
|
|
260
|
+
status: 'error';
|
|
261
|
+
data: null;
|
|
262
|
+
error: string;
|
|
263
|
+
};
|
|
226
264
|
|
|
227
265
|
/** @public */
|
|
228
266
|
declare class UnauthorizedError extends Error {
|
|
229
267
|
}
|
|
230
268
|
/** @public */
|
|
231
|
-
declare const pagerDutyApiRef:
|
|
269
|
+
declare const pagerDutyApiRef: _backstage_core_plugin_api.ApiRef<PagerDutyApi>;
|
|
232
270
|
/** @public */
|
|
233
271
|
declare class PagerDutyClient implements PagerDutyApi {
|
|
234
272
|
private readonly config;
|
|
@@ -289,6 +327,15 @@ declare class PagerDutyClient implements PagerDutyApi {
|
|
|
289
327
|
id: string;
|
|
290
328
|
isDefault: boolean;
|
|
291
329
|
}>>;
|
|
330
|
+
createCustomField(request: BackstageCustomFieldCreateRequest, account?: string): Promise<Result<BackstageCustomField>>;
|
|
331
|
+
getCustomFields(account?: string): Promise<BackstageCustomFieldsResponse>;
|
|
332
|
+
getSyncLogs(account?: string, options?: {
|
|
333
|
+
limit?: number;
|
|
334
|
+
offset?: number;
|
|
335
|
+
} & CustomFieldSyncLogFilters): Promise<CustomFieldSyncLogsResponse>;
|
|
336
|
+
updateCustomField(id: number, request: BackstageCustomFieldUpdateRequest, account?: string): Promise<Result<BackstageCustomField>>;
|
|
337
|
+
setCustomFieldEnabled(id: number, enabled: boolean, account?: string): Promise<Result<BackstageCustomField>>;
|
|
338
|
+
deleteCustomField(id: number, account?: string): Promise<Result<void>>;
|
|
292
339
|
private findByUrl;
|
|
293
340
|
private request;
|
|
294
341
|
}
|
package/dist/package.json.esm.js
CHANGED
|
@@ -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.
|
|
3
|
+
var version = "0.21.0";
|
|
4
4
|
var main = "dist/index.esm.js";
|
|
5
5
|
var types = "dist/index.d.ts";
|
|
6
6
|
var license = "Apache-2.0";
|
|
@@ -49,7 +49,7 @@ var dependencies = {
|
|
|
49
49
|
"@backstage/plugin-catalog-react": "backstage:^",
|
|
50
50
|
"@backstage/plugin-home-react": "backstage:^",
|
|
51
51
|
"@backstage/theme": "backstage:^",
|
|
52
|
-
"@backstage/ui": "
|
|
52
|
+
"@backstage/ui": "backstage:^",
|
|
53
53
|
"@emotion/react": "^11.11.4",
|
|
54
54
|
"@emotion/styled": "^11.11.5",
|
|
55
55
|
"@material-ui/core": "^4.12.2",
|
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.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"clean": "backstage-cli package clean"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/catalog-model": "^1.
|
|
47
|
-
"@backstage/core-compat-api": "^0.5.
|
|
48
|
-
"@backstage/core-components": "^0.18.
|
|
49
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
50
|
-
"@backstage/errors": "^1.
|
|
51
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
52
|
-
"@backstage/plugin-catalog": "^
|
|
53
|
-
"@backstage/plugin-catalog-react": "^
|
|
54
|
-
"@backstage/plugin-home-react": "^0.1.
|
|
55
|
-
"@backstage/theme": "^0.7.
|
|
56
|
-
"@backstage/ui": "^0.
|
|
46
|
+
"@backstage/catalog-model": "^1.9.0",
|
|
47
|
+
"@backstage/core-compat-api": "^0.5.11",
|
|
48
|
+
"@backstage/core-components": "^0.18.10",
|
|
49
|
+
"@backstage/core-plugin-api": "^1.12.6",
|
|
50
|
+
"@backstage/errors": "^1.3.1",
|
|
51
|
+
"@backstage/frontend-plugin-api": "^0.17.1",
|
|
52
|
+
"@backstage/plugin-catalog": "^2.0.5",
|
|
53
|
+
"@backstage/plugin-catalog-react": "^3.0.0",
|
|
54
|
+
"@backstage/plugin-home-react": "^0.1.38",
|
|
55
|
+
"@backstage/theme": "^0.7.3",
|
|
56
|
+
"@backstage/ui": "^0.15.0",
|
|
57
57
|
"@emotion/react": "^11.11.4",
|
|
58
58
|
"@emotion/styled": "^11.11.5",
|
|
59
59
|
"@material-ui/core": "^4.12.2",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@mui/icons-material": "^5.15.19",
|
|
63
63
|
"@mui/material": "^5.15.19",
|
|
64
64
|
"@mui/x-date-pickers": "^7.6.1",
|
|
65
|
-
"@pagerduty/backstage-plugin-common": "~0.
|
|
65
|
+
"@pagerduty/backstage-plugin-common": "~0.5.0",
|
|
66
66
|
"@tanstack/react-query": "^5.40.1",
|
|
67
67
|
"luxon": "^3.4.1",
|
|
68
68
|
"material-react-table": "^2.13.0",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"react-router-dom": "^6.3.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@backstage/cli": "^0.
|
|
79
|
-
"@backstage/core-app-api": "^1.
|
|
80
|
-
"@backstage/frontend-defaults": "^0.
|
|
81
|
-
"@backstage/test-utils": "^1.7.
|
|
78
|
+
"@backstage/cli": "^0.36.2",
|
|
79
|
+
"@backstage/core-app-api": "^1.20.1",
|
|
80
|
+
"@backstage/frontend-defaults": "^0.5.2",
|
|
81
|
+
"@backstage/test-utils": "^1.7.18",
|
|
82
82
|
"@testing-library/jest-dom": "^6.6.3",
|
|
83
83
|
"@types/copyfiles": "^2",
|
|
84
84
|
"copyfiles": "^2.4.1",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NavItemBlueprint } from '@backstage/frontend-plugin-api';
|
|
2
|
-
import { rootRouteRef } from '../routes.esm.js';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import '@backstage/plugin-catalog-react';
|
|
5
|
-
import '../components/PagerDutyCard/index.esm.js';
|
|
6
|
-
import '../components/PagerDutySmallCard/index.esm.js';
|
|
7
|
-
import { PagerDutyIcon } from '../components/Icons/index.esm.js';
|
|
8
|
-
import '../components/TriggerButton/index.esm.js';
|
|
9
|
-
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
|
|
10
|
-
|
|
11
|
-
const pagerDutyNavBarItem = NavItemBlueprint.make({
|
|
12
|
-
name: "PagerDutyNavBarItem",
|
|
13
|
-
params: {
|
|
14
|
-
title: "PagerDuty",
|
|
15
|
-
icon: PagerDutyIcon,
|
|
16
|
-
routeRef: convertLegacyRouteRef(rootRouteRef)
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export { pagerDutyNavBarItem };
|
|
21
|
-
//# sourceMappingURL=nav-items.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nav-items.esm.js","sources":["../../src/alpha/nav-items.tsx"],"sourcesContent":["import { NavItemBlueprint } from \"@backstage/frontend-plugin-api\";\nimport { rootRouteRef } from \"../routes\";\nimport { PagerDutyIcon } from \"../components\";\nimport { convertLegacyRouteRef } from \"@backstage/core-compat-api\";\n\n/** @alpha */\nexport const pagerDutyNavBarItem = NavItemBlueprint.make({\n name: 'PagerDutyNavBarItem',\n params: {\n title: 'PagerDuty',\n icon: PagerDutyIcon,\n routeRef: convertLegacyRouteRef(rootRouteRef),\n }\n});\n"],"names":[],"mappings":";;;;;;;;;;AAMO,MAAM,mBAAA,GAAsB,iBAAiB,IAAA,CAAK;AAAA,EACvD,IAAA,EAAM,qBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,WAAA;AAAA,IACP,IAAA,EAAM,aAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY;AAAA;AAEhD,CAAC;;;;"}
|