@backstage/plugin-catalog 1.9.0 → 1.10.0-next.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 (52) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/esm/{index/index-53c4b98e.esm.js → index-1854ce20.esm.js} +2 -2
  3. package/dist/esm/index-1854ce20.esm.js.map +1 -0
  4. package/dist/esm/{index/index-474c17e4.esm.js → index-51c16459.esm.js} +2 -2
  5. package/dist/esm/index-51c16459.esm.js.map +1 -0
  6. package/dist/esm/{index/index-e33a5495.esm.js → index-579c0e06.esm.js} +2 -2
  7. package/dist/esm/index-579c0e06.esm.js.map +1 -0
  8. package/dist/esm/{index/index-e2ea81b3.esm.js → index-60adddb8.esm.js} +2 -2
  9. package/dist/esm/index-60adddb8.esm.js.map +1 -0
  10. package/dist/esm/{index/index-c4df4a0a.esm.js → index-62df5b29.esm.js} +2 -2
  11. package/dist/esm/index-62df5b29.esm.js.map +1 -0
  12. package/dist/esm/{index/index-1f414093.esm.js → index-796cbb22.esm.js} +2 -2
  13. package/dist/esm/index-796cbb22.esm.js.map +1 -0
  14. package/dist/esm/{index/index-e4233e9c.esm.js → index-84bbec44.esm.js} +2 -2
  15. package/dist/esm/index-84bbec44.esm.js.map +1 -0
  16. package/dist/esm/{index/index-623874b5.esm.js → index-a6b7e5a0.esm.js} +2 -2
  17. package/dist/esm/index-a6b7e5a0.esm.js.map +1 -0
  18. package/dist/esm/{index/index-7577d574.esm.js → index-c8cbb868.esm.js} +2 -2
  19. package/dist/esm/index-c8cbb868.esm.js.map +1 -0
  20. package/dist/esm/{index/index-b3cf2aa8.esm.js → index-ccf06d4f.esm.js} +1 -1
  21. package/dist/esm/index-ccf06d4f.esm.js.map +1 -0
  22. package/dist/esm/{index/index-24fe0330.esm.js → index-d22f6268.esm.js} +31 -22
  23. package/dist/esm/index-d22f6268.esm.js.map +1 -0
  24. package/dist/esm/{index/index-deb6f173.esm.js → index-d32ca604.esm.js} +2 -2
  25. package/dist/esm/index-d32ca604.esm.js.map +1 -0
  26. package/dist/esm/{index/index-cd3a4ec9.esm.js → index-d90db135.esm.js} +2 -2
  27. package/dist/esm/index-d90db135.esm.js.map +1 -0
  28. package/dist/esm/{index/index-e51e2afb.esm.js → index-e2fd22f4.esm.js} +2 -2
  29. package/dist/esm/index-e2fd22f4.esm.js.map +1 -0
  30. package/dist/esm/{index/index-83561c1f.esm.js → index-f0e32dd1.esm.js} +1 -1
  31. package/dist/esm/index-f0e32dd1.esm.js.map +1 -0
  32. package/dist/esm/{index/presets-1d9f313a.esm.js → presets-8f6d8412.esm.js} +1 -1
  33. package/dist/esm/presets-8f6d8412.esm.js.map +1 -0
  34. package/dist/index.d.ts +16 -1
  35. package/dist/index.esm.js +1 -1
  36. package/package.json +18 -16
  37. package/dist/esm/index/index-1f414093.esm.js.map +0 -1
  38. package/dist/esm/index/index-24fe0330.esm.js.map +0 -1
  39. package/dist/esm/index/index-474c17e4.esm.js.map +0 -1
  40. package/dist/esm/index/index-53c4b98e.esm.js.map +0 -1
  41. package/dist/esm/index/index-623874b5.esm.js.map +0 -1
  42. package/dist/esm/index/index-7577d574.esm.js.map +0 -1
  43. package/dist/esm/index/index-83561c1f.esm.js.map +0 -1
  44. package/dist/esm/index/index-b3cf2aa8.esm.js.map +0 -1
  45. package/dist/esm/index/index-c4df4a0a.esm.js.map +0 -1
  46. package/dist/esm/index/index-cd3a4ec9.esm.js.map +0 -1
  47. package/dist/esm/index/index-deb6f173.esm.js.map +0 -1
  48. package/dist/esm/index/index-e2ea81b3.esm.js.map +0 -1
  49. package/dist/esm/index/index-e33a5495.esm.js.map +0 -1
  50. package/dist/esm/index/index-e4233e9c.esm.js.map +0 -1
  51. package/dist/esm/index/index-e51e2afb.esm.js.map +0 -1
  52. package/dist/esm/index/presets-1d9f313a.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
