@backstage/plugin-catalog 1.11.3-next.0 → 1.12.0-next.2

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 (41) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/esm/{index-22222fef.esm.js → index-15b9f76d.esm.js} +2 -2
  3. package/dist/esm/index-15b9f76d.esm.js.map +1 -0
  4. package/dist/esm/{index-a6b7e5a0.esm.js → index-1c53a4d7.esm.js} +2 -2
  5. package/dist/esm/{index-a6b7e5a0.esm.js.map → index-1c53a4d7.esm.js.map} +1 -1
  6. package/dist/esm/{index-d32ca604.esm.js → index-226f1855.esm.js} +2 -2
  7. package/dist/esm/{index-d32ca604.esm.js.map → index-226f1855.esm.js.map} +1 -1
  8. package/dist/esm/{index-579c0e06.esm.js → index-23d95220.esm.js} +2 -2
  9. package/dist/esm/{index-579c0e06.esm.js.map → index-23d95220.esm.js.map} +1 -1
  10. package/dist/esm/{index-51c16459.esm.js → index-2ae6a112.esm.js} +6 -4
  11. package/dist/esm/index-2ae6a112.esm.js.map +1 -0
  12. package/dist/esm/{index-84dbc0bc.esm.js → index-36871296.esm.js} +2 -2
  13. package/dist/esm/{index-84dbc0bc.esm.js.map → index-36871296.esm.js.map} +1 -1
  14. package/dist/esm/{index-a2e41e34.esm.js → index-54253ffe.esm.js} +64 -17
  15. package/dist/esm/index-54253ffe.esm.js.map +1 -0
  16. package/dist/esm/{index-84bbec44.esm.js → index-5d579387.esm.js} +6 -4
  17. package/dist/esm/index-5d579387.esm.js.map +1 -0
  18. package/dist/esm/{index-a941a094.esm.js → index-7328f74e.esm.js} +2 -2
  19. package/dist/esm/{index-a941a094.esm.js.map → index-7328f74e.esm.js.map} +1 -1
  20. package/dist/esm/{index-c18f1603.esm.js → index-81a799a5.esm.js} +2 -2
  21. package/dist/esm/index-81a799a5.esm.js.map +1 -0
  22. package/dist/esm/{index-60adddb8.esm.js → index-87a68cf7.esm.js} +2 -2
  23. package/dist/esm/index-87a68cf7.esm.js.map +1 -0
  24. package/dist/esm/index-ccf06d4f.esm.js.map +1 -1
  25. package/dist/esm/{index-796cbb22.esm.js → index-d8353256.esm.js} +5 -4
  26. package/dist/esm/index-d8353256.esm.js.map +1 -0
  27. package/dist/esm/{index-62df5b29.esm.js → index-e2d2eb49.esm.js} +2 -2
  28. package/dist/esm/{index-62df5b29.esm.js.map → index-e2d2eb49.esm.js.map} +1 -1
  29. package/dist/esm/{presets-8f6d8412.esm.js → presets-c708fd7b.esm.js} +5 -3
  30. package/dist/esm/presets-c708fd7b.esm.js.map +1 -0
  31. package/dist/index.d.ts +23 -2
  32. package/dist/index.esm.js +1 -1
  33. package/package.json +12 -12
  34. package/dist/esm/index-22222fef.esm.js.map +0 -1
  35. package/dist/esm/index-51c16459.esm.js.map +0 -1
  36. package/dist/esm/index-60adddb8.esm.js.map +0 -1
  37. package/dist/esm/index-796cbb22.esm.js.map +0 -1
  38. package/dist/esm/index-84bbec44.esm.js.map +0 -1
  39. package/dist/esm/index-a2e41e34.esm.js.map +0 -1
  40. package/dist/esm/index-c18f1603.esm.js.map +0 -1
  41. package/dist/esm/presets-8f6d8412.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
