@backstage-community/plugin-explore 0.18.0 → 1.0.1

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/alpha.d.ts +0 -21
  3. package/dist/alpha.esm.js +11 -15
  4. package/dist/alpha.esm.js.map +1 -1
  5. package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js +3 -4
  6. package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js.map +1 -1
  7. package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js +5 -12
  8. package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js.map +1 -1
  9. package/dist/components/DomainCard/DomainCard.esm.js +6 -11
  10. package/dist/components/DomainCard/DomainCard.esm.js.map +1 -1
  11. package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js +3 -4
  12. package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js.map +1 -1
  13. package/dist/components/EntityCard/EntityCard.esm.js +14 -13
  14. package/dist/components/EntityCard/EntityCard.esm.js.map +1 -1
  15. package/dist/components/ExploreLayout/ExploreLayout.esm.js +43 -15
  16. package/dist/components/ExploreLayout/ExploreLayout.esm.js.map +1 -1
  17. package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js +17 -79
  18. package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js.map +1 -1
  19. package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js +8 -0
  20. package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js.map +1 -0
  21. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js +2 -13
  22. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js.map +1 -1
  23. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js +8 -0
  24. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js.map +1 -0
  25. package/dist/components/ToolCard/ToolCard.esm.js +18 -60
  26. package/dist/components/ToolCard/ToolCard.esm.js.map +1 -1
  27. package/dist/components/ToolCard/ToolCard.module.css.esm.js +8 -0
  28. package/dist/components/ToolCard/ToolCard.module.css.esm.js.map +1 -0
  29. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js +25 -47
  30. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js.map +1 -1
  31. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js +8 -0
  32. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js.map +1 -0
  33. package/dist/index.d.ts +18 -12
  34. package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js +29 -0
  35. package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js.map +1 -0
  36. package/package.json +22 -22
package/dist/index.d.ts CHANGED
@@ -3,8 +3,7 @@ import { DiscoveryApi, FetchApi } from '@backstage/core-plugin-api';
3
3
  import { GetExploreToolsRequest, GetExploreToolsResponse } from '@backstage-community/plugin-explore-common';
4
4
  import { ExploreToolsConfig } from '@backstage-community/plugin-explore-react';
5
5
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
6
- import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { TabProps } from '@material-ui/core/Tab';
6
+ import * as react from 'react';
8
7
  import react__default, { ReactNode } from 'react';
9
8
  import { DomainEntity } from '@backstage/catalog-model';
10
9
  import * as _backstage_core_components from '@backstage/core-components';
@@ -56,20 +55,27 @@ declare class ExploreClient implements ExploreApi {
56
55
  declare const CatalogKindExploreContent: (props: {
57
56
  title?: string;
58
57
  kind: string;
59
- }) => react_jsx_runtime.JSX.Element;
58
+ }) => react.JSX.Element;
60
59
 
61
60
  /** @public */
62
61
  type SubRoute = {
63
62
  path: string;
64
63
  title: string;
65
64
  children: JSX.Element;
66
- tabProps?: TabProps<react__default.ElementType, {
67
- component?: react__default.ElementType;
68
- }>;
65
+ /**
66
+ * @deprecated The Backstage UI `PluginHeader` does not forward extra MUI tab
67
+ * props. This field is kept for backwards compatibility but is no longer
68
+ * used.
69
+ */
70
+ tabProps?: Record<string, unknown>;
69
71
  };
70
72
  /** @public */
71
73
  type ExploreLayoutProps = {
72
74
  title?: string;
75
+ /**
76
+ * @deprecated The Backstage UI `PluginHeader` does not render a subtitle.
77
+ * This prop is kept for backwards compatibility but is no longer displayed.
78
+ */
73
79
  subtitle?: string;
74
80
  children?: react__default.ReactNode;
75
81
  };
@@ -88,32 +94,32 @@ type ExploreLayoutProps = {
88
94
  * @public
89
95
  */
90
96
  declare const ExploreLayout: {
91
- (props: ExploreLayoutProps): react_jsx_runtime.JSX.Element;
97
+ (props: ExploreLayoutProps): react__default.JSX.Element;
92
98
  Route: (props: SubRoute) => null;
93
99
  };
94
100
 
95
101
  /** @public */
96
102
  declare const DomainCard: (props: {
97
103
  entity: DomainEntity;
98
- }) => react_jsx_runtime.JSX.Element;
104
+ }) => react.JSX.Element;
99
105
 
100
106
  /** @public */
101
- declare const ExplorePage: () => react_jsx_runtime.JSX.Element;
107
+ declare const ExplorePage: () => react.JSX.Element;
102
108
  /** @public */
103
109
  declare const DomainExplorerContent: (props: {
104
110
  title?: string;
105
- }) => react_jsx_runtime.JSX.Element;
111
+ }) => react.JSX.Element;
106
112
  /** @public */
107
113
  declare const GroupsExplorerContent: (props: {
108
114
  title?: string;
109
115
  direction?: _backstage_core_components.DependencyGraphTypes.Direction;
110
116
  hideChildren?: boolean;
111
117
  namespace?: string;
112
- }) => react_jsx_runtime.JSX.Element;
118
+ }) => react.JSX.Element;
113
119
  /** @public */