+ ## 1.10.0-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e0c6e8b9c3c: Update peer dependencies
8
+ - Updated dependencies
9
+ - @backstage/core-components@0.12.6-next.1
10
+ - @backstage/integration-react@1.1.12-next.1
11
+ - @backstage/core-plugin-api@1.5.1-next.0
12
+ - @backstage/plugin-catalog-react@1.4.1-next.1
13
+ - @backstage/plugin-search-react@1.5.2-next.1
14
+ - @backstage/theme@0.2.19-next.0
15
+ - @backstage/catalog-client@1.4.0
16
+ - @backstage/catalog-model@1.2.1
17
+ - @backstage/errors@1.1.5
18
+ - @backstage/types@1.0.2
19
+ - @backstage/plugin-catalog-common@1.0.13-next.0
20
+ - @backstage/plugin-search-common@1.2.3-next.0
21
+
22
+ ## 1.10.0-next.0
23
+
24
+ ### Minor Changes
25
+
26
+ - 4dbf3d3e4da: Added a new EntitySwitch isResourceType to allow different views depending on Resource type
27
+ - fc6cab4eb48: Added `isEntityWith` condition helper for `EntitySwitch` case statements.
28
+
29
+ ### Patch Changes
30
+
31
+ - 8e00acb28db: Small tweaks to remove warnings in the console during development (mainly focusing on techdocs)
32
+ - Updated dependencies
33
+ - @backstage/core-components@0.12.6-next.0
34
+ - @backstage/plugin-search-react@1.5.2-next.0
35
+ - @backstage/plugin-catalog-react@1.4.1-next.0
36
+ - @backstage/integration-react@1.1.12-next.0
37
+ - @backstage/core-plugin-api@1.5.0
38
+ - @backstage/catalog-client@1.4.0
39
+ - @backstage/catalog-model@1.2.1
40
+ - @backstage/errors@1.1.5
41
+ - @backstage/theme@0.2.18
42
+ - @backstage/types@1.0.2
43
+ - @backstage/plugin-catalog-common@1.0.12
44
+ - @backstage/plugin-search-common@1.2.2
45
+
3
46
  ## 1.9.0
4
47
 
5
48
  ### Minor Changes
@@ -3,7 +3,7 @@ import LanguageIcon from '@material-ui/icons/Language';
3
3
  import React from 'react';
4
4
  import { makeStyles, Typography, Button } from '@material-ui/core';
5
5
  import { CodeSnippet, InfoCard } from '@backstage/core-components';
6
- import { L as LinksGridList } from './index-24fe0330.esm.js';
6
+ import { L as LinksGridList } from './index-d22f6268.esm.js';
7
7
  import { useApp } from '@backstage/core-plugin-api';
8
8
  import 'zen-observable';
9
9
  import '@backstage/catalog-model';
@@ -93,4 +93,4 @@ const EntityLinksCard = (props) => {
93
93
  };
94
94
 
95
95
  export { EntityLinksCard };
96
- //# sourceMappingURL=index-53c4b98e.esm.js.map
96
+ //# sourceMappingURL=index-1854ce20.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-1854ce20.esm.js","sources":["../../src/components/EntityLinksCard/EntityLinksEmptyState.tsx","../../src/components/EntityLinksCard/EntityLinksCard.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 { BackstageTheme } from '@backstage/theme';\nimport { Button, makeStyles, Typography } from '@material-ui/core';\nimport React from 'react';\nimport { CodeSnippet } from '@backstage/core-components';\n\nconst ENTITY_YAML = `metadata:\n name: example\n links:\n - url: https://dashboard.example.com\n title: My Dashboard\n icon: dashboard`;\n\n/** @public */\nexport type EntityLinksEmptyStateClassKey = 'code';\n\nconst useStyles = makeStyles<BackstageTheme>(\n theme => ({\n code: {\n borderRadius: 6,\n margin: `${theme.spacing(2)}px 0px`,\n background:\n theme.palette.type === 'dark' ? '#444' : theme.palette.common.white,\n },\n }),\n { name: 'PluginCatalogEntityLinksEmptyState' },\n);\n\nexport function EntityLinksEmptyState() {\n const classes = useStyles();\n\n return (\n <>\n <Typography variant=\"body1\">\n No links defined for this entity. You can add links to your entity YAML\n as shown in the highlighted example below:\n </Typography>\n <div className={classes.code}>\n <CodeSnippet\n text={ENTITY_YAML}\n language=\"yaml\"\n showLineNumbers\n highlightedNumbers={[3, 4, 5, 6]}\n customStyle={{ background: 'inherit', fontSize: '115%' }}\n />\n </div>\n <Button\n variant=\"contained\"\n color=\"primary\"\n target=\"_blank\"\n href=\"https://backstage.io/docs/features/software-catalog/descriptor-format#links-optional\"\n >\n Read more\n </Button>\n </>\n );\n}\n","/*\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 { useEntity } from '@backstage/plugin-catalog-react';\nimport LanguageIcon from '@material-ui/icons/Language';\nimport React from 'react';\nimport { EntityLinksEmptyState } from './EntityLinksEmptyState';\nimport { LinksGridList } from './LinksGridList';\nimport { ColumnBreakpoints } from './types';\nimport { IconComponent, useApp } from '@backstage/core-plugin-api';\nimport { InfoCard, InfoCardVariants } from '@backstage/core-components';\n\n/** @public */\nexport interface EntityLinksCardProps {\n cols?: ColumnBreakpoints | number;\n variant?: InfoCardVariants;\n}\n\nexport const EntityLinksCard = (props: EntityLinksCardProps) => {\n const { cols = undefined, variant } = props;\n const { entity } = useEntity();\n const app = useApp();\n\n const iconResolver = (key?: string): IconComponent =>\n key ? app.getSystemIcon(key) ?? LanguageIcon : LanguageIcon;\n\n const links = entity?.metadata?.links;\n\n return (\n <InfoCard title=\"Links\" variant={variant}>\n {!links || links.length === 0 ? (\n <EntityLinksEmptyState />\n ) : (\n <LinksGridList\n cols={cols}\n items={links.map(({ url, title, icon }) => ({\n text: title ?? url,\n href: url,\n Icon: iconResolver(icon),\n }))}\n />\n )}\n </InfoCard>\n );\n};\n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AAAA,QAC1C,MAAM,KAAS,IAAA,IAAA,GAAA,KAAA,GAAA,GAAA;AAAA,QACf,IAAM,EAAA,GAAA;AAAA,QACN,IAAA,EAAM,aAAa,IAAI,CAAA;AAAA,OACvB,CAAA,CAAA;AAAA,KAAA;AAAA,GAGR,CAAA,CAAA;AAEJ;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { RELATION_DEPENDS_ON } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, d as componentEntityHelpLink, f as asResourceEntities, r as resourceEntityColumns } from './presets-1d9f313a.esm.js';
3
+ import { R as RelatedEntitiesCard, d as componentEntityHelpLink, f as asResourceEntities, r as resourceEntityColumns } from './presets-8f6d8412.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -27,4 +27,4 @@ function DependsOnResourcesCard(props) {
27
27
  }