+ ## 1.12.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - eae0352d3864: Tables which use `EntityTableProps` now have an additional `tableOptions` prop which can be used to provide additional table options to these components.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @backstage/plugin-catalog-react@1.8.0-next.2
13
+ - @backstage/theme@0.4.1-next.1
14
+ - @backstage/core-plugin-api@1.5.3-next.1
15
+ - @backstage/core-components@0.13.3-next.2
16
+ - @backstage/catalog-client@1.4.3-next.0
17
+ - @backstage/catalog-model@1.4.1-next.0
18
+ - @backstage/errors@1.2.1-next.0
19
+ - @backstage/integration-react@1.1.15-next.2
20
+ - @backstage/types@1.1.0
21
+ - @backstage/plugin-catalog-common@1.0.15-next.0
22
+ - @backstage/plugin-scaffolder-common@1.3.2-next.0
23
+ - @backstage/plugin-search-common@1.2.5-next.0
24
+ - @backstage/plugin-search-react@1.6.3-next.2
25
+
26
+ ## 1.11.3-next.1
27
+
28
+ ### Patch Changes
29
+
30
+ - 294b1629de28: Display a warning alert if relations are defined, which don't exist in the catalog.
31
+ - Updated dependencies
32
+ - @backstage/theme@0.4.1-next.0
33
+ - @backstage/core-components@0.13.3-next.1
34
+ - @backstage/core-plugin-api@1.5.3-next.0
35
+ - @backstage/integration-react@1.1.15-next.1
36
+ - @backstage/plugin-catalog-react@1.7.1-next.1
37
+ - @backstage/plugin-search-react@1.6.3-next.1
38
+
3
39
  ## 1.11.3-next.0
4
40
 
5
41
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- export { A as AboutCard, a as AboutContent, b as AboutField } from './index-a2e41e34.esm.js';
1
+ export { A as AboutCard, a as AboutContent, b as AboutField } from './index-54253ffe.esm.js';
2
2
  import 'zen-observable';
3
3
  import '@backstage/catalog-model';
4
4
  import 'lodash';
@@ -31,4 +31,4 @@ import '@material-ui/icons/Cancel';
31
31
  import '@backstage/errors';
32
32
  import '@backstage/catalog-client';
33
33
  import '@backstage/plugin-search-react';
