@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
@@ -3,74 +3,15 @@ import { stringifyEntityRef, RELATION_CHILD_OF, parseEntityRef } from '@backstag
3
3
  import { Progress, ResponseErrorPanel, DependencyGraph, DependencyGraphTypes, Link } from '@backstage/core-components';
4
4
  import { useApi, configApiRef, useRouteRef } from '@backstage/core-plugin-api';
5
5
  import { catalogApiRef, getEntityRelations, entityRouteRef, EntityDisplayName } from '@backstage/plugin-catalog-react';
6
- import Typography from '@material-ui/core/Typography';
7
- import { makeStyles, useTheme } from '@material-ui/core/styles';
8
- import ZoomOutMap from '@material-ui/icons/ZoomOutMap';
6
+ import { Text } from '@backstage/ui';
7
+ import { RiFullscreenLine } from '@remixicon/react';
9
8
  import classNames from 'classnames';
10
9
  import useAsync from 'react-use/esm/useAsync';
10
+ import styles from './GroupsDiagram.module.css.esm.js';
11
11
 
12
- const useStyles = makeStyles(
13
- (theme) => ({
14
- graph: {
15
- minHeight: "100%",
16
- maxHeight: "1200px",
17
- flex: 1
18
- },
19
- graphWrapper: {
20
- display: "flex",
21
- height: "100%"
22
- },
23
- organizationNode: {
24
- fill: theme.palette.secondary.light,
25
- stroke: theme.palette.secondary.light
26
- },
27
- groupNode: {
28
- fill: theme.palette.primary.light,
29
- stroke: theme.palette.primary.light
30
- },
31
- centeredContent: {
32
- padding: theme.spacing(1),
33
- height: "100%",
34
- display: "flex",
35
- alignItems: "center",
36
- justifyContent: "center",
37
- color: theme.palette.common.black
38
- },
39
- legend: {
40
- position: "absolute",
41
- bottom: 0,
42
- right: 0,
43
- padding: theme.spacing(1),
44
- "& .icon": {
45
- verticalAlign: "bottom"
46
- }
47
- },
48
- textOrganization: {
49
- color: theme.palette.secondary.contrastText
50
- },
51
- textGroup: {
52
- color: theme.palette.primary.contrastText
53
- },
54
- textWrapper: {
55
- display: "-webkit-box",
56
- WebkitBoxOrient: "vertical",
57
- WebkitLineClamp: 2,
58
- overflow: "hidden",
59
- textOverflow: "ellipsis",
60
- textAlign: "center",
61
- fontWeight: "bold",
62
- fontSize: "20px"
63
- }
64
- }),
65
- {
66
- name: "ExploreGroupsDiagram"
67
- }
68
- );
69
12
  function RenderNode(props) {
70
13
  const nodeWidth = 180;
71
14
  const nodeHeight = 60;
72
- const theme = useTheme();
73
- const classes = useStyles();
74
15
  const catalogEntityRoute = useRouteRef(entityRouteRef);
75
16
  if (props.node.id === "root") {
76
17
  return /* @__PURE__ */ jsxs("g", { children: [
@@ -79,17 +20,16 @@ function RenderNode(props) {
79
20
  {
80
21
  width: nodeWidth,
81
22
  height: nodeHeight,
82
- rx: theme.shape.borderRadius,
83
- className: classes.organizationNode
23
+ className: styles.organizationNode
84
24
  }
85
25
  ),
86
26
  /* @__PURE__ */ jsx("title", { children: props.node.name }),
87
- /* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className: classes.centeredContent, children: /* @__PURE__ */ jsx(
27
+ /* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className: styles.centeredContent, children: /* @__PURE__ */ jsx(
88
28
  "div",
89
29
  {
90
30
  className: classNames(
91
- classes.textWrapper,
92
- classes.textOrganization
31
+ styles.textWrapper,
32
+ styles.textOrganization
93
33
  ),
94
34
  children: props.node.name
95
35
  }
@@ -103,8 +43,7 @@ function RenderNode(props) {
103
43
  {
104
44
  width: nodeWidth,
105
45
  height: nodeHeight,
106
- rx: theme.shape.borderRadius,
107
- className: classes.groupNode
46
+ className: styles.groupNode
108
47
  }
109
48
  ),
110
49
  /* @__PURE__ */ jsx("title", { children: /* @__PURE__ */ jsx(EntityDisplayName, { entityRef: props.node.id, hideIcon: true, disableTooltip: true }) }),
@@ -116,7 +55,7 @@ function RenderNode(props) {
116
55
  namespace: ref.namespace,
117
56
  name: ref.name
118
57
  }),
119
- children: /* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className: classes.centeredContent, children: /* @__PURE__ */ jsx("div", { className: classNames(classes.textWrapper, classes.textGroup), children: /* @__PURE__ */ jsx(EntityDisplayName, { entityRef: props.node.id, hideIcon: true }) }) }) })
58
+ children: /* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className: styles.centeredContent, children: /* @__PURE__ */ jsx("div", { className: classNames(styles.textWrapper, styles.textGroup), children: /* @__PURE__ */ jsx(EntityDisplayName, { entityRef: props.node.id, hideIcon: true }) }) }) })
120
59
  }
121
60
  )
122
61
  ] });
@@ -124,7 +63,6 @@ function RenderNode(props) {
124
63
  function GroupsDiagram(props) {
125
64
  const nodes = new Array();
126
65
  const edges = new Array();
127
- const classes = useStyles();
128
66
  const configApi = useApi(configApiRef);
129
67
  const catalogApi = useApi(catalogApiRef);
130
68
  const organizationName = configApi.getOptionalString("organization.name") ?? "Backstage";
@@ -176,7 +114,7 @@ function GroupsDiagram(props) {
176
114
  });
177
115
  });
178
116
  }