28
28
 
29
29
  export { DependsOnResourcesCard };
30
- //# sourceMappingURL=index-474c17e4.esm.js.map
30
+ //# sourceMappingURL=index-51c16459.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-51c16459.esm.js","sources":["../../src/components/DependsOnResourcesCard/DependsOnResourcesCard.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 { RELATION_DEPENDS_ON, ResourceEntity } from '@backstage/catalog-model';\nimport { InfoCardVariants, TableColumn } from '@backstage/core-components';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface DependsOnResourcesCardProps {\n variant?: InfoCardVariants;\n title?: string;\n columns?: TableColumn<ResourceEntity>[];\n}\n\nexport function DependsOnResourcesCard(props: DependsOnResourcesCardProps) {\n const {\n variant = 'gridItem',\n title = 'Depends on resources',\n columns = resourceEntityColumns,\n } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={columns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AAiCO,SAAS,uBAAuB,KAAoC,EAAA;AACzE,EAAM,MAAA;AAAA,IACJ,OAAU,GAAA,UAAA;AAAA,IACV,KAAQ,GAAA,sBAAA;AAAA,IACR,OAAU,GAAA,qBAAA;AAAA,GACR,GAAA,KAAA,CAAA;AACJ,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAW,EAAA,UAAA;AAAA,MACX,YAAc,EAAA,mBAAA;AAAA,MACd,OAAA;AAAA,MACA,YAAa,EAAA,+CAAA;AAAA,MACb,aAAe,EAAA,uBAAA;AAAA,MACf,oBAAsB,EAAA,kBAAA;AAAA,KAAA;AAAA,GACxB,CAAA;AAEJ;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { RELATION_HAS_PART } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, r as resourceEntityColumns, f as asResourceEntities, g as resourceEntityHelpLink } from './presets-1d9f313a.esm.js';
3
+ import { R as RelatedEntitiesCard, r as resourceEntityColumns, f as asResourceEntities, g as resourceEntityHelpLink } from './presets-8f6d8412.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -23,4 +23,4 @@ function HasResourcesCard(props) {
23
23
  }
24
24
 
25
25
  export { HasResourcesCard };
26
- //# sourceMappingURL=index-e33a5495.esm.js.map
26
+ //# sourceMappingURL=index-579c0e06.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-579c0e06.esm.js","sources":["../../src/components/HasResourcesCard/HasResourcesCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport { InfoCardVariants } from '@backstage/core-components';\nimport React from 'react';\nimport {\n asResourceEntities,\n RelatedEntitiesCard,\n resourceEntityColumns,\n resourceEntityHelpLink,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface HasResourcesCardProps {\n variant?: InfoCardVariants;\n}\n\nexport function HasResourcesCard(props: HasResourcesCardProps) {\n const { variant = 'gridItem' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has resources\"\n entityKind=\"Resource\"\n relationType={RELATION_HAS_PART}\n columns={resourceEntityColumns}\n asRenderableEntities={asResourceEntities}\n emptyMessage=\"No resource is part of this system\"\n emptyHelpLink={resourceEntityHelpLink}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AA+BO,SAAS,iBAAiB,KAA8B,EAAA;AAC7D,EAAM,MAAA,EAAE,OAAU,GAAA,UAAA,EAAe,GAAA,KAAA,CAAA;AACjC,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,KAAM,EAAA,eAAA;AAAA,MACN,UAAW,EAAA,UAAA;AAAA,MACX,YAAc,EAAA,iBAAA;AAAA,MACd,OAAS,EAAA,qBAAA;AAAA,MACT,oBAAsB,EAAA,kBAAA;AAAA,MACtB,YAAa,EAAA,oCAAA;AAAA,MACb,aAAe,EAAA,sBAAA;AAAA,KAAA;AAAA,GACjB,CAAA;AAEJ;;;;"}
@@ -1,6 +1,6 @@
1
- export { R as RelatedEntitiesCard, e as asComponentEntities, f as asResourceEntities, a as asSystemEntities, c as componentEntityColumns, d as componentEntityHelpLink, r as resourceEntityColumns, g as resourceEntityHelpLink, s as systemEntityColumns, b as systemEntityHelpLink } from './presets-1d9f313a.esm.js';
1
+ export { R as RelatedEntitiesCard, e as asComponentEntities, f as asResourceEntities, a as asSystemEntities, c as componentEntityColumns, d as componentEntityHelpLink, r as resourceEntityColumns, g as resourceEntityHelpLink, s as systemEntityColumns, b as systemEntityHelpLink } from './presets-8f6d8412.esm.js';
2
2
  import '@material-ui/core';
