@backstage/plugin-catalog 1.12.3 → 1.12.4-next.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 (26) hide show
  1. package/CHANGELOG.md +8 -12
  2. package/dist/esm/{index-c14de715.esm.js → index-14937ecb.esm.js} +2 -2
  3. package/dist/esm/index-14937ecb.esm.js.map +1 -0
  4. package/dist/esm/{index-e2d2eb49.esm.js → index-151a7b53.esm.js} +3 -3
  5. package/dist/esm/{index-e2d2eb49.esm.js.map → index-151a7b53.esm.js.map} +1 -1
  6. package/dist/esm/{index-77ee6729.esm.js → index-21d99ae3.esm.js} +2 -2
  7. package/dist/esm/index-21d99ae3.esm.js.map +1 -0
  8. package/dist/esm/{index-4652fbf3.esm.js → index-317e65a6.esm.js} +2 -2
  9. package/dist/esm/{index-4652fbf3.esm.js.map → index-317e65a6.esm.js.map} +1 -1
  10. package/dist/esm/{index-23d95220.esm.js → index-457f1bef.esm.js} +3 -3
  11. package/dist/esm/{index-23d95220.esm.js.map → index-457f1bef.esm.js.map} +1 -1
  12. package/dist/esm/{index-1f8f0bf2.esm.js → index-8a2a4882.esm.js} +9 -9
  13. package/dist/esm/{index-1f8f0bf2.esm.js.map → index-8a2a4882.esm.js.map} +1 -1
  14. package/dist/esm/{index-1c53a4d7.esm.js → index-b87e664e.esm.js} +3 -3
  15. package/dist/esm/index-b87e664e.esm.js.map +1 -0
  16. package/dist/esm/{index-23b588f4.esm.js → index-cd22824c.esm.js} +2 -2
  17. package/dist/esm/{index-23b588f4.esm.js.map → index-cd22824c.esm.js.map} +1 -1
  18. package/dist/esm/{index-d8353256.esm.js → index-df2397a2.esm.js} +7 -3
  19. package/dist/esm/index-df2397a2.esm.js.map +1 -0
  20. package/dist/index.d.ts +17 -13
  21. package/dist/index.esm.js +1 -1
  22. package/package.json +11 -11
  23. package/dist/esm/index-1c53a4d7.esm.js.map +0 -1
  24. package/dist/esm/index-77ee6729.esm.js.map +0 -1
  25. package/dist/esm/index-c14de715.esm.js.map +0 -1
  26. package/dist/esm/index-d8353256.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,29 +1,25 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
- ## 1.12.3
3
+ ## 1.12.4-next.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 832eef72485b: Added title to props for `Has<kind>Cards`.
8
+ - 163a41035e42: Fixed an issue where `EntitySwitch` was preventing the display of entity errors.
7
9
  - Updated dependencies
8
- - @backstage/integration-react@1.1.17
9
- - @backstage/plugin-catalog-react@1.8.2
10
+ - @backstage/integration-react@1.1.18-next.0
11
+ - @backstage/core-plugin-api@1.6.0-next.0
12
+ - @backstage/core-components@0.13.5-next.0
10
13
  - @backstage/catalog-client@1.4.3
11
14
  - @backstage/catalog-model@1.4.1
12
- - @backstage/core-components@0.13.4
13
- - @backstage/core-plugin-api@1.5.3
14
15
  - @backstage/errors@1.2.1
15
16
  - @backstage/theme@0.4.1
16
17
  - @backstage/types@1.1.0
17
18
  - @backstage/plugin-catalog-common@1.0.15
19
+ - @backstage/plugin-catalog-react@1.8.3-next.0
18
20
  - @backstage/plugin-scaffolder-common@1.4.0
19
21
  - @backstage/plugin-search-common@1.2.5
20
- - @backstage/plugin-search-react@1.6.4
21
-
22
- ## 1.12.2
23
-
24
- ### Patch Changes
25
-
26
- - 6529eec003e1: Fixed an issue where `EntitySwitch` was preventing the display of entity errors.
22
+ - @backstage/plugin-search-react@1.6.5-next.0
27
23
 
