@backstage-community/plugin-newrelic-dashboard 0.18.0 → 0.19.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 +6 -0
- package/dist/index.d.ts +1 -14
- package/dist/index.esm.js +1 -1
- package/dist/plugin.esm.js +1 -2
- package/dist/plugin.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @backstage-community/plugin-newrelic-dashboard
|
|
2
2
|
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5711f69: Removes all existing deprecation notices. If you are still using `DashboardSnapshotComponent`, this will be a breaking change.
|
|
8
|
+
|
|
3
9
|
## 0.18.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -23,19 +23,6 @@ declare const DashboardSnapshot: (props: {
|
|
|
23
23
|
name: string;
|
|
24
24
|
permalink: string;
|
|
25
25
|
}) => react_jsx_runtime.JSX.Element;
|
|
26
|
-
/**
|
|
27
|
-
* Render dashboard snapshots from Newrelic in backstage. Use dashboards which have the tag `isDashboardPage: true`
|
|
28
|
-
*
|
|
29
|
-
* @deprecated
|
|
30
|
-
* Use DashboardSnapshot export name instead
|
|
31
|
-
*
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
declare const DashboardSnapshotComponent: (props: {
|
|
35
|
-
guid: string;
|
|
36
|
-
name: string;
|
|
37
|
-
permalink: string;
|
|
38
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
39
26
|
/**
|
|
40
27
|
* Render a dashboard snapshots list from Newrelic in backstage. Use dashboards which have the tag `isDashboardPage: true`
|
|
41
28
|
*
|
|
@@ -51,4 +38,4 @@ declare const DashboardSnapshotList: (props: {
|
|
|
51
38
|
/** @public */
|
|
52
39
|
declare const isNewRelicDashboardAvailable: (entity: Entity) => boolean;
|
|
53
40
|
|
|
54
|
-
export { DashboardSnapshot,
|
|
41
|
+
export { DashboardSnapshot, DashboardSnapshotList, EntityNewRelicDashboardCard, EntityNewRelicDashboardContent, isNewRelicDashboardAvailable, newRelicDashboardPlugin };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DashboardSnapshot,
|
|
1
|
+
export { DashboardSnapshot, DashboardSnapshotList, EntityNewRelicDashboardCard, EntityNewRelicDashboardContent, newRelicDashboardPlugin } from './plugin.esm.js';
|
|
2
2
|
export { isNewRelicDashboardAvailable } from './Router.esm.js';
|
|
3
3
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/plugin.esm.js
CHANGED
|
@@ -50,7 +50,6 @@ const DashboardSnapshot = newRelicDashboardPlugin.provide(
|
|
|
50
50
|
}
|
|
51
51
|
})
|
|
52
52
|
);
|
|
53
|
-
const DashboardSnapshotComponent = DashboardSnapshot;
|
|
54
53
|
const DashboardSnapshotList = newRelicDashboardPlugin.provide(
|
|
55
54
|
createComponentExtension({
|
|
56
55
|
name: "DashboardSnapshotList",
|
|
@@ -60,5 +59,5 @@ const DashboardSnapshotList = newRelicDashboardPlugin.provide(
|
|
|
60
59
|
})
|
|
61
60
|
);
|
|
62
61
|
|
|
63
|
-
export { DashboardSnapshot,
|
|
62
|
+
export { DashboardSnapshot, DashboardSnapshotList, EntityNewRelicDashboardCard, EntityNewRelicDashboardContent, newRelicDashboardPlugin };
|
|
64
63
|
//# sourceMappingURL=plugin.esm.js.map
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2021 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 {\n createPlugin,\n configApiRef,\n createApiFactory,\n discoveryApiRef,\n createComponentExtension,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport { newRelicDashboardApiRef, NewRelicDashboardClient } from './api';\nimport { rootRouteRef } from './routes';\n\n/** @public */\nexport const newRelicDashboardPlugin = createPlugin({\n id: 'newrelic-dashboard',\n routes: {\n root: rootRouteRef,\n },\n apis: [\n createApiFactory({\n api: newRelicDashboardApiRef,\n deps: {\n configApi: configApiRef,\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ configApi, discoveryApi, fetchApi }) =>\n new NewRelicDashboardClient({\n discoveryApi,\n fetchApi,\n baseUrl: configApi.getOptionalString('newrelicdashboard.baseUrl'),\n }),\n }),\n ],\n});\n\n/** @public */\nexport const EntityNewRelicDashboardContent = newRelicDashboardPlugin.provide(\n createComponentExtension({\n name: 'EntityNewRelicDashboardContent',\n component: {\n lazy: () => import('./Router').then(m => m.Router),\n },\n }),\n);\n\n/** @public */\nexport const EntityNewRelicDashboardCard = newRelicDashboardPlugin.provide(\n createComponentExtension({\n name: 'EntityNewRelicDashboardCard',\n component: {\n lazy: () =>\n import('./components/NewRelicDashboard/DashboardEntityList').then(\n m => m.DashboardEntityList,\n ),\n },\n }),\n);\n\n/**\n * Render dashboard snapshots from Newrelic in backstage. Use dashboards which have the tag `isDashboardPage: true`\n *\n * @remarks\n * This can be helpful for rendering dashboards outside of Entity Catalog.\n *\n * @public\n */\nexport const DashboardSnapshot = newRelicDashboardPlugin.provide(\n createComponentExtension({\n name: 'DashboardSnapshot',\n component: {\n lazy: () =>\n import(\n './components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot'\n ).then(m => m.DashboardSnapshot),\n },\n }),\n);\n\n/**\n * Render
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2021 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 {\n createPlugin,\n configApiRef,\n createApiFactory,\n discoveryApiRef,\n createComponentExtension,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport { newRelicDashboardApiRef, NewRelicDashboardClient } from './api';\nimport { rootRouteRef } from './routes';\n\n/** @public */\nexport const newRelicDashboardPlugin = createPlugin({\n id: 'newrelic-dashboard',\n routes: {\n root: rootRouteRef,\n },\n apis: [\n createApiFactory({\n api: newRelicDashboardApiRef,\n deps: {\n configApi: configApiRef,\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ configApi, discoveryApi, fetchApi }) =>\n new NewRelicDashboardClient({\n discoveryApi,\n fetchApi,\n baseUrl: configApi.getOptionalString('newrelicdashboard.baseUrl'),\n }),\n }),\n ],\n});\n\n/** @public */\nexport const EntityNewRelicDashboardContent = newRelicDashboardPlugin.provide(\n createComponentExtension({\n name: 'EntityNewRelicDashboardContent',\n component: {\n lazy: () => import('./Router').then(m => m.Router),\n },\n }),\n);\n\n/** @public */\nexport const EntityNewRelicDashboardCard = newRelicDashboardPlugin.provide(\n createComponentExtension({\n name: 'EntityNewRelicDashboardCard',\n component: {\n lazy: () =>\n import('./components/NewRelicDashboard/DashboardEntityList').then(\n m => m.DashboardEntityList,\n ),\n },\n }),\n);\n\n/**\n * Render dashboard snapshots from Newrelic in backstage. Use dashboards which have the tag `isDashboardPage: true`\n *\n * @remarks\n * This can be helpful for rendering dashboards outside of Entity Catalog.\n *\n * @public\n */\nexport const DashboardSnapshot = newRelicDashboardPlugin.provide(\n createComponentExtension({\n name: 'DashboardSnapshot',\n component: {\n lazy: () =>\n import(\n './components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot'\n ).then(m => m.DashboardSnapshot),\n },\n }),\n);\n\n/**\n * Render a dashboard snapshots list from Newrelic in backstage. Use dashboards which have the tag `isDashboardPage: true`\n *\n * @remarks\n * This can be helpful for rendering dashboards outside of Entity Catalog.\n *\n * @public\n */\nexport const DashboardSnapshotList = newRelicDashboardPlugin.provide(\n createComponentExtension({\n name: 'DashboardSnapshotList',\n component: {\n lazy: () =>\n import(\n './components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList'\n ).then(m => m.DashboardSnapshotList),\n },\n }),\n);\n"],"names":[],"mappings":";;;;;AA4BO,MAAM,0BAA0B,YAAa,CAAA;AAAA,EAClD,EAAI,EAAA,oBAAA;AAAA,EACJ,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA;AAAA,GACR;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,uBAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,SAAW,EAAA,YAAA;AAAA,QACX,YAAc,EAAA,eAAA;AAAA,QACd,QAAU,EAAA;AAAA,OACZ;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,SAAA,EAAW,cAAc,QAAS,EAAA,KAC5C,IAAI,uBAAwB,CAAA;AAAA,QAC1B,YAAA;AAAA,QACA,QAAA;AAAA,QACA,OAAA,EAAS,SAAU,CAAA,iBAAA,CAAkB,2BAA2B;AAAA,OACjE;AAAA,KACJ;AAAA;AAEL,CAAC;AAGM,MAAM,iCAAiC,uBAAwB,CAAA,OAAA;AAAA,EACpE,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,gCAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MAAM,OAAO,iBAAU,E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