3
3
  import '@backstage/plugin-catalog-react';
4
4
  import 'react';
5
5
  import '@backstage/core-components';
6
- //# sourceMappingURL=index-e2ea81b3.esm.js.map
6
+ //# sourceMappingURL=index-60adddb8.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-60adddb8.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,6 +1,6 @@
1
1
  import { RELATION_HAS_PART } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-1d9f313a.esm.js';
3
+ import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-8f6d8412.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -23,4 +23,4 @@ function HasComponentsCard(props) {
23
23
  }
24
24
 
25
25
  export { HasComponentsCard };
26
- //# sourceMappingURL=index-c4df4a0a.esm.js.map
26
+ //# sourceMappingURL=index-62df5b29.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-62df5b29.esm.js","sources":["../../src/components/HasComponentsCard/HasComponentsCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport { InfoCardVariants } from '@backstage/core-components';\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface HasComponentsCardProps {\n variant?: InfoCardVariants;\n}\n\nexport function HasComponentsCard(props: HasComponentsCardProps) {\n const { variant = 'gridItem' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has components\"\n entityKind=\"Component\"\n relationType={RELATION_HAS_PART}\n columns={componentEntityColumns}\n emptyMessage=\"No component is part of this system\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AA+BO,SAAS,kBAAkB,KAA+B,EAAA;AAC/D,EAAM,MAAA,EAAE,OAAU,GAAA,UAAA,EAAe,GAAA,KAAA,CAAA;AACjC,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,KAAM,EAAA,gBAAA;AAAA,MACN,UAAW,EAAA,WAAA;AAAA,MACX,YAAc,EAAA,iBAAA;AAAA,MACd,OAAS,EAAA,sBAAA;AAAA,MACT,YAAa,EAAA,qCAAA;AAAA,MACb,aAAe,EAAA,uBAAA;AAAA,MACf,oBAAsB,EAAA,mBAAA;AAAA,KAAA;AAAA,GACxB,CAAA;AAEJ;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { RELATION_HAS_PART } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, c as componentEntityColumns, e as asComponentEntities } from './presets-1d9f313a.esm.js';
3
+ import { R as RelatedEntitiesCard, c as componentEntityColumns, e as asComponentEntities } from './presets-8f6d8412.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -23,4 +23,4 @@ function HasSubcomponentsCard(props) {
23
23
  }
24
24
 
25
25
  export { HasSubcomponentsCard };
26
- //# sourceMappingURL=index-1f414093.esm.js.map
26
+ //# sourceMappingURL=index-796cbb22.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-796cbb22.esm.js","sources":["../../src/components/HasSubcomponentsCard/HasSubcomponentsCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport { InfoCardVariants } from '@backstage/core-components';\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface HasSubcomponentsCardProps {\n variant?: InfoCardVariants;\n}\n\nexport function HasSubcomponentsCard(props: HasSubcomponentsCardProps) {\n const { variant = 'gridItem' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has subcomponents\"\n entityKind=\"Component\"\n relationType={RELATION_HAS_PART}\n columns={componentEntityColumns}\n asRenderableEntities={asComponentEntities}\n emptyMessage=\"No subcomponent is part of this component\"\n emptyHelpLink=\"https://backstage.io/docs/features/software-catalog/descriptor-format#specsubcomponentof-optional\"\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AA8BO,SAAS,qBAAqB,KAAkC,EAAA;AACrE,EAAM,MAAA,EAAE,OAAU,GAAA,UAAA,EAAe,GAAA,KAAA,CAAA;AACjC,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,KAAM,EAAA,mBAAA;AAAA,MACN,UAAW,EAAA,WAAA;AAAA,MACX,YAAc,EAAA,iBAAA;AAAA,MACd,OAAS,EAAA,sBAAA;AAAA,MACT,oBAAsB,EAAA,mBAAA;AAAA,MACtB,YAAa,EAAA,2CAAA;AAAA,MACb,aAAc,EAAA,mGAAA;AAAA,KAAA;AAAA,GAChB,CAAA;AAEJ;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { RELATION_DEPENDS_ON } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, d as componentEntityHelpLink, e as asComponentEntities, c as componentEntityColumns } from './presets-1d9f313a.esm.js';
3
+ import { R as RelatedEntitiesCard, d as componentEntityHelpLink, e as asComponentEntities, c as componentEntityColumns } from './presets-8f6d8412.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -27,4 +27,4 @@ function DependsOnComponentsCard(props) {
27
27
  }
