@backstage-community/plugin-explore 0.17.0 → 1.0.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/alpha.d.ts +31 -31
  3. package/dist/alpha.esm.js +12 -16
  4. package/dist/alpha.esm.js.map +1 -1
  5. package/dist/api/ExploreApi.esm.js.map +1 -1
  6. package/dist/api/ExploreClient.esm.js.map +1 -1
  7. package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js +3 -4
  8. package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js.map +1 -1
  9. package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js +5 -12
  10. package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js.map +1 -1
  11. package/dist/components/DomainCard/DomainCard.esm.js +6 -11
  12. package/dist/components/DomainCard/DomainCard.esm.js.map +1 -1
  13. package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js +3 -4
  14. package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js.map +1 -1
  15. package/dist/components/DomainExplorerContent/index.esm.js +5 -1
  16. package/dist/components/DomainExplorerContent/index.esm.js.map +1 -1
  17. package/dist/components/EntityCard/EntityCard.esm.js +14 -13
  18. package/dist/components/EntityCard/EntityCard.esm.js.map +1 -1
  19. package/dist/components/ExploreLayout/ExploreLayout.esm.js +46 -14
  20. package/dist/components/ExploreLayout/ExploreLayout.esm.js.map +1 -1
  21. package/dist/components/ExplorePage/ExplorePage.esm.js.map +1 -1
  22. package/dist/components/ExplorePage/index.esm.js +5 -1
  23. package/dist/components/ExplorePage/index.esm.js.map +1 -1
  24. package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js +17 -79
  25. package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js.map +1 -1
  26. package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js +8 -0
  27. package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js.map +1 -0
  28. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js +2 -13
  29. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js.map +1 -1
  30. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js +8 -0
  31. package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js.map +1 -0
  32. package/dist/components/GroupsExplorerContent/index.esm.js +5 -1
  33. package/dist/components/GroupsExplorerContent/index.esm.js.map +1 -1
  34. package/dist/components/ToolCard/ToolCard.esm.js +18 -60
  35. package/dist/components/ToolCard/ToolCard.esm.js.map +1 -1
  36. package/dist/components/ToolCard/ToolCard.module.css.esm.js +8 -0
  37. package/dist/components/ToolCard/ToolCard.module.css.esm.js.map +1 -0
  38. package/dist/components/ToolExplorerContent/ToolExplorerContent.esm.js.map +1 -1
  39. package/dist/components/ToolExplorerContent/index.esm.js +5 -1
  40. package/dist/components/ToolExplorerContent/index.esm.js.map +1 -1
  41. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js +25 -47
  42. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js.map +1 -1
  43. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js +8 -0
  44. package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js.map +1 -0
  45. package/dist/components/ToolSearchResultListItem/index.esm.js +5 -1
  46. package/dist/components/ToolSearchResultListItem/index.esm.js.map +1 -1
  47. package/dist/extensions.esm.js.map +1 -1
  48. package/dist/index.d.ts +26 -21
  49. package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js +29 -0
  50. package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js.map +1 -0
  51. package/dist/plugin.esm.js +2 -2
  52. package/dist/plugin.esm.js.map +1 -1
  53. package/dist/routes.esm.js.map +1 -1
  54. package/package.json +22 -21
