@backstage/plugin-org 0.5.4-next.3 → 0.5.4
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.
- package/CHANGELOG.md +64 -0
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# @backstage/plugin-org
|
|
2
2
|
|
|
3
|
+
## 0.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 24254fd433: build(deps): bump `@testing-library/user-event` from 13.5.0 to 14.0.0
|
|
8
|
+
- cb592bfce7: Provides the ability to hide the relations toggle on the `OwnershipCard` as well as setting a default relation type.
|
|
9
|
+
|
|
10
|
+
To hide the toggle simply include the `hideRelationsToggle` prop like this:
|
|
11
|
+
|
|
12
|
+
```tsx
|
|
13
|
+
<EntityOwnershipCard
|
|
14
|
+
variant="gridItem"
|
|
15
|
+
entityFilterKind={customEntityFilterKind}
|
|
16
|
+
hideRelationsToggle
|
|
17
|
+
/>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
To set the default relation type, add the `relationsType` prop with a value of direct or aggregated, the default if not provided is direct. Here is an example:
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
<EntityOwnershipCard
|
|
24
|
+
variant="gridItem"
|
|
25
|
+
entityFilterKind={customEntityFilterKind}
|
|
26
|
+
relationsType="aggregated"
|
|
27
|
+
/>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- d014fe2cb4: Introduced a new MyGroupsSidebarItem SidebarItem that links to one or more groups based on the logged in user's membership.
|
|
31
|
+
|
|
32
|
+
To use MyGroupsSidebarItem you'll need to add it to your `Root.tsx` like this:
|
|
33
|
+
|
|
34
|
+
```diff
|
|
35
|
+
// app/src/components/Root/Root.tsx
|
|
36
|
+
+ import { MyGroupsSidebarItem } from '@backstage/plugin-org';
|
|
37
|
+
+ import GroupIcon from '@material-ui/icons/People';
|
|
38
|
+
|
|
39
|
+
<SidebarPage>
|
|
40
|
+
<Sidebar>
|
|
41
|
+
//...
|
|
42
|
+
<SidebarGroup label="Menu" icon={<MenuIcon />}>
|
|
43
|
+
{/* Global nav, not org-specific */}
|
|
44
|
+
//...
|
|
45
|
+
<SidebarItem icon={HomeIcon} to="catalog" text="Home" />
|
|
46
|
+
+ <MyGroupsSidebarItem
|
|
47
|
+
+ singularTitle="My Squad"
|
|
48
|
+
+ pluralTitle="My Squads"
|
|
49
|
+
+ icon={GroupIcon}
|
|
50
|
+
+ />
|
|
51
|
+
//...
|
|
52
|
+
</SidebarGroup>
|
|
53
|
+
</ Sidebar>
|
|
54
|
+
</SidebarPage>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- 111995470d: add aggregated ownership type for kind group in OwnershipCard
|
|
58
|
+
- 230ad0826f: Bump to using `@types/node` v16
|
|
59
|
+
- 0bada4fc4d: Added the `metadata.description` to the bottom of each member on the MembersListCard
|
|
60
|
+
- 99063c39ae: Minor API report cleanup
|
|
61
|
+
- Updated dependencies
|
|
62
|
+
- @backstage/plugin-catalog-react@1.0.1
|
|
63
|
+
- @backstage/catalog-model@1.0.1
|
|
64
|
+
- @backstage/core-components@0.9.3
|
|
65
|
+
- @backstage/core-plugin-api@1.0.1
|
|
66
|
+
|
|
3
67
|
## 0.5.4-next.3
|
|
4
68
|
|
|
5
69
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-org",
|
|
3
3
|
"description": "A Backstage plugin that helps you create entity pages for your organization",
|
|
4
|
-
"version": "0.5.4
|
|
4
|
+
"version": "0.5.4",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"clean": "backstage-cli package clean"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@backstage/catalog-model": "^1.0.1
|
|
33
|
-
"@backstage/core-components": "^0.9.3
|
|
34
|
-
"@backstage/core-plugin-api": "^1.0.1
|
|
35
|
-
"@backstage/plugin-catalog-react": "^1.0.1
|
|
32
|
+
"@backstage/catalog-model": "^1.0.1",
|
|
33
|
+
"@backstage/core-components": "^0.9.3",
|
|
34
|
+
"@backstage/core-plugin-api": "^1.0.1",
|
|
35
|
+
"@backstage/plugin-catalog-react": "^1.0.1",
|
|
36
36
|
"@backstage/theme": "^0.2.15",
|
|
37
37
|
"@material-ui/core": "^4.12.2",
|
|
38
38
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"react": "^16.13.1 || ^17.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@backstage/catalog-client": "^1.0.1
|
|
52
|
-
"@backstage/cli": "^0.17.0
|
|
53
|
-
"@backstage/core-app-api": "^1.0.1
|
|
54
|
-
"@backstage/dev-utils": "^1.0.1
|
|
55
|
-
"@backstage/test-utils": "^1.0.1
|
|
51
|
+
"@backstage/catalog-client": "^1.0.1",
|
|
52
|
+
"@backstage/cli": "^0.17.0",
|
|
53
|
+
"@backstage/core-app-api": "^1.0.1",
|
|
54
|
+
"@backstage/dev-utils": "^1.0.1",
|
|
55
|
+
"@backstage/test-utils": "^1.0.1",
|
|
56
56
|
"@testing-library/jest-dom": "^5.10.1",
|
|
57
57
|
"@testing-library/react": "^12.1.3",
|
|
58
58
|
"@testing-library/user-event": "^14.0.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"files": [
|
|
65
65
|
"dist"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e0e44c433319711c2fb8b175db411a621f7aaec2"
|
|
68
68
|
}
|