@backstage/plugin-catalog 1.6.2-next.0 → 1.7.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 +45 -0
  2. package/dist/esm/{index-ab6f8e26.esm.js → index-1e61b53b.esm.js} +19 -26
  3. package/dist/esm/index-1e61b53b.esm.js.map +1 -0
  4. package/dist/esm/{index-583aed6a.esm.js → index-3507149b.esm.js} +473 -464
  5. package/dist/esm/index-3507149b.esm.js.map +1 -0
  6. package/dist/esm/index-579c0e06.esm.js +26 -0
  7. package/dist/esm/{index-b3ad464b.esm.js.map → index-579c0e06.esm.js.map} +1 -1
  8. package/dist/esm/{index-c2914273.esm.js → index-60adddb8.esm.js} +2 -2
  9. package/dist/esm/index-60adddb8.esm.js.map +1 -0
  10. package/dist/esm/{index-dd0217cb.esm.js → index-6268b740.esm.js} +33 -30
  11. package/dist/esm/{index-dd0217cb.esm.js.map → index-6268b740.esm.js.map} +1 -1
  12. package/dist/esm/index-62df5b29.esm.js +26 -0
  13. package/dist/esm/{index-acb3cf04.esm.js.map → index-62df5b29.esm.js.map} +1 -1
  14. package/dist/esm/index-796cbb22.esm.js +26 -0
  15. package/dist/esm/{index-41ab53b6.esm.js.map → index-796cbb22.esm.js.map} +1 -1
  16. package/dist/esm/{index-46417657.esm.js → index-a04ec5f0.esm.js} +2 -4
  17. package/dist/esm/{index-46417657.esm.js.map → index-a04ec5f0.esm.js.map} +1 -1
  18. package/dist/esm/index-a6b7e5a0.esm.js +26 -0
  19. package/dist/esm/{index-3763491b.esm.js.map → index-a6b7e5a0.esm.js.map} +1 -1
  20. package/dist/esm/index-d2f7190c.esm.js +26 -0
  21. package/dist/esm/{index-d41abbff.esm.js.map → index-d2f7190c.esm.js.map} +1 -1
  22. package/dist/esm/{index-390fab14.esm.js → index-d32ca604.esm.js} +15 -12
  23. package/dist/esm/{index-390fab14.esm.js.map → index-d32ca604.esm.js.map} +1 -1
  24. package/dist/esm/{index-a76e25a8.esm.js → index-e21aae6d.esm.js} +3 -3
  25. package/dist/esm/index-e21aae6d.esm.js.map +1 -0
  26. package/dist/esm/{index-66fdb6ad.esm.js → index-e67de3b5.esm.js} +15 -12
  27. package/dist/esm/{index-66fdb6ad.esm.js.map → index-e67de3b5.esm.js.map} +1 -1
  28. package/dist/esm/{presets-13b889b9.esm.js → presets-8f6d8412.esm.js} +13 -26
  29. package/dist/esm/{presets-13b889b9.esm.js.map → presets-8f6d8412.esm.js.map} +1 -1
  30. package/dist/index.d.ts +4 -1
  31. package/dist/index.esm.js +2 -2
  32. package/package.json +18 -18
  33. package/dist/esm/index-3763491b.esm.js +0 -23
  34. package/dist/esm/index-41ab53b6.esm.js +0 -23
  35. package/dist/esm/index-583aed6a.esm.js.map +0 -1
  36. package/dist/esm/index-a76e25a8.esm.js.map +0 -1
  37. package/dist/esm/index-ab6f8e26.esm.js.map +0 -1
  38. package/dist/esm/index-acb3cf04.esm.js +0 -23
  39. package/dist/esm/index-b3ad464b.esm.js +0 -23
  40. package/dist/esm/index-c2914273.esm.js.map +0 -1
  41. package/dist/esm/index-d41abbff.esm.js +0 -23
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
+ ## 1.7.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 6ffa47bb0a: Fixes in kind selectors (now `OwnershipCard` works again). `EntityKindPicker` now accepts an optional `allowedKinds` prop, just like `CatalogKindHeader`.
8
+ - 462c1d012e: Removed `CatalogKindHeader` from `DefaultCatalogPage`. Deprecated `CatalogKindHeader` in favour of `EntityKindPicker`.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+ - @backstage/core-plugin-api@1.2.0-next.2
14
+ - @backstage/plugin-search-react@1.3.0-next.2
15
+ - @backstage/core-components@0.12.1-next.2
16
+ - @backstage/plugin-catalog-react@1.2.2-next.2
17
+ - @backstage/plugin-search-common@1.2.0-next.2
18
+ - @backstage/integration-react@1.1.7-next.2
19
+ - @backstage/catalog-client@1.2.0-next.1
20
+ - @backstage/catalog-model@1.1.4-next.1
21
+ - @backstage/errors@1.1.4-next.1
22
+ - @backstage/theme@0.2.16
23
+ - @backstage/types@1.0.2-next.1
24
+ - @backstage/plugin-catalog-common@1.0.9-next.2
25
+
26
+ ## 1.6.2-next.1
27
+
28
+ ### Patch Changes
29
+
30
+ - d3fea4ae0a: Internal fixes to avoid implicit usage of globals
31
+ - ca04d97b09: Handle refresh entity error in `AboutCard`.
32
+ - a19cffbeed: Update search links to only have header as linkable text
33
+ - c3fa90e184: Updated dependency `zen-observable` to `^0.10.0`.
34
+ - Updated dependencies
35
+ - @backstage/core-components@0.12.1-next.1
36
+ - @backstage/plugin-search-react@1.2.2-next.1
37
+ - @backstage/core-plugin-api@1.1.1-next.1
38
+ - @backstage/types@1.0.2-next.1
39
+ - @backstage/plugin-catalog-react@1.2.2-next.1
40
+ - @backstage/integration-react@1.1.7-next.1
41
+ - @backstage/catalog-client@1.2.0-next.1
42
+ - @backstage/catalog-model@1.1.4-next.1
43
+ - @backstage/errors@1.1.4-next.1
44
+ - @backstage/theme@0.2.16
45
+ - @backstage/plugin-catalog-common@1.0.9-next.1
46
+ - @backstage/plugin-search-common@1.1.2-next.1
47
+
3
48
  ## 1.6.2-next.0