34
- //# sourceMappingURL=index-22222fef.esm.js.map
34
+ //# sourceMappingURL=index-15b9f76d.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-15b9f76d.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, s as systemEntityColumns, a as asSystemEntities, b as systemEntityHelpLink } from './presets-8f6d8412.esm.js';
3
+ import { R as RelatedEntitiesCard, s as systemEntityColumns, a as asSystemEntities, b as systemEntityHelpLink } from './presets-c708fd7b.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-a6b7e5a0.esm.js.map
26
+ //# sourceMappingURL=index-1c53a4d7.esm.js.map
@@ -1 +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
+ {"version":3,"file":"index-1c53a4d7.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,6 +1,6 @@
1
1
  import { RELATION_DEPENDENCY_OF } 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-8f6d8412.esm.js';
3
+ import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-c708fd7b.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 DependencyOfComponentsCard(props) {
23
23
  }
24
24
 
25
25
  export { DependencyOfComponentsCard };
26
- //# sourceMappingURL=index-d32ca604.esm.js.map
26
+ //# sourceMappingURL=index-226f1855.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-d32ca604.esm.js","sources":["../../src/components/DependencyOfComponentsCard/DependencyOfComponentsCard.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_DEPENDENCY_OF } 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 DependencyOfComponentsCardProps {\n variant?: InfoCardVariants;\n title?: string;\n}\n\nexport function DependencyOfComponentsCard(\n props: DependencyOfComponentsCardProps,\n) {\n const { variant = 'gridItem', title = 'Dependency of components' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Component\"\n relationType={RELATION_DEPENDENCY_OF}\n columns={componentEntityColumns}\n emptyMessage=\"No component depends on this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AAgCO,SAAS,2BACd,KACA,EAAA;AACA,EAAA,MAAM,EAAE,OAAA,GAAU,UAAY,EAAA,KAAA,GAAQ,4BAA+B,GAAA,KAAA,CAAA;AACrE,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,sBAAA;AAAA,MACd,OAAS,EAAA,sBAAA;AAAA,MACT,YAAa,EAAA,wCAAA;AAAA,MACb,aAAe,EAAA,uBAAA;AAAA,MACf,oBAAsB,EAAA,mBAAA;AAAA,KAAA;AAAA,GACxB,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"index-226f1855.esm.js","sources":["../../src/components/DependencyOfComponentsCard/DependencyOfComponentsCard.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_DEPENDENCY_OF } 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 DependencyOfComponentsCardProps {\n variant?: InfoCardVariants;\n title?: string;\n}\n\nexport function DependencyOfComponentsCard(\n props: DependencyOfComponentsCardProps,\n) {\n const { variant = 'gridItem', title = 'Dependency of components' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Component\"\n relationType={RELATION_DEPENDENCY_OF}\n columns={componentEntityColumns}\n emptyMessage=\"No component depends on this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AAgCO,SAAS,2BACd,KACA,EAAA;AACA,EAAA,MAAM,EAAE,OAAA,GAAU,UAAY,EAAA,KAAA,GAAQ,4BAA+B,GAAA,KAAA,CAAA;AACrE,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,sBAAA;AAAA,MACd,OAAS,EAAA,sBAAA;AAAA,MACT,YAAa,EAAA,wCAAA;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, r as resourceEntityColumns, f as asResourceEntities, g as resourceEntityHelpLink } from './presets-8f6d8412.esm.js';
3
+ import { R as RelatedEntitiesCard, r as resourceEntityColumns, f as asResourceEntities, g as resourceEntityHelpLink } from './presets-c708fd7b.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-579c0e06.esm.js.map
26
+ //# sourceMappingURL=index-23d95220.esm.js.map
@@ -1 +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
+ {"version":3,"file":"index-23d95220.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
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-8f6d8412.esm.js';
3
+ import { R as RelatedEntitiesCard, d as componentEntityHelpLink, f as asResourceEntities, r as resourceEntityColumns } from './presets-c708fd7b.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -9,7 +9,8 @@ function DependsOnResourcesCard(props) {
9
9
  const {
10
10
  variant = "gridItem",
11
11
  title = "Depends on resources",
12
- columns = resourceEntityColumns
12
+ columns = resourceEntityColumns,
13
+ tableOptions = {}
13
14
  } = props;
14
15
  return /* @__PURE__ */ React.createElement(
15
16
  RelatedEntitiesCard,
@@ -21,10 +22,11 @@ function DependsOnResourcesCard(props) {
21
22
  columns,
22
23
  emptyMessage: "No resource is a dependency of this component",
23
24
  emptyHelpLink: componentEntityHelpLink,
24
- asRenderableEntities: asResourceEntities
25
+ asRenderableEntities: asResourceEntities,
26
+ tableOptions
25
27
  }
26
28
  );
27
29
  }
28
30
 
29
31
  export { DependsOnResourcesCard };
30
- //# sourceMappingURL=index-51c16459.esm.js.map
32
+ //# sourceMappingURL=index-2ae6a112.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-2ae6a112.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 {\n InfoCardVariants,\n TableColumn,\n TableOptions,\n} 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 tableOptions?: TableOptions;\n}\n\nexport function DependsOnResourcesCard(props: DependsOnResourcesCardProps) {\n const {\n variant = 'gridItem',\n title = 'Depends on resources',\n columns = resourceEntityColumns,\n tableOptions = {},\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 tableOptions={tableOptions}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;AAsCO,SAAS,uBAAuB,KAAoC,EAAA;AACzE,EAAM,MAAA;AAAA,IACJ,OAAU,GAAA,UAAA;AAAA,IACV,KAAQ,GAAA,sBAAA;AAAA,IACR,OAAU,GAAA,qBAAA;AAAA,IACV,eAAe,EAAC;AAAA,GACd,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,MACtB,YAAA;AAAA,KAAA;AAAA,GACF,CAAA;AAEJ;;;;"}
@@ -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-a2e41e34.esm.js';
6
+ import { L as LinksGridList } from './index-54253ffe.esm.js';
7
7
  import { useApp } from '@backstage/core-plugin-api';
8
8
  import 'zen-observable';
9
9
  import '@backstage/catalog-model';
@@ -95,4 +95,4 @@ const EntityLinksCard = (props) => {
95
95
  };
96
96
 
97
97
  export { EntityLinksCard };
98
- //# sourceMappingURL=index-84dbc0bc.esm.js.map
98
+ //# sourceMappingURL=index-36871296.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-84dbc0bc.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"],"names":["_a"],"mappings":"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"}
1
+ {"version":3,"file":"index-36871296.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"],"names":["_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,WAAc,GAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAA,CAAA,CAAA;AAUpB,MAAM,SAAY,GAAA,UAAA;AAAA,EAChB,CAAU,KAAA,MAAA;AAAA,IACR,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,CAAA;AAAA,MACd,MAAQ,EAAA,CAAA,EAAG,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAC,CAAA,MAAA,CAAA;AAAA,MAC3B,UAAA,EACE,MAAM,OAAQ,CAAA,IAAA,KAAS,SAAS,MAAS,GAAA,KAAA,CAAM,QAAQ,MAAO,CAAA,KAAA;AAAA,KAClE;AAAA,GACF,CAAA;AAAA,EACA,EAAE,MAAM,oCAAqC,EAAA;AAC/C,CAAA,CAAA;AAEO,SAAS,qBAAwB,GAAA;AACtC,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAE1B,EACE,uBAAA,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,kBACG,KAAA,CAAA,aAAA,CAAA,UAAA,EAAA,EAAW,OAAQ,EAAA,OAAA,EAAA,EAAQ,oHAG5B,CAAA,kBACC,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,OAAA,CAAQ,IACtB,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,WAAA;AAAA,IAAA;AAAA,MACC,IAAM,EAAA,WAAA;AAAA,MACN,QAAS,EAAA,MAAA;AAAA,MACT,eAAe,EAAA,IAAA;AAAA,MACf,kBAAoB,EAAA,CAAC,CAAG,EAAA,CAAA,EAAG,GAAG,CAAC,CAAA;AAAA,MAC/B,WAAa,EAAA,EAAE,UAAY,EAAA,SAAA,EAAW,UAAU,MAAO,EAAA;AAAA,KAAA;AAAA,GAE3D,CACA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,OAAQ,EAAA,WAAA;AAAA,MACR,KAAM,EAAA,SAAA;AAAA,MACN,MAAO,EAAA,QAAA;AAAA,MACP,IAAK,EAAA,sFAAA;AAAA,KAAA;AAAA,IACN,WAAA;AAAA,GAGH,CAAA,CAAA;AAEJ;;ACxCa,MAAA,eAAA,GAAkB,CAAC,KAAgC,KAAA;AA/BhE,EAAA,IAAA,EAAA,CAAA;AAgCE,EAAA,MAAM,EAAE,IAAA,GAAO,KAAW,CAAA,EAAA,OAAA,EAAY,GAAA,KAAA,CAAA;AACtC,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA,CAAA;AAC7B,EAAA,MAAM,MAAM,MAAO,EAAA,CAAA;AAEnB,EAAM,MAAA,YAAA,GAAe,CAAC,GAA6B,KAAA;AApCrD,IAAAA,IAAAA,GAAAA,CAAAA;AAqCI,IAAA,OAAA,GAAA,GAAA,CAAMA,MAAA,GAAI,CAAA,aAAA,CAAc,GAAG,CAArB,KAAA,IAAA,GAAAA,MAA0B,YAAe,GAAA,YAAA,CAAA;AAAA,GAAA,CAAA;AAEjD,EAAM,MAAA,KAAA,GAAA,CAAQ,EAAQ,GAAA,MAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,MAAA,CAAA,QAAA,KAAR,IAAkB,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,CAAA;AAEhC,EAAA,uBACG,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAS,KAAM,EAAA,OAAA,EAAQ,OACrB,EAAA,EAAA,CAAC,KAAS,IAAA,KAAA,CAAM,MAAW,KAAA,CAAA,mBACzB,KAAA,CAAA,aAAA,CAAA,qBAAA,EAAA,IAAsB,CAEvB,mBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,IAAA;AAAA,MACA,KAAA,EAAO,MAAM,GAAI,CAAA,CAAC,EAAE,GAAK,EAAA,KAAA,EAAO,MAAY,MAAA;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;;;;"}
@@ -51,16 +51,24 @@ async function performMigrationToTheNewBucket({
51
51
  await source.remove("starredEntities");
52
52
  }
53
53
 
54
+ var __defProp = Object.defineProperty;
55
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
56
+ var __publicField = (obj, key, value) => {
57
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
58
+ return value;
59
+ };
54
60
  class DefaultStarredEntitiesApi {
55
61
  constructor(opts) {
56
- this.subscribers = /* @__PURE__ */ new Set();
57
- this.observable = new ObservableImpl((subscriber) => {
62
+ __publicField(this, "settingsStore");
63
+ __publicField(this, "starredEntities");
64
+ __publicField(this, "subscribers", /* @__PURE__ */ new Set());
65
+ __publicField(this, "observable", new ObservableImpl((subscriber) => {
58
66
  subscriber.next(new Set(this.starredEntities));
59
67
  this.subscribers.add(subscriber);
60
68
  return () => {
61
69
  this.subscribers.delete(subscriber);
62
70
  };
63
- });
71
+ }));
64
72
  var _a;
65
73
  performMigrationToTheNewBucket(opts).then();
66
74
  this.settingsStore = opts.storageApi.forBucket("starredEntities");
@@ -1193,6 +1201,45 @@ function EntityOrphanWarning() {
1193
1201
  ));
1194
1202
  }
1195
1203
 
1204
+ async function getRelationWarnings(entity, catalogApi) {
1205
+ var _a;
1206
+ const entityRefRelations = (_a = entity.relations) == null ? void 0 : _a.map(
1207
+ (relation) => relation.targetRef
1208
+ );
1209
+ if (!entityRefRelations || (entityRefRelations == null ? void 0 : entityRefRelations.length) < 1 || entityRefRelations.length > 1e3) {
1210
+ return [];
1211
+ }
1212
+ const relatedEntities = await catalogApi.getEntitiesByRefs({
1213
+ entityRefs: entityRefRelations,
1214
+ fields: ["kind", "metadata.name", "metadata.namespace"]
1215
+ });
1216
+ return entityRefRelations.filter(
1217
+ (_, index) => relatedEntities.items[index] === void 0
1218
+ );
1219
+ }
1220
+ async function hasRelationWarnings(entity, context) {
1221
+ const catalogApi = context.apis.get(catalogApiRef);
1222
+ if (!catalogApi) {
1223
+ throw new Error(`No implementation available for ${catalogApiRef}`);
1224
+ }
1225
+ const relatedEntitiesMissing = await getRelationWarnings(entity, catalogApi);
1226
+ return relatedEntitiesMissing.length > 0;
1227
+ }
1228
+ function EntityRelationWarning() {
1229
+ const { entity } = useEntity();
1230
+ const catalogApi = useApi(catalogApiRef);
1231
+ const { loading, error, value } = useAsync(async () => {
1232
+ return getRelationWarnings(entity, catalogApi);
1233
+ }, [entity, catalogApi]);
1234
+ if (error) {
1235
+ return /* @__PURE__ */ React.createElement(Box, { mb: 1 }, /* @__PURE__ */ React.createElement(ResponseErrorPanel, { error }));
1236
+ }
1237
+ if (loading || !value || value.length === 0) {
1238
+ return null;
1239
+ }
1240
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Alert, { severity: "warning" }, "This entity has relations to other entities, which can't be found in the catalog. ", /* @__PURE__ */ React.createElement("br", null), "Entities not found are: ", value.join(", ")));
1241
+ }
1242
+
1196
1243
  const errorFilter = (i) => i.error && i.level === "error" && i.type === ENTITY_STATUS_CATALOG_PROCESSING_TYPE;