28
24
  ## 1.12.1
29
25
 
@@ -1,4 +1,4 @@
1
- export { E as EntityLabelsCard, h as hasLabels } from './index-1f8f0bf2.esm.js';
1
+ export { E as EntityLabelsCard, h as hasLabels } from './index-8a2a4882.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-c14de715.esm.js.map
34
+ //# sourceMappingURL=index-14937ecb.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-14937ecb.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,12 +6,12 @@ import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
7
7
 
8
8
  function HasComponentsCard(props) {
9
- const { variant = "gridItem" } = props;
9
+ const { variant = "gridItem", title = "Has components" } = props;
10
10
  return /* @__PURE__ */ React.createElement(
11
11
  RelatedEntitiesCard,
12
12
  {
13
13
  variant,
14
- title: "Has components",
14
+ title,
15
15
  entityKind: "Component",
16
16
  relationType: RELATION_HAS_PART,
17
17
  columns: componentEntityColumns,
@@ -23,4 +23,4 @@ function HasComponentsCard(props) {
23
23
  }
24
24
 
25
25
  export { HasComponentsCard };
26
- //# sourceMappingURL=index-e2d2eb49.esm.js.map
26
+ //# sourceMappingURL=index-151a7b53.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-e2d2eb49.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
+ {"version":3,"file":"index-151a7b53.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 title?: string;\n}\n\nexport function HasComponentsCard(props: HasComponentsCardProps) {\n const { variant = 'gridItem', title = 'Has components' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\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":";;;;;;;AAgCO,SAAS,kBAAkB,KAA+B,EAAA;AAC/D,EAAA,MAAM,EAAE,OAAA,GAAU,UAAY,EAAA,KAAA,GAAQ,kBAAqB,GAAA,KAAA,CAAA;AAC3D,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,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,4 +1,4 @@
1
- export { A as AboutCard, a as AboutContent, b as AboutField } from './index-1f8f0bf2.esm.js';
1
+ export { A as AboutCard, a as AboutContent, b as AboutField } from './index-8a2a4882.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-77ee6729.esm.js.map
34
+ //# sourceMappingURL=index-21d99ae3.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-21d99ae3.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@ import { useOutlet } from 'react-router-dom';
3
3
  import { PageWithHeader, Content, ContentHeader, CreateButton, SupportButton } from '@backstage/core-components';
4
4
  import { useApi, configApiRef, useRouteRef } from '@backstage/core-plugin-api';
5
5
  import { EntityListProvider, CatalogFilterLayout, EntityKindPicker, EntityTypePicker, UserListPicker, EntityOwnerPicker, EntityLifecyclePicker, EntityTagPicker, EntityProcessingStatusPicker, EntityNamespacePicker } from '@backstage/plugin-catalog-react';
6
- import { c as createComponentRouteRef, C as CatalogTable } from './index-1f8f0bf2.esm.js';
6
+ import { c as createComponentRouteRef, C as CatalogTable } from './index-8a2a4882.esm.js';
7
7
  import { usePluginOptions } from '@backstage/core-plugin-api/alpha';
8
8
  import 'zen-observable';
9
9
  import '@backstage/catalog-model';
@@ -72,4 +72,4 @@ function CatalogPage(props) {
72
72
  }
73
73
 
74
74
  export { CatalogPage, DefaultCatalogPage };
75
- //# sourceMappingURL=index-4652fbf3.esm.js.map
75
+ //# sourceMappingURL=index-317e65a6.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-4652fbf3.esm.js","sources":["../../src/options.ts","../../src/components/CatalogPage/DefaultCatalogPage.tsx","../../src/components/CatalogPage/CatalogPage.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 { usePluginOptions } from '@backstage/core-plugin-api/alpha';\n\nexport type CatalogPluginOptions = {\n createButtonTitle: string;\n};\n\n/** @ignore */\nexport type CatalogInputPluginOptions = {\n createButtonTitle: string;\n};\n\nexport const useCatalogPluginOptions = () =>\n usePluginOptions<CatalogPluginOptions>();\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Content,\n ContentHeader,\n CreateButton,\n PageWithHeader,\n SupportButton,\n TableColumn,\n TableProps,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n CatalogFilterLayout,\n EntityLifecyclePicker,\n EntityListProvider,\n EntityProcessingStatusPicker,\n EntityOwnerPicker,\n EntityTagPicker,\n EntityTypePicker,\n UserListFilterKind,\n UserListPicker,\n EntityKindPicker,\n EntityNamespacePicker,\n EntityOwnerPickerProps,\n} from '@backstage/plugin-catalog-react';\nimport React, { ReactNode } from 'react';\nimport { createComponentRouteRef } from '../../routes';\nimport { CatalogTable, CatalogTableRow } from '../CatalogTable';\nimport { useCatalogPluginOptions } from '../../options';\n\n/**\n * Props for root catalog pages.\n *\n * @public\n */\nexport interface DefaultCatalogPageProps {\n initiallySelectedFilter?: UserListFilterKind;\n columns?: TableColumn<CatalogTableRow>[];\n actions?: TableProps<CatalogTableRow>['actions'];\n initialKind?: string;\n tableOptions?: TableProps<CatalogTableRow>['options'];\n emptyContent?: ReactNode;\n ownerPickerMode?: EntityOwnerPickerProps['mode'];\n}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n emptyContent,\n ownerPickerMode,\n } = props;\n const orgName =\n useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage';\n const createComponentLink = useRouteRef(createComponentRouteRef);\n\n const { createButtonTitle } = useCatalogPluginOptions();\n\n return (\n <PageWithHeader title={`${orgName} Catalog`} themeId=\"home\">\n <Content>\n <ContentHeader title=\"\">\n <CreateButton\n title={createButtonTitle}\n to={createComponentLink && createComponentLink()}\n />\n <SupportButton>All your software catalog entities</SupportButton>\n </ContentHeader>\n <EntityListProvider>\n <CatalogFilterLayout>\n <CatalogFilterLayout.Filters>\n <EntityKindPicker initialFilter={initialKind} />\n <EntityTypePicker />\n <UserListPicker initialFilter={initiallySelectedFilter} />\n <EntityOwnerPicker mode={ownerPickerMode} />\n <EntityLifecyclePicker />\n <EntityTagPicker />\n <EntityProcessingStatusPicker />\n <EntityNamespacePicker />\n </CatalogFilterLayout.Filters>\n <CatalogFilterLayout.Content>\n <CatalogTable\n columns={columns}\n actions={actions}\n tableOptions={tableOptions}\n emptyContent={emptyContent}\n />\n </CatalogFilterLayout.Content>\n </CatalogFilterLayout>\n </EntityListProvider>\n </Content>\n </PageWithHeader>\n );\n}\n","/*\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 from 'react';\nimport { useOutlet } from 'react-router-dom';\nimport {\n DefaultCatalogPage,\n DefaultCatalogPageProps,\n} from './DefaultCatalogPage';\n\nexport function CatalogPage(props: DefaultCatalogPageProps) {\n const outlet = useOutlet();\n\n return outlet || <DefaultCatalogPage {...props} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2Ba,MAAA,uBA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KAAA,CAAA,aAAA,CAAC,gBAAiB,EAAA,IAAA,CAAA,kBACjB,KAAA,CAAA,aAAA,CAAA,cAAA,EAAA,EAAe,eAAe,uBAAyB,EAAA,CAAA,sCACvD,iBAAkB,EAAA,EAAA,IAAA,EAAM,iBAAiB,CAC1C,kBAAA,KAAA,CAAA,aAAA,CAAC,qBAAsB,EAAA,IAAA,CAAA,kBACtB,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA,IAAgB,mBAChB,KAAA,CAAA,aAAA,CAAA,4BAAA,EAAA,IAA6B,mBAC7B,KAAA,CAAA,aAAA,CAAA,qBAAA,EAAA,IAAsB,CACzB,CACA,kBAAA,KAAA,CAAA,aAAA,CAAC,mBAAoB,CAAA,OAAA,EAApB,IACC,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,OAAA;AAAA,MACA,YAAA;AAAA,MACA,YAAA;AAAA,KAAA;AAAA,GAEJ,CACF,CACF,CACF,CACF,CAAA,CAAA;AAEJ;;ACxFO,SAAS,YAAY,KAAgC,EAAA;AAC1D,EAAA,MAAM,SAAS,SAAU,EAAA,CAAA;AAEzB,EAAA,OAAO,MAAU,oBAAA,KAAA,CAAA,aAAA,CAAC,kBAAoB,EAAA,EAAA,GAAG,KAAO,EAAA,CAAA,CAAA;AAClD;;;;"}
1
+ {"version":3,"file":"index-317e65a6.esm.js","sources":["../../src/options.ts","../../src/components/CatalogPage/DefaultCatalogPage.tsx","../../src/components/CatalogPage/CatalogPage.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 { usePluginOptions } from '@backstage/core-plugin-api/alpha';\n\nexport type CatalogPluginOptions = {\n createButtonTitle: string;\n};\n\n/** @ignore */\nexport type CatalogInputPluginOptions = {\n createButtonTitle: string;\n};\n\nexport const useCatalogPluginOptions = () =>\n usePluginOptions<CatalogPluginOptions>();\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Content,\n ContentHeader,\n CreateButton,\n PageWithHeader,\n SupportButton,\n TableColumn,\n TableProps,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n CatalogFilterLayout,\n EntityLifecyclePicker,\n EntityListProvider,\n EntityProcessingStatusPicker,\n EntityOwnerPicker,\n EntityTagPicker,\n EntityTypePicker,\n UserListFilterKind,\n UserListPicker,\n EntityKindPicker,\n EntityNamespacePicker,\n EntityOwnerPickerProps,\n} from '@backstage/plugin-catalog-react';\nimport React, { ReactNode } from 'react';\nimport { createComponentRouteRef } from '../../routes';\nimport { CatalogTable, CatalogTableRow } from '../CatalogTable';\nimport { useCatalogPluginOptions } from '../../options';\n\n/**\n * Props for root catalog pages.\n *\n * @public\n */\nexport interface DefaultCatalogPageProps {\n initiallySelectedFilter?: UserListFilterKind;\n columns?: TableColumn<CatalogTableRow>[];\n actions?: TableProps<CatalogTableRow>['actions'];\n initialKind?: string;\n tableOptions?: TableProps<CatalogTableRow>['options'];\n emptyContent?: ReactNode;\n ownerPickerMode?: EntityOwnerPickerProps['mode'];\n}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n emptyContent,\n ownerPickerMode,\n } = props;\n const orgName =\n useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage';\n const createComponentLink = useRouteRef(createComponentRouteRef);\n\n const { createButtonTitle } = useCatalogPluginOptions();\n\n return (\n <PageWithHeader title={`${orgName} Catalog`} themeId=\"home\">\n <Content>\n <ContentHeader title=\"\">\n <CreateButton\n title={createButtonTitle}\n to={createComponentLink && createComponentLink()}\n />\n <SupportButton>All your software catalog entities</SupportButton>\n </ContentHeader>\n <EntityListProvider>\n <CatalogFilterLayout>\n <CatalogFilterLayout.Filters>\n <EntityKindPicker initialFilter={initialKind} />\n <EntityTypePicker />\n <UserListPicker initialFilter={initiallySelectedFilter} />\n <EntityOwnerPicker mode={ownerPickerMode} />\n <EntityLifecyclePicker />\n <EntityTagPicker />\n <EntityProcessingStatusPicker />\n <EntityNamespacePicker />\n </CatalogFilterLayout.Filters>\n <CatalogFilterLayout.Content>\n <CatalogTable\n columns={columns}\n actions={actions}\n tableOptions={tableOptions}\n emptyContent={emptyContent}\n />\n </CatalogFilterLayout.Content>\n </CatalogFilterLayout>\n </EntityListProvider>\n </Content>\n </PageWithHeader>\n );\n}\n","/*\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 from 'react';\nimport { useOutlet } from 'react-router-dom';\nimport {\n DefaultCatalogPage,\n DefaultCatalogPageProps,\n} from './DefaultCatalogPage';\n\nexport function CatalogPage(props: DefaultCatalogPageProps) {\n const outlet = use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,kBAAA,KAAA,CAAA,aAAA,CAAC,oBAAoB,OAApB,EAAA,IAAA,sCACE,gBAAiB,EAAA,EAAA,aAAA,EAAe,aAAa,CAC9C,kBAAA,KAAA,CAAA,aAAA,CAAC,gBAAiB,EAAA,IAAA,CAAA,kBACjB,KAAA,CAAA,aAAA,CAAA,cAAA,EAAA,EAAe,eAAe,uBAAyB,EAAA,CAAA,sCACvD,iBAAkB,EAAA,EAAA,IAAA,EAAM,iBAAiB,CAC1C,kBAAA,KAAA,CAAA,aAAA,CAAC,qBAAsB,EAAA,IAAA,CAAA,kBACtB,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA,IAAgB,mBAChB,KAAA,CAAA,aAAA,CAAA,4BAAA,EAAA,IAA6B,mBAC7B,KAAA,CAAA,aAAA,CAAA,qBAAA,EAAA,IAAsB,CACzB,CACA,kBAAA,KAAA,CAAA,aAAA,CAAC,mBAAoB,CAAA,OAAA,EAApB,IACC,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,OAAA;AAAA,MACA,YAAA;AAAA,MACA,YAAA;AAAA,KAAA;AAAA,GAEJ,CACF,CACF,CACF,CACF,CAAA,CAAA;AAEJ;;ACxFO,SAAS,YAAY,KAAgC,EAAA;AAC1D,EAAA,MAAM,SAAS,SAAU,EAAA,CAAA;AAEzB,EAAA,OAAO,MAAU,oBAAA,KAAA,CAAA,aAAA,CAAC,kBAAoB,EAAA,EAAA,GAAG,KAAO,EAAA,CAAA,CAAA;AAClD;;;;"}
@@ -6,12 +6,12 @@ import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
7
7
 
8
8
  function HasResourcesCard(props) {
9
- const { variant = "gridItem" } = props;
9
+ const { variant = "gridItem", title = "Has resources" } = props;
10
10
  return /* @__PURE__ */ React.createElement(
11
11
  RelatedEntitiesCard,
12
12
  {
13
13
  variant,
14
- title: "Has resources",
14
+ title,
15
15
  entityKind: "Resource",
16
16
  relationType: RELATION_HAS_PART,
17
17
  columns: resourceEntityColumns,
@@ -23,4 +23,4 @@ function HasResourcesCard(props) {
23
23
  }
24
24
 
25
25
  export { HasResourcesCard };
26
- //# sourceMappingURL=index-23d95220.esm.js.map
26
+ //# sourceMappingURL=index-457f1bef.esm.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index-457f1bef.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 title?: string;\n}\n\nexport function HasResourcesCard(props: HasResourcesCardProps) {\n const { variant = 'gridItem', title = 'Has resources' } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\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":";;;;;;;AAgCO,SAAS,iBAAiB,KAA8B,EAAA;AAC7D,EAAA,MAAM,EAAE,OAAA,GAAU,UAAY,EAAA,KAAA,GAAQ,iBAAoB,GAAA,KAAA,CAAA;AAC1D,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,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;;;;"}
@@ -1531,7 +1531,7 @@ const catalogPlugin = createPlugin({
1531
1531
  const CatalogIndexPage = catalogPlugin.provide(
1532
1532
  createRoutableExtension({
1533
1533
  name: "CatalogIndexPage",
1534
- component: () => import('./index-4652fbf3.esm.js').then((m) => m.CatalogPage),
1534
+ component: () => import('./index-317e65a6.esm.js').then((m) => m.CatalogPage),
1535
1535
  mountPoint: rootRouteRef
1536
1536
  })
1537
1537
  );
@@ -1546,7 +1546,7 @@ const EntityAboutCard = catalogPlugin.provide(
1546
1546
  createComponentExtension({
1547
1547
  name: "EntityAboutCard",
1548
1548
  component: {
1549
- lazy: () => import('./index-77ee6729.esm.js').then((m) => m.AboutCard)
1549
+ lazy: () => import('./index-21d99ae3.esm.js').then((m) => m.AboutCard)
1550
1550
  }
1551
1551
  })
1552
1552
  );
@@ -1554,7 +1554,7 @@ const EntityLinksCard = catalogPlugin.provide(
1554
1554
  createComponentExtension({
1555
1555
  name: "EntityLinksCard",
1556
1556
  component: {
1557
- lazy: () => import('./index-23b588f4.esm.js').then((m) => m.EntityLinksCard)
1557
+ lazy: () => import('./index-cd22824c.esm.js').then((m) => m.EntityLinksCard)
1558
1558
  }
1559
1559
  })
1560
1560
  );
@@ -1562,7 +1562,7 @@ const EntityLabelsCard = catalogPlugin.provide(
1562
1562
  createComponentExtension({
1563
1563
  name: "EntityLabelsCard",
1564
1564
  component: {
1565
- lazy: () => import('./index-c14de715.esm.js').then((m) => m.EntityLabelsCard)
1565
+ lazy: () => import('./index-14937ecb.esm.js').then((m) => m.EntityLabelsCard)
1566
1566
  }
1567
1567
  })
1568
1568
  );
@@ -1570,7 +1570,7 @@ const EntityHasSystemsCard = catalogPlugin.provide(
1570
1570
  createComponentExtension({
1571
1571
  name: "EntityHasSystemsCard",
1572
1572
  component: {
1573
- lazy: () => import('./index-1c53a4d7.esm.js').then((m) => m.HasSystemsCard)
1573
+ lazy: () => import('./index-b87e664e.esm.js').then((m) => m.HasSystemsCard)
1574
1574
  }
1575
1575
  })
1576
1576
  );
@@ -1578,7 +1578,7 @@ const EntityHasComponentsCard = catalogPlugin.provide(
1578
1578
  createComponentExtension({
1579
1579
  name: "EntityHasComponentsCard",
1580
1580
  component: {
1581
- lazy: () => import('./index-e2d2eb49.esm.js').then((m) => m.HasComponentsCard)
1581
+ lazy: () => import('./index-151a7b53.esm.js').then((m) => m.HasComponentsCard)
1582
1582
  }
1583
1583
  })
1584
1584
  );
@@ -1586,7 +1586,7 @@ const EntityHasSubcomponentsCard = catalogPlugin.provide(
1586
1586
  createComponentExtension({
1587
1587
  name: "EntityHasSubcomponentsCard",
1588
1588
  component: {
1589
- lazy: () => import('./index-d8353256.esm.js').then(
1589
+ lazy: () => import('./index-df2397a2.esm.js').then(
1590
1590
  (m) => m.HasSubcomponentsCard
1591
1591
  )
1592
1592
  }
@@ -1596,7 +1596,7 @@ const EntityHasResourcesCard = catalogPlugin.provide(
1596
1596
  createComponentExtension({
1597
1597
  name: "EntityHasResourcesCard",
1598
1598
  component: {
1599
- lazy: () => import('./index-23d95220.esm.js').then((m) => m.HasResourcesCard)
1599
+ lazy: () => import('./index-457f1bef.esm.js').then((m) => m.HasResourcesCard)
1600
1600
  }
1601
1601
  })
1602
1602
  );
@@ -1651,4 +1651,4 @@ const CatalogSearchResultListItem = catalogPlugin.provide(
1651
1651
  );
1652
1652
 
1653
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-1f8f0bf2.esm.js.map
1654
+ //# sourceMappingURL=index-8a2a4882.esm.js.map