@backstage/core-components 0.9.6-next.1 → 0.10.0-next.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @backstage/core-components
2
2
 
3
+ ## 0.10.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 32204fa794: Add `transformLinkUri` and `transformImageUri` to `MarkdownContent`
8
+
9
+ ### Patch Changes
10
+
11
+ - b4b711bcc2: Fix the EntityLayout header style so that EntityContextMenu button can display in correct shape when user hover on it
12
+ - 15201b1032: Updated dependency `rc-progress` to `3.4.0`.
13
+ - 385389d23c: Updated to remove usage of the `bursts` object in the theme palette
14
+ - Updated dependencies
15
+ - @backstage/theme@0.2.16-next.1
16
+
3
17
  ## 0.9.6-next.1
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -686,6 +686,8 @@ declare type Props$b = {
686
686
  content: string;
687
687
  dialect?: 'gfm' | 'common-mark';
688
688
  linkTarget?: Options['linkTarget'];
689
+ transformLinkUri?: (href: string) => string;
690
+ transformImageUri?: (href: string) => string;
689
691
  };
690
692
  /**
691
693
  * MarkdownContent
package/dist/index.esm.js CHANGED
@@ -1697,14 +1697,22 @@ const components = {
1697
1697
  }
1698
1698
  };
1699
1699
  function MarkdownContent(props) {
1700
- const { content, dialect = "gfm", linkTarget } = props;
1700
+ const {
1701
+ content,
1702
+ dialect = "gfm",
1703
+ linkTarget,
1704
+ transformLinkUri,
1705
+ transformImageUri
1706
+ } = props;
1701
1707
  const classes = useStyles$B();
1702
1708
  return /* @__PURE__ */ React.createElement(ReactMarkdown, {
1703
1709
  remarkPlugins: dialect === "gfm" ? [gfm] : [],
1704
1710
  className: classes.markdown,
1705
1711
  children: content,
1706
1712
  components,
1707
- linkTarget
1713
+ linkTarget,
1714
+ transformLinkUri,
1715
+ transformImageUri
1708
1716
  });
1709
1717
  }
1710
1718
 
@@ -3271,13 +3279,13 @@ const useStyles$l = makeStyles((theme) => ({
3271
3279
  }),
3272
3280
  overlayHeader: {
3273
3281
  display: "flex",
3274
- color: theme.palette.bursts.fontColor,
3282
+ color: theme.palette.text.primary,
3275
3283
  alignItems: "center",
3276
3284
  justifyContent: "space-between",
3277
3285
  padding: theme.spacing(2, 3)
3278
3286
  },
3279
3287
  overlayHeaderClose: {
3280
- color: theme.palette.bursts.fontColor
3288
+ color: theme.palette.text.primary
3281
3289
  },
3282
3290
  marginMobileSidebar: (props) => ({
3283
3291
  marginBottom: `${props.sidebarConfig.mobileSidebarHeight}px`
@@ -5348,16 +5356,17 @@ const useStyles$5 = makeStyles((theme) => ({
5348
5356
  flexGrow: 1
5349
5357
  },
5350
5358
  rightItemsBox: {
5351
- width: "auto"
5359
+ width: "auto",
5360
+ alignItems: "center"
5352
5361
  },
5353
5362
  title: {
5354
- color: theme.palette.bursts.fontColor,
5363
+ color: theme.page.fontColor,
5355
5364
  wordBreak: "break-word",
5356
5365
  fontSize: theme.typography.h3.fontSize,
5357
5366
  marginBottom: 0
5358
5367
  },
5359
5368
  subtitle: {
5360
- color: theme.palette.bursts.fontColor,
5369
+ color: theme.page.fontColor,
5361
5370
  opacity: 0.8,
5362
5371
  display: "inline-block",
5363
5372
  marginTop: theme.spacing(1),
@@ -5368,10 +5377,10 @@ const useStyles$5 = makeStyles((theme) => ({
5368
5377
  fontSize: 11,
5369
5378
  opacity: 0.8,
5370
5379
  marginBottom: theme.spacing(1),
5371
- color: theme.palette.bursts.fontColor
5380
+ color: theme.page.fontColor
5372
5381
  },
5373
5382
  breadcrumb: {
5374
- color: theme.palette.bursts.fontColor
5383
+ color: theme.page.fontColor
5375
5384
  },
5376
5385
  breadcrumbType: {
5377
5386
  fontSize: "inherit",
@@ -5574,7 +5583,7 @@ const styles$1 = (theme) => createStyles({
5574
5583
  root: {
5575
5584
  color: theme.palette.common.white,
5576
5585
  padding: theme.spacing(2, 2, 3),
5577
- backgroundImage: theme.palette.bursts.gradient.linear,
5586
+ backgroundImage: theme.getPageTheme({ themeId: "card" }).backgroundImage,
5578
5587
  backgroundPosition: 0,
5579
5588
  backgroundSize: "inherit"
5580
5589
  }