@backstage-community/plugin-explore 0.4.21
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 +2283 -0
- package/README.md +148 -0
- package/alpha/package.json +7 -0
- package/dist/alpha.d.ts +10 -0
- package/dist/alpha.esm.js +16 -0
- package/dist/alpha.esm.js.map +1 -0
- package/dist/esm/GroupsExplorerContent-D_QfaGTY.esm.js +211 -0
- package/dist/esm/GroupsExplorerContent-D_QfaGTY.esm.js.map +1 -0
- package/dist/esm/ToolExplorerContent-DzMkzhod.esm.js +102 -0
- package/dist/esm/ToolExplorerContent-DzMkzhod.esm.js.map +1 -0
- package/dist/esm/index-B_Dn9qT_.esm.js +12 -0
- package/dist/esm/index-B_Dn9qT_.esm.js.map +1 -0
- package/dist/esm/index-CeOO34TY.esm.js +49 -0
- package/dist/esm/index-CeOO34TY.esm.js.map +1 -0
- package/dist/esm/index-Cz8p9vYj.esm.js +55 -0
- package/dist/esm/index-Cz8p9vYj.esm.js.map +1 -0
- package/dist/esm/index-DBoY59Wh.esm.js +65 -0
- package/dist/esm/index-DBoY59Wh.esm.js.map +1 -0
- package/dist/esm/index-DVlrZV4C.esm.js +23 -0
- package/dist/esm/index-DVlrZV4C.esm.js.map +1 -0
- package/dist/esm/index-DrIeHaZd.esm.js +280 -0
- package/dist/esm/index-DrIeHaZd.esm.js.map +1 -0
- package/dist/index.d.ts +153 -0
- package/dist/index.esm.js +19 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +91 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
|
+
import { DiscoveryApi, FetchApi } from '@backstage/core-plugin-api';
|
|
4
|
+
import { GetExploreToolsRequest, GetExploreToolsResponse } from '@backstage-community/plugin-explore-common';
|
|
5
|
+
import { ExploreToolsConfig } from '@backstage-community/plugin-explore-react';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import React__default, { ReactNode } from 'react';
|
|
8
|
+
import { TabProps } from '@material-ui/core/Tab';
|
|
9
|
+
import { DomainEntity } from '@backstage/catalog-model';
|
|
10
|
+
import * as _backstage_core_components from '@backstage/core-components';
|
|
11
|
+
import { SearchResultListItemExtensionProps } from '@backstage/plugin-search-react';
|
|
12
|
+
import { IndexableDocument, ResultHighlight } from '@backstage/plugin-search-common';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Interface for the explore plugin.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
interface ExploreApi {
|
|
20
|
+
/**
|
|
21
|
+
* Returns a list of explore tools.
|
|
22
|
+
*
|
|
23
|
+
* @param request - The request query options
|
|
24
|
+
*/
|
|
25
|
+
getTools(request?: GetExploreToolsRequest): Promise<GetExploreToolsResponse>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
declare const exploreApiRef: _backstage_core_plugin_api.ApiRef<ExploreApi>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Default implementation of the {@link ExploreApi}.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
declare class ExploreClient implements ExploreApi {
|
|
38
|
+
private readonly discoveryApi;
|
|
39
|
+
private readonly fetchApi;
|
|
40
|
+
private readonly exploreToolsConfig;
|
|
41
|
+
/**
|
|
42
|
+
* @remarks
|
|
43
|
+
*
|
|
44
|
+
* The `exploreToolsConfig` is for backwards compatibility with the `exploreToolsConfigRef`•
|
|
45
|
+
* and will be removed in the future.
|
|
46
|
+
*/
|
|
47
|
+
constructor(options: {
|
|
48
|
+
discoveryApi: DiscoveryApi;
|
|
49
|
+
fetchApi: FetchApi;
|
|
50
|
+
exploreToolsConfig?: ExploreToolsConfig;
|
|
51
|
+
});
|
|
52
|
+
getTools(request?: GetExploreToolsRequest): Promise<GetExploreToolsResponse>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @public */
|
|
56
|
+
declare const CatalogKindExploreContent: (props: {
|
|
57
|
+
title?: string;
|
|
58
|
+
kind: string;
|
|
59
|
+
}) => React__default.JSX.Element;
|
|
60
|
+
|
|
61
|
+
/** @public */
|
|
62
|
+
type SubRoute = {
|
|
63
|
+
path: string;
|
|
64
|
+
title: string;
|
|
65
|
+
children: JSX.Element;
|
|
66
|
+
tabProps?: TabProps<React__default.ElementType, {
|
|
67
|
+
component?: React__default.ElementType;
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
70
|
+
/** @public */
|
|
71
|
+
type ExploreLayoutProps = {
|
|
72
|
+
title?: string;
|
|
73
|
+
subtitle?: string;
|
|
74
|
+
children?: React__default.ReactNode;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Explore is a compound component, which allows you to define a custom layout
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```jsx
|
|
81
|
+
* <ExploreLayout title="Explore ACME's ecosystem">
|
|
82
|
+
* <ExploreLayout.Route path="/example" title="Example tab">
|
|
83
|
+
* <div>This is rendered under /example/anything-here route</div>
|
|
84
|
+
* </ExploreLayout.Route>
|
|
85
|
+
* </ExploreLayout>
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
declare const ExploreLayout: {
|
|
91
|
+
(props: ExploreLayoutProps): React__default.JSX.Element;
|
|
92
|
+
Route: (props: SubRoute) => null;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** @public */
|
|
96
|
+
declare const DomainCard: (props: {
|
|
97
|
+
entity: DomainEntity;
|
|
98
|
+
}) => React__default.JSX.Element;
|
|
99
|
+
|
|
100
|
+
/** @public */
|
|
101
|
+
declare const ExplorePage: () => React.JSX.Element;
|
|
102
|
+
/** @public */
|
|
103
|
+
declare const DomainExplorerContent: (props: {
|
|
104
|
+
title?: string | undefined;
|
|
105
|
+
}) => React.JSX.Element;
|
|
106
|
+
/** @public */
|
|
107
|
+
declare const GroupsExplorerContent: (props: {
|
|
108
|
+
title?: string | undefined;
|
|
109
|
+
direction?: _backstage_core_components.DependencyGraphTypes.Direction | undefined;
|
|
110
|
+
}) => React.JSX.Element;
|
|
111
|
+
/** @public */
|
|
112
|
+
declare const ToolExplorerContent: (props: {
|
|
113
|
+
title?: string | undefined;
|
|
114
|
+
}) => React.JSX.Element;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Props for {@link ToolSearchResultListItem}.
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
interface ToolSearchResultListItemProps {
|
|
122
|
+
icon?: ReactNode | ((result: IndexableDocument) => ReactNode);
|
|
123
|
+
result?: IndexableDocument;
|
|
124
|
+
highlight?: ResultHighlight;
|
|
125
|
+
rank?: number;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** @public */
|
|
129
|
+
declare const explorePlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
130
|
+
explore: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
131
|
+
}, {
|
|
132
|
+
catalogEntity: _backstage_core_plugin_api.ExternalRouteRef<{
|
|
133
|
+
name: string;
|
|
134
|
+
kind: string;
|
|
135
|
+
namespace: string;
|
|
136
|
+
}, true>;
|
|
137
|
+
}, {}>;
|
|
138
|
+
/** @public */
|
|
139
|
+
declare const ToolSearchResultListItem: (props: SearchResultListItemExtensionProps<ToolSearchResultListItemProps>) => JSX.Element | null;
|
|
140
|
+
|
|
141
|
+
/** @public */
|
|
142
|
+
declare const exploreRouteRef: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated This route is no longer used and can be removed
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
declare const catalogEntityRouteRef: _backstage_core_plugin_api.ExternalRouteRef<{
|
|
148
|
+
name: string;
|
|
149
|
+
kind: string;
|
|
150
|
+
namespace: string;
|
|
151
|
+
}, true>;
|
|
152
|
+
|
|
153
|
+
export { CatalogKindExploreContent, DomainCard, DomainExplorerContent, type ExploreApi, ExploreClient, ExploreLayout, type ExploreLayoutProps, ExplorePage, GroupsExplorerContent, type SubRoute, ToolExplorerContent, ToolSearchResultListItem, type ToolSearchResultListItemProps, catalogEntityRouteRef, exploreApiRef, explorePlugin, exploreRouteRef, explorePlugin as plugin };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { C as CatalogKindExploreContent, D as DomainCard, f as DomainExplorerContent, c as ExploreClient, a as ExploreLayout, d as ExplorePage, G as GroupsExplorerContent, g as ToolExplorerContent, T as ToolSearchResultListItem, i as catalogEntityRouteRef, e as exploreApiRef, b as explorePlugin, h as exploreRouteRef, b as plugin } from './esm/index-DrIeHaZd.esm.js';
|
|
2
|
+
import '@backstage/errors';
|
|
3
|
+
import '@backstage/core-plugin-api';
|
|
4
|
+
import '@backstage/plugin-catalog-react';
|
|
5
|
+
import '@material-ui/core/Button';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'react-use/esm/useAsync';
|
|
8
|
+
import '@backstage/catalog-model';
|
|
9
|
+
import '@material-ui/core/Box';
|
|
10
|
+
import '@material-ui/core/Card';
|
|
11
|
+
import '@material-ui/core/CardActions';
|
|
12
|
+
import '@material-ui/core/CardContent';
|
|
13
|
+
import '@material-ui/core/CardMedia';
|
|
14
|
+
import '@material-ui/core/Chip';
|
|
15
|
+
import '@backstage/core-components';
|
|
16
|
+
import 'pluralize';
|
|
17
|
+
import '@backstage-community/plugin-explore-react';
|
|
18
|
+
import '@backstage/plugin-search-react';
|
|
19
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@backstage-community/plugin-explore",
|
|
3
|
+
"version": "0.4.21",
|
|
4
|
+
"description": "A Backstage plugin for building an exploration page of your software ecosystem",
|
|
5
|
+
"backstage": {
|
|
6
|
+
"role": "frontend-plugin"
|
|
7
|
+
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"backstage"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://backstage.io",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/backstage/community-plugins",
|
|
18
|
+
"directory": "workspaces/explore/plugins/explore"
|
|
19
|
+
},
|
|
20
|
+
"license": "Apache-2.0",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.esm.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.esm.js"
|
|
27
|
+
},
|
|
28
|
+
"./alpha": {
|
|
29
|
+
"import": "./dist/alpha.esm.js",
|
|
30
|
+
"types": "./dist/alpha.d.ts",
|
|
31
|
+
"default": "./dist/alpha.esm.js"
|
|
32
|
+
},
|
|
33
|
+
"./package.json": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
"main": "./dist/index.esm.js",
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"alpha"
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "backstage-cli package build",
|
|
43
|
+
"clean": "backstage-cli package clean",
|
|
44
|
+
"lint": "backstage-cli package lint",
|
|
45
|
+
"prepack": "backstage-cli package prepack",
|
|
46
|
+
"postpack": "backstage-cli package postpack",
|
|
47
|
+
"start": "backstage-cli package start",
|
|
48
|
+
"test": "backstage-cli package test"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@backstage-community/plugin-explore-common": "^0.0.3",
|
|
52
|
+
"@backstage-community/plugin-explore-react": "^0.0.39",
|
|
53
|
+
"@backstage/catalog-model": "^1.4.5",
|
|
54
|
+
"@backstage/core-components": "^0.14.4",
|
|
55
|
+
"@backstage/core-plugin-api": "^1.9.2",
|
|
56
|
+
"@backstage/errors": "^1.2.4",
|
|
57
|
+
"@backstage/frontend-plugin-api": "^0.6.4",
|
|
58
|
+
"@backstage/plugin-catalog-react": "^1.11.3",
|
|
59
|
+
"@backstage/plugin-search-common": "^1.2.11",
|
|
60
|
+
"@backstage/plugin-search-react": "^1.7.10",
|
|
61
|
+
"@material-ui/core": "^4.12.2",
|
|
62
|
+
"@material-ui/icons": "^4.9.1",
|
|
63
|
+
"@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
64
|
+
"classnames": "^2.2.6",
|
|
65
|
+
"pluralize": "^8.0.0",
|
|
66
|
+
"react-use": "^17.2.4"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@backstage/cli": "^0.26.3",
|
|
70
|
+
"@backstage/core-app-api": "^1.12.4",
|
|
71
|
+
"@backstage/dev-utils": "^1.0.31",
|
|
72
|
+
"@backstage/plugin-catalog": "^1.19.0",
|
|
73
|
+
"@backstage/test-utils": "^1.5.4",
|
|
74
|
+
"@testing-library/dom": "^10.0.0",
|
|
75
|
+
"@testing-library/jest-dom": "^6.0.0",
|
|
76
|
+
"@testing-library/react": "^15.0.0",
|
|
77
|
+
"@types/pluralize": "^0.0.33",
|
|
78
|
+
"@types/react-dom": "^18.2.19",
|
|
79
|
+
"canvas": "^2.11.2",
|
|
80
|
+
"msw": "^1.0.0",
|
|
81
|
+
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
82
|
+
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
83
|
+
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
87
|
+
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
88
|
+
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
89
|
+
},
|
|
90
|
+
"module": "./dist/index.esm.js"
|
|
91
|
+
}
|