@pagerduty/backstage-plugin 0.13.0-next.48 → 0.13.0-next.49
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/dist/components/Logo/PagerDutyLogo.esm.js +12 -0
- package/dist/components/Logo/PagerDutyLogo.esm.js.map +1 -0
- package/dist/deprecated.esm.js +3 -0
- package/dist/deprecated.esm.js.map +1 -1
- package/dist/index.d.ts +11 -9
- package/dist/index.esm.js +1 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useTheme } from '@material-ui/core';
|
|
3
|
+
import PDGreenImage from '../../assets/PD-Green.svg';
|
|
4
|
+
import PDWhiteImage from '../../assets/PD-White.svg';
|
|
5
|
+
|
|
6
|
+
const PagerDutyLogo = () => {
|
|
7
|
+
const theme = useTheme();
|
|
8
|
+
return theme.palette.type === "dark" ? /* @__PURE__ */ React.createElement("img", { src: PDWhiteImage, alt: "PagerDuty", height: "35" }) : /* @__PURE__ */ React.createElement("img", { src: PDGreenImage, alt: "PagerDuty", height: "35" });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { PagerDutyLogo };
|
|
12
|
+
//# sourceMappingURL=PagerDutyLogo.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagerDutyLogo.esm.js","sources":["../../../src/components/Logo/PagerDutyLogo.tsx"],"sourcesContent":["import React from \"react\";\nimport { useTheme } from \"@material-ui/core\";\nimport PDGreenImage from \"../../assets/PD-Green.svg\";\nimport PDWhiteImage from \"../../assets/PD-White.svg\";\n\nexport const PagerDutyLogo = () => {\n\n const theme = useTheme();\n\n return theme.palette.type === \"dark\" ? (\n <img src={PDWhiteImage} alt=\"PagerDuty\" height=\"35\" />\n ) : (\n <img src={PDGreenImage} alt=\"PagerDuty\" height=\"35\" />\n );\n};\n"],"names":[],"mappings":";;;;;AAKO,MAAM,gBAAgB,MAAM;AAE/B,EAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEzB,EAAO,OAAA,KAAA,CAAM,QAAQ,IAAS,KAAA,MAAA,uCAC3B,KAAI,EAAA,EAAA,GAAA,EAAK,cAAc,GAAI,EAAA,WAAA,EAAY,QAAO,IAAK,EAAA,CAAA,uCAEnD,KAAI,EAAA,EAAA,GAAA,EAAK,cAAc,GAAI,EAAA,WAAA,EAAY,QAAO,IAAK,EAAA,CAAA,CAAA;AAExD;;;;"}
|
package/dist/deprecated.esm.js
CHANGED
|
@@ -2,6 +2,9 @@ import { EntityPagerDutyCard } from './components/EntityPagerDutyCard/index.esm.
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@backstage/plugin-catalog-react';
|
|
4
4
|
import './components/PagerDutySmallCard/index.esm.js';
|
|
5
|
+
import '@material-ui/core';
|
|
6
|
+
import './assets/PD-Green.svg';
|
|
7
|
+
import './assets/PD-White.svg';
|
|
5
8
|
import './components/TriggerButton/index.esm.js';
|
|
6
9
|
|
|
7
10
|
const PagerDutyCard = EntityPagerDutyCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.esm.js","sources":["../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { EntityPagerDutyCardProps, EntityPagerDutyCard } from './components';\n\n/**\n * @public\n * @deprecated Please use EntityPagerDutyCard\n */\nexport const PagerDutyCard = EntityPagerDutyCard;\n\n/**\n * @public\n * @deprecated Please use EntityPagerDutyCardProps\n */\nexport type PagerDutyCardProps = EntityPagerDutyCardProps;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deprecated.esm.js","sources":["../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { EntityPagerDutyCardProps, EntityPagerDutyCard } from './components';\n\n/**\n * @public\n * @deprecated Please use EntityPagerDutyCard\n */\nexport const PagerDutyCard = EntityPagerDutyCard;\n\n/**\n * @public\n * @deprecated Please use EntityPagerDutyCardProps\n */\nexport type PagerDutyCardProps = EntityPagerDutyCardProps;\n"],"names":[],"mappings":";;;;;;;;;AAsBO,MAAM,aAAgB,GAAA;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as _backstage_plugin_home_react from '@backstage/plugin-home-react';
|
|
3
3
|
import { Entity } from '@backstage/catalog-model';
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import React__default, { ReactNode } from 'react';
|
|
6
6
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
7
7
|
import { DiscoveryApi, FetchApi, ConfigApi } from '@backstage/core-plugin-api';
|
|
8
8
|
import { PagerDutyEntityMappingResponse, PagerDutyServiceResponse, PagerDutyIncidentsResponse, PagerDutyChangeEventsResponse, PagerDutyServiceStandardsResponse, PagerDutyServiceMetricsResponse, PagerDutyUser } from '@pagerduty/backstage-plugin-common';
|
|
@@ -40,18 +40,20 @@ type HomePagePagerDutyCardProps = PagerDutyEntity & {
|
|
|
40
40
|
/** @public */
|
|
41
41
|
declare const pagerDutyPlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {}, {}>;
|
|
42
42
|
/** @public */
|
|
43
|
-
declare const PagerDutyPage: () =>
|
|
43
|
+
declare const PagerDutyPage: () => React.JSX.Element;
|
|
44
44
|
/** @public */
|
|
45
|
-
declare const EntityPagerDutyCard: (props: EntityPagerDutyCardProps) =>
|
|
45
|
+
declare const EntityPagerDutyCard: (props: EntityPagerDutyCardProps) => React.JSX.Element;
|
|
46
46
|
/** @public */
|
|
47
|
-
declare const EntityPagerDutySmallCard: (props: EntityPagerDutySmallCardProps) =>
|
|
47
|
+
declare const EntityPagerDutySmallCard: (props: EntityPagerDutySmallCardProps) => React.JSX.Element;
|
|
48
48
|
/** @public */
|
|
49
|
-
declare const HomePagePagerDutyCard: (props: _backstage_plugin_home_react.CardExtensionProps<HomePagePagerDutyCardProps>) =>
|
|
49
|
+
declare const HomePagePagerDutyCard: (props: _backstage_plugin_home_react.CardExtensionProps<HomePagePagerDutyCardProps>) => React.JSX.Element;
|
|
50
|
+
|
|
51
|
+
declare const PagerDutyLogo: () => React__default.JSX.Element;
|
|
50
52
|
|
|
51
53
|
/** @public */
|
|
52
54
|
declare function TriggerButton(props: {
|
|
53
55
|
children?: ReactNode;
|
|
54
|
-
}):
|
|
56
|
+
}): React__default.JSX.Element;
|
|
55
57
|
|
|
56
58
|
/** @public */
|
|
57
59
|
type PagerDutyTriggerAlarmRequest = {
|
|
@@ -156,11 +158,11 @@ declare class PagerDutyClient implements PagerDutyApi {
|
|
|
156
158
|
* @public
|
|
157
159
|
* @deprecated Please use EntityPagerDutyCard
|
|
158
160
|
*/
|
|
159
|
-
declare const PagerDutyCard: (props: EntityPagerDutyCardProps) =>
|
|
161
|
+
declare const PagerDutyCard: (props: EntityPagerDutyCardProps) => React.JSX.Element;
|
|
160
162
|
/**
|
|
161
163
|
* @public
|
|
162
164
|
* @deprecated Please use EntityPagerDutyCardProps
|
|
163
165
|
*/
|
|
164
166
|
type PagerDutyCardProps = EntityPagerDutyCardProps;
|
|
165
167
|
|
|
166
|
-
export { EntityPagerDutyCard, type EntityPagerDutyCardProps, EntityPagerDutySmallCard, type EntityPagerDutySmallCardProps, HomePagePagerDutyCard, type HomePagePagerDutyCardProps, type PagerDutyApi, PagerDutyCard, type PagerDutyCardProps, PagerDutyClient, type PagerDutyClientApiConfig, type PagerDutyClientApiDependencies, type PagerDutyEntity, PagerDutyPage, type PagerDutyTriggerAlarmRequest, TriggerButton, UnauthorizedError, isPluginApplicableToEntity as isPagerDutyAvailable, isPluginApplicableToEntity$1 as isPagerDutySmallCardAvailable, isPluginApplicableToEntity, pagerDutyApiRef, pagerDutyPlugin, pagerDutyPlugin as plugin };
|
|
168
|
+
export { EntityPagerDutyCard, type EntityPagerDutyCardProps, EntityPagerDutySmallCard, type EntityPagerDutySmallCardProps, HomePagePagerDutyCard, type HomePagePagerDutyCardProps, type PagerDutyApi, PagerDutyCard, type PagerDutyCardProps, PagerDutyClient, type PagerDutyClientApiConfig, type PagerDutyClientApiDependencies, type PagerDutyEntity, PagerDutyLogo, PagerDutyPage, type PagerDutyTriggerAlarmRequest, TriggerButton, UnauthorizedError, isPluginApplicableToEntity as isPagerDutyAvailable, isPluginApplicableToEntity$1 as isPagerDutySmallCardAvailable, isPluginApplicableToEntity, pagerDutyApiRef, pagerDutyPlugin, pagerDutyPlugin as plugin };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { EntityPagerDutyCard, EntityPagerDutySmallCard, HomePagePagerDutyCard, PagerDutyPage, pagerDutyPlugin, pagerDutyPlugin as plugin } from './plugin.esm.js';
|
|
2
2
|
export { isPluginApplicableToEntity as isPagerDutyAvailable, isPluginApplicableToEntity } from './components/EntityPagerDutyCard/index.esm.js';
|
|
3
3
|
export { isPluginApplicableToEntity as isPagerDutySmallCardAvailable } from './components/EntityPagerDutySmallCard/index.esm.js';
|
|
4
|
+
export { PagerDutyLogo } from './components/Logo/PagerDutyLogo.esm.js';
|
|
4
5
|
export { TriggerButton } from './components/TriggerButton/index.esm.js';
|
|
5
6
|
export { PagerDutyClient, UnauthorizedError, pagerDutyApiRef } from './api/client.esm.js';
|
|
6
7
|
export { PagerDutyCard } from './deprecated.esm.js';
|
package/dist/index.esm.js.map
CHANGED
|
@@ -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