@backstage-community/plugin-lighthouse 0.18.1 → 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,27 @@
1
1
  # @backstage-community/plugin-lighthouse
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c69f1ec: Backstage version bump to v1.49.2
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [c69f1ec]
12
+ - @backstage-community/plugin-lighthouse-common@0.17.0
13
+
14
+ ## 0.19.0
15
+
16
+ ### Minor Changes
17
+
18
+ - accd69f: Backstage version bump to v1.48.2
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [accd69f]
23
+ - @backstage-community/plugin-lighthouse-common@0.16.0
24
+
3
25
  ## 0.18.1
4
26
 
5
27
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
2
2
  import * as _backstage_catalog_model from '@backstage/catalog-model';
3
3
  import * as react from 'react';
4
- import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
4
+ import * as _backstage_filter_predicates from '@backstage/filter-predicates';
5
5
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
6
6
 
7
7
  /**
@@ -15,20 +15,18 @@ declare const lighthousePlugin: _backstage_frontend_plugin_api.OverridableFronte
15
15
  configInput: {};
16
16
  output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
17
17
  inputs: {};
18
- params: <TApi, TImpl extends TApi, TDeps extends {
19
- [x: string]: unknown;
20
- }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
18
+ 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>;
21
19
  }>;
22
20
  "entity-card:lighthouse/lighthouse": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
23
21
  kind: "entity-card";
24
22
  name: "lighthouse";
25
23
  config: {
26
- filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
27
- type: "content" | "summary" | "info" | undefined;
24
+ filter: _backstage_filter_predicates.FilterPredicate | undefined;
25
+ type: "content" | "info" | undefined;
28
26
  };
29
27
  configInput: {
30
- filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
31
- type?: "content" | "summary" | "info" | undefined;
28
+ filter?: _backstage_filter_predicates.FilterPredicate | undefined;
29
+ type?: "content" | "info" | undefined;
32
30
  };
33
31
  output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
34
32
  optional: true;
@@ -40,8 +38,8 @@ declare const lighthousePlugin: _backstage_frontend_plugin_api.OverridableFronte
40
38
  inputs: {};
41
39
  params: {
42
40
  loader: () => Promise<JSX.Element>;
43
- filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
44
- type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
41
+ filter?: string | _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
42
+ type?: _backstage_plugin_catalog_react_alpha.EntityCardType;
45
43
  };
46
44
  }>;
47
45
  "entity-content:lighthouse/lighthouse": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
@@ -50,14 +48,16 @@ declare const lighthousePlugin: _backstage_frontend_plugin_api.OverridableFronte
50
48
  config: {
51
49
  path: string | undefined;
52
50
  title: string | undefined;
53
- filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
51
+ filter: _backstage_filter_predicates.FilterPredicate | undefined;
54
52
  group: string | false | undefined;
53
+ icon: string | undefined;
55
54
  };
56
55
  configInput: {
57
- filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
56
+ filter?: _backstage_filter_predicates.FilterPredicate | undefined;
58
57
  title?: string | undefined;
59
58
  path?: string | undefined;
60
59
  group?: string | false | undefined;
60
+ icon?: string | undefined;
61
61
  };
62
62
  output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
63
63
  optional: true;
@@ -67,18 +67,21 @@ declare const lighthousePlugin: _backstage_frontend_plugin_api.OverridableFronte
67
67
  optional: true;
68
68
  }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
69
69
  optional: true;
70
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<string | react.ReactElement<any, string | react.JSXElementConstructor<any>>, "catalog.entity-content-icon", {
71
+ optional: true;
70
72
  }>;
71
73
  inputs: {};
72
74
  params: {
73
- defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
75
+ defaultPath?: [Error: `Use the 'path' param instead`];
74
76
  path: string;
75
- defaultTitle?: [Error: "Use the 'title' param instead"] | undefined;
77
+ defaultTitle?: [Error: `Use the 'title' param instead`];
76
78
  title: string;
77
- defaultGroup?: [Error: "Use the 'group' param instead"] | undefined;
78
- group?: (string & {}) | "development" | "deployment" | "overview" | "documentation" | "operation" | "observability" | undefined;
79
+ defaultGroup?: [Error: `Use the 'group' param instead`];
80
+ group?: ("development" | "deployment" | "overview" | "documentation" | "operation" | "observability") | (string & {});
81
+ icon?: string | react.ReactElement;
79
82
  loader: () => Promise<JSX.Element>;
80
- routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
81
- filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
83
+ routeRef?: _backstage_frontend_plugin_api.RouteRef;
84
+ filter?: string | _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
82
85
  };
83
86
  }>;
84
87
  "nav-item:lighthouse": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
@@ -103,19 +106,39 @@ declare const lighthousePlugin: _backstage_frontend_plugin_api.OverridableFronte
103
106
  name: undefined;
104
107
  config: {
105
108
  path: string | undefined;
109
+ title: string | undefined;
106
110
  };
107
111
  configInput: {
112
+ title?: string | undefined;
108
113
  path?: string | undefined;
109
114
  };
110
115
  output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
111
116
  optional: true;
117
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
118
+ optional: true;
119
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
120
+ optional: true;
112
121
  }>;
113
- inputs: {};
122
+ inputs: {
123
+ pages: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
124
+ optional: true;
125
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
126
+ optional: true;
127
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
128
+ optional: true;
129
+ }>, {
130
+ singleton: false;
131
+ optional: false;
132
+ internal: false;
133
+ }>;
134
+ };
114
135
  params: {
115
- defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
116
136
  path: string;
117
- loader: () => Promise<JSX.Element>;
118
- routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
137
+ title?: string;
138
+ icon?: _backstage_frontend_plugin_api.IconElement;
139
+ loader?: () => Promise<react.JSX.Element>;
140
+ routeRef?: _backstage_frontend_plugin_api.RouteRef;
141
+ noHeader?: boolean;
119
142
  };
120
143
  }>;
121
144
  }>;
package/dist/index.d.ts CHANGED
@@ -17,8 +17,8 @@ declare const LighthousePage: () => react_jsx_runtime.JSX.Element;
17
17
  declare const EntityLighthouseContent: () => react_jsx_runtime.JSX.Element;
18
18
  /** @public */
