@backstage-community/plugin-lighthouse 0.22.0 → 0.23.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,16 @@
1
1
  # @backstage-community/plugin-lighthouse
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - eda36eb: Backstage version bump to v1.51.1
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [eda36eb]
12
+ - @backstage-community/plugin-lighthouse-common@0.20.0
13
+
3
14
  ## 0.22.0
4
15
 
5
16
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { PageBlueprint, ApiBlueprint, configApiRef, NavItemBlueprint } from '@backstage/frontend-plugin-api';
2
+ import { PageBlueprint, ApiBlueprint, configApiRef } from '@backstage/frontend-plugin-api';
3
3
  import { compatWrapper, convertLegacyRouteRef } from '@backstage/core-compat-api';
4
4
  import { rootRouteRef } from '../plugin.esm.js';
5
5
  import { lighthouseApiRef } from '../api.esm.js';
@@ -11,6 +11,8 @@ import Highlight from '@material-ui/icons/Highlight';
11
11
  const lighthousePage = PageBlueprint.make({
12
12
  params: {
13
13
  path: "/lighthouse",
14
+ title: "Lighthouse",
15
+ icon: /* @__PURE__ */ jsx(Highlight, {}),
14
16
  routeRef: convertLegacyRouteRef(rootRouteRef),
15
17
  loader: async () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.Router, {})))
16
18
  }
@@ -24,13 +26,6 @@ const lighthouseApi = ApiBlueprint.make({
24
26
  factory: ({ configApi }) => LighthouseRestApi.fromConfig(configApi)
25
27
  })
26
28
  });
