@backstage/core-components 0.12.1-next.4 → 0.12.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.
- package/CHANGELOG.md +53 -0
- package/dist/index.esm.js +12 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixing the UPPERCASED links in the sidebar
|
|
8
|
+
|
|
9
|
+
## 0.12.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a236a8830d: Update sidebar icon alignment
|
|
14
|
+
- d3fea4ae0a: Internal fixes to avoid implicit usage of globals
|
|
15
|
+
- b05dcd5530: Move the `zod` dependency to a version that does not collide with other libraries
|
|
16
|
+
- ea4a5be8f3: Create a variable for minimum height and add a prop named 'fit' for determining if the graph height should grow or be contained.
|
|
17
|
+
- 2e701b3796: Internal refactor to use `react-router-dom` rather than `react-router`.
|
|
18
|
+
- d2e3bf6737: Made AlertDisplay not crash on undefined messages
|
|
19
|
+
- 64a579a998: Add items prop to SupportButton. This prop can be used to override the items that would otherwise be grabbed from the config.
|
|
20
|
+
- 5d3058355d: Add `react/forbid-elements` linter rule for button, suggest MUI `Button`
|
|
21
|
+
- 3280711113: Updated dependency `msw` to `^0.49.0`.
|
|
22
|
+
- 19356df560: Updated dependency `zen-observable` to `^0.9.0`.
|
|
23
|
+
- c3fa90e184: Updated dependency `zen-observable` to `^0.10.0`.
|
|
24
|
+
- 5fb6d5e92e: Updated dependency `@react-hookz/web` to `^19.0.0`.
|
|
25
|
+
- 17a8e32f39: Updated dependency `rc-progress` to `3.4.1`.
|
|
26
|
+
- 146378c146: Updated dependency `@react-hookz/web` to `^20.0.0`.
|
|
27
|
+
- dfc8edf9c5: Internal refactor to avoid usage of deprecated symbols.
|
|
28
|
+
- 8015ff1258: Tweaked wording to use inclusive terminology
|
|
29
|
+
- 830687539f: Sync components in @backstage/core-components with the Component Design Guidelines
|
|
30
|
+
- 1ae86ab5fb: Added an option to allow the `AlertMessage` to be self-closing. This is done with a new `display` property that is set to `transient` on the `AlertMessage` when triggering a message to the `AlertApi`. The length of time that these transient messages stay open for can be set using the `transientTimeoutMs` prop on the `AlertDisplay` in the `App.tsx`. Here is an example:
|
|
31
|
+
|
|
32
|
+
```diff
|
|
33
|
+
const App = () => (
|
|
34
|
+
<AppProvider>
|
|
35
|
+
+ <AlertDisplay transientTimeoutMs={2500} />
|
|
36
|
+
<OAuthRequestDialog />
|
|
37
|
+
<AppRouter>
|
|
38
|
+
<Root>{routes}</Root>
|
|
39
|
+
</AppRouter>
|
|
40
|
+
</AppProvider>
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The above example will set the transient timeout to 2500ms from the default of 5000ms
|
|
45
|
+
|
|
46
|
+
- 16e31e690f: InfoCard - Remove subheader container when there is not a subheader or icon
|
|
47
|
+
- a5a2d12298: Added option to pass additional headers to `<ProxiedSignInPage />`, which are passed along with the request to the underlying provider
|
|
48
|
+
- 91bba69ef8: Internal refactor to remove deprecated symbols.
|
|
49
|
+
- Updated dependencies
|
|
50
|
+
- @backstage/core-plugin-api@1.2.0
|
|
51
|
+
- @backstage/version-bridge@1.0.3
|
|
52
|
+
- @backstage/errors@1.1.4
|
|
53
|
+
- @backstage/config@1.0.5
|
|
54
|
+
- @backstage/theme@0.2.16
|
|
55
|
+
|
|
3
56
|
## 0.12.1-next.4
|
|
4
57
|
|
|
5
58
|
### Patch Changes
|
package/dist/index.esm.js
CHANGED
|
@@ -3763,6 +3763,9 @@ const useStyles$k = makeStyles(
|
|
|
3763
3763
|
},
|
|
3764
3764
|
"&::-webkit-scrollbar": {
|
|
3765
3765
|
display: "none"
|
|
3766
|
+
},
|
|
3767
|
+
"& .MuiButtonBase-root": {
|
|
3768
|
+
textTransform: "none"
|
|
3766
3769
|
}
|
|
3767
3770
|
}),
|
|
3768
3771
|
drawerOpen: (props) => ({
|
|
@@ -4007,8 +4010,9 @@ const SidebarSubmenuItem = (props) => {
|
|
|
4007
4010
|
return isActive;
|
|
4008
4011
|
});
|
|
4009
4012
|
return /* @__PURE__ */ React.createElement(Box, { className: classes.itemContainer }, /* @__PURE__ */ React.createElement(Tooltip, { title, enterDelay: 500, enterNextDelay: 500 }, /* @__PURE__ */ React.createElement(
|
|
4010
|
-
|
|
4013
|
+
Button$1,
|
|
4011
4014
|
{
|
|
4015
|
+
role: "button",
|
|
4012
4016
|
onClick: handleClickDropdown,
|
|
4013
4017
|
onTouchStart: (e) => e.stopPropagation(),
|
|
4014
4018
|
className: classNames(
|
|
@@ -4227,7 +4231,8 @@ const makeSidebarStyles = (sidebarConfig) => makeStyles(
|
|
|
4227
4231
|
marginRight: -theme.spacing(2),
|
|
4228
4232
|
display: "flex",
|
|
4229
4233
|
alignItems: "center",
|
|
4230
|
-
justifyContent: "center"
|
|
4234
|
+
justifyContent: "center",
|
|
4235
|
+
lineHeight: "0"
|
|
4231
4236
|
},
|
|
4232
4237
|
searchRoot: {
|
|
4233
4238
|
marginBottom: 12
|
|
@@ -4375,8 +4380,8 @@ const SidebarItemBase = forwardRef((props, ref) => {
|
|
|
4375
4380
|
const { sidebarConfig } = useContext(SidebarConfigContext);
|
|
4376
4381
|
const classes = useMemoStyles(sidebarConfig);
|
|
4377
4382
|
const { isOpen } = useSidebarOpenState();
|
|
4378
|
-
const divStyle = !isOpen && hasSubmenu ? { display: "flex", marginLeft: "
|
|
4379
|
-
const displayItemIcon = /* @__PURE__ */ React.createElement(Box, { style: divStyle }, /* @__PURE__ */ React.createElement(Icon, { fontSize: "small" }), !isOpen && hasSubmenu ? /* @__PURE__ */ React.createElement(ArrowRightIcon,
|
|
4383
|
+
const divStyle = !isOpen && hasSubmenu ? { display: "flex", marginLeft: "20px" } : { lineHeight: "0" };
|
|
4384
|
+
const displayItemIcon = /* @__PURE__ */ React.createElement(Box, { style: divStyle }, /* @__PURE__ */ React.createElement(Icon, { fontSize: "small" }), !isOpen && hasSubmenu ? /* @__PURE__ */ React.createElement(ArrowRightIcon, { fontSize: "small" }) : /* @__PURE__ */ React.createElement(React.Fragment, null));
|
|
4380
4385
|
const itemIcon = /* @__PURE__ */ React.createElement(
|
|
4381
4386
|
Badge,
|
|
4382
4387
|
{
|
|
@@ -4401,7 +4406,7 @@ const SidebarItemBase = forwardRef((props, ref) => {
|
|
|
4401
4406
|
)
|
|
4402
4407
|
};
|
|
4403
4408
|
if (isButtonItem(props)) {
|
|
4404
|
-
return /* @__PURE__ */ React.createElement("button",
|
|
4409
|
+
return /* @__PURE__ */ React.createElement(Button$1, { role: "button", "aria-label": text, ...childProps, ref }, content);
|
|
4405
4410
|
}
|
|
4406
4411
|
return /* @__PURE__ */ React.createElement(
|
|
4407
4412
|
WorkaroundNavLink,
|
|
@@ -4595,8 +4600,9 @@ const SidebarExpandButton = () => {
|
|
|
4595
4600
|
setOpen(!isOpen);
|
|
4596
4601
|
};
|
|
4597
4602
|
return /* @__PURE__ */ React.createElement(
|
|
4598
|
-
|
|
4603
|
+
Button$1,
|
|
4599
4604
|
{
|
|
4605
|
+
role: "button",
|
|
4600
4606
|
onClick: handleClick,
|
|
4601
4607
|
className: classes.expandButton,
|
|
4602
4608
|
"aria-label": "Expand Sidebar",
|