@pagerduty/backstage-plugin 0.13.0-next.64 → 0.13.0-next.65
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/PagerDutyIcon.esm.js → Icons/index.esm.js} +3 -3
- package/dist/components/Icons/index.esm.js.map +1 -0
- package/dist/hooks/index.esm.js +0 -2
- package/dist/hooks/index.esm.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/Logo/PagerDutyIcon.esm.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PDIcon from '../../assets/PD-Icon.svg';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
function PagerDutyIcon() {
|
|
5
5
|
return /* @__PURE__ */ React.createElement("img", { src: PDIcon, alt: "PagerDuty", height: "20px" });
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
|
|
8
8
|
export { PagerDutyIcon };
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../src/components/Icons/index.tsx"],"sourcesContent":["import React from \"react\";\nimport PDIcon from \"../../assets/PD-Icon.svg\";\n\n/** @public */\nexport function PagerDutyIcon() {\n\n return <img src={PDIcon} alt=\"PagerDuty\" height=\"20px\" />;\n};\n"],"names":[],"mappings":";;;AAIO,SAAS,aAAgB,GAAA;AAE9B,EAAA,2CAAQ,KAAI,EAAA,EAAA,GAAA,EAAK,QAAQ,GAAI,EAAA,WAAA,EAAY,QAAO,MAAO,EAAA,CAAA,CAAA;AACzD;;;;"}
|
package/dist/hooks/index.esm.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useEntity } from '@backstage/plugin-catalog-react';
|
|
2
2
|
import { getPagerDutyEntity } from '../components/pagerDutyEntity.esm.js';
|
|
3
|
-
import '@backstage/core-plugin-api';
|
|
4
|
-
import 'react-use';
|
|
5
3
|
|
|
6
4
|
function usePagerdutyEntity() {
|
|
7
5
|
const { entity } = useEntity();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/hooks/index.ts"],"sourcesContent":["/*\n * Copyright 2020 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 {
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/hooks/index.ts"],"sourcesContent":["/*\n * Copyright 2020 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 { useEntity } from '@backstage/plugin-catalog-react';\nimport { PagerDutyEntity } from '../types';\nimport { getPagerDutyEntity } from '../components/pagerDutyEntity';\n\nexport function usePagerdutyEntity(): PagerDutyEntity {\n const { entity } = useEntity();\n\n return getPagerDutyEntity(entity);\n}\n"],"names":[],"mappings":";;;AAoBO,SAAS,kBAAsC,GAAA;AACpD,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA,CAAA;AAE7B,EAAA,OAAO,mBAAmB,MAAM,CAAA,CAAA;AAClC;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare const EntityPagerDutySmallCard: (props: EntityPagerDutySmallCardProps) =
|
|
|
49
49
|
declare const HomePagePagerDutyCard: (props: _backstage_plugin_home_react.CardExtensionProps<HomePagePagerDutyCardProps>) => React.JSX.Element;
|
|
50
50
|
|
|
51
51
|
/** @public */
|
|
52
|
-
declare
|
|
52
|
+
declare function PagerDutyIcon(): React__default.JSX.Element;
|
|
53
53
|
|
|
54
54
|
/** @public */
|
|
55
55
|
declare function TriggerButton(props: {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +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 { PagerDutyIcon } from './components/
|
|
4
|
+
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';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PagerDutyIcon.esm.js","sources":["../../../src/components/Logo/PagerDutyIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport PDIcon from \"../../assets/PD-Icon.svg\";\n\n/** @public */\nexport const PagerDutyIcon = () => {\n\n return <img src={PDIcon} alt=\"PagerDuty\" height=\"20px\" />;\n};\n"],"names":[],"mappings":";;;AAIO,MAAM,gBAAgB,MAAM;AAEjC,EAAA,2CAAQ,KAAI,EAAA,EAAA,GAAA,EAAK,QAAQ,GAAI,EAAA,WAAA,EAAY,QAAO,MAAO,EAAA,CAAA,CAAA;AACzD;;;;"}
|