@backstage/plugin-catalog 0.7.12 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/dist/esm/{index-f38c05cb.esm.js → index-14286170.esm.js} +5 -4
  3. package/dist/esm/index-14286170.esm.js.map +1 -0
  4. package/dist/esm/{index-5f548c06.esm.js → index-172990ed.esm.js} +2 -2
  5. package/dist/esm/index-172990ed.esm.js.map +1 -0
  6. package/dist/esm/{index-da7631a3.esm.js → index-1f9336e4.esm.js} +299 -565
  7. package/dist/esm/index-1f9336e4.esm.js.map +1 -0
  8. package/dist/esm/{index-76b6bb58.esm.js → index-2a9d68c3.esm.js} +5 -7
  9. package/dist/esm/index-2a9d68c3.esm.js.map +1 -0
  10. package/dist/esm/{index-bb9f1736.esm.js → index-3cf25427.esm.js} +8 -7
  11. package/dist/esm/index-3cf25427.esm.js.map +1 -0
  12. package/dist/esm/{index-ce51b527.esm.js → index-52271589.esm.js} +12 -13
  13. package/dist/esm/index-52271589.esm.js.map +1 -0
  14. package/dist/esm/{index-1d9c4228.esm.js → index-583e6f94.esm.js} +5 -4
  15. package/dist/esm/index-583e6f94.esm.js.map +1 -0
  16. package/dist/esm/index-61fe5994.esm.js +58 -0
  17. package/dist/esm/index-61fe5994.esm.js.map +1 -0
  18. package/dist/esm/{index-dd3d0aa1.esm.js → index-69fcf315.esm.js} +5 -4
  19. package/dist/esm/index-69fcf315.esm.js.map +1 -0
  20. package/dist/esm/index-7e69bc27.esm.js +34 -0
  21. package/dist/esm/index-7e69bc27.esm.js.map +1 -0
  22. package/dist/esm/{index-acc2d5cf.esm.js → index-bb5ef8ab.esm.js} +5 -4
  23. package/dist/esm/{index-acc2d5cf.esm.js.map → index-bb5ef8ab.esm.js.map} +1 -1
  24. package/dist/esm/{index-e48f93af.esm.js → index-be138931.esm.js} +5 -7
  25. package/dist/esm/index-be138931.esm.js.map +1 -0
  26. package/dist/esm/{index-ae83ecd3.esm.js → index-df3c8250.esm.js} +5 -4
  27. package/dist/esm/index-df3c8250.esm.js.map +1 -0
  28. package/dist/esm/{presets-711f07f8.esm.js → presets-8488ee8e.esm.js} +3 -3
  29. package/dist/esm/{presets-711f07f8.esm.js.map → presets-8488ee8e.esm.js.map} +1 -1
  30. package/dist/index.d.ts +264 -198
  31. package/dist/index.esm.js +7 -6
  32. package/dist/index.esm.js.map +1 -1
  33. package/package.json +31 -25
  34. package/dist/components/EntityNotFound/Illo/illo.svg +0 -1
  35. package/dist/esm/index-1d9c4228.esm.js.map +0 -1
  36. package/dist/esm/index-5f548c06.esm.js.map +0 -1
  37. package/dist/esm/index-76b6bb58.esm.js.map +0 -1
  38. package/dist/esm/index-7b0e3438.esm.js +0 -10
  39. package/dist/esm/index-7b0e3438.esm.js.map +0 -1
  40. package/dist/esm/index-943d86e0.esm.js +0 -27
  41. package/dist/esm/index-943d86e0.esm.js.map +0 -1
  42. package/dist/esm/index-ae83ecd3.esm.js.map +0 -1
  43. package/dist/esm/index-bb9f1736.esm.js.map +0 -1
  44. package/dist/esm/index-ce51b527.esm.js.map +0 -1
  45. package/dist/esm/index-d363820f.esm.js +0 -182
  46. package/dist/esm/index-d363820f.esm.js.map +0 -1
  47. package/dist/esm/index-da7631a3.esm.js.map +0 -1
  48. package/dist/esm/index-dd3d0aa1.esm.js.map +0 -1
  49. package/dist/esm/index-e48f93af.esm.js.map +0 -1
  50. package/dist/esm/index-f38c05cb.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,92 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