28
28
 
29
29
  export { DependsOnComponentsCard };
30
- //# sourceMappingURL=index-e4233e9c.esm.js.map
30
+ //# sourceMappingURL=index-84bbec44.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-84bbec44.esm.js","sources":["../../src/components/DependsOnComponentsCard/DependsOnComponentsCard.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 { RELATION_DEPENDS_ON, ComponentEntity } from '@backstage/catalog-model';\nimport { InfoCardVariants, TableColumn } from '@backstage/core-components';\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface DependsOnComponentsCardProps {\n variant?: InfoCardVariants;\n title?: string;\n columns?: TableColumn<ComponentEntity>[];\n}\n\nexport function DependsOnComponentsCard(props: DependsOnComponentsCardProps) {\n const {\n variant = 'gridItem',\n title = 'Depends on components',\n columns = componentEntityColumns,\n } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Component\"\n relationType={RELATION_DEPENDS_ON}\n columns={columns}\n emptyMessage=\"No component is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AAiCO,SAAS,wBAAwB,KAAqC,EAAA;AAC3E,EAAM,MAAA;AAAA,IACJ,OAAU,GAAA,UAAA;AAAA,IACV,KAAQ,GAAA,uBAAA;AAAA,IACR,OAAU,GAAA,sBAAA;AAAA,GACR,GAAA,KAAA,CAAA;AACJ,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAW,EAAA,WAAA;AAAA,MACX,YAAc,EAAA,mBAAA;AAAA,MACd,OAAA;AAAA,MACA,YAAa,EAAA,gDAAA;AAAA,MACb,aAAe,EAAA,uBAAA;AAAA,MACf,oBAAsB,EAAA,mBAAA;AAAA,KAAA;AAAA,GACxB,CAAA;AAEJ;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { RELATION_HAS_PART } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, s as systemEntityColumns, a as asSystemEntities, b as systemEntityHelpLink } from './presets-1d9f313a.esm.js';
3
+ import { R as RelatedEntitiesCard, s as systemEntityColumns, a as asSystemEntities, b as systemEntityHelpLink } from './presets-8f6d8412.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -23,4 +23,4 @@ function HasSystemsCard(props) {
23
23
  }
24
24
 
25
25
  export { HasSystemsCard };
26
- //# sourceMappingURL=index-623874b5.esm.js.map
26
+ //# sourceMappingURL=index-a6b7e5a0.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-a6b7e5a0.esm.js","sources":["../../src/components/HasSystemsCard/HasSystemsCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport { InfoCardVariants } from '@backstage/core-components';\nimport React from 'react';\nimport {\n asSystemEntities,\n RelatedEntitiesCard,\n systemEntityColumns,\n systemEntityHelpLink,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface HasSystemsCardProps {\n variant?: InfoCardVariants;\n}\n\nexport function HasSystemsCard(props: HasSystemsCardProps) {\n const { variant = 'gridItem' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has systems\"\n entityKind=\"System\"\n relationType={RELATION_HAS_PART}\n columns={systemEntityColumns}\n asRenderableEntities={asSystemEntities}\n emptyMessage=\"No system is part of this domain\"\n emptyHelpLink={systemEntityHelpLink}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AA+BO,SAAS,eAAe,KAA4B,EAAA;AACzD,EAAM,MAAA,EAAE,OAAU,GAAA,UAAA,EAAe,GAAA,KAAA,CAAA;AACjC,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,KAAM,EAAA,aAAA;AAAA,MACN,UAAW,EAAA,QAAA;AAAA,MACX,YAAc,EAAA,iBAAA;AAAA,MACd,OAAS,EAAA,mBAAA;AAAA,MACT,oBAAsB,EAAA,gBAAA;AAAA,MACtB,YAAa,EAAA,kCAAA;AAAA,MACb,aAAe,EAAA,oBAAA;AAAA,KAAA;AAAA,GACjB,CAAA;AAEJ;;;;"}
@@ -1,4 +1,4 @@
1
- export { A as AboutCard, a as AboutContent, b as AboutField } from './index-24fe0330.esm.js';
1
+ export { A as AboutCard, a as AboutContent, b as AboutField } from './index-d22f6268.esm.js';
2
2
  import 'zen-observable';
3
3
  import '@backstage/catalog-model';
4
4
  import 'lodash';
@@ -29,4 +29,4 @@ import '@material-ui/icons/Cancel';
29
29
  import '@backstage/errors';
30
30
  import '@backstage/catalog-client';
31
31
  import '@backstage/plugin-search-react';
32
- //# sourceMappingURL=index-7577d574.esm.js.map
32
+ //# sourceMappingURL=index-c8cbb868.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-c8cbb868.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -51,4 +51,4 @@ function CatalogSearchResultListItem(props) {
51
51
  }
52
52
 
53
53
  export { CatalogSearchResultListItem };
