@backstage-community/plugin-newrelic 0.19.0 → 0.20.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @backstage-community/plugin-newrelic
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ab9413d: Backstage version bump to v1.49.2
8
+
3
9
  ## 0.19.0
4
10
 
5
11
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { ApiBlueprint, discoveryApiRef, fetchApiRef, PageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
2
+ import { ApiBlueprint, discoveryApiRef, fetchApiRef, PageBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
3
  import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
4
4
  import ExtensionIcon from '@material-ui/icons/ExtensionOutlined';
5
5
  import { newRelicApiRef, NewRelicClient } from '../api/index.esm.js';
@@ -19,22 +19,17 @@ const newRelicPage = PageBlueprint.make({
19
19
  params: {
20
20
  path: "/new-relic",
21
21
  routeRef: convertLegacyRouteRef(rootRouteRef),
22
+ title: "New Relic",
23
+ icon: /* @__PURE__ */ jsx(ExtensionIcon, {}),
22
24
  loader: () => import('../components/NewRelicComponent/index.esm.js').then(
23
25
  (m) => compatWrapper(/* @__PURE__ */ jsx(m.NewRelicComponent, {}))
24
26
  )
25
27
  }
26
28
  });
27
- const newRelicNavItem = NavItemBlueprint.make({
28
- params: {
29
- routeRef: convertLegacyRouteRef(rootRouteRef),
30
- title: "New Relic",
31
- icon: ExtensionIcon
32
- }
33
- });
34
29
  var plugin = createFrontendPlugin({
35
30
  pluginId: "newrelic",
36
- extensions: [newRelicApi, newRelicPage, newRelicNavItem]
31
+ extensions: [newRelicApi, newRelicPage]
37
32
  });
38
33
 
39
- export { plugin as default, newRelicApi, newRelicNavItem, newRelicPage };
34
+ export { plugin as default, newRelicApi, newRelicPage };
40
35
  //# sourceMappingURL=plugin.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 ApiBlueprint,\n PageBlueprint,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport ExtensionIcon from '@material-ui/icons/ExtensionOutlined';\n\nimport { newRelicApiRef, NewRelicClient } from '../api';\nimport { rootRouteRef } from '../plugin';\n\n/** @alpha */\nexport const newRelicApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: newRelicApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new NewRelicClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport const newRelicPage = PageBlueprint.make({\n params: {\n path: '/new-relic',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('../components/NewRelicComponent').then(m =>\n compatWrapper(<m.NewRelicComponent />),\n ),\n },\n});\n\n/** @alpha */\nexport const newRelicNavItem = NavItemBlueprint.make({\n params: {\n routeRef: convertLegacyRouteRef(rootRouteRef),\n title: 'New Relic',\n icon: ExtensionIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'newrelic',\n extensions: [newRelicApi, newRelicPage, newRelicNavItem],\n});\n"],"names":[],"mappings":";;;;;;;AAkCa,MAAA,WAAA,GAAc,aAAa,IAAK,CAAA;AAAA,EAC3C,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,cAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,QAAA,EACxB,KAAA,IAAI,cAAe,CAAA,EAAE,YAAc,EAAA,QAAA,EAAU;AAAA,GAChD;AACL,CAAC;AAGY,MAAA,YAAA,GAAe,cAAc,IAAK,CAAA;AAAA,EAC7C,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,8CAAiC,CAAE,CAAA,IAAA;AAAA,MAAK,OAC7C,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,iBAAA,EAAF,EAAoB,CAAE;AAAA;AACvC;AAEN,CAAC;AAGY,MAAA,eAAA,GAAkB,iBAAiB,IAAK,CAAA;AAAA,EACnD,MAAQ,EAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,KAAO,EAAA,WAAA;AAAA,IACP,IAAM,EAAA;AAAA;AAEV,CAAC;AAGD,aAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,UAAA;AAAA,EACV,UAAY,EAAA,CAAC,WAAa,EAAA,YAAA,EAAc,eAAe;AACzD,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 ApiBlueprint,\n PageBlueprint,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport ExtensionIcon from '@material-ui/icons/ExtensionOutlined';\n\nimport { newRelicApiRef, NewRelicClient } from '../api';\nimport { rootRouteRef } from '../plugin';\n\n/** @alpha */\nexport const newRelicApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: newRelicApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new NewRelicClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport const newRelicPage = PageBlueprint.make({\n params: {\n path: '/new-relic',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n title: 'New Relic',\n icon: <ExtensionIcon />,\n loader: () =>\n import('../components/NewRelicComponent').then(m =>\n compatWrapper(<m.NewRelicComponent />),\n ),\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'newrelic',\n extensions: [newRelicApi, newRelicPage],\n});\n"],"names":[],"mappings":";;;;;;;AAiCa,MAAA,WAAA,GAAc,aAAa,IAAK,CAAA;AAAA,EAC3C,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,cAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,QAAA,EACxB,KAAA,IAAI,cAAe,CAAA,EAAE,YAAc,EAAA,QAAA,EAAU;AAAA,GAChD;AACL,CAAC;AAGY,MAAA,YAAA,GAAe,cAAc,IAAK,CAAA;AAAA,EAC7C,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,KAAO,EAAA,WAAA;AAAA,IACP,IAAA,sBAAO,aAAc,EAAA,EAAA,CAAA;AAAA,IACrB,MAAQ,EAAA,MACN,OAAO,8CAAiC,CAAE,CAAA,IAAA;AAAA,MAAK,OAC7C,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,iBAAA,EAAF,EAAoB,CAAE;AAAA;AACvC;AAEN,CAAC;AAGD,aAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,UAAA;AAAA,EACV,UAAA,EAAY,CAAC,WAAA,EAAa,YAAY;AACxC,CAAC,CAAA;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as react from 'react';
3
2
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
4
3
 
@@ -11,26 +10,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
11
10
  configInput: {};
12
11
  output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
13
12
  inputs: {};
14
- params: <TApi, TImpl extends TApi, TDeps extends {
15
- [x: string]: unknown;
16
- }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
17
- }>;
18
- "nav-item:newrelic": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
19
- kind: "nav-item";
20
- name: undefined;
21
- config: {};
22
- configInput: {};
23
- output: _backstage_frontend_plugin_api.ExtensionDataRef<{
24
- title: string;
25
- icon: _backstage_frontend_plugin_api.IconComponent;
26
- routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
27
- }, "core.nav-item.target", {}>;
28
- inputs: {};
29
- params: {
30
- title: string;
31
- icon: _backstage_frontend_plugin_api.IconComponent;
32
- routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
33
- };
13
+ params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
34
14
  }>;