114
120
  declare const ToolExplorerContent: (props: {
115
121
  title?: string;
116
- }) => react_jsx_runtime.JSX.Element;
122
+ }) => react.JSX.Element;
117
123
 
118
124
  /**
119
125
  * Props for {@link ToolSearchResultListItem}.
@@ -0,0 +1,29 @@
1
+ function styleInject(css, ref) {
2
+ if ( ref === void 0 ) ref = {};
3
+ var insertAt = ref.insertAt;
4
+
5
+ if (!css || typeof document === 'undefined') { return; }
6
+
7
+ var head = document.head || document.getElementsByTagName('head')[0];
8
+ var style = document.createElement('style');
9
+ style.type = 'text/css';
10
+
11
+ if (insertAt === 'top') {
12
+ if (head.firstChild) {
13
+ head.insertBefore(style, head.firstChild);
14
+ } else {
15
+ head.appendChild(style);
16
+ }
17
+ } else {
18
+ head.appendChild(style);
19
+ }
20
+
21
+ if (style.styleSheet) {
22
+ style.styleSheet.cssText = css;
23
+ } else {
24
+ style.appendChild(document.createTextNode(css));
25
+ }
26
+ }
27
+
28
+ export { styleInject as default };
29
+ //# sourceMappingURL=style-inject.es.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-inject.es.esm.js","sources":["../../../../../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,MAAM,GAAG,GAAG,GAAG,EAAE;AAChC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ;;AAE7B,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,CAAC;;AAEzD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU;;AAEzB,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC;AAC/C,IAAI,CAAC,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC7B,IAAI;AACJ,EAAE,CAAC,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,EAAE;;AAEF,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG;AAClC,EAAE,CAAC,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AACnD,EAAE;AACF;;;;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-explore",
3
- "version": "0.18.0",
3
+ "version": "1.0.1",
4
4
  "description": "A Backstage plugin for building an exploration page of your software ecosystem",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -69,33 +69,33 @@
69
69
  "test": "backstage-cli package test"
70
70
  },
71
71
  "dependencies": {
72
- "@backstage-community/plugin-explore-common": "^0.13.0",
73
- "@backstage-community/plugin-explore-react": "^0.13.0",
74
- "@backstage/catalog-client": "^1.14.0",
75
- "@backstage/catalog-model": "^1.7.7",
76
- "@backstage/core-compat-api": "^0.5.9",
77
- "@backstage/core-components": "^0.18.8",
78
- "@backstage/core-plugin-api": "^1.12.4",
79
- "@backstage/errors": "^1.2.7",
80
- "@backstage/frontend-plugin-api": "^0.16.1",
81
- "@backstage/plugin-catalog-react": "^2.1.0",
82
- "@backstage/plugin-search-common": "^1.2.22",
83
- "@backstage/plugin-search-react": "^1.11.0",
84
- "@material-ui/core": "^4.12.2",
85
- "@material-ui/icons": "^4.9.1",
72
+ "@backstage-community/plugin-explore-common": "^0.14.0",
73
+ "@backstage-community/plugin-explore-react": "^0.14.0",
74
+ "@backstage/catalog-client": "^1.16.0",
75
+ "@backstage/catalog-model": "^1.9.0",
76
+ "@backstage/core-compat-api": "^0.5.12",
77
+ "@backstage/core-components": "^0.18.11",
78
+ "@backstage/core-plugin-api": "^1.12.7",
79
+ "@backstage/errors": "^1.3.1",
80
+ "@backstage/frontend-plugin-api": "^0.17.2",
81
+ "@backstage/plugin-catalog-react": "^3.1.0",
82
+ "@backstage/plugin-search-common": "^1.2.24",
83
+ "@backstage/plugin-search-react": "^1.11.5",
84
+ "@backstage/ui": "^0.16.0",
85
+ "@remixicon/react": "^4.9.0",
86
86
  "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
87
87
  "classnames": "^2.2.6",
88
88
  "pluralize": "^8.0.0",
89
89
  "react-use": "^17.2.4"
90
90
  },
91
91
  "devDependencies": {
92
- "@backstage/cli": "^0.36.0",
93
- "@backstage/core-app-api": "^1.19.6",
94
- "@backstage/dev-utils": "^1.1.21",
95
- "@backstage/frontend-defaults": "^0.5.0",
96
- "@backstage/frontend-test-utils": "^0.5.1",
97
- "@backstage/plugin-catalog": "^2.0.1",
98
- "@backstage/test-utils": "^1.7.16",
92
+ "@backstage/cli": "^0.36.3",
93
+ "@backstage/core-app-api": "^1.20.2",
94
+ "@backstage/dev-utils": "^1.1.24",
95
+ "@backstage/frontend-defaults": "^0.5.3",
96
+ "@backstage/frontend-test-utils": "^0.6.1",
97
+ "@backstage/plugin-catalog": "^2.0.6",
98
+ "@backstage/test-utils": "^1.7.19",
99
99
  "@testing-library/dom": "^10.0.0",
100
100
  "@testing-library/jest-dom": "^6.0.0",
101
101
  "@testing-library/react": "^15.0.0",