1197
1244
  async function getOwnAndAncestorsErrors(entityRef, catalogApi) {
1198
1245
  const ancestors = await catalogApi.getEntityAncestors({ entityRef });
@@ -1484,7 +1531,7 @@ const catalogPlugin = createPlugin({
1484
1531
  const CatalogIndexPage = catalogPlugin.provide(
1485
1532
  createRoutableExtension({
1486
1533
  name: "CatalogIndexPage",
1487
- component: () => import('./index-a941a094.esm.js').then((m) => m.CatalogPage),
1534
+ component: () => import('./index-7328f74e.esm.js').then((m) => m.CatalogPage),
1488
1535
  mountPoint: rootRouteRef
1489
1536
  })
1490
1537
  );
@@ -1499,7 +1546,7 @@ const EntityAboutCard = catalogPlugin.provide(
1499
1546
  createComponentExtension({
1500
1547
  name: "EntityAboutCard",
1501
1548
  component: {
1502
- lazy: () => import('./index-22222fef.esm.js').then((m) => m.AboutCard)
1549
+ lazy: () => import('./index-15b9f76d.esm.js').then((m) => m.AboutCard)
1503
1550
  }
1504
1551
  })
1505
1552
  );
@@ -1507,7 +1554,7 @@ const EntityLinksCard = catalogPlugin.provide(
1507
1554
  createComponentExtension({
1508
1555
  name: "EntityLinksCard",
1509
1556
  component: {
1510
- lazy: () => import('./index-84dbc0bc.esm.js').then((m) => m.EntityLinksCard)
1557
+ lazy: () => import('./index-36871296.esm.js').then((m) => m.EntityLinksCard)
1511
1558
  }
1512
1559
  })
1513
1560
  );
@@ -1515,7 +1562,7 @@ const EntityLabelsCard = catalogPlugin.provide(
1515
1562
  createComponentExtension({
1516
1563
  name: "EntityLabelsCard",
1517
1564
  component: {
1518
- lazy: () => import('./index-c18f1603.esm.js').then((m) => m.EntityLabelsCard)
1565
+ lazy: () => import('./index-81a799a5.esm.js').then((m) => m.EntityLabelsCard)
1519
1566
  }
1520
1567
  })
1521
1568
  );
@@ -1523,7 +1570,7 @@ const EntityHasSystemsCard = catalogPlugin.provide(
1523
1570
  createComponentExtension({
1524
1571
  name: "EntityHasSystemsCard",
1525
1572
  component: {
1526
- lazy: () => import('./index-a6b7e5a0.esm.js').then((m) => m.HasSystemsCard)
1573
+ lazy: () => import('./index-1c53a4d7.esm.js').then((m) => m.HasSystemsCard)
1527
1574
  }
1528
1575
  })
1529
1576
  );
@@ -1531,7 +1578,7 @@ const EntityHasComponentsCard = catalogPlugin.provide(
1531
1578
  createComponentExtension({
1532
1579
  name: "EntityHasComponentsCard",
1533
1580
  component: {
1534
- lazy: () => import('./index-62df5b29.esm.js').then((m) => m.HasComponentsCard)
1581
+ lazy: () => import('./index-e2d2eb49.esm.js').then((m) => m.HasComponentsCard)
1535
1582
  }
1536
1583
  })
1537
1584
  );
@@ -1539,7 +1586,7 @@ const EntityHasSubcomponentsCard = catalogPlugin.provide(
1539
1586
  createComponentExtension({
1540
1587
  name: "EntityHasSubcomponentsCard",
1541
1588
  component: {
1542
- lazy: () => import('./index-796cbb22.esm.js').then(
1589
+ lazy: () => import('./index-d8353256.esm.js').then(
1543
1590
  (m) => m.HasSubcomponentsCard
1544
1591
  )
1545
1592
  }
@@ -1549,7 +1596,7 @@ const EntityHasResourcesCard = catalogPlugin.provide(
1549
1596
  createComponentExtension({
1550
1597
  name: "EntityHasResourcesCard",
1551
1598
  component: {
1552
- lazy: () => import('./index-579c0e06.esm.js').then((m) => m.HasResourcesCard)
1599
+ lazy: () => import('./index-23d95220.esm.js').then((m) => m.HasResourcesCard)
1553
1600
  }
1554
1601
  })
1555
1602
  );
@@ -1557,7 +1604,7 @@ const EntityDependsOnComponentsCard = catalogPlugin.provide(
1557
1604
  createComponentExtension({
1558
1605
  name: "EntityDependsOnComponentsCard",
1559
1606
  component: {
1560
- lazy: () => import('./index-84bbec44.esm.js').then(
1607
+ lazy: () => import('./index-5d579387.esm.js').then(
1561
1608
  (m) => m.DependsOnComponentsCard
1562
1609
  )
1563
1610
  }
@@ -1567,7 +1614,7 @@ const EntityDependencyOfComponentsCard = catalogPlugin.provide(
1567
1614
  createComponentExtension({
1568
1615
  name: "EntityDependencyOfComponentsCard",
1569
1616
  component: {
1570
- lazy: () => import('./index-d32ca604.esm.js').then(
1617
+ lazy: () => import('./index-226f1855.esm.js').then(
1571
1618
  (m) => m.DependencyOfComponentsCard
1572
1619
  )
1573
1620
  }
@@ -1577,7 +1624,7 @@ const EntityDependsOnResourcesCard = catalogPlugin.provide(
1577
1624
  createComponentExtension({
1578
1625
  name: "EntityDependsOnResourcesCard",
1579
1626
  component: {
1580
- lazy: () => import('./index-51c16459.esm.js').then(
1627
+ lazy: () => import('./index-2ae6a112.esm.js').then(
1581
1628
  (m) => m.DependsOnResourcesCard
1582
1629
  )
1583
1630
  }
@@ -1587,7 +1634,7 @@ const RelatedEntitiesCard = catalogPlugin.provide(
1587
1634
  createComponentExtension({
1588
1635
  name: "RelatedEntitiesCard",
1589
1636
  component: {
1590
- lazy: () => import('./index-60adddb8.esm.js').then(
1637
+ lazy: () => import('./index-87a68cf7.esm.js').then(
1591
1638
  (m) => m.RelatedEntitiesCard
1592
1639
  )
1593
1640
  }
@@ -1603,5 +1650,5 @@ const CatalogSearchResultListItem = catalogPlugin.provide(
1603
1650
  })
1604
1651
  );
1605
1652
 
1606
- 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 };
1607
- //# sourceMappingURL=index-a2e41e34.esm.js.map
1653
+ export { AboutCard as A, EntitySwitch as B, CatalogTable as C, DefaultStarredEntitiesApi as D, EntityLabelsCard$1 as E, isKind as F, isNamespace as G, isComponentType as H, isResourceType as I, isEntityWith as J, FilteredEntityLayout as K, LinksGridList as L, FilterContainer as M, EntityListContainer as N, 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, EntityRelationWarning as w, hasRelationWarnings as x, EntityProcessingErrorsPanel as y, hasCatalogProcessingErrors as z };
1654
+ //# sourceMappingURL=index-54253ffe.esm.js.map