+ ## 0.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 899f196af5: Use `getEntityByRef` instead of `getEntityByName` in the catalog client
8
+ - f41a293231: - **DEPRECATION**: Deprecated `formatEntityRefTitle` in favor of the new `humanizeEntityRef` method instead. Please migrate to using the new method instead.
9
+ - f590d1681b: Removed usage of deprecated favorite utility methods.
10
+ - 44403296e7: Added the following deprecations to the `catalog-react` package:
11
+
12
+ - **DEPRECATION**: `useEntity` will now warn if the entity has not yet been loaded, and will soon throw errors instead. If you're using the default implementation of `EntityLayout` and `EntitySwitch` then these components will ensure that there is an entity loaded before rendering children. If you're implementing your own `EntityLayout` or `EntitySwitch` or something that operates outside or adjacent to them, then use `useAsyncEntity`.
13
+
14
+ - **DEPRECATION**: the `loading`, `error` and `refresh` properties that are returned from `useEntity` have been deprecated, and are available on `useAsyncEntity` instead.
15
+
16
+ - da79aac2a6: - Replaced usage of the deprecated and now removed `rootRoute` and `catalogRouteRef`s from the `catalog-react` package
17
+ - 36aa63022b: Use `CompoundEntityRef` instead of `EntityName`, and `getCompoundEntityRef` instead of `getEntityName`, from `@backstage/catalog-model`.
18
+ - 8f0e8e039b: Removed usage of deprecated `getEntityMetadataViewUrl` and `getEntityMetadataEditUrl` helpers.
19
+ - Updated dependencies
20
+ - @backstage/catalog-model@0.12.0
21
+ - @backstage/catalog-client@0.8.0
22
+ - @backstage/core-components@0.9.0
23
+ - @backstage/plugin-catalog-react@0.8.0
24
+ - @backstage/plugin-catalog-common@0.2.0
25
+ - @backstage/core-plugin-api@0.8.0
26
+ - @backstage/search-common@0.3.0
27
+ - @backstage/integration-react@0.1.24
28
+
29
+ ## 0.9.0
30
+
31
+ ### Minor Changes
32
+
33
+ - e7b9c3d713: Removed `columnFactories`, which was accidentally exported on the previous release.
34
+ - 2262fe19c9: **BREAKING**: Removed support for passing in an explicit `entity` prop to entity page extensions, which has been deprecated for a long time. This is only a breaking change at the TypeScript level, as this property was already ignored.
35
+ - 3c4376e5e7: **BREAKING**: Removed the old `plugin` export, use `catalogPlugin` instead.
36
+
37
+ ### Patch Changes
38
+
39
+ - 2d339b5f2c: Internalize deprecated `useEntityFromUrl` hook
40
+ - a686702dbe: Renamed `CatalogResultListItem` to `CatalogSearchResultListItem` along with its prop type, leaving the old names in place as a deprecations.
41
+ - 852d5ff758: Added `EntitySwitchProps` type for `EntitySwitch`.
42
+ - a8331830f1: Remove use of deprecated `useEntityKinds` hook.
43
+ - 6e1cbc12a6: Updated according to the new `getEntityFacets` catalog API method
44
+ - b776ce5aab: Replaced use of deprecated `useEntityListProvider` hook with `useEntityList`.
45
+ - 3334ad47d4: Removed usage of `EntityContext`.
46
+ - 919cf2f836: Minor updates to match the new `targetRef` field of relations, and to stop consuming the `target` field
47
+ - Updated dependencies
48
+ - @backstage/core-components@0.8.10
49
+ - @backstage/plugin-catalog-react@0.7.0
50
+ - @backstage/catalog-model@0.11.0
51
+ - @backstage/catalog-client@0.7.2
52
+ - @backstage/core-plugin-api@0.7.0
53
+ - @backstage/integration-react@0.1.23
54
+
55
+ ## 0.8.0
56
+
57
+ ### Minor Changes
58
+
59
+ - ae7edbea45: Removed `CatalogClientWrapper` as usage have been replaced by the `fetchApiRef`.
60
+ - 37092662cb: **BREAKING** Completely removed the `EntitySystemDiagramCard` component which was deprecated in a previous release. Any remaining references to this component are now broken and should be replaced with `EntityCatalogGraphCard`, which can be imported from package `@backstage/plugin-catalog-graph`.
61
+ - 7657eeae22: Removed deprecated `Router` and `EntityPageLayout` exports.
62
+ `Router` is replaced by plugin extensions and `EntityPageLayout` is replaced by `CatalogEntityPage`.
63
+ - 0a033351be: **BREAKING**:
64
+
65
+ - The `CatalogResultListItem` `result` prop is now of the more narrow and correct type `IndexableDocument`, rather than `any`.
66
+ - The individual table column factories (e.g. `createNameColumn`) are now no longer available directly, but only through `CatalogTable.columns`.
67
+
68
+ ### Patch Changes
69
+
70
+ - 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5
71
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
72
+ - 538ca90790: Use updated type names from `@backstage/catalog-client`
73
+ - 0d03e42a89: Replaced use of deprecated `compareEntityToRef` utility.
74
+ - 244d24ebc4: Import `Location` from the `@backstage/catalog-client` package.
75
+ - deaf6065db: Adapt to the new `CatalogApi.getLocationByRef`
76
+ - 27eccab216: Replaces use of deprecated catalog-model constants.
77
+ - 7aeb491394: Replace use of deprecated `ENTITY_DEFAULT_NAMESPACE` constant with `DEFAULT_NAMESPACE`.
78
+ - Updated dependencies
79
+ - @backstage/catalog-client@0.7.0
80
+ - @backstage/core-components@0.8.9
81
+ - @backstage/core-plugin-api@0.6.1
82
+ - @backstage/errors@0.2.1
83
+ - @backstage/integration-react@0.1.22
84
+ - @backstage/plugin-catalog-react@0.6.15
85
+ - @backstage/catalog-model@0.10.0
86
+ - @backstage/search-common@0.2.3
87
+ - @backstage/theme@0.2.15
88
+ - @backstage/plugin-catalog-common@0.1.3
89
+
3
90
  ## 0.7.12