54
- //# sourceMappingURL=index-b3cf2aa8.esm.js.map
54
+ //# sourceMappingURL=index-ccf06d4f.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-ccf06d4f.esm.js","sources":["../../src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.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 React, { ReactNode } from 'react';\nimport {\n Box,\n Chip,\n ListItemIcon,\n ListItemText,\n makeStyles,\n} from '@material-ui/core';\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 item: {\n display: 'flex',\n },\n flexContainer: {\n flexWrap: 'wrap',\n },\n itemText: {\n width: '100%',\n wordBreak: 'break-all',\n marginBottom: '1rem',\n },\n },\n { name: 'CatalogSearchResultListItem' },\n);\n\n/**\n * Props for {@link CatalogSearchResultListItem}.\n *\n * @public\n */\nexport interface CatalogSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n}\n\n/** @public */\nexport function CatalogSearchResultListItem(\n props: CatalogSearchResultListItemProps,\n) {\n const result = props.result as any;\n const highlight = props.highlight as ResultHighlight;\n\n const classes = useStyles();\n\n if (!result) return null;\n\n return (\n <div className={classes.item}>\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 {highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={highlight.fields.title}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n }\n secondary={\n highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={highlight.fields.text}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.text\n )\n }\n />\n <Box>\n {result.kind && <Chip label={`Kind: ${result.kind}`} size=\"small\" />}\n {result.lifecycle && (\n <Chip label={`Lifecycle: ${result.lifecycle}`} size=\"small\" />\n )}\n </Box>\n </div>\n </div>\n );\n}\n"],"names":[],"mappings":";;;;;AA+BA,MAAM,SAAY,GAAA,UAAA;AAAA,EAChB;AAAA,IACE,IAAM,EAAA;AAAA,MACJ,OAAS,EAAA,MAAA;AAAA,KACX;AAAA,IACA,aAAe,EAAA;AAAA,MACb,QAAU,EAAA,MAAA;AAAA,KACZ;AAAA,IACA,QAAU,EAAA;AAAA,MACR,KAAO,EAAA,MAAA;AAAA,MACP,SAAW,EAAA,WAAA;AAAA,MACX,YAAc,EAAA,MAAA;AAAA,KAChB;AAAA,GACF;AAAA,EACA,EAAE,MAAM,6BAA8B,EAAA;AACxC,CAAA,CAAA;AAeO,SAAS,4BACd,KACA,EAAA;AACA,EAAA,MAAM,SAAS,KAAM,CAAA,MAAA,CAAA;AACrB,EAAA,MAAM,YAAY,KAAM,CAAA,SAAA,CAAA;AAExB,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAE1B,EAAA,IAAI,CAAC,MAAA;AAAQ,IAAO,OAAA,IAAA,CAAA;AAEpB,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAW,OAAQ,CAAA,IAAA,EAAA,EACrB,MAAM,IACL,oBAAA,KAAA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AAA,aAAA,CAAA,IAAA,EAAA,EAAK,KAAO,EAAA,CAAA,MAAA,EAAS,MAAO,CAAA,IAAA,CAAA,CAAA,EAAQ,IAAK,EAAA,OAAA,EAAQ,GACjE,MAAO,CAAA,SAAA,oBACL,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAK,KAAO,EAAA,CAAA,WAAA,EAAc,MAAO,CAAA,SAAA,CAAA,CAAA,EAAa,IAAK,EAAA,OAAA,EAAQ,CAEhE,CACF,CACF,CAAA,CAAA;AAEJ;;;;"}
@@ -1285,22 +1285,31 @@ EntitySwitch.Case = EntitySwitchCaseComponent;
1285
1285
 
1286
1286
  function strCmp(a, b) {
1287
1287
  return Boolean(
1288
- a && (a == null ? void 0 : a.toLocaleLowerCase("en-US")) === (b == null ? void 0 : b.toLocaleLowerCase("en-US"))
1288
+ a && typeof a === "string" && (a == null ? void 0 : a.toLocaleLowerCase("en-US")) === (b == null ? void 0 : b.toLocaleLowerCase("en-US"))
1289
1289
  );
1290
1290
  }
1291
1291
  function strCmpAll(value, cmpValues) {
1292
- return typeof cmpValues === "string" ? strCmp(value, cmpValues) : cmpValues.some((cmpVal) => strCmp(value, cmpVal));
1292
+ return typeof cmpValues === "string" ? strCmp(value, cmpValues) : cmpValues.length === 0 || cmpValues.some((cmpVal) => strCmp(value, cmpVal));
1293
1293
  }
1294
1294
  function isKind(kinds) {
1295
- return (entity) => strCmpAll(entity.kind, kinds);
1295
+ return isEntityWith({ kind: kinds });
1296
1296
  }
