@backstage-community/plugin-explore 0.14.1 → 0.15.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,23 @@
1
1
  # @backstage-community/plugin-explore
2
2
 
3
+ ## 0.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2982a68: Backstage version bump to v1.45.1
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [2982a68]
12
+ - @backstage-community/plugin-explore-common@0.10.0
13
+ - @backstage-community/plugin-explore-react@0.10.0
14
+
15
+ ## 0.14.2
16
+
17
+ ### Patch Changes
18
+
19
+ - b0af0e8: Added documentation for the New Frontend System
20
+
3
21
  ## 0.14.1
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -97,6 +97,33 @@ const SearchPage = () => {
97
97
  ...
98
98
  ```
99
99
 
100
+ ## New Frontend System
101
+
102
+ ### Setup
103
+
104
+ If you're using [feature discovery](https://backstage.io/docs/frontend-system/architecture/app/#feature-discovery), the plugin should be automatically discovered and enabled. Otherwise, you can manually enable the plugin by adding it to your app:
105
+
106
+ ```tsx
107
+ // packages/app/src/App.tsx
108
+ import explorePlugin from '@backstage-community/plugin-explore/alpha';
109
+
110
+ const app = createApp({
111
+ features: [
112
+ // ...
113
+ explorePlugin,
114
+ ],
115
+ });
116
+ ```
117
+
118
+ ### Extensions
119
+
120
+ The following extensions are available in the plugin:
121
+
122
+ - `api:explore`
123
+ - `page:explore`
124
+ - `nav-item:explore`
125
+ - `search-result-list-item:explore`
126
+
100
127
  ## Customization
101
128
 
102
129
  Create a custom explore page in
package/dist/alpha.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import * as React from 'react';
3
2
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
4
3
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
4
+ import * as React from 'react';
5
5
  import * as _backstage_plugin_search_react_alpha from '@backstage/plugin-search-react/alpha';
6
6
 
7
7
  /** @alpha */
8
- declare const exploreSearchResultListItem: _backstage_frontend_plugin_api.ExtensionDefinition<{
8
+ declare const exploreSearchResultListItem: _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
9
9
  kind: "search-result-list-item";
10
10
  name: undefined;
11
11
  config: {
@@ -17,6 +17,7 @@ declare const exploreSearchResultListItem: _backstage_frontend_plugin_api.Extens
17
17
  output: _backstage_frontend_plugin_api.ExtensionDataRef<{
18
18
  predicate?: _backstage_plugin_search_react_alpha.SearchResultItemExtensionPredicate | undefined;
19
19
  component: _backstage_plugin_search_react_alpha.SearchResultItemExtensionComponent;
20
+ icon?: React.JSX.Element | undefined;
20
21
  }, "search.search-result-list-item.item", {}>;
21
22
  inputs: {};
22
23
  params: _backstage_plugin_search_react_alpha.SearchResultListItemBlueprintParams;
@@ -25,7 +26,7 @@ declare const exploreSearchResultListItem: _backstage_frontend_plugin_api.Extens
25
26
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
26
27
  explore: _backstage_frontend_plugin_api.RouteRef<undefined>;
27
28
  }, {}, {
28
- "api:explore": _backstage_frontend_plugin_api.ExtensionDefinition<{
29
+ "api:explore": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
29
30
  kind: "api";
30
31
  name: undefined;
31
32
  config: {};
@@ -36,7 +37,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
36
37
  [x: string]: unknown;
37
38
  }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
38
39
  }>;
39
- "nav-item:explore": _backstage_frontend_plugin_api.ExtensionDefinition<{
40
+ "nav-item:explore": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
40
41
  kind: "nav-item";
41
42
  name: undefined;
42
43
  config: {};
@@ -53,7 +54,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
53
54
  routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
54
55
  };
55
56
  }>;
56
- "page:explore": _backstage_frontend_plugin_api.ExtensionDefinition<{
57
+ "page:explore": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
57
58
  kind: "page";
58
59
  name: undefined;
59
60
  config: {
@@ -73,7 +74,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
73
74
  routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
74
75
  };
75
76
  }>;
76
- "search-result-list-item:explore": _backstage_frontend_plugin_api.ExtensionDefinition<{
77
+ "search-result-list-item:explore": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
77
78
  kind: "search-result-list-item";
78
79
  name: undefined;
79
80
  config: {
@@ -85,6 +86,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
85
86
  output: _backstage_frontend_plugin_api.ExtensionDataRef<{
86
87
  predicate?: _backstage_plugin_search_react_alpha.SearchResultItemExtensionPredicate | undefined;
87
88
  component: _backstage_plugin_search_react_alpha.SearchResultItemExtensionComponent;
89
+ icon?: React.JSX.Element | undefined;
88
90
  }, "search.search-result-list-item.item", {}>;
89
91
  inputs: {};
90
92
  params: _backstage_plugin_search_react_alpha.SearchResultListItemBlueprintParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-explore",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "description": "A Backstage plugin for building an exploration page of your software ecosystem",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -69,18 +69,18 @@
69
69
  "test": "backstage-cli package test"
70
70
  },
71
71
  "dependencies": {
72
- "@backstage-community/plugin-explore-common": "^0.9.0",
73
- "@backstage-community/plugin-explore-react": "^0.9.0",
74
- "@backstage/catalog-client": "^1.12.0",
75
- "@backstage/catalog-model": "^1.7.5",
76
- "@backstage/core-compat-api": "^0.5.3",
77
- "@backstage/core-components": "^0.18.2",
78
- "@backstage/core-plugin-api": "^1.11.1",
72
+ "@backstage-community/plugin-explore-common": "^0.10.0",
73
+ "@backstage-community/plugin-explore-react": "^0.10.0",
74
+ "@backstage/catalog-client": "^1.12.1",
75
+ "@backstage/catalog-model": "^1.7.6",
76
+ "@backstage/core-compat-api": "^0.5.4",
77
+ "@backstage/core-components": "^0.18.3",
78
+ "@backstage/core-plugin-api": "^1.12.0",
79
79
  "@backstage/errors": "^1.2.7",
80
- "@backstage/frontend-plugin-api": "^0.12.1",
81
- "@backstage/plugin-catalog-react": "^1.21.2",
82
- "@backstage/plugin-search-common": "^1.2.20",
83
- "@backstage/plugin-search-react": "^1.9.5",
80
+ "@backstage/frontend-plugin-api": "^0.13.1",
81
+ "@backstage/plugin-catalog-react": "^1.21.3",
82
+ "@backstage/plugin-search-common": "^1.2.21",
83
+ "@backstage/plugin-search-react": "^1.10.0",
84
84
  "@material-ui/core": "^4.12.2",
85
85
  "@material-ui/icons": "^4.9.1",
86
86
  "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
@@ -89,12 +89,12 @@
89
89
  "react-use": "^17.2.4"
90
90
  },
91
91
  "devDependencies": {
92
- "@backstage/cli": "^0.34.4",
93
- "@backstage/core-app-api": "^1.19.1",
94
- "@backstage/dev-utils": "^1.1.15",
95
- "@backstage/frontend-defaults": "^0.3.2",
96
- "@backstage/plugin-catalog": "^1.31.4",
97
- "@backstage/test-utils": "^1.7.12",
92
+ "@backstage/cli": "^0.34.5",
93
+ "@backstage/core-app-api": "^1.19.2",
94
+ "@backstage/dev-utils": "^1.1.17",
95
+ "@backstage/frontend-defaults": "^0.3.3",
96
+ "@backstage/plugin-catalog": "^1.32.0",
97
+ "@backstage/test-utils": "^1.7.13",
98
98
  "@testing-library/dom": "^10.0.0",
99
99
  "@testing-library/jest-dom": "^6.0.0",
100
100
  "@testing-library/react": "^15.0.0",