4
49
 
5
50
  ### Patch Changes
@@ -3,7 +3,7 @@ import { useOutlet } from 'react-router';
3
3
  import { PageWithHeader, Content, ContentHeader, CreateButton, SupportButton } from '@backstage/core-components';
4
4
  import { usePluginOptions, useApi, configApiRef, useRouteRef } from '@backstage/core-plugin-api';
5
5
  import { EntityListProvider, CatalogFilterLayout, EntityKindPicker, EntityTypePicker, UserListPicker, EntityOwnerPicker, EntityLifecyclePicker, EntityTagPicker, EntityProcessingStatusPicker } from '@backstage/plugin-catalog-react';
6
- import { c as createComponentRouteRef, C as CatalogKindHeader, a as CatalogTable } from './index-583aed6a.esm.js';
6
+ import { c as createComponentRouteRef, C as CatalogTable } from './index-3507149b.esm.js';
7
7
  import 'zen-observable';
8
8
  import '@backstage/catalog-model';
9
9
  import 'lodash';
@@ -13,8 +13,8 @@ import '@material-ui/icons/Cached';
13
13
  import '@material-ui/icons/Description';
14
14
  import '@material-ui/icons/Edit';
15
15
  import '@material-ui/icons/Language';
16
- import 'react-use/lib/useAsync';
17
16
  import 'pluralize';
17
+ import 'react-use/lib/useAsync';
18
18
  import '@backstage/plugin-search-react';
19
19
  import '@material-ui/core/styles';
20
20
  import '@material-ui/icons/OpenInNew';
@@ -44,34 +44,27 @@ function DefaultCatalogPage(props) {
44
44
  const orgName = (_a = useApi(configApiRef).getOptionalString("organization.name")) != null ? _a : "Backstage";
45
45
  const createComponentLink = useRouteRef(createComponentRouteRef);
46
46
  const { createButtonTitle } = useCatalogPluginOptions();
47
- return /* @__PURE__ */ React.createElement(PageWithHeader, {
48
- title: `${orgName} Catalog`,
49
- themeId: "home"
50
- }, /* @__PURE__ */ React.createElement(EntityListProvider, null, /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(ContentHeader, {
51
- titleComponent: /* @__PURE__ */ React.createElement(CatalogKindHeader, {
52
- initialFilter: initialKind
53
- })
54
- }, /* @__PURE__ */ React.createElement(CreateButton, {
55
- title: createButtonTitle,
56
- to: createComponentLink && createComponentLink()
57
- }), /* @__PURE__ */ React.createElement(SupportButton, null, "All your software catalog entities")), /* @__PURE__ */ React.createElement(CatalogFilterLayout, null, /* @__PURE__ */ React.createElement(CatalogFilterLayout.Filters, null, /* @__PURE__ */ React.createElement(EntityKindPicker, {
58
- initialFilter: initialKind
59
- }), /* @__PURE__ */ React.createElement(EntityTypePicker, null), /* @__PURE__ */ React.createElement(UserListPicker, {
60
- initialFilter: initiallySelectedFilter
61
- }), /* @__PURE__ */ React.createElement(EntityOwnerPicker, null), /* @__PURE__ */ React.createElement(EntityLifecyclePicker, null), /* @__PURE__ */ React.createElement(EntityTagPicker, null), /* @__PURE__ */ React.createElement(EntityProcessingStatusPicker, null)), /* @__PURE__ */ React.createElement(CatalogFilterLayout.Content, null, /* @__PURE__ */ React.createElement(CatalogTable, {
62
- columns,
63
- actions,
64
- tableOptions,
65
- emptyContent
66
- }))))));
47
+ return /* @__PURE__ */ React.createElement(PageWithHeader, { title: `${orgName} Catalog`, themeId: "home" }, /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(ContentHeader, { title: "" }, /* @__PURE__ */ React.createElement(
48
+ CreateButton,
49
+ {
50
+ title: createButtonTitle,
51
+ to: createComponentLink && createComponentLink()
52
+ }
53
+ ), /* @__PURE__ */ React.createElement(SupportButton, null, "All your software catalog entities")), /* @__PURE__ */ React.createElement(EntityListProvider, null, /* @__PURE__ */ React.createElement(CatalogFilterLayout, null, /* @__PURE__ */ React.createElement(CatalogFilterLayout.Filters, null, /* @__PURE__ */ React.createElement(EntityKindPicker, { initialFilter: initialKind }), /* @__PURE__ */ React.createElement(EntityTypePicker, null), /* @__PURE__ */ React.createElement(UserListPicker, { initialFilter: initiallySelectedFilter }), /* @__PURE__ */ React.createElement(EntityOwnerPicker, null), /* @__PURE__ */ React.createElement(EntityLifecyclePicker, null), /* @__PURE__ */ React.createElement(EntityTagPicker, null), /* @__PURE__ */ React.createElement(EntityProcessingStatusPicker, null)), /* @__PURE__ */ React.createElement(CatalogFilterLayout.Content, null, /* @__PURE__ */ React.createElement(
54
+ CatalogTable,
55
+ {
56
+ columns,
57
+ actions,
58
+ tableOptions,
59
+ emptyContent
60
+ }
61
+ ))))));
67
62
  }