1297
1297
  function isComponentType(types) {
1298
+ return isEntityWith({ kind: "component", type: types });
1299
+ }
1300
+ function isResourceType(types) {
1301
+ return isEntityWith({ kind: "resource", type: types });
1302
+ }
1303
+ function isEntityWith(predicate) {
1298
1304
  return (entity) => {
1299
- if (!strCmp(entity.kind, "component")) {
1305
+ var _a;
1306
+ if (predicate.kind && !strCmpAll(entity.kind, predicate.kind)) {
1307
+ return false;
1308
+ }
1309
+ if (predicate.type && !strCmpAll((_a = entity.spec) == null ? void 0 : _a.type, predicate.type)) {
1300
1310
  return false;
1301
1311
  }
1302
- const componentEntity = entity;
1303
- return strCmpAll(componentEntity.spec.type, types);
1312
+ return true;
1304
1313
  };
1305
1314
  }
1306
1315
  function isNamespace(namespaces) {
@@ -1434,14 +1443,14 @@ const catalogPlugin = createPlugin({
1434
1443
  const CatalogIndexPage = catalogPlugin.provide(
1435
1444
  createRoutableExtension({
1436
1445
  name: "CatalogIndexPage",
1437
- component: () => import('./index-cd3a4ec9.esm.js').then((m) => m.CatalogPage),
1446
+ component: () => import('./index-d90db135.esm.js').then((m) => m.CatalogPage),
1438
1447
  mountPoint: rootRouteRef
1439
1448
  })
1440
1449
  );
1441
1450
  const CatalogEntityPage = catalogPlugin.provide(
1442
1451
  createRoutableExtension({
1443
1452
  name: "CatalogEntityPage",
1444
- component: () => import('./index-83561c1f.esm.js').then((m) => m.CatalogEntityPage),
1453
+ component: () => import('./index-f0e32dd1.esm.js').then((m) => m.CatalogEntityPage),
1445
1454
  mountPoint: entityRouteRef
1446
1455
  })
1447
1456
  );
@@ -1449,7 +1458,7 @@ const EntityAboutCard = catalogPlugin.provide(
1449
1458
  createComponentExtension({
1450
1459
  name: "EntityAboutCard",
1451
1460
  component: {
1452
- lazy: () => import('./index-7577d574.esm.js').then((m) => m.AboutCard)
1461
+ lazy: () => import('./index-c8cbb868.esm.js').then((m) => m.AboutCard)
1453
1462
  }
1454
1463
  })
1455
1464
  );
@@ -1457,7 +1466,7 @@ const EntityLinksCard = catalogPlugin.provide(
1457
1466
  createComponentExtension({
1458
1467
  name: "EntityLinksCard",
1459
1468
  component: {
1460
- lazy: () => import('./index-53c4b98e.esm.js').then((m) => m.EntityLinksCard)
1469
+ lazy: () => import('./index-1854ce20.esm.js').then((m) => m.EntityLinksCard)
1461
1470
  }
1462
1471
  })
1463
1472
  );
@@ -1465,7 +1474,7 @@ const EntityLabelsCard = catalogPlugin.provide(
1465
1474
  createComponentExtension({
1466
1475
  name: "EntityLabelsCard",
1467
1476
  component: {
1468
- lazy: () => import('./index-e51e2afb.esm.js').then((m) => m.EntityLabelsCard)
1477
+ lazy: () => import('./index-e2fd22f4.esm.js').then((m) => m.EntityLabelsCard)
1469
1478
  }
1470
1479
  })
1471
1480
  );
@@ -1473,7 +1482,7 @@ const EntityHasSystemsCard = catalogPlugin.provide(
1473
1482
  createComponentExtension({
1474
1483
  name: "EntityHasSystemsCard",
1475
1484
  component: {
1476
- lazy: () => import('./index-623874b5.esm.js').then((m) => m.HasSystemsCard)
1485
+ lazy: () => import('./index-a6b7e5a0.esm.js').then((m) => m.HasSystemsCard)
1477
1486
  }
1478
1487
  })
1479
1488
  );
@@ -1481,7 +1490,7 @@ const EntityHasComponentsCard = catalogPlugin.provide(
1481
1490
  createComponentExtension({
1482
1491
  name: "EntityHasComponentsCard",
1483
1492
  component: {
1484
- lazy: () => import('./index-c4df4a0a.esm.js').then((m) => m.HasComponentsCard)
1493
+ lazy: () => import('./index-62df5b29.esm.js').then((m) => m.HasComponentsCard)
1485
1494
  }
1486
1495
  })
1487
1496
  );
@@ -1489,7 +1498,7 @@ const EntityHasSubcomponentsCard = catalogPlugin.provide(
1489
1498
  createComponentExtension({
1490
1499
  name: "EntityHasSubcomponentsCard",
1491
1500
  component: {
1492
- lazy: () => import('./index-1f414093.esm.js').then(
1501
+ lazy: () => import('./index-796cbb22.esm.js').then(
1493
1502
  (m) => m.HasSubcomponentsCard
1494
1503
  )
1495
1504
  }
@@ -1499,7 +1508,7 @@ const EntityHasResourcesCard = catalogPlugin.provide(
1499
1508
  createComponentExtension({
1500
1509
  name: "EntityHasResourcesCard",
1501
1510
  component: {
1502
- lazy: () => import('./index-e33a5495.esm.js').then((m) => m.HasResourcesCard)
1511
+ lazy: () => import('./index-579c0e06.esm.js').then((m) => m.HasResourcesCard)
1503
1512
  }
1504
1513
  })
1505
1514
  );
@@ -1507,7 +1516,7 @@ const EntityDependsOnComponentsCard = catalogPlugin.provide(
1507
1516
  createComponentExtension({
1508
1517
  name: "EntityDependsOnComponentsCard",
1509
1518
  component: {
1510
- lazy: () => import('./index-e4233e9c.esm.js').then(
1519
+ lazy: () => import('./index-84bbec44.esm.js').then(
1511
1520
  (m) => m.DependsOnComponentsCard
1512
1521
  )
1513
1522
  }
@@ -1517,7 +1526,7 @@ const EntityDependencyOfComponentsCard = catalogPlugin.provide(
1517
1526
  createComponentExtension({
1518
1527
  name: "EntityDependencyOfComponentsCard",
1519
1528
  component: {
1520
- lazy: () => import('./index-deb6f173.esm.js').then(
1529
+ lazy: () => import('./index-d32ca604.esm.js').then(
1521
1530
  (m) => m.DependencyOfComponentsCard
1522
1531
  )
1523
1532
  }
@@ -1527,7 +1536,7 @@ const EntityDependsOnResourcesCard = catalogPlugin.provide(
1527
1536
  createComponentExtension({
1528
1537
  name: "EntityDependsOnResourcesCard",
1529
1538
  component: {
1530
- lazy: () => import('./index-474c17e4.esm.js').then(
1539
+ lazy: () => import('./index-51c16459.esm.js').then(
1531
1540
  (m) => m.DependsOnResourcesCard
1532
1541
  )
1533
1542
  }
@@ -1537,7 +1546,7 @@ const RelatedEntitiesCard = catalogPlugin.provide(
1537
1546
  createComponentExtension({
1538
1547
  name: "RelatedEntitiesCard",
1539
1548
  component: {
1540
- lazy: () => import('./index-e2ea81b3.esm.js').then(
1549
+ lazy: () => import('./index-60adddb8.esm.js').then(
1541
1550
  (m) => m.RelatedEntitiesCard
1542
1551
  )
1543
1552
  }
@@ -1546,12 +1555,12 @@ const RelatedEntitiesCard = catalogPlugin.provide(
1546
1555
  const CatalogSearchResultListItem = catalogPlugin.provide(
1547
1556
  createSearchResultListItemExtension({
1548
1557
  name: "CatalogSearchResultListItem",
1549
- component: () => import('./index-b3cf2aa8.esm.js').then(
1558
+ component: () => import('./index-ccf06d4f.esm.js').then(
1550
1559
  (m) => m.CatalogSearchResultListItem
1551
1560
  ),
1552
1561
  predicate: (result) => result.type === "software-catalog"
1553
1562
  })
1554
1563
  );
1555
1564
 
1556
- export { AboutCard as A, isNamespace as B, CatalogTable as C, DefaultStarredEntitiesApi as D, EntityLabelsCard$1 as E, isComponentType as F, FilteredEntityLayout as G, FilterContainer as H, EntityListContainer as I, LinksGridList as L, RelatedEntitiesCard as R, AboutContent as a, AboutField as b, createComponentRouteRef as c, CatalogEntityPage as d, CatalogIndexPage as e, catalogPlugin as f, EntityAboutCard as g, hasLabels as h, EntityDependencyOfComponentsCard as i, EntityDependsOnComponentsCard as j, EntityDependsOnResourcesCard as k, EntityHasComponentsCard as l, EntityHasResourcesCard as m, EntityHasSubcomponentsCard as n, EntityHasSystemsCard as o, EntityLinksCard as p, EntityLabelsCard as q, CatalogSearchResultListItem as r, CatalogKindHeader as s, EntityLayout as t, EntityOrphanWarning as u, isOrphan as v, EntityProcessingErrorsPanel as w, hasCatalogProcessingErrors as x, EntitySwitch as y, isKind as z };
1557
- //# sourceMappingURL=index-24fe0330.esm.js.map
1565
+ export { AboutCard as A, isNamespace as B, CatalogTable as C, DefaultStarredEntitiesApi as D, EntityLabelsCard$1 as E, isComponentType as F, isResourceType as G, isEntityWith as H, FilteredEntityLayout as I, FilterContainer as J, EntityListContainer as K, LinksGridList as L, RelatedEntitiesCard as R, AboutContent as a, AboutField as b, createComponentRouteRef as c, CatalogEntityPage as d, CatalogIndexPage as e, catalogPlugin as f, EntityAboutCard as g, hasLabels as h, EntityDependencyOfComponentsCard as i, EntityDependsOnComponentsCard as j, EntityDependsOnResourcesCard as k, EntityHasComponentsCard as l, EntityHasResourcesCard as m, EntityHasSubcomponentsCard as n, EntityHasSystemsCard as o, EntityLinksCard as p, EntityLabelsCard as q, CatalogSearchResultListItem as r, CatalogKindHeader as s, EntityLayout as t, EntityOrphanWarning as u, isOrphan as v, EntityProcessingErrorsPanel as w, hasCatalogProcessingErrors as x, EntitySwitch as y, isKind as z };
1566
+ //# sourceMappingURL=index-d22f6268.esm.js.map