@backstage/plugin-catalog-react 1.19.0-next.2 → 1.19.1-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 (2) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,93 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
+ ## 1.19.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/integration-react@1.2.9-next.0
9
+ - @backstage/core-components@0.17.4-next.0
10
+ - @backstage/catalog-client@1.10.1
11
+ - @backstage/catalog-model@1.7.4
12
+ - @backstage/core-compat-api@0.4.4-next.0
13
+ - @backstage/core-plugin-api@1.10.8
14
+ - @backstage/errors@1.2.7
15
+ - @backstage/frontend-plugin-api@0.10.4-next.0
16
+ - @backstage/frontend-test-utils@0.3.4-next.0
17
+ - @backstage/types@1.2.1
18
+ - @backstage/version-bridge@1.0.11
19
+ - @backstage/plugin-catalog-common@1.1.4
20
+ - @backstage/plugin-permission-common@0.9.0
21
+ - @backstage/plugin-permission-react@0.4.35
22
+
23
+ ## 1.19.0
24
+
25
+ ### Minor Changes
26
+
27
+ - 406acb6: Introduces a new `EntityIconLinkBlueprint` that customizes the `About` card icon links on the `Catalog` entity page.
28
+
29
+ The blueprint currently accepts a `useProps` hook as `param` and this function returns the following props that will be passed to the icon link component:
30
+
31
+ | Name | Description | Type | Default Value |
32
+ | ---------- | --------------------------------------------------- | ------------- | ------------- |
33
+ | `icon` | The icon to display. | `JSX.Element` | N/A |
34
+ | `label` | The label for the element. | `string` | N/A |
35
+ | `title` | The title for the element. | `string` | N/A |
36
+ | `disabled` | Whether the element is disabled. | `boolean` | `false` |
37
+ | `href` | The URL to navigate to when the element is clicked. | `string` | N/A |
38
+ | `onClick` | A function to call when the element is clicked. | `() => void` | N/A |
39
+
40
+ Here is an usage example:
41
+
42
+ ```tsx
43
+ import { EntityIconLinkBlueprint } from '@backstage/plugin-catalog-react/alpha';
44
+ //...
45
+
46
+ EntityIconLinkBlueprint.make({
47
+ name: 'my-icon-link',
48
+ params: {
49
+ useProps() {
50
+ const { t } = useTranslationRef(myIconLinkTranslationRef);
51
+ return {
52
+ label: t('myIconLink.label'),
53
+ icon: <MyIconLinkIcon />,
54
+ href: '/my-plugin',
55
+ };
56
+ },
57
+ },
58
+ });
59
+ ```
60
+
61
+ Additionally, the `app-config.yaml` file allows you to override some of the default icon link parameters, including `label` and `title` values. Here's how to set them:
62
+
63
+ ```yaml
64
+ app:
65
+ extensions:
66
+ - entity-icon-link:my-plugin/my-icon-link:
67
+ config:
68
+ label: 'My Custom Icon Link label'
69
+ ```
70
+
71
+ Finally, you can disable all links if you want to hide the About card header completely (useful, for example, when links are displayed on separate cards). The header is hidden when no icon links extensions are enabled.
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies
76
+ - @backstage/core-components@0.17.3
77
+ - @backstage/catalog-client@1.10.1
78
+ - @backstage/core-plugin-api@1.10.8
79
+ - @backstage/frontend-plugin-api@0.10.3
80
+ - @backstage/integration-react@1.2.8
81
+ - @backstage/catalog-model@1.7.4
82
+ - @backstage/core-compat-api@0.4.3
83
+ - @backstage/errors@1.2.7
84
+ - @backstage/frontend-test-utils@0.3.3
85
+ - @backstage/types@1.2.1
86
+ - @backstage/version-bridge@1.0.11
87
+ - @backstage/plugin-catalog-common@1.1.4
88
+ - @backstage/plugin-permission-common@0.9.0
89
+ - @backstage/plugin-permission-react@0.4.35
90
+
3
91
  ## 1.19.0-next.2
4
92
 
5
93
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "1.19.0-next.2",
3
+ "version": "1.19.1-next.0",
4
4
  "description": "A frontend library that helps other Backstage plugins interact with the catalog",
5
5
  "backstage": {
6
6
  "role": "web-library",
@@ -73,18 +73,18 @@
73
73
  "test": "backstage-cli package test"
74
74
  },
75
75
  "dependencies": {
76
- "@backstage/catalog-client": "1.10.1-next.0",
76
+ "@backstage/catalog-client": "1.10.1",
77
77
  "@backstage/catalog-model": "1.7.4",
78
- "@backstage/core-compat-api": "0.4.3-next.2",
79
- "@backstage/core-components": "0.17.3-next.0",
80
- "@backstage/core-plugin-api": "1.10.7",
78
+ "@backstage/core-compat-api": "0.4.4-next.0",
79
+ "@backstage/core-components": "0.17.4-next.0",
80
+ "@backstage/core-plugin-api": "1.10.8",
81
81
  "@backstage/errors": "1.2.7",
82
- "@backstage/frontend-plugin-api": "0.10.3-next.1",
83
- "@backstage/frontend-test-utils": "0.3.3-next.1",
84
- "@backstage/integration-react": "1.2.7",
82
+ "@backstage/frontend-plugin-api": "0.10.4-next.0",
83
+ "@backstage/frontend-test-utils": "0.3.4-next.0",
84
+ "@backstage/integration-react": "1.2.9-next.0",
85
85
  "@backstage/plugin-catalog-common": "1.1.4",
86
86
  "@backstage/plugin-permission-common": "0.9.0",
87
- "@backstage/plugin-permission-react": "0.4.34",
87
+ "@backstage/plugin-permission-react": "0.4.35",
88
88
  "@backstage/types": "1.2.1",
89
89
  "@backstage/version-bridge": "1.0.11",
90
90
  "@material-ui/core": "^4.12.2",
@@ -100,11 +100,11 @@
100
100
  "zen-observable": "^0.10.0"
101
101
  },
102
102
  "devDependencies": {
103
- "@backstage/cli": "0.33.0-next.1",
104
- "@backstage/core-app-api": "1.17.0",
103
+ "@backstage/cli": "0.33.1-next.0",
104
+ "@backstage/core-app-api": "1.17.1",
105
105
  "@backstage/plugin-catalog-common": "1.1.4",
106
106
  "@backstage/plugin-scaffolder-common": "1.5.11",
107
- "@backstage/test-utils": "1.7.8",
107
+ "@backstage/test-utils": "1.7.10-next.0",
108
108
  "@testing-library/dom": "^10.0.0",
109
109
  "@testing-library/jest-dom": "^6.0.0",
110
110
  "@testing-library/react": "^16.0.0",