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