35
15
  "page:newrelic": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
36
16
  kind: "page";
@@ -64,13 +44,12 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
64
44
  }>;
65
45
  };
66
46
  params: {
67
- defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
68
47
  path: string;
69
- title?: string | undefined;
70
- icon?: _backstage_frontend_plugin_api.IconElement | undefined;
71
- loader?: (() => Promise<react.JSX.Element>) | undefined;
72
- routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
73
- noHeader?: boolean | undefined;
48
+ title?: string;
49
+ icon?: _backstage_frontend_plugin_api.IconElement;
50
+ loader?: () => Promise<react.JSX.Element>;
51
+ routeRef?: _backstage_frontend_plugin_api.RouteRef;
52
+ noHeader?: boolean;
74
53
  };
75
54
  }>;
76
55
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-newrelic",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "A Backstage plugin that integrates towards New Relic",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -66,10 +66,10 @@
66
66
  "test": "backstage-cli package test"
67
67
  },
68
68
  "dependencies": {
69
- "@backstage/core-compat-api": "^0.5.8",
70
- "@backstage/core-components": "^0.18.7",
71
- "@backstage/core-plugin-api": "^1.12.3",
72
- "@backstage/frontend-plugin-api": "^0.14.1",
69
+ "@backstage/core-compat-api": "^0.5.9",
70
+ "@backstage/core-components": "^0.18.8",
71
+ "@backstage/core-plugin-api": "^1.12.4",
72
+ "@backstage/frontend-plugin-api": "^0.15.1",
73
73
  "@material-ui/core": "^4.12.2",
74
74
  "@material-ui/icons": "^4.9.1",
75
75
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -78,9 +78,9 @@
78
78
  "react-use": "^17.2.4"
79
79
  },
80
80
  "devDependencies": {
81
- "@backstage/cli": "^0.35.4",
82
- "@backstage/dev-utils": "^1.1.20",
83
- "@backstage/test-utils": "^1.7.15",
81
+ "@backstage/cli": "^0.36.0",
82
+ "@backstage/dev-utils": "^1.1.21",
83
+ "@backstage/test-utils": "^1.7.16",
84
84
  "@testing-library/dom": "^10.0.0",
85
85
  "@testing-library/jest-dom": "^6.0.0",
86
86
  "@testing-library/react": "^15.0.0",