27
- const lighthouseNavItem = NavItemBlueprint.make({
28
- params: {
29
- icon: Highlight,
30
- routeRef: convertLegacyRouteRef(rootRouteRef),
31
- title: "Lighthouse"
32
- }
33
- });
34
29
  const lighthouseEntityCard = EntityCardBlueprint.make({
35
30
  name: "lighthouse",
36
31
  params: {
@@ -50,5 +45,5 @@ const lighthouseEntityContent = EntityContentBlueprint.make({
50
45
  }
51
46
  });
52
47
 
53
- export { lighthouseApi, lighthouseEntityCard, lighthouseEntityContent, lighthouseNavItem, lighthousePage };
48
+ export { lighthouseApi, lighthouseEntityCard, lighthouseEntityContent, lighthousePage };
54
49
  //# sourceMappingURL=extensions.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.esm.js","sources":["../../src/alpha/extensions.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 */\nimport {\n ApiBlueprint,\n configApiRef,\n NavItemBlueprint,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { rootRouteRef } from '../plugin';\nimport { lighthouseApiRef } from '../api';\nimport { LighthouseRestApi } from '@backstage-community/plugin-lighthouse-common';\nimport {\n EntityCardBlueprint,\n EntityContentBlueprint,\n} from '@backstage/plugin-catalog-react/alpha';\nimport { isLighthouseAvailable } from '../Router';\nimport Highlight from '@material-ui/icons/Highlight';\n\nexport const lighthousePage = PageBlueprint.make({\n params: {\n path: '/lighthouse',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: async () =>\n import('../Router').then(m => compatWrapper(<m.Router />)),\n },\n});\n\nexport const lighthouseApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: lighthouseApiRef,\n deps: {\n configApi: configApiRef,\n },\n factory: ({ configApi }) => LighthouseRestApi.fromConfig(configApi),\n }),\n});\n\nexport const lighthouseNavItem = NavItemBlueprint.make({\n params: {\n icon: Highlight,\n routeRef: convertLegacyRouteRef(rootRouteRef),\n title: 'Lighthouse',\n },\n});\n\nexport const lighthouseEntityCard = EntityCardBlueprint.make({\n name: 'lighthouse',\n params: {\n filter: isLighthouseAvailable,\n loader: async () =>\n import('../components/Cards/LastLighthouseAuditCard').then(m =>\n compatWrapper(<m.LastLighthouseAuditCard />),\n ),\n },\n});\n\nexport const lighthouseEntityContent = EntityContentBlueprint.make({\n name: 'lighthouse',\n params: {\n path: '/lighthouse',\n title: 'Lighthouse',\n filter: isLighthouseAvailable,\n loader: async () =>\n import('../Router').then(m => compatWrapper(<m.EmbeddedRouter />)),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;AAmCO,MAAM,cAAA,GAAiB,cAAc,IAAA,CAAK;AAAA,EAC/C,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,aAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAA,EAAQ,YACN,OAAO,kBAAW,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,KAAK,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,MAAA,EAAF,EAAS,CAAE,CAAC;AAAA;AAE/D,CAAC;AAEM,MAAM,aAAA,GAAgB,aAAa,IAAA,CAAK;AAAA,EAC7C,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,gBAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,SAAA,EAAW;AAAA,KACb;AAAA,IACA,SAAS,CAAC,EAAE,WAAU,KAAM,iBAAA,CAAkB,WAAW,SAAS;AAAA,GACnE;AACL,CAAC;AAEM,MAAM,iBAAA,GAAoB,iBAAiB,IAAA,CAAK;AAAA,EACrD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,SAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,KAAA,EAAO;AAAA;AAEX,CAAC;AAEM,MAAM,oBAAA,GAAuB,oBAAoB,IAAA,CAAK;AAAA,EAC3D,IAAA,EAAM,YAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,MAAA,EAAQ,qBAAA;AAAA,IACR,MAAA,EAAQ,YACN,OAAO,oDAA6C,CAAA,CAAE,IAAA;AAAA,MAAK,OACzD,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,uBAAA,EAAF,EAA0B,CAAE;AAAA;AAC7C;AAEN,CAAC;AAEM,MAAM,uBAAA,GAA0B,uBAAuB,IAAA,CAAK;AAAA,EACjE,IAAA,EAAM,YAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,aAAA;AAAA,IACN,KAAA,EAAO,YAAA;AAAA,IACP,MAAA,EAAQ,qBAAA;AAAA,IACR,MAAA,EAAQ,YACN,OAAO,kBAAW,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,KAAK,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,cAAA,EAAF,EAAiB,CAAE,CAAC;AAAA;AAEvE,CAAC;;;;"}
1
+ {"version":3,"file":"extensions.esm.js","sources":["../../src/alpha/extensions.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 */\nimport {\n ApiBlueprint,\n configApiRef,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { rootRouteRef } from '../plugin';\nimport { lighthouseApiRef } from '../api';\nimport { LighthouseRestApi } from '@backstage-community/plugin-lighthouse-common';\nimport {\n EntityCardBlueprint,\n EntityContentBlueprint,\n} from '@backstage/plugin-catalog-react/alpha';\nimport { isLighthouseAvailable } from '../Router';\nimport Highlight from '@material-ui/icons/Highlight';\n\nexport const lighthousePage = PageBlueprint.make({\n params: {\n path: '/lighthouse',\n title: 'Lighthouse',\n icon: <Highlight />,\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: async () =>\n import('../Router').then(m => compatWrapper(<m.Router />)),\n },\n});\n\nexport const lighthouseApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: lighthouseApiRef,\n deps: {\n configApi: configApiRef,\n },\n factory: ({ configApi }) => LighthouseRestApi.fromConfig(configApi),\n }),\n});\n\nexport const lighthouseEntityCard = EntityCardBlueprint.make({\n name: 'lighthouse',\n params: {\n filter: isLighthouseAvailable,\n loader: async () =>\n import('../components/Cards/LastLighthouseAuditCard').then(m =>\n compatWrapper(<m.LastLighthouseAuditCard />),\n ),\n },\n});\n\nexport const lighthouseEntityContent = EntityContentBlueprint.make({\n name: 'lighthouse',\n params: {\n path: '/lighthouse',\n title: 'Lighthouse',\n filter: isLighthouseAvailable,\n loader: async () =>\n import('../Router').then(m => compatWrapper(<m.EmbeddedRouter />)),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;AAkCO,MAAM,cAAA,GAAiB,cAAc,IAAA,CAAK;AAAA,EAC/C,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,aAAA;AAAA,IACN,KAAA,EAAO,YAAA;AAAA,IACP,IAAA,sBAAO,SAAA,EAAA,EAAU,CAAA;AAAA,IACjB,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAA,EAAQ,YACN,OAAO,kBAAW,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,KAAK,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,MAAA,EAAF,EAAS,CAAE,CAAC;AAAA;AAE/D,CAAC;AAEM,MAAM,aAAA,GAAgB,aAAa,IAAA,CAAK;AAAA,EAC7C,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,gBAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,SAAA,EAAW;AAAA,KACb;AAAA,IACA,SAAS,CAAC,EAAE,WAAU,KAAM,iBAAA,CAAkB,WAAW,SAAS;AAAA,GACnE;AACL,CAAC;AAEM,MAAM,oBAAA,GAAuB,oBAAoB,IAAA,CAAK;AAAA,EAC3D,IAAA,EAAM,YAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,MAAA,EAAQ,qBAAA;AAAA,IACR,MAAA,EAAQ,YACN,OAAO,oDAA6C,CAAA,CAAE,IAAA;AAAA,MAAK,OACzD,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,uBAAA,EAAF,EAA0B,CAAE;AAAA;AAC7C;AAEN,CAAC;AAEM,MAAM,uBAAA,GAA0B,uBAAuB,IAAA,CAAK;AAAA,EACjE,IAAA,EAAM,YAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,aAAA;AAAA,IACN,KAAA,EAAO,YAAA;AAAA,IACP,MAAA,EAAQ,qBAAA;AAAA,IACR,MAAA,EAAQ,YACN,OAAO,kBAAW,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,KAAK,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,cAAA,EAAF,EAAiB,CAAE,CAAC;AAAA;AAEvE,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
2
- import { lighthousePage, lighthouseApi, lighthouseEntityCard, lighthouseNavItem, lighthouseEntityContent } from './extensions.esm.js';
2
+ import { lighthousePage, lighthouseApi, lighthouseEntityCard, lighthouseEntityContent } from './extensions.esm.js';
3
3
 
4
4
  const lighthousePlugin = createFrontendPlugin({
5
5
  pluginId: "lighthouse",
@@ -7,7 +7,6 @@ const lighthousePlugin = createFrontendPlugin({
7
7
  lighthousePage,
8
8
  lighthouseApi,
9
9
  lighthouseEntityCard,
10
- lighthouseNavItem,
11
10
  lighthouseEntityContent
12
11
  ]
13
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.ts"],"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 */\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n lighthouseApi,\n lighthouseEntityCard,\n lighthouseEntityContent,\n lighthouseNavItem,\n lighthousePage,\n} from './extensions';\n\n/**\n * @alpha\n */\nexport const lighthousePlugin = createFrontendPlugin({\n pluginId: 'lighthouse',\n extensions: [\n lighthousePage,\n lighthouseApi,\n lighthouseEntityCard,\n lighthouseNavItem,\n lighthouseEntityContent,\n ],\n});\n"],"names":[],"mappings":";;;AA2BO,MAAM,mBAAmB,oBAAA,CAAqB;AAAA,EACnD,QAAA,EAAU,YAAA;AAAA,EACV,UAAA,EAAY;AAAA,IACV,cAAA;AAAA,IACA,aAAA;AAAA,IACA,oBAAA;AAAA,IACA,iBAAA;AAAA,IACA;AAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.ts"],"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 */\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n lighthouseApi,\n lighthouseEntityCard,\n lighthouseEntityContent,\n lighthousePage,\n} from './extensions';\n\n/**\n * @alpha\n */\nexport const lighthousePlugin = createFrontendPlugin({\n pluginId: 'lighthouse',\n extensions: [\n lighthousePage,\n lighthouseApi,\n lighthouseEntityCard,\n lighthouseEntityContent,\n ],\n});\n"],"names":[],"mappings":";;;AA0BO,MAAM,mBAAmB,oBAAA,CAAqB;AAAA,EACnD,QAAA,EAAU,YAAA;AAAA,EACV,UAAA,EAAY;AAAA,IACV,cAAA;AAAA,IACA,aAAA;AAAA,IACA,oBAAA;AAAA,IACA;AAAA;AAEJ,CAAC;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -84,27 +84,6 @@ declare const lighthousePlugin: _backstage_frontend_plugin_api.OverridableFronte
84
84
  filter?: string | _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
85
85
  };
86
86
  }>;
87
- "nav-item:lighthouse": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
88
- kind: "nav-item";
89
- name: undefined;
90
- config: {
91
- title: string | undefined;
92
- };
93
- configInput: {
94
- title?: string | undefined;
95
- };
96
- output: _backstage_frontend_plugin_api.ExtensionDataRef<{
97
- title: string;
98
- icon: _backstage_frontend_plugin_api.IconComponent;
99
- routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
100
- }, "core.nav-item.target", {}>;
101
- inputs: {};
102
- params: {
103
- title: string;
104
- icon: _backstage_frontend_plugin_api.IconComponent;
105
- routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
106
- };
107
- }>;
108
87
  "page:lighthouse": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
109
88
  kind: "page";
110
89
  name: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-lighthouse",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "A Backstage plugin that integrates towards Lighthouse",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -68,13 +68,13 @@
68
68
  "test": "backstage-cli package test"
69
69
  },
70
70
  "dependencies": {
71
- "@backstage-community/plugin-lighthouse-common": "^0.19.0",
72
- "@backstage/catalog-model": "^1.8.0",
73
- "@backstage/core-compat-api": "^0.5.10",
74
- "@backstage/core-components": "^0.18.9",
75
- "@backstage/core-plugin-api": "^1.12.5",
76
- "@backstage/frontend-plugin-api": "^0.16.2",
77
- "@backstage/plugin-catalog-react": "^2.1.4",
71
+ "@backstage-community/plugin-lighthouse-common": "^0.20.0",
72
+ "@backstage/catalog-model": "^1.9.0",
73
+ "@backstage/core-compat-api": "^0.5.11",
74
+ "@backstage/core-components": "^0.18.10",
75
+ "@backstage/core-plugin-api": "^1.12.6",
76
+ "@backstage/frontend-plugin-api": "^0.17.1",
77
+ "@backstage/plugin-catalog-react": "^3.0.0",
78
78
  "@material-ui/core": "^4.12.2",
79
79
  "@material-ui/icons": "^4.9.1",
80
80
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -82,12 +82,12 @@
82
82
  "react-use": "^17.2.4"
83
83
  },
84
84
  "devDependencies": {
85
- "@backstage/cli": "^0.36.1",
86
- "@backstage/core-app-api": "^1.20.0",
87
- "@backstage/frontend-defaults": "^0.5.1",
88
- "@backstage/frontend-test-utils": "^0.5.2",
89
- "@backstage/plugin-catalog": "^2.0.4",
90
- "@backstage/test-utils": "^1.7.17",
85
+ "@backstage/cli": "^0.36.2",
86
+ "@backstage/core-app-api": "^1.20.1",
87
+ "@backstage/frontend-defaults": "^0.5.2",
88
+ "@backstage/frontend-test-utils": "^0.6.0",
89
+ "@backstage/plugin-catalog": "^2.0.5",
90
+ "@backstage/test-utils": "^1.7.18",
91
91
  "@testing-library/jest-dom": "^6.0.0",
92
92
  "@testing-library/react": "^15.0.0",
93
93
  "@types/react-dom": "^18.2.19",