@@ -1,2 +1,6 @@
1
- export { ToolExplorerContent } from './ToolExplorerContent.esm.js';
1
+ import { ToolExplorerContent } from './ToolExplorerContent.esm.js';
2
+
3
+
4
+
5
+ export { ToolExplorerContent };
2
6
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.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,SAAY,GAAA,UAAA;AAAA,EAChB;AAAA,IACE,aAAe,EAAA;AAAA,MACb,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,QAAU,EAAA;AAAA,MACR,KAAO,EAAA,MAAA;AAAA,MACP,SAAW,EAAA,WAAA;AAAA,MACX,YAAc,EAAA;AAAA;AAChB,GACF;AAAA,EACA,EAAE,MAAM,iCAAkC;AAC5C,CAAA;AAeO,SAAS,yBAAyB,KAAsC,EAAA;AAC7E,EAAA,MAAM,SAAS,KAAM,CAAA,MAAA;AAErB,EAAA,MAAM,UAAU,SAAU,EAAA;AAE1B,EAAI,IAAA,CAAC,QAAe,OAAA,IAAA;AAEpB,EAAA,uBAEK,IAAA,CAAA,QAAA,EAAA,EAAA,QAAA,EAAA;AAAA,IAAA,KAAA,CAAM,IACL,oBAAA,GAAA,CAAC,YACE,EAAA,EAAA,QAAA,EAAA,OAAO,KAAM,CAAA,IAAA,KAAS,UAAa,GAAA,KAAA,CAAM,IAAK,CAAA,MAAM,CAAI,GAAA,KAAA,CAAM,IACjE,EAAA,CAAA;AAAA,oBAED,IAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,OAAA,CAAQ,aACtB,EAAA,QAAA,EAAA;AAAA,sBAAA,GAAA;AAAA,QAAC,YAAA;AAAA,QAAA;AAAA,UACC,WAAW,OAAQ,CAAA,QAAA;AAAA,UACnB,sBAAA,EAAwB,EAAE,OAAA,EAAS,IAAK,EAAA;AAAA,UACxC,OAAA,kBACG,GAAA,CAAA,IAAA,EAAA,EAAK,OAAO,EAAA,IAAA,EAAC,EAAI,EAAA,MAAA,CAAO,QACtB,EAAA,QAAA,EAAA,KAAA,CAAM,SAAW,EAAA,MAAA,CAAO,KACvB,mBAAA,GAAA;AAAA,YAAC,2BAAA;AAAA,YAAA;AAAA,cACC,IAAA,EAAM,KAAM,CAAA,SAAA,CAAU,MAAO,CAAA,KAAA;AAAA,cAC7B,MAAA,EAAQ,MAAM,SAAU,CAAA,MAAA;AAAA,cACxB,OAAA,EAAS,MAAM,SAAU,CAAA;AAAA;AAAA,WAC3B,GAEA,OAAO,KAEX,EAAA,CAAA;AAAA,UAEF,SACE,EAAA,KAAA,CAAM,SAAW,EAAA,MAAA,CAAO,IACtB,mBAAA,GAAA;AAAA,YAAC,2BAAA;AAAA,YAAA;AAAA,cACC,IAAA,EAAM,KAAM,CAAA,SAAA,CAAU,MAAO,CAAA,IAAA;AAAA,cAC7B,MAAA,EAAQ,MAAM,SAAU,CAAA,MAAA;AAAA,cACxB,OAAA,EAAS,MAAM,SAAU,CAAA;AAAA;AAAA,cAG3B,MAAO,CAAA;AAAA;AAAA,OAGb;AAAA,sBACC,GAAA,CAAA,GAAA,EAAA,EACE,QAAO,EAAA,MAAA,CAAA,IAAA,EAAM,IAAI,CAAC,GAAA,qBAChB,GAAA,CAAA,IAAA,EAAA,EAAK,KAAO,EAAA,GAAA,EAAK,IAAK,EAAA,OAAA,EAAQ,CAChC,CACH,EAAA;AAAA,KACF,EAAA;AAAA,GACF,EAAA,CAAA;AAEJ;;;;"}
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 { 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 ? (\n <TagGroup>\n {result.tags.map((tag: string) => (\n <Tag key={tag} size=\"small\">\n {tag}\n </Tag>\n ))}\n </TagGroup>\n ) : null}\n </div>\n </div>\n );\n}\n"],"names":[],"mappings":";;;;;;AAuCO,SAAS,yBAAyB,KAAA,EAAsC;AAC7E,EAAA,MAAM,SAAS,KAAA,CAAM,MAAA;AAErB,EAAA,IAAI,CAAC,QAAQ,OAAO,IAAA;AAEpB,EAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,IAAA,EACpB,QAAA,EAAA;AAAA,IAAA,KAAA,CAAM,IAAA,oBACL,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,OAAO,YAAA,EACpB,QAAA,EAAA,OAAO,KAAA,CAAM,IAAA,KAAS,aAAa,KAAA,CAAM,IAAA,CAAK,MAAM,CAAA,GAAI,MAAM,IAAA,EACjE,CAAA;AAAA,oBAEF,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,aAAA,EACrB,QAAA,EAAA;AAAA,sBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,QAAA,EACrB,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,IAAA,EAAA,EAAK,OAAA,EAAQ,aAAA,EACZ,QAAA,kBAAA,GAAA,CAAC,IAAA,EAAA,EAAK,OAAA,EAAO,IAAA,EAAC,EAAA,EAAI,MAAA,CAAO,QAAA,EACtB,QAAA,EAAA,KAAA,CAAM,SAAA,EAAW,OAAO,KAAA,mBACvB,GAAA;AAAA,UAAC,2BAAA;AAAA,UAAA;AAAA,YACC,IAAA,EAAM,KAAA,CAAM,SAAA,CAAU,MAAA,CAAO,KAAA;AAAA,YAC7B,MAAA,EAAQ,MAAM,SAAA,CAAU,MAAA;AAAA,YACxB,OAAA,EAAS,MAAM,SAAA,CAAU;AAAA;AAAA,SAC3B,GAEA,MAAA,CAAO,KAAA,EAEX,CAAA,EACF,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":";;;;;;;;"}
@@ -1,2 +1,6 @@
1
- export { ToolSearchResultListItem } from './ToolSearchResultListItem.esm.js';
1
+ import { ToolSearchResultListItem } from './ToolSearchResultListItem.esm.js';
2
+
3
+
4
+
5
+ export { ToolSearchResultListItem };
2
6
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.esm.js","sources":["../src/extensions.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 { explorePlugin } from './plugin';\nimport { exploreRouteRef } from './routes';\nimport {\n createComponentExtension,\n createRoutableExtension,\n} from '@backstage/core-plugin-api';\n\n/** @public */\nexport const ExplorePage = explorePlugin.provide(\n createRoutableExtension({\n name: 'ExplorePage',\n component: () =>\n import('./components/ExplorePage').then(m => m.ExplorePage),\n mountPoint: exploreRouteRef,\n }),\n);\n\n/** @public */\nexport const DomainExplorerContent = explorePlugin.provide(\n createComponentExtension({\n name: 'DomainExplorerContent',\n component: {\n lazy: () =>\n import('./components/DomainExplorerContent').then(\n m => m.DomainExplorerContent,\n ),\n },\n }),\n);\n\n/** @public */\nexport const GroupsExplorerContent = explorePlugin.provide(\n createComponentExtension({\n name: 'GroupsExplorerContent',\n component: {\n lazy: () =>\n import('./components/GroupsExplorerContent').then(\n m => m.GroupsExplorerContent,\n ),\n },\n }),\n);\n\n/** @public */\nexport const ToolExplorerContent = explorePlugin.provide(\n createComponentExtension({\n name: 'ToolExplorerContent',\n component: {\n lazy: () =>\n import('./components/ToolExplorerContent').then(\n m => m.ToolExplorerContent,\n ),\n },\n }),\n);\n"],"names":[],"mappings":";;;;AAwBO,MAAM,cAAc,aAAc,CAAA,OAAA;AAAA,EACvC,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,aAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,uCAA0B,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,WAAW,CAAA;AAAA,IAC5D,UAAY,EAAA;AAAA,GACb;AACH;AAGO,MAAM,wBAAwB,aAAc,CAAA,OAAA;AAAA,EACjD,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,uBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MACJ,OAAO,iDAAoC,CAAE,CAAA,IAAA;AAAA,QAC3C,OAAK,CAAE,CAAA;AAAA;AACT;AACJ,GACD;AACH;AAGO,MAAM,wBAAwB,aAAc,CAAA,OAAA;AAAA,EACjD,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,uBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MACJ,OAAO,iDAAoC,CAAE,CAAA,IAAA;AAAA,QAC3C,OAAK,CAAE,CAAA;AAAA;AACT;AACJ,GACD;AACH;AAGO,MAAM,sBAAsB,aAAc,CAAA,OAAA;AAAA,EAC/C,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,qBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MACJ,OAAO,+CAAkC,CAAE,CAAA,IAAA;AAAA,QACzC,OAAK,CAAE,CAAA;AAAA;AACT;AACJ,GACD;AACH;;;;"}
1
+ {"version":3,"file":"extensions.esm.js","sources":["../src/extensions.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 { explorePlugin } from './plugin';\nimport { exploreRouteRef } from './routes';\nimport {\n createComponentExtension,\n createRoutableExtension,\n} from '@backstage/core-plugin-api';\n\n/** @public */\nexport const ExplorePage = explorePlugin.provide(\n createRoutableExtension({\n name: 'ExplorePage',\n component: () =>\n import('./components/ExplorePage').then(m => m.ExplorePage),\n mountPoint: exploreRouteRef,\n }),\n);\n\n/** @public */\nexport const DomainExplorerContent = explorePlugin.provide(\n createComponentExtension({\n name: 'DomainExplorerContent',\n component: {\n lazy: () =>\n import('./components/DomainExplorerContent').then(\n m => m.DomainExplorerContent,\n ),\n },\n }),\n);\n\n/** @public */\nexport const GroupsExplorerContent = explorePlugin.provide(\n createComponentExtension({\n name: 'GroupsExplorerContent',\n component: {\n lazy: () =>\n import('./components/GroupsExplorerContent').then(\n m => m.GroupsExplorerContent,\n ),\n },\n }),\n);\n\n/** @public */\nexport const ToolExplorerContent = explorePlugin.provide(\n createComponentExtension({\n name: 'ToolExplorerContent',\n component: {\n lazy: () =>\n import('./components/ToolExplorerContent').then(\n m => m.ToolExplorerContent,\n ),\n },\n }),\n);\n"],"names":[],"mappings":";;;;AAwBO,MAAM,cAAc,aAAA,CAAc,OAAA;AAAA,EACvC,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,aAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,uCAA0B,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,WAAW,CAAA;AAAA,IAC5D,UAAA,EAAY;AAAA,GACb;AACH;AAGO,MAAM,wBAAwB,aAAA,CAAc,OAAA;AAAA,EACjD,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,uBAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,iDAAoC,CAAA,CAAE,IAAA;AAAA,QAC3C,OAAK,CAAA,CAAE;AAAA;AACT;AACJ,GACD;AACH;AAGO,MAAM,wBAAwB,aAAA,CAAc,OAAA;AAAA,EACjD,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,uBAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,iDAAoC,CAAA,CAAE,IAAA;AAAA,QAC3C,OAAK,CAAA,CAAE;AAAA;AACT;AACJ,GACD;AACH;AAGO,MAAM,sBAAsB,aAAA,CAAc,OAAA;AAAA,EAC/C,wBAAA,CAAyB;AAAA,IACvB,IAAA,EAAM,qBAAA;AAAA,IACN,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,+CAAkC,CAAA,CAAE,IAAA;AAAA,QACzC,OAAK,CAAA,CAAE;AAAA;AACT;AACJ,GACD;AACH;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
- /// <reference types="react" />
2
1
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
3
2
  import { DiscoveryApi, FetchApi } from '@backstage/core-plugin-api';
4
3
  import { GetExploreToolsRequest, GetExploreToolsResponse } from '@backstage-community/plugin-explore-common';
5
4
  import { ExploreToolsConfig } from '@backstage-community/plugin-explore-react';
6
5
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
7
- import * as react_jsx_runtime from 'react/jsx-runtime';
8
- import { TabProps } from '@material-ui/core/Tab';
9
- import React__default, { ReactNode } from 'react';
6
+ import * as react from 'react';
7
+ import react__default, { ReactNode } from 'react';
10
8
  import { DomainEntity } from '@backstage/catalog-model';
11
9
  import * as _backstage_core_components from '@backstage/core-components';
12
10
  import { SearchResultListItemExtensionProps } from '@backstage/plugin-search-react';
@@ -57,22 +55,29 @@ declare class ExploreClient implements ExploreApi {
57
55
  declare const CatalogKindExploreContent: (props: {
58
56
  title?: string;
59
57
  kind: string;
60
- }) => react_jsx_runtime.JSX.Element;
58
+ }) => react.JSX.Element;
61
59
 
62
60
  /** @public */
63
61
  type SubRoute = {
64
62
  path: string;
65
63
  title: string;
66
64
  children: JSX.Element;
67
- tabProps?: TabProps<React__default.ElementType, {
68
- component?: React__default.ElementType;
69
- }>;
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>;
70
71
  };
71
72
  /** @public */
72
73
  type ExploreLayoutProps = {
73
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
+ */
74
79
  subtitle?: string;
75
- children?: React__default.ReactNode;
80
+ children?: react__default.ReactNode;
76
81
  };
77
82
  /**
78
83
  * Explore is a compound component, which allows you to define a custom layout
@@ -89,32 +94,32 @@ type ExploreLayoutProps = {
89
94
  * @public
90
95
  */
91
96
  declare const ExploreLayout: {
92
- (props: ExploreLayoutProps): react_jsx_runtime.JSX.Element;
97
+ (props: ExploreLayoutProps): react__default.JSX.Element;
93
98
  Route: (props: SubRoute) => null;
94
99
  };
95
100
 
96
101
  /** @public */
97
102
  declare const DomainCard: (props: {
98
103
  entity: DomainEntity;
99
- }) => react_jsx_runtime.JSX.Element;
104
+ }) => react.JSX.Element;
100
105
 
101
106
  /** @public */
102
- declare const ExplorePage: () => react_jsx_runtime.JSX.Element;
107
+ declare const ExplorePage: () => react.JSX.Element;
103
108
  /** @public */
104
109
  declare const DomainExplorerContent: (props: {
105
- title?: string | undefined;
106
- }) => react_jsx_runtime.JSX.Element;
110
+ title?: string;
111
+ }) => react.JSX.Element;
107
112
  /** @public */