179
- return /* @__PURE__ */ jsxs("div", { className: classes.graphWrapper, children: [
117
+ return /* @__PURE__ */ jsxs("div", { className: styles.graphWrapper, children: [
180
118
  /* @__PURE__ */ jsx(
181
119
  DependencyGraph,
182
120
  {
@@ -185,19 +123,19 @@ function GroupsDiagram(props) {
185
123
  nodeMargin: 10,
186
124
  direction: props.direction || DependencyGraphTypes.Direction.RIGHT_LEFT,
187
125
  renderNode: RenderNode,
188
- className: classes.graph,
126
+ className: styles.graph,
189
127
  fit: "contain"
190
128
  }
191
129
  ),
192
130
  /* @__PURE__ */ jsxs(
193
- Typography,
131
+ Text,
194
132
  {
195
- variant: "caption",
196
- color: "textSecondary",
197
- display: "block",
198
- className: classes.legend,
133
+ as: "small",
134
+ variant: "body-small",
135
+ color: "secondary",
136
+ className: styles.legend,
199
137
  children: [
200
- /* @__PURE__ */ jsx(ZoomOutMap, { className: "icon" }),
138
+ /* @__PURE__ */ jsx(RiFullscreenLine, { size: 16, className: styles.legendIcon }),
201
139
  " Use pinch & zoom to move around the diagram."
202
140
  ]
203
141
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GroupsDiagram.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsDiagram.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 */\n\nimport {\n parseEntityRef,\n RELATION_CHILD_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n DependencyGraph,\n DependencyGraphTypes,\n Link,\n Progress,\n ResponseErrorPanel,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n catalogApiRef,\n entityRouteRef,\n getEntityRelations,\n EntityDisplayName,\n} from '@backstage/plugin-catalog-react';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles, useTheme } from '@material-ui/core/styles';\nimport ZoomOutMap from '@material-ui/icons/ZoomOutMap';\nimport classNames from 'classnames';\nimport useAsync from 'react-use/esm/useAsync';\nimport { EntityFilterQuery } from '@backstage/catalog-client';\n\nconst useStyles = makeStyles(\n theme => ({\n graph: {\n minHeight: '100%',\n maxHeight: '1200px',\n flex: 1,\n },\n graphWrapper: {\n display: 'flex',\n height: '100%',\n },\n organizationNode: {\n fill: theme.palette.secondary.light,\n stroke: theme.palette.secondary.light,\n },\n groupNode: {\n fill: theme.palette.primary.light,\n stroke: theme.palette.primary.light,\n },\n centeredContent: {\n padding: theme.spacing(1),\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: theme.palette.common.black,\n },\n legend: {\n position: 'absolute',\n bottom: 0,\n right: 0,\n padding: theme.spacing(1),\n '& .icon': {\n verticalAlign: 'bottom',\n },\n },\n textOrganization: {\n color: theme.palette.secondary.contrastText,\n },\n textGroup: {\n color: theme.palette.primary.contrastText,\n },\n textWrapper: {\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: 2,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textAlign: 'center',\n fontWeight: 'bold',\n fontSize: '20px',\n },\n }),\n {\n name: 'ExploreGroupsDiagram',\n },\n);\n\nfunction RenderNode(props: DependencyGraphTypes.RenderNodeProps<any>) {\n const nodeWidth = 180;\n const nodeHeight = 60;\n const theme = useTheme();\n const classes = useStyles();\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n\n if (props.node.id === 'root') {\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n rx={theme.shape.borderRadius}\n className={classes.organizationNode}\n />\n <title>{props.node.name}</title>\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={classes.centeredContent}>\n <div\n className={classNames(\n classes.textWrapper,\n classes.textOrganization,\n )}\n >\n {props.node.name}\n </div>\n </div>\n </foreignObject>\n </g>\n );\n }\n\n const ref = parseEntityRef(props.node.id);\n\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n rx={theme.shape.borderRadius}\n className={classes.groupNode}\n />\n <title>\n <EntityDisplayName entityRef={props.node.id} hideIcon disableTooltip />\n </title>\n\n <Link\n to={catalogEntityRoute({\n kind: ref.kind,\n namespace: ref.namespace,\n name: ref.name,\n })}\n >\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={classes.centeredContent}>\n <div className={classNames(classes.textWrapper, classes.textGroup)}>\n <EntityDisplayName entityRef={props.node.id} hideIcon />\n </div>\n </div>\n </foreignObject>\n </Link>\n </g>\n );\n}\n\n/**\n * Dynamically generates a diagram of groups registered in the catalog.\n */\nexport function GroupsDiagram(props: {\n direction?: DependencyGraphTypes.Direction;\n hideChildren?: boolean;\n namespace?: string;\n}) {\n const nodes = new Array<{\n id: string;\n kind: string;\n name: string;\n }>();\n const edges = new Array<{ from: string; to: string; label: string }>();\n\n const classes = useStyles();\n const configApi = useApi(configApiRef);\n const catalogApi = useApi(catalogApiRef);\n const organizationName =\n configApi.getOptionalString('organization.name') ?? 'Backstage';\n const {\n loading,\n error,\n value: catalogResponse,\n } = useAsync(() => {\n const filter: EntityFilterQuery = { kind: ['Group'] };\n if (props.namespace) {\n filter['metadata.namespace'] = props.namespace;\n }\n return catalogApi.getEntities({ filter });\n }, [catalogApi, props.namespace]);\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n // the root of this diagram is the organization\n nodes.push({\n id: 'root',\n kind: 'Organization',\n name: organizationName,\n });\n\n for (const catalogItem of catalogResponse?.items || []) {\n const currentItemId = stringifyEntityRef(catalogItem);\n\n // Edge to parent\n const catalogItemRelations_childOf = getEntityRelations(\n catalogItem,\n RELATION_CHILD_OF,\n );\n\n if (props.hideChildren && catalogItemRelations_childOf.length) continue;\n\n nodes.push({\n id: stringifyEntityRef(catalogItem),\n kind: catalogItem.kind,\n name: '',\n });\n\n // if no parent is found, link the node to the root\n if (catalogItemRelations_childOf.length === 0) {\n edges.push({\n from: currentItemId,\n to: 'root',\n label: '',\n });\n }\n\n catalogItemRelations_childOf.forEach(relation => {\n edges.push({\n from: currentItemId,\n to: stringifyEntityRef(relation),\n label: '',\n });\n });\n }\n\n return (\n <div className={classes.graphWrapper}>\n <DependencyGraph\n nodes={nodes}\n edges={edges}\n nodeMargin={10}\n direction={props.direction || DependencyGraphTypes.Direction.RIGHT_LEFT}\n renderNode={RenderNode}\n className={classes.graph}\n fit=\"contain\"\n />\n\n <Typography\n variant=\"caption\"\n color=\"textSecondary\"\n display=\"block\"\n className={classes.legend}\n >\n <ZoomOutMap className=\"icon\" /> Use pinch &amp; zoom to move around the\n diagram.\n </Typography>\n </div>\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;AA0CA,MAAM,SAAA,GAAY,UAAA;AAAA,EAChB,CAAA,KAAA,MAAU;AAAA,IACR,KAAA,EAAO;AAAA,MACL,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,QAAA;AAAA,MACX,IAAA,EAAM;AAAA,KACR;AAAA,IACA,YAAA,EAAc;AAAA,MACZ,OAAA,EAAS,MAAA;AAAA,MACT,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,gBAAA,EAAkB;AAAA,MAChB,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,SAAA,CAAU,KAAA;AAAA,MAC9B,MAAA,EAAQ,KAAA,CAAM,OAAA,CAAQ,SAAA,CAAU;AAAA,KAClC;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,OAAA,CAAQ,KAAA;AAAA,MAC5B,MAAA,EAAQ,KAAA,CAAM,OAAA,CAAQ,OAAA,CAAQ;AAAA,KAChC;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,OAAA,EAAS,KAAA,CAAM,OAAA,CAAQ,CAAC,CAAA;AAAA,MACxB,MAAA,EAAQ,MAAA;AAAA,MACR,OAAA,EAAS,MAAA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/C,MAAA,KAAA,CAAM,IAAA,CAAK;AAAA,QACT,IAAA,EAAM,aAAA;AAAA,QACN,EAAA,EAAI,mBAAmB,QAAQ,CAAA;AAAA,QAC/B,KAAA,EAAO;AAAA,OACR,CAAA;AAAA,IACH,CAAC,CAAA;AAAA,EACH;AAEA,EAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,OAAA,CAAQ,YAAA,EACtB,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,eAAA;AAAA,MAAA;AAAA,QACC,KAAA;AAAA,QACA,KAAA;AAAA,QACA,UAAA,EAAY,EAAA;AAAA,QACZ,SAAA,EAAW,KAAA,CAAM,SAAA,IAAa,oBAAA,CAAqB,SAAA,CAAU,UAAA;AAAA,QAC7D,UAAA,EAAY,UAAA;AAAA,QACZ,WAAW,OAAA,CAAQ,KAAA;AAAA,QACnB,GAAA,EAAI;AAAA;AAAA,KACN;AAAA,oBAEA,IAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,SAAA;AAAA,QACR,KAAA,EAAM,eAAA;AAAA,QACN,OAAA,EAAQ,OAAA;AAAA,QACR,WAAW,OAAA,CAAQ,MAAA;AAAA,QAEnB,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,UAAA,EAAA,EAAW,WAAU,MAAA,EAAO,CAAA;AAAA,UAAE;AAAA;AAAA;AAAA;AAEjC,GAAA,EACF,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"GroupsDiagram.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsDiagram.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 */\n\nimport {\n parseEntityRef,\n RELATION_CHILD_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n DependencyGraph,\n DependencyGraphTypes,\n Link,\n Progress,\n ResponseErrorPanel,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n catalogApiRef,\n entityRouteRef,\n getEntityRelations,\n EntityDisplayName,\n} from '@backstage/plugin-catalog-react';\nimport { Text } from '@backstage/ui';\nimport { RiFullscreenLine } from '@remixicon/react';\nimport classNames from 'classnames';\nimport useAsync from 'react-use/esm/useAsync';\nimport { EntityFilterQuery } from '@backstage/catalog-client';\nimport styles from './GroupsDiagram.module.css';\n\nfunction RenderNode(props: DependencyGraphTypes.RenderNodeProps<any>) {\n const nodeWidth = 180;\n const nodeHeight = 60;\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n\n if (props.node.id === 'root') {\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n className={styles.organizationNode}\n />\n <title>{props.node.name}</title>\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={styles.centeredContent}>\n <div\n className={classNames(\n styles.textWrapper,\n styles.textOrganization,\n )}\n >\n {props.node.name}\n </div>\n </div>\n </foreignObject>\n </g>\n );\n }\n\n const ref = parseEntityRef(props.node.id);\n\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n className={styles.groupNode}\n />\n <title>\n <EntityDisplayName entityRef={props.node.id} hideIcon disableTooltip />\n </title>\n\n <Link\n to={catalogEntityRoute({\n kind: ref.kind,\n namespace: ref.namespace,\n name: ref.name,\n })}\n >\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={styles.centeredContent}>\n <div className={classNames(styles.textWrapper, styles.textGroup)}>\n <EntityDisplayName entityRef={props.node.id} hideIcon />\n </div>\n </div>\n </foreignObject>\n </Link>\n </g>\n );\n}\n\n/**\n * Dynamically generates a diagram of groups registered in the catalog.\n */\nexport function GroupsDiagram(props: {\n direction?: DependencyGraphTypes.Direction;\n hideChildren?: boolean;\n namespace?: string;\n}) {\n const nodes = new Array<{\n id: string;\n kind: string;\n name: string;\n }>();\n const edges = new Array<{ from: string; to: string; label: string }>();\n\n const configApi = useApi(configApiRef);\n const catalogApi = useApi(catalogApiRef);\n const organizationName =\n configApi.getOptionalString('organization.name') ?? 'Backstage';\n const {\n loading,\n error,\n value: catalogResponse,\n } = useAsync(() => {\n const filter: EntityFilterQuery = { kind: ['Group'] };\n if (props.namespace) {\n filter['metadata.namespace'] = props.namespace;\n }\n return catalogApi.getEntities({ filter });\n }, [catalogApi, props.namespace]);\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n // the root of this diagram is the organization\n nodes.push({\n id: 'root',\n kind: 'Organization',\n name: organizationName,\n });\n\n for (const catalogItem of catalogResponse?.items || []) {\n const currentItemId = stringifyEntityRef(catalogItem);\n\n // Edge to parent\n const catalogItemRelations_childOf = getEntityRelations(\n catalogItem,\n RELATION_CHILD_OF,\n );\n\n if (props.hideChildren && catalogItemRelations_childOf.length) continue;\n\n nodes.push({\n id: stringifyEntityRef(catalogItem),\n kind: catalogItem.kind,\n name: '',\n });\n\n // if no parent is found, link the node to the root\n if (catalogItemRelations_childOf.length === 0) {\n edges.push({\n from: currentItemId,\n to: 'root',\n label: '',\n });\n }\n\n catalogItemRelations_childOf.forEach(relation => {\n edges.push({\n from: currentItemId,\n to: stringifyEntityRef(relation),\n label: '',\n });\n });\n }\n\n return (\n <div className={styles.graphWrapper}>\n <DependencyGraph\n nodes={nodes}\n edges={edges}\n nodeMargin={10}\n direction={props.direction || DependencyGraphTypes.Direction.RIGHT_LEFT}\n renderNode={RenderNode}\n className={styles.graph}\n fit=\"contain\"\n />\n\n <Text\n as=\"small\"\n variant=\"body-small\"\n color=\"secondary\"\n className={styles.legend}\n >\n <RiFullscreenLine size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js';
2
+
3
+ var css_248z = "/*\n * Copyright 2026 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 */\n\n.GroupsDiagram_graph__2bc459887c {\n min-height: 100%;\n max-height: 1200px;\n flex: 1;\n}\n\n.GroupsDiagram_graphWrapper__2bc459887c {\n display: flex;\n height: 100%;\n}\n\n.GroupsDiagram_organizationNode__2bc459887c {\n fill: var(--bui-bg-tint);\n stroke: var(--bui-bg-tint);\n rx: var(--bui-radius-2);\n}\n\n.GroupsDiagram_groupNode__2bc459887c {\n fill: var(--bui-bg-solid);\n stroke: var(--bui-bg-solid);\n rx: var(--bui-radius-2);\n}\n\n.GroupsDiagram_centeredContent__2bc459887c {\n padding: var(--bui-space-2);\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--bui-fg-primary);\n}\n\n.GroupsDiagram_legend__2bc459887c {\n position: absolute;\n bottom: 0;\n right: 0;\n padding: var(--bui-space-2);\n color: var(--bui-fg-secondary);\n font-size: var(--bui-font-size-1);\n display: flex;\n align-items: center;\n gap: var(--bui-space-1);\n}\n\n.GroupsDiagram_legendIcon__2bc459887c {\n vertical-align: bottom;\n}\n\n.GroupsDiagram_textOrganization__2bc459887c {\n color: var(--bui-fg-primary);\n}\n\n.GroupsDiagram_textGroup__2bc459887c {\n color: var(--bui-fg-solid-on-bg, #fff);\n}\n\n.GroupsDiagram_textWrapper__2bc459887c {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n font-weight: bold;\n font-size: 20px;\n}\n";
4
+ var styles = {"graph":"GroupsDiagram_graph__2bc459887c","graphWrapper":"GroupsDiagram_graphWrapper__2bc459887c","organizationNode":"GroupsDiagram_organizationNode__2bc459887c","groupNode":"GroupsDiagram_groupNode__2bc459887c","centeredContent":"GroupsDiagram_centeredContent__2bc459887c","legend":"GroupsDiagram_legend__2bc459887c","legendIcon":"GroupsDiagram_legendIcon__2bc459887c","textOrganization":"GroupsDiagram_textOrganization__2bc459887c","textGroup":"GroupsDiagram_textGroup__2bc459887c","textWrapper":"GroupsDiagram_textWrapper__2bc459887c"};
5
+ styleInject(css_248z);
6
+
7
+ export { styles as default };
8
+ //# sourceMappingURL=GroupsDiagram.module.css.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupsDiagram.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,21 +1,10 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { GroupsDiagram } from './GroupsDiagram.esm.js';
3
3
  import { Content, ContentHeader, SupportButton } from '@backstage/core-components';
4
- import { makeStyles } from '@material-ui/core/styles';
4
+ import styles from './GroupsExplorerContent.module.css.esm.js';
5
5
 
6
- const useStyles = makeStyles(
7
- {
8
- root: {
9
- height: "100%",
10
- maxHeight: "100%",
11
- minHeight: 0
12
- }
13
- },
14
- { name: "ExploreGroupsContent" }
15
- );
16
6
  const GroupsExplorerContent = (props) => {
17
- const classes = useStyles();
18
- return /* @__PURE__ */ jsxs(Content, { noPadding: true, stretch: true, className: classes.root, children: [
7
+ return /* @__PURE__ */ jsxs(Content, { noPadding: true, stretch: true, className: styles.root, children: [
19
8
  /* @__PURE__ */ jsx(ContentHeader, { title: props.title ?? "Groups", children: /* @__PURE__ */ jsx(SupportButton, { children: "Explore your groups." }) }),
20
9
  /* @__PURE__ */ jsx(
21
10
  GroupsDiagram,
@@ -1 +1 @@
1
- {"version":3,"file":"GroupsExplorerContent.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsExplorerContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 */\n\nimport { GroupsDiagram } from './GroupsDiagram';\nimport {\n Content,\n ContentHeader,\n DependencyGraphTypes,\n SupportButton,\n} from '@backstage/core-components';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles(\n {\n root: {\n height: '100%',\n maxHeight: '100%',\n minHeight: 0,\n },\n },\n { name: 'ExploreGroupsContent' },\n);\n\nexport const GroupsExplorerContent = (props: {\n title?: string;\n direction?: DependencyGraphTypes.Direction;\n hideChildren?: boolean;\n namespace?: string;\n}) => {\n const classes = useStyles();\n\n return (\n <Content noPadding stretch className={classes.root}>\n <ContentHeader title={props.title ?? 'Groups'}>\n <SupportButton>Explore your groups.</SupportButton>\n </ContentHeader>\n <GroupsDiagram\n direction={props.direction}\n hideChildren={props.hideChildren}\n namespace={props.namespace}\n />\n </Content>\n );\n};\n"],"names":[],"mappings":";;;;;AAyBA,MAAM,SAAA,GAAY,UAAA;AAAA,EAChB;AAAA,IACE,IAAA,EAAM;AAAA,MACJ,MAAA,EAAQ,MAAA;AAAA,MACR,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW;AAAA;AACb,GACF;AAAA,EACA,EAAE,MAAM,sBAAA;AACV,CAAA;AAEO,MAAM,qBAAA,GAAwB,CAAC,KAAA,KAKhC;AACJ,EAAA,MAAM,UAAU,SAAA,EAAU;AAE1B,EAAA,uBACE,IAAA,CAAC,WAAQ,SAAA,EAAS,IAAA,EAAC,SAAO,IAAA,EAAC,SAAA,EAAW,QAAQ,IAAA,EAC5C,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,OAAO,KAAA,CAAM,KAAA,IAAS,UACnC,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,kCAAoB,CAAA,EACrC,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,aAAA;AAAA,MAAA;AAAA,QACC,WAAW,KAAA,CAAM,SAAA;AAAA,QACjB,cAAc,KAAA,CAAM,YAAA;AAAA,QACpB,WAAW,KAAA,CAAM;AAAA;AAAA;AACnB,GAAA,EACF,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"GroupsExplorerContent.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsExplorerContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 */\n\nimport { GroupsDiagram } from './GroupsDiagram';\nimport {\n Content,\n ContentHeader,\n DependencyGraphTypes,\n SupportButton,\n} from '@backstage/core-components';\nimport styles from './GroupsExplorerContent.module.css';\n\nexport const GroupsExplorerContent = (props: {\n title?: string;\n direction?: DependencyGraphTypes.Direction;\n hideChildren?: boolean;\n namespace?: string;\n}) => {\n return (\n <Content noPadding stretch className={styles.root}>\n <ContentHeader title={props.title ?? 'Groups'}>\n <SupportButton>Explore your groups.</SupportButton>\n </ContentHeader>\n <GroupsDiagram\n direction={props.direction}\n hideChildren={props.hideChildren}\n namespace={props.namespace}\n />\n </Content>\n );\n};\n"],"names":[],"mappings":";;;;;AAyBO,MAAM,qBAAA,GAAwB,CAAC,KAAA,KAKhC;AACJ,EAAA,uBACE,IAAA,CAAC,WAAQ,SAAA,EAAS,IAAA,EAAC,SAAO,IAAA,EAAC,SAAA,EAAW,OAAO,IAAA,EAC3C,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,OAAO,KAAA,CAAM,KAAA,IAAS,UACnC,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,kCAAoB,CAAA,EACrC,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,aAAA;AAAA,MAAA;AAAA,QACC,WAAW,KAAA,CAAM,SAAA;AAAA,QACjB,cAAc,KAAA,CAAM,YAAA;AAAA,QACpB,WAAW,KAAA,CAAM;AAAA;AAAA;AACnB,GAAA,EACF,CAAA;AAEJ;;;;"}
@@ -0,0 +1,8 @@
1
+ import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
+
3
+ var css_248z = "/*\n * Copyright 2026 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 */\n\n.GroupsExplorerContent_root__86a2e6ff21 {\n height: 100%;\n max-height: 100%;\n min-height: 0;\n}\n";
4
+ var styles = {"root":"GroupsExplorerContent_root__86a2e6ff21"};
5
+ styleInject(css_248z);
6
+
7
+ export { styles as default };
8
+ //# sourceMappingURL=GroupsExplorerContent.module.css.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupsExplorerContent.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,76 +1,34 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import Box from '@material-ui/core/Box';
3
- import Card from '@material-ui/core/Card';
4
- import CardActions from '@material-ui/core/CardActions';
5
- import CardContent from '@material-ui/core/CardContent';
6
- import CardMedia from '@material-ui/core/CardMedia';
7
- import Chip from '@material-ui/core/Chip';
8
- import Typography from '@material-ui/core/Typography';
9
- import { makeStyles } from '@material-ui/core/styles';
10
- import { LinkButton } from '@backstage/core-components';
2
+ import { Card, CardBody, Text, TagGroup, Tag, CardFooter, ButtonLink, Button } from '@backstage/ui';
11
3
  import classNames from 'classnames';
4
+ import styles from './ToolCard.module.css.esm.js';
12
5
 
13
- const useStyles = makeStyles(
14
- (theme) => ({
15
- media: {
16
- height: 128
17
- },
18
- mediaContain: {
19
- backgroundSize: "contain"
20
- },
21
- lifecycle: {
22
- lineHeight: "0.8em",
23
- color: theme.palette.common.white
24
- },
25
- ga: {
26
- backgroundColor: theme.palette.status.ok
27
- },
28
- alpha: {
29
- backgroundColor: theme.palette.status.error
30
- },
31
- beta: {
32
- backgroundColor: theme.palette.status.warning
33
- }
34
- }),
35
- {
36
- name: "ExploreToolCard"
37
- }
38
- );
39
6
  const ToolCard = ({ card, objectFit }) => {
40
- const classes = useStyles();
41
7
  const { title, description, url, image, lifecycle, tags } = card;
8
+ const showLifecycle = !!lifecycle && lifecycle.toLocaleLowerCase("en-US") !== "ga";
42
9
  return /* @__PURE__ */ jsxs(Card, { children: [
43
10
  /* @__PURE__ */ jsx(
44
- CardMedia,
11
+ "div",
45
12
  {
46
- image,
13
+ role: "img",
14
+ "aria-label": title,
47
15
  title,
48
- className: classNames(classes.media, {
49
- [classes.mediaContain]: objectFit === "contain"
50
- })
16
+ className: classNames(styles.media, {
17
+ [styles.mediaContain]: objectFit === "contain"
18
+ }),
19
+ style: { backgroundImage: image ? `url(${image})` : void 0 }
51
20
  }
52
21
  ),
53
- /* @__PURE__ */ jsxs(CardContent, { children: [
54
- /* @__PURE__ */ jsxs(Typography, { variant: "h5", children: [
55
- title,
56
- " ",
57
- lifecycle && lifecycle.toLocaleLowerCase("en-US") !== "ga" && /* @__PURE__ */ jsx(
58
- Chip,
59
- {
60
- size: "small",
61
- label: lifecycle,
62
- className: classNames(
63
- classes.lifecycle,
64
- classes[lifecycle.toLocaleLowerCase("en-US")]
65
- )
66
- }
67
- )
22
+ /* @__PURE__ */ jsxs(CardBody, { children: [
23
+ /* @__PURE__ */ jsxs("div", { className: styles.titleRow, children: [
24
+ /* @__PURE__ */ jsx(Text, { as: "h5", variant: "title-medium", weight: "bold", children: title }),
25
+ showLifecycle && /* @__PURE__ */ jsx(TagGroup, { children: /* @__PURE__ */ jsx(Tag, { size: "small", className: styles.lifecycle, children: lifecycle }) })
68
26
  ] }),
69
- /* @__PURE__ */ jsx(Typography, { children: description || "Description missing" }),
70
- tags && /* @__PURE__ */ jsx(Box, { marginTop: 2, children: tags.map((item, idx) => /* @__PURE__ */ jsx(Chip, { size: "small", label: item }, idx)) })
27
+ /* @__PURE__ */ jsx(Text, { style: { marginTop: "var(--bui-space-2)" }, children: description || "Description missing" }),
28
+ tags && tags.length > 0 && /* @__PURE__ */ jsx(TagGroup, { className: styles.tags, children: tags.map((tag) => /* @__PURE__ */ jsx(Tag, { size: "small", children: tag }, tag)) })
71
29
  ] }),
72
- /* @__PURE__ */ jsx(CardActions, { children: /* @__PURE__ */ jsx(LinkButton, { color: "primary", to: url, disabled: !url, children: "Explore" }) })
73
- ] }, title);
30
+ /* @__PURE__ */ jsx(CardFooter, { style: { display: "flex", justifyContent: "flex-end" }, children: url ? /* @__PURE__ */ jsx(ButtonLink, { variant: "primary", href: url, children: "Explore" }) : /* @__PURE__ */ jsx(Button, { variant: "primary", isDisabled: true, children: "Explore" }) })
31
+ ] });
74
32
  };
75
33
 
76
34
  export { ToolCard };
@@ -1 +1 @@
1
- {"version":3,"file":"ToolCard.esm.js","sources":["../../../src/components/ToolCard/ToolCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 */\n\nimport { ExploreTool } from '@backstage-community/plugin-explore-react';\nimport Box from '@material-ui/core/Box';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Chip from '@material-ui/core/Chip';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles, Theme } from '@material-ui/core/styles';\nimport { LinkButton } from '@backstage/core-components';\nimport classNames from 'classnames';\n\n// TODO: Align styling between Domain and ToolCard\n\nconst useStyles = makeStyles<Theme>(\n theme => ({\n media: {\n height: 128,\n },\n mediaContain: {\n backgroundSize: 'contain',\n },\n lifecycle: {\n lineHeight: '0.8em',\n color: theme.palette.common.white,\n },\n ga: {\n backgroundColor: theme.palette.status.ok,\n },\n alpha: {\n backgroundColor: theme.palette.status.error,\n },\n beta: {\n backgroundColor: theme.palette.status.warning,\n },\n }),\n {\n name: 'ExploreToolCard',\n },\n);\n\ntype Props = {\n card: ExploreTool;\n objectFit?: 'cover' | 'contain';\n};\n\nexport const ToolCard = ({ card, objectFit }: Props) => {\n const classes = useStyles();\n\n const { title, description, url, image, lifecycle, tags } = card;\n\n return (\n <Card key={title}>\n <CardMedia\n image={image}\n title={title}\n className={classNames(classes.media, {\n [classes.mediaContain]: objectFit === 'contain',\n })}\n />\n <CardContent>\n <Typography variant=\"h5\">\n {title}{' '}\n {lifecycle && lifecycle.toLocaleLowerCase('en-US') !== 'ga' && (\n <Chip\n size=\"small\"\n label={lifecycle}\n className={classNames(\n classes.lifecycle,\n classes[lifecycle.toLocaleLowerCase('en-US')],\n )}\n />\n )}\n </Typography>\n <Typography>{description || 'Description missing'}</Typography>\n {tags && (\n <Box marginTop={2}>\n {tags.map((item, idx) => (\n <Chip size=\"small\" key={idx} label={item} />\n ))}\n </Box>\n )}\n </CardContent>\n <CardActions>\n <LinkButton color=\"primary\" to={url} disabled={!url}>\n Explore\n </LinkButton>\n </CardActions>\n </Card>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;AA8BA,MAAM,SAAA,GAAY,UAAA;AAAA,EAChB,CAAA,KAAA,MAAU;AAAA,IACR,KAAA,EAAO;AAAA,MACL,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,YAAA,EAAc;AAAA,MACZ,cAAA,EAAgB;AAAA,KAClB;AAAA,IACA,SAAA,EAAW;AAAA,MACT,UAAA,EAAY,OAAA;AAAA,MACZ,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,MAAA,CAAO;AAAA,KAC9B;AAAA,IACA,EAAA,EAAI;AAAA,MACF,eAAA,EAAiB,KAAA,CAAM,OAAA,CAAQ,MAAA,CAAO;AAAA,KACxC;AAAA,IACA,KAAA,EAAO;AAAA,MACL,eAAA,EAAiB,KAAA,CAAM,OAAA,CAAQ,MAAA,CAAO;AAAA,KACxC;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,eAAA,EAAiB,KAAA,CAAM,OAAA,CAAQ,MAAA,CAAO;AAAA;AACxC,GACF,CAAA;AAAA,EACA;AAAA,IACE,IAAA,EAAM;AAAA;AAEV,CAAA;AAOO,MAAM,QAAA,GAAW,CAAC,EAAE,IAAA,EAAM,WAAU,KAAa;AACtD,EAAA,MAAM,UAAU,SAAA,EAAU;AAE1B,EAAA,MAAM,EAAE,KAAA,EAAO,WAAA,EAAa,KAAK,KAAA,EAAO,SAAA,EAAW,MAAK,GAAI,IAAA;AAE5D,EAAA,4BACG,IAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,SAAA;AAAA,MAAA;AAAA,QACC,KAAA;AAAA,QACA,KAAA;AAAA,QACA,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,KAAA,EAAO;AAAA,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020 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 */\n\nimport { ExploreTool } from '@backstage-community/plugin-explore-react';\nimport {\n Button,\n ButtonLink,\n Card,\n CardBody,\n CardFooter,\n Tag,\n TagGroup,\n Text,\n} from '@backstage/ui';\nimport classNames from 'classnames';\nimport styles from './ToolCard.module.css';\n\ntype Props = {\n card: ExploreTool;\n objectFit?: 'cover' | 'contain';\n};\n\nexport const ToolCard = ({ card, objectFit }: Props) => {\n const { title, description, url, image, lifecycle, tags } = card;\n const showLifecycle =\n !!lifecycle && lifecycle.toLocaleLowerCase('en-US') !== 'ga';\n\n return (\n <Card>\n <div\n role=\"img\"\n aria-label={title}\n title={title}\n className={classNames(styles.media, {\n [styles.mediaContain]: objectFit === 'contain',\n })}\n style={{ backgroundImage: image ? `url(${image})` : undefined }}\n />\n <CardBody>\n <div className={styles.titleRow}>\n <Text as=\"h5\" variant=\"title-medium\" weight=\"bold\">\n {title}\n </Text>\n {showLifecycle && (\n <TagGroup>\n <Tag size=\"small\" className={styles.lifecycle}>\n {lifecycle}\n </Tag>\n </TagGroup>\n )}\n </div>\n <Text style={{ marginTop: 'var(--bui-space-2)' }}>\n {description || 'Description missing'}\n </Text>\n {tags && tags.length > 0 && (\n <TagGroup className={styles.tags}>\n {tags.map(tag => (\n <Tag key={tag} size=\"small\">\n {tag}\n </Tag>\n ))}\n </TagGroup>\n )}\n </CardBody>\n <CardFooter style={{ display: 'flex', justifyContent: 'flex-end' }}>\n {url ? (\n <ButtonLink variant=\"primary\" href={url}>\n Explore\n </ButtonLink>\n ) : (\n <Button variant=\"primary\" isDisabled>\n Expl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,WAAW,oBAAA,EAAqB,EAC5C,yBAAe,qBAAA,EAClB,CAAA;AAAA,MACC,QAAQ,IAAA,CAAK,MAAA,GAAS,qBACrB,GAAA,CAAC,QAAA,EAAA,EAAS,WAAW,MAAA,CAAO,IAAA,EACzB,eAAK,GAAA,CAAI,CAAA,GAAA,yBACP,GAAA,EAAA,EAAc,IAAA,EAAK,SACjB,QAAA,EAAA,GAAA,EAAA,EADO,GAEV,CACD,CAAA,EACH;AAAA,KAAA,EAEJ,CAAA;AAAA,oBACA,GAAA,CAAC,UAAA,EAAA,EAAW,KAAA,EAAO,EAAE,OAAA,EAAS,QAAQ,cAAA,EAAgB,UAAA,EAAW,EAC9D,QAAA,EAAA,GAAA,mBACC,GAAA,CAAC,UAAA,EAAA,EAAW,SAAQ,SAAA,EAAU,IAAA,EAAM,GAAA,EAAK,QAAA,EAAA,SAAA,EAEzC,CAAA,mBAEA,GAAA,CAAC,MAAA,EAAA,EAAO,OAAA,EAAQ,SAAA,EAAU,UAAA,EAAU,IAAA,EAAC,QAAA,EAAA,SAAA,EAErC,CAAA,EAEJ;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
@@ -0,0 +1,8 @@
1
+ import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
+
3
+ var css_248z = "/*\n * Copyright 2026 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 */\n\n.ToolCard_media__89a7a109aa {\n height: 128px;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n}\n\n.ToolCard_mediaContain__89a7a109aa {\n background-size: contain;\n}\n\n.ToolCard_titleRow__89a7a109aa {\n display: flex;\n align-items: center;\n gap: var(--bui-space-2);\n flex-wrap: wrap;\n}\n\n.ToolCard_lifecycle__89a7a109aa {\n text-transform: lowercase;\n}\n\n.ToolCard_tags__89a7a109aa {\n margin-top: var(--bui-space-2);\n}\n";
4
+ var styles = {"media":"ToolCard_media__89a7a109aa","mediaContain":"ToolCard_mediaContain__89a7a109aa","titleRow":"ToolCard_titleRow__89a7a109aa","lifecycle":"ToolCard_lifecycle__89a7a109aa","tags":"ToolCard_tags__89a7a109aa"};
5
+ styleInject(css_248z);
6
+
7
+ export { styles as default };
8
+ //# sourceMappingURL=ToolCard.module.css.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolCard.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,56 +1,34 @@
1
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
- import Box from '@material-ui/core/Box';
3
- import Chip from '@material-ui/core/Chip';
4
- import ListItemIcon from '@material-ui/core/ListItemIcon';
5
- import ListItemText from '@material-ui/core/ListItemText';
6
- import { makeStyles } from '@material-ui/core/styles';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { Text, TagGroup, Tag } from '@backstage/ui';
7
3
  import { Link } from '@backstage/core-components';
8
4
  import { HighlightedSearchResultText } from '@backstage/plugin-search-react';
5
+ import styles from './ToolSearchResultListItem.module.css.esm.js';
9
6
 
10
- const useStyles = makeStyles(
11
- {
12
- flexContainer: {
13
- flexWrap: "wrap"
14
- },
15
- itemText: {
16
- width: "100%",
17
- wordBreak: "break-all",
18
- marginBottom: "1rem"
19
- }
20
- },
21
- { name: "ExploreToolSearchResultListItem" }
22
- );
23
7
  function ToolSearchResultListItem(props) {
24
8
  const result = props.result;
25
- const classes = useStyles();
26
9
  if (!result) return null;
27
- return /* @__PURE__ */ jsxs(Fragment, { children: [
28
- props.icon && /* @__PURE__ */ jsx(ListItemIcon, { children: typeof props.icon === "function" ? props.icon(result) : props.icon }),
29
- /* @__PURE__ */ jsxs("div", { className: classes.flexContainer, children: [
30
- /* @__PURE__ */ jsx(
31
- ListItemText,
32
- {
33
- className: classes.itemText,
34
- primaryTypographyProps: { variant: "h6" },
35
- primary: /* @__PURE__ */ jsx(Link, { noTrack: true, to: result.location, children: props.highlight?.fields.title ? /* @__PURE__ */ jsx(
36
- HighlightedSearchResultText,
37
- {
38
- text: props.highlight.fields.title,
39
- preTag: props.highlight.preTag,
40
- postTag: props.highlight.postTag
41
- }
42
- ) : result.title }),
43
- secondary: props.highlight?.fields.text ? /* @__PURE__ */ jsx(
44
- HighlightedSearchResultText,
45
- {
46
- text: props.highlight.fields.text,
47
- preTag: props.highlight.preTag,
48
- postTag: props.highlight.postTag
49
- }
50
- ) : result.text
51
- }
52
- ),
53
- /* @__PURE__ */ jsx(Box, { children: result.tags?.map((tag) => /* @__PURE__ */ jsx(Chip, { label: tag, size: "small" })) })
10
+ return /* @__PURE__ */ jsxs("div", { className: styles.item, children: [
11
+ props.icon && /* @__PURE__ */ jsx("div", { className: styles.listItemIcon, children: typeof props.icon === "function" ? props.icon(result) : props.icon }),
12
+ /* @__PURE__ */ jsxs("div", { className: styles.flexContainer, children: [
13
+ /* @__PURE__ */ jsxs("div", { className: styles.itemText, children: [
14
+ /* @__PURE__ */ jsx(Text, { variant: "title-small", children: /* @__PURE__ */ jsx(Link, { noTrack: true, to: result.location, children: props.highlight?.fields.title ? /* @__PURE__ */ jsx(
15
+ HighlightedSearchResultText,
16
+ {
17
+ text: props.highlight.fields.title,
18
+ preTag: props.highlight.preTag,
19
+ postTag: props.highlight.postTag
20
+ }
21
+ ) : result.title }) }),
22
+ /* @__PURE__ */ jsx(Text, { variant: "body-small", color: "secondary", children: props.highlight?.fields.text ? /* @__PURE__ */ jsx(
23
+ HighlightedSearchResultText,
24
+ {
25
+ text: props.highlight.fields.text,
26
+ preTag: props.highlight.preTag,
27
+ postTag: props.highlight.postTag
28
+ }
29
+ ) : result.text })
30
+ ] }),
31
+ result.tags?.length ? /* @__PURE__ */ jsx(TagGroup, { children: result.tags.map((tag) => /* @__PURE__ */ jsx(Tag, { size: "small", children: tag }, tag)) }) : null
54
32
  ] })
55
33
  ] });
56
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ToolSearchResultListItem.esm.js","sources":["../../../src/components/ToolSearchResultListItem/ToolSearchResultListItem.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 */\n\nimport { ReactNode } from 'react';\nimport Box from '@material-ui/core/Box';\nimport Chip from '@material-ui/core/Chip';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Link } from '@backstage/core-components';\nimport {\n IndexableDocument,\n ResultHighlight,\n} from '@backstage/plugin-search-common';\nimport { HighlightedSearchResultText } from '@backstage/plugin-search-react';\n\nconst useStyles = makeStyles(\n {\n flexContainer: {\n flexWrap: 'wrap',\n },\n itemText: {\n width: '100%',\n wordBreak: 'break-all',\n marginBottom: '1rem',\n },\n },\n { name: 'ExploreToolSearchResultListItem' },\n);\n\n/**\n * Props for {@link ToolSearchResultListItem}.\n *\n * @public\n */\nexport interface ToolSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n}\n\n/** @public */\nexport function ToolSearchResultListItem(props: ToolSearchResultListItemProps) {\n const result = props.result as any;\n\n const classes = useStyles();\n\n if (!result) return null;\n\n return (\n <>\n {props.icon && (\n <ListItemIcon>\n {typeof props.icon === 'function' ? props.icon(result) : props.icon}\n </ListItemIcon>\n )}\n <div className={classes.flexContainer}>\n <ListItemText\n className={classes.itemText}\n primaryTypographyProps={{ variant: 'h6' }}\n primary={\n <Link noTrack to={result.location}>\n {props.highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={props.highlight.fields.title}\n preTag={props.highlight.preTag}\n postTag={props.highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n }\n secondary={\n props.highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={props.highlight.fields.text}\n preTag={props.highlight.preTag}\n postTag={props.highlight.postTag}\n />\n ) : (\n result.text\n )\n }\n />\n <Box>\n {result.tags?.map((tag: string) => (\n <Chip label={tag} size=\"small\" />\n ))}\n </Box>\n </div>\n </>\n );\n}\n"],"names":[],"mappings":";;;;;;;;;AA6BA,MAAM,SAAA,GAAY,UAAA;AAAA,EAChB;AAAA,IACE,aAAA,EAAe;AAAA,MACb,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,QAAA,EAAU;AAAA,MACR,KAAA,EAAO,MAAA;AAAA,MACP,SAAA,EAAW,WAAA;AAAA,MACX,YAAA,EAAc;AAAA;AAChB,GACF;AAAA,EACA,EAAE,MAAM,iCAAA;AACV,CAAA;AAeO,SAAS,yBAAyB,KAAA,EAAsC;AAC7E,EAAA,MAAM,SAAS,KAAA,CAAM,MAAA;AAErB,EAAA,MAAM,UAAU,SAAA,EAAU;AAE1B,EAAA,IAAI,CAAC,QAAQ,OAAO,IAAA;AAEpB,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACG,QAAA,EAAA;AAAA,IAAA,KAAA,CAAM,IAAA,oBACL,GAAA,CAAC,YAAA,EAAA,EACE,QAAA,EAAA,OAAO,KAAA,CAAM,IAAA,KAAS,UAAA,GAAa,KAAA,CAAM,IAAA,CAAK,MAAM,CAAA,GAAI,KAAA,CAAM,IAAA,EACjE,CAAA;AAAA,oBAEF,IAAA,CAAC,KAAA,EAAA,EAAI,S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olSearchResultListItem/ToolSearchResultListItem.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 */\n\nimport { ReactNode } from 'react';\nimport { Tag, TagGroup, Text } from '@backstage/ui';\nimport { Link } from '@backstage/core-components';\nimport {\n IndexableDocument,\n ResultHighlight,\n} from '@backstage/plugin-search-common';\nimport { HighlightedSearchResultText } from '@backstage/plugin-search-react';\nimport styles from './ToolSearchResultListItem.module.css';\n\n/**\n * Props for {@link ToolSearchResultListItem}.\n *\n * @public\n */\nexport interface ToolSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n}\n\n/** @public */\nexport function ToolSearchResultListItem(props: ToolSearchResultListItemProps) {\n const result = props.result as any;\n\n if (!result) return null;\n\n return (\n <div className={styles.item}>\n {props.icon && (\n <div className={styles.listItemIcon}>\n {typeof props.icon === 'function' ? props.icon(result) : props.icon}\n </div>\n )}\n <div className={styles.flexContainer}>\n <div className={styles.itemText}>\n <Text variant=\"title-small\">\n <Link noTrack to={result.location}>\n {props.highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={props.highlight.fields.title}\n preTag={props.highlight.preTag}\n postTag={props.highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n </Text>\n <Text variant=\"body-small\" color=\"secondary\">\n {props.highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={props.highlight.fields.text}\n preTag={props.highlight.preTag}\n postTag={props.highlight.postTag}\n />\n ) : (\n result.text\n )}\n </Text>\n </div>\n {result.tags?.length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ACF,CAAA;AAAA,wBACA,GAAA,CAAC,QAAK,OAAA,EAAQ,YAAA,EAAa,OAAM,WAAA,EAC9B,QAAA,EAAA,KAAA,CAAM,SAAA,EAAW,MAAA,CAAO,IAAA,mBACvB,GAAA;AAAA,UAAC,2BAAA;AAAA,UAAA;AAAA,YACC,IAAA,EAAM,KAAA,CAAM,SAAA,CAAU,MAAA,CAAO,IAAA;AAAA,YAC7B,MAAA,EAAQ,MAAM,SAAA,CAAU,MAAA;AAAA,YACxB,OAAA,EAAS,MAAM,SAAA,CAAU;AAAA;AAAA,SAC3B,GAEA,OAAO,IAAA,EAEX;AAAA,OAAA,EACF,CAAA;AAAA,MACC,OAAO,IAAA,EAAM,MAAA,uBACX,QAAA,EAAA,EACE,QAAA,EAAA,MAAA,CAAO,KAAK,GAAA,CAAI,CAAC,GAAA,qBAChB,GAAA,CAAC,OAAc,IAAA,EAAK,OAAA,EACjB,iBADO,GAEV,CACD,GACH,CAAA,GACE;AAAA,KAAA,EACN;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
@@ -0,0 +1,8 @@
1
+ import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
+
3
+ var css_248z = "/*\n * Copyright 2026 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 */\n\n.ToolSearchResultListItem_item__5b4c1c8a52 {\n display: flex;\n align-items: flex-start;\n gap: var(--bui-space-2);\n width: 100%;\n}\n\n.ToolSearchResultListItem_listItemIcon__5b4c1c8a52 {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n margin-top: var(--bui-space-1);\n}\n\n.ToolSearchResultListItem_flexContainer__5b4c1c8a52 {\n display: flex;\n flex-wrap: wrap;\n flex: 1;\n min-width: 0;\n gap: var(--bui-space-2);\n}\n\n.ToolSearchResultListItem_itemText__5b4c1c8a52 {\n width: 100%;\n word-break: break-word;\n margin-bottom: var(--bui-space-2);\n}\n";
4
+ var styles = {"item":"ToolSearchResultListItem_item__5b4c1c8a52","listItemIcon":"ToolSearchResultListItem_listItemIcon__5b4c1c8a52","flexContainer":"ToolSearchResultListItem_flexContainer__5b4c1c8a52","itemText":"ToolSearchResultListItem_itemText__5b4c1c8a52"};
5
+ styleInject(css_248z);
6
+
7
+ export { styles as default };
8
+ //# sourceMappingURL=ToolSearchResultListItem.module.css.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolSearchResultListItem.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}