19
19
  declare const EntityLastLighthouseAuditCard: (props: {
20
- dense?: boolean | undefined;
21
- variant?: _backstage_core_components.InfoCardVariants | undefined;
20
+ dense?: boolean;
21
+ variant?: _backstage_core_components.InfoCardVariants;
22
22
  }) => react_jsx_runtime.JSX.Element;
23
23
 
24
24
  /** @public */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-lighthouse",
3
- "version": "0.18.1",
3
+ "version": "0.20.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.15.1",
72
- "@backstage/catalog-model": "^1.7.6",
73
- "@backstage/core-compat-api": "^0.5.7",
74
- "@backstage/core-components": "^0.18.6",
75
- "@backstage/core-plugin-api": "^1.12.2",
76
- "@backstage/frontend-plugin-api": "^0.13.4",
77
- "@backstage/plugin-catalog-react": "^1.21.6",
71
+ "@backstage-community/plugin-lighthouse-common": "^0.17.0",
72
+ "@backstage/catalog-model": "^1.7.7",
73
+ "@backstage/core-compat-api": "^0.5.9",
74
+ "@backstage/core-components": "^0.18.8",
75
+ "@backstage/core-plugin-api": "^1.12.4",
76
+ "@backstage/frontend-plugin-api": "^0.15.1",
77
+ "@backstage/plugin-catalog-react": "^2.1.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,11 +82,12 @@
82
82
  "react-use": "^17.2.4"
83
83
  },
84
84
  "devDependencies": {
85
- "@backstage/cli": "^0.35.3",
86
- "@backstage/core-app-api": "^1.19.4",
87
- "@backstage/frontend-defaults": "^0.3.6",
88
- "@backstage/plugin-catalog": "^1.32.2",
89
- "@backstage/test-utils": "^1.7.14",
85
+ "@backstage/cli": "^0.36.0",
86
+ "@backstage/core-app-api": "^1.19.6",
87
+ "@backstage/frontend-defaults": "^0.5.0",
88
+ "@backstage/frontend-test-utils": "^0.5.1",
89
+ "@backstage/plugin-catalog": "^2.0.1",
90
+ "@backstage/test-utils": "^1.7.16",
90
91
  "@testing-library/jest-dom": "^6.0.0",
91
92
  "@testing-library/react": "^15.0.0",
92
93
  "@types/react-dom": "^18.2.19",