108
113
  declare const GroupsExplorerContent: (props: {
109
- title?: string | undefined;
110
- direction?: _backstage_core_components.DependencyGraphTypes.Direction | undefined;
111
- hideChildren?: boolean | undefined;
112
- namespace?: string | undefined;
113
- }) => react_jsx_runtime.JSX.Element;
114
+ title?: string;
115
+ direction?: _backstage_core_components.DependencyGraphTypes.Direction;
116
+ hideChildren?: boolean;
117
+ namespace?: string;
118
+ }) => react.JSX.Element;
114
119
  /** @public */
115
120
  declare const ToolExplorerContent: (props: {
116
- title?: string | undefined;
117
- }) => react_jsx_runtime.JSX.Element;
121
+ title?: string;
122
+ }) => react.JSX.Element;
118
123
 
119
124
  /**
120
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]}
@@ -1,6 +1,6 @@
1
1
  import { exploreToolsConfigRef } from '@backstage-community/plugin-explore-react';
2
- import { exploreRouteRef, catalogEntityRouteRef } from './routes.esm.js';
3
- import { createPlugin, createApiFactory, discoveryApiRef, fetchApiRef } from '@backstage/core-plugin-api';
2
+ import { catalogEntityRouteRef, exploreRouteRef } from './routes.esm.js';
3
+ import { createPlugin, createApiFactory, fetchApiRef, discoveryApiRef } from '@backstage/core-plugin-api';
4
4
  import { createSearchResultListItemExtension } from '@backstage/plugin-search-react';
5
5
  import { ExploreClient } from './api/ExploreClient.esm.js';
6
6
  import { exploreApiRef } from './api/ExploreApi.esm.js';
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"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 { exploreToolsConfigRef } from '@backstage-community/plugin-explore-react';\nimport { catalogEntityRouteRef, exploreRouteRef } from './routes';\nimport {\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport {\n createSearchResultListItemExtension,\n SearchResultListItemExtensionProps,\n} from '@backstage/plugin-search-react';\nimport { ExploreClient, exploreApiRef } from './api';\nimport { ToolSearchResultListItemProps } from './components/ToolSearchResultListItem';\n// import { exampleTools } from './util/examples';\n\n/** @public */\nexport const explorePlugin = createPlugin({\n id: 'explore',\n apis: [\n createApiFactory({\n api: exploreApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n exploreToolsConfig: exploreToolsConfigRef,\n },\n factory: ({ discoveryApi, fetchApi, exploreToolsConfig }) =>\n // NOTE: The exploreToolsConfig is for backwards compatibility and will be removed in the future\n new ExploreClient({ discoveryApi, fetchApi, exploreToolsConfig }),\n }),\n /**\n * @deprecated Use ExploreApi from `@backstage-community/plugin-explore` instead\n *\n * Register a default for exploreToolsConfigRef, you may want to override\n * the API locally in your app.\n */\n createApiFactory({\n api: exploreToolsConfigRef,\n deps: {},\n factory: () => ({\n async getTools() {\n // Returning `undefined` will enable the explore-backend to be used via the ExploreClient.\n // If this API has been customized and returns data it will be respected first.\n return undefined as any;\n },\n }),\n }),\n ],\n routes: {\n explore: exploreRouteRef,\n },\n externalRoutes: {\n catalogEntity: catalogEntityRouteRef,\n },\n});\n\n/** @public */\nexport const ToolSearchResultListItem: (\n props: SearchResultListItemExtensionProps<ToolSearchResultListItemProps>,\n) => JSX.Element | null = explorePlugin.provide(\n createSearchResultListItemExtension({\n name: 'ToolSearchResultListItem',\n component: () =>\n import('./components/ToolSearchResultListItem').then(\n m => m.ToolSearchResultListItem,\n ),\n predicate: result => result.type === 'tools',\n }),\n);\n"],"names":[],"mappings":";;;;;;;AAiCO,MAAM,gBAAgB,YAAa,CAAA;AAAA,EACxC,EAAI,EAAA,SAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,aAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA,eAAA;AAAA,QACd,QAAU,EAAA,WAAA;AAAA,QACV,kBAAoB,EAAA;AAAA,OACtB;AAAA,MACA,OAAS,EAAA,CAAC,EAAE,YAAA,EAAc,UAAU,kBAAmB,EAAA;AAAA;AAAA,QAErD,IAAI,aAAc,CAAA,EAAE,YAAc,EAAA,QAAA,EAAU,oBAAoB;AAAA;AAAA,KACnE,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOD,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,qBAAA;AAAA,MACL,MAAM,EAAC;AAAA,MACP,SAAS,OAAO;AAAA,QACd,MAAM,QAAW,GAAA;AAGf,UAAO,OAAA,KAAA,CAAA;AAAA;AACT,OACF;AAAA,KACD;AAAA,GACH;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,aAAe,EAAA;AAAA;AAEnB,CAAC;AAGM,MAAM,2BAEa,aAAc,CAAA,OAAA;AAAA,EACtC,mCAAoC,CAAA;AAAA,IAClC,IAAM,EAAA,0BAAA;AAAA,IACN,SAAW,EAAA,MACT,OAAO,oDAAuC,CAAE,CAAA,IAAA;AAAA,MAC9C,OAAK,CAAE,CAAA;AAAA,KACT;AAAA,IACF,SAAA,EAAW,CAAU,MAAA,KAAA,MAAA,CAAO,IAAS,KAAA;AAAA,GACtC;AACH;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"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 { exploreToolsConfigRef } from '@backstage-community/plugin-explore-react';\nimport { catalogEntityRouteRef, exploreRouteRef } from './routes';\nimport {\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport {\n createSearchResultListItemExtension,\n SearchResultListItemExtensionProps,\n} from '@backstage/plugin-search-react';\nimport { ExploreClient, exploreApiRef } from './api';\nimport { ToolSearchResultListItemProps } from './components/ToolSearchResultListItem';\n// import { exampleTools } from './util/examples';\n\n/** @public */\nexport const explorePlugin = createPlugin({\n id: 'explore',\n apis: [\n createApiFactory({\n api: exploreApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n exploreToolsConfig: exploreToolsConfigRef,\n },\n factory: ({ discoveryApi, fetchApi, exploreToolsConfig }) =>\n // NOTE: The exploreToolsConfig is for backwards compatibility and will be removed in the future\n new ExploreClient({ discoveryApi, fetchApi, exploreToolsConfig }),\n }),\n /**\n * @deprecated Use ExploreApi from `@backstage-community/plugin-explore` instead\n *\n * Register a default for exploreToolsConfigRef, you may want to override\n * the API locally in your app.\n */\n createApiFactory({\n api: exploreToolsConfigRef,\n deps: {},\n factory: () => ({\n async getTools() {\n // Returning `undefined` will enable the explore-backend to be used via the ExploreClient.\n // If this API has been customized and returns data it will be respected first.\n return undefined as any;\n },\n }),\n }),\n ],\n routes: {\n explore: exploreRouteRef,\n },\n externalRoutes: {\n catalogEntity: catalogEntityRouteRef,\n },\n});\n\n/** @public */\nexport const ToolSearchResultListItem: (\n props: SearchResultListItemExtensionProps<ToolSearchResultListItemProps>,\n) => JSX.Element | null = explorePlugin.provide(\n createSearchResultListItemExtension({\n name: 'ToolSearchResultListItem',\n component: () =>\n import('./components/ToolSearchResultListItem').then(\n m => m.ToolSearchResultListItem,\n ),\n predicate: result => result.type === 'tools',\n }),\n);\n"],"names":[],"mappings":";;;;;;;AAiCO,MAAM,gBAAgB,YAAA,CAAa;AAAA,EACxC,EAAA,EAAI,SAAA;AAAA,EACJ,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,aAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc,eAAA;AAAA,QACd,QAAA,EAAU,WAAA;AAAA,QACV,kBAAA,EAAoB;AAAA,OACtB;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,UAAU,kBAAA,EAAmB;AAAA;AAAA,QAErD,IAAI,aAAA,CAAc,EAAE,YAAA,EAAc,QAAA,EAAU,oBAAoB;AAAA;AAAA,KACnE,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOD,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,qBAAA;AAAA,MACL,MAAM,EAAC;AAAA,MACP,SAAS,OAAO;AAAA,QACd,MAAM,QAAA,GAAW;AAGf,UAAA,OAAO,MAAA;AAAA,QACT;AAAA,OACF;AAAA,KACD;AAAA,GACH;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,aAAA,EAAe;AAAA;AAEnB,CAAC;AAGM,MAAM,2BAEa,aAAA,CAAc,OAAA;AAAA,EACtC,mCAAA,CAAoC;AAAA,IAClC,IAAA,EAAM,0BAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,oDAAuC,CAAA,CAAE,IAAA;AAAA,MAC9C,OAAK,CAAA,CAAE;AAAA,KACT;AAAA,IACF,SAAA,EAAW,CAAA,MAAA,KAAU,MAAA,CAAO,IAAA,KAAS;AAAA,GACtC;AACH;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"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 {\n createExternalRouteRef,\n createRouteRef,\n} from '@backstage/core-plugin-api';\n\n/** @public */\nexport const exploreRouteRef = createRouteRef({\n id: 'explore',\n});\n\n/**\n * @deprecated This route is no longer used and can be removed\n * @public\n */\nexport const catalogEntityRouteRef = createExternalRouteRef({\n id: 'catalog-entity',\n params: ['namespace', 'kind', 'name'],\n optional: true,\n});\n"],"names":[],"mappings":";;AAsBO,MAAM,kBAAkB,cAAe,CAAA;AAAA,EAC5C,EAAI,EAAA;AACN,CAAC;AAMM,MAAM,wBAAwB,sBAAuB,CAAA;AAAA,EAC1D,EAAI,EAAA,gBAAA;AAAA,EACJ,MAAQ,EAAA,CAAC,WAAa,EAAA,MAAA,EAAQ,MAAM,CAAA;AAAA,EACpC,QAAU,EAAA;AACZ,CAAC;;;;"}
1
+ {"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"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 {\n createExternalRouteRef,\n createRouteRef,\n} from '@backstage/core-plugin-api';\n\n/** @public */\nexport const exploreRouteRef = createRouteRef({\n id: 'explore',\n});\n\n/**\n * @deprecated This route is no longer used and can be removed\n * @public\n */\nexport const catalogEntityRouteRef = createExternalRouteRef({\n id: 'catalog-entity',\n params: ['namespace', 'kind', 'name'],\n optional: true,\n});\n"],"names":[],"mappings":";;AAsBO,MAAM,kBAAkB,cAAA,CAAe;AAAA,EAC5C,EAAA,EAAI;AACN,CAAC;AAMM,MAAM,wBAAwB,sBAAA,CAAuB;AAAA,EAC1D,EAAA,EAAI,gBAAA;AAAA,EACJ,MAAA,EAAQ,CAAC,WAAA,EAAa,MAAA,EAAQ,MAAM,CAAA;AAAA,EACpC,QAAA,EAAU;AACZ,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-explore",
3
- "version": "0.17.0",
3
+ "version": "1.0.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,32 +69,33 @@
69
69
  "test": "backstage-cli package test"
70
70
  },
71
71
  "dependencies": {
72
- "@backstage-community/plugin-explore-common": "^0.12.0",
73
- "@backstage-community/plugin-explore-react": "^0.12.0",
74
- "@backstage/catalog-client": "^1.12.1",
75
- "@backstage/catalog-model": "^1.7.6",
76
- "@backstage/core-compat-api": "^0.5.7",
77
- "@backstage/core-components": "^0.18.6",
78
- "@backstage/core-plugin-api": "^1.12.2",
79
- "@backstage/errors": "^1.2.7",
80
- "@backstage/frontend-plugin-api": "^0.13.4",
81
- "@backstage/plugin-catalog-react": "^1.21.6",
82
- "@backstage/plugin-search-common": "^1.2.21",
83
- "@backstage/plugin-search-react": "^1.10.2",
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.35.3",
93
- "@backstage/core-app-api": "^1.19.4",
94
- "@backstage/dev-utils": "^1.1.19",
95
- "@backstage/frontend-defaults": "^0.3.6",
96
- "@backstage/plugin-catalog": "^1.32.2",
97
- "@backstage/test-utils": "^1.7.14",
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",
98
99
  "@testing-library/dom": "^10.0.0",
99
100
  "@testing-library/jest-dom": "^6.0.0",
100
101
  "@testing-library/react": "^15.0.0",