4
91
 
5
92
  ### Patch Changes
@@ -1,11 +1,12 @@
1
1
  import { RELATION_HAS_PART } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-711f07f8.esm.js';
3
+ import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-8488ee8e.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
7
7
 
8
- const HasComponentsCard = ({ variant = "gridItem" }) => {
8
+ function HasComponentsCard(props) {
9
+ const { variant = "gridItem" } = props;
9
10
  return /* @__PURE__ */ React.createElement(RelatedEntitiesCard, {
10
11
  variant,
11
12
  title: "Has components",
@@ -16,7 +17,7 @@ const HasComponentsCard = ({ variant = "gridItem" }) => {
16
17
  emptyHelpLink: componentEntityHelpLink,
17
18
  asRenderableEntities: asComponentEntities
18
19
  });
19
- };
20
+ }
20
21
 
21
22
  export { HasComponentsCard };
22
- //# sourceMappingURL=index-f38c05cb.esm.js.map
23
+ //# sourceMappingURL=index-14286170.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-14286170.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 React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface HasComponentsCardProps {\n variant?: 'gridItem';\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":";;;;;;;2BA8BkC,OAA+B;AAC/D,QAAM,EAAE,UAAU,eAAe;AACjC,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
@@ -1,6 +1,6 @@
1
- export { R as RelatedEntitiesCard, e as asComponentEntities, f as asResourceEntities, a as asSystemEntities, c as componentEntityColumns, d as componentEntityHelpLink, r as resourceEntityColumns, g as resourceEntityHelpLink, s as systemEntityColumns, b as systemEntityHelpLink } from './presets-711f07f8.esm.js';
1
+ export { R as RelatedEntitiesCard, e as asComponentEntities, f as asResourceEntities, a as asSystemEntities, c as componentEntityColumns, d as componentEntityHelpLink, r as resourceEntityColumns, g as resourceEntityHelpLink, s as systemEntityColumns, b as systemEntityHelpLink } from './presets-8488ee8e.esm.js';
2
2
  import '@material-ui/core';
3
3
  import '@backstage/plugin-catalog-react';
4
4
  import 'react';
5
5
  import '@backstage/core-components';
6
- //# sourceMappingURL=index-5f548c06.esm.js.map
6
+ //# sourceMappingURL=index-172990ed.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-172990ed.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}