68
63
 
69
64
  function CatalogPage(props) {
70
65
  const outlet = useOutlet();
71
- return outlet || /* @__PURE__ */ React.createElement(DefaultCatalogPage, {
72
- ...props
73
- });
66
+ return outlet || /* @__PURE__ */ React.createElement(DefaultCatalogPage, { ...props });
74
67
  }
75
68
 
76
69
  export { CatalogPage, DefaultCatalogPage };
77
- //# sourceMappingURL=index-ab6f8e26.esm.js.map
70
+ //# sourceMappingURL=index-1e61b53b.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-1e61b53b.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';\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} 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}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n emptyContent,\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 />\n <EntityLifecyclePicker />\n <EntityTagPicker />\n <EntityProcessingStatusPicker />\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';\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,uBAAA,GAA0B,MACrC,gBAAuC,EAAA;;AC6BlC,SAAS,mBAAmB,KAAgC,EAAA;AAzDnE,EAAA,IAAA,EAAA,CAAA;AA0DE,EAAM,MAAA;AAAA,IACJ,OAAA;AAAA,IACA,OAAA;AAAA,IACA,uBAA0B,GAAA,OAAA;AAAA,IAC1B,WAAc,GAAA,WAAA;AAAA,IACd,eAAe,EAAC;AAAA,IAChB,YAAA;AAAA,GACE,GAAA,KAAA,CAAA;AACJ,EAAA,MAAM,WACJ,EAAO,GAAA,MAAA,CAAA,YAAY,EAAE,iBAAkB,CAAA,mBAAmB,MAA1D,IAA+D,GAAA,EAAA,GAAA,WAAA,CAAA;AACjE,EAAM,MAAA,mBAAA,GAAsB,YAAY,uBAAuB,CAAA,CAAA;AAE/D,EAAM,MAAA,EAAE,iBAAkB,EAAA,GAAI,uBAAwB,EAAA,CAAA;AAEtD,EAAA,uBACG,KAAA,CAAA,aAAA,CAAA,cAAA,EAAA,EAAe,KAAO,EAAA,CAAA,EAAG,OAAmB,CAAA,QAAA,CAAA,EAAA,OAAA,EAAQ,MACnD,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,OACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,aAAc,EAAA,EAAA,KAAA,EAAM,EACnB,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,KAAO,EAAA,iBAAA;AAAA,MACP,EAAA,EAAI,uBAAuB,mBAAoB,EAAA;AAAA,KAAA;AAAA,qBAEhD,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,IAAA,EAAc,oCAAkC,CACnD,CAAA,sCACC,kBACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,2CACE,KAAA,CAAA,aAAA,CAAA,mBAAA,CAAoB,SAApB,IACC,kBAAA,KAAA,CAAA,aAAA,CAAC,oBAAiB,aAAe,EAAA,WAAA,EAAa,mBAC7C,KAAA,CAAA,aAAA,CAAA,gBAAA,EAAA,IAAiB,mBACjB,KAAA,CAAA,aAAA,CAAA,cAAA,EAAA,EAAe,eAAe,uBAAyB,EAAA,CAAA,sCACvD,iBAAkB,EAAA,IAAA,CAAA,sCAClB,qBAAsB,EAAA,IAAA,CAAA,sCACtB,eAAgB,EAAA,IAAA,CAAA,sCAChB,4BAA6B,EAAA,IAAA,CAChC,mBACC,KAAA,CAAA,aAAA,CAAA,mBAAA,CAAoB,SAApB,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;;ACnFO,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;;;;"}