@backstage/core-components 0.10.1-next.0 → 0.11.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.
- package/CHANGELOG.md +24 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d0eefc499a: Made the `to` prop of `Button` and `Link` more strict, only supporting plain strings. It used to be the case that this prop was unexpectedly too liberal, making it look like we supported the complex `react-router-dom` object form of the parameter as well, which led to unexpected results at runtime.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- a22af3edc8: Adding a `className` prop to the `MarkdownContent` component
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @backstage/core-plugin-api@1.0.5
|
|
14
|
+
|
|
15
|
+
## 0.11.0-next.2
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- d0eefc499a: Made the `to` prop of `Button` and `Link` more strict, only supporting plain strings. It used to be the case that this prop was unexpectedly too liberal, making it look like we supported the complex `react-router-dom` object form of the parameter as well, which led to unexpected results at runtime.
|
|
20
|
+
|
|
21
|
+
## 0.10.1-next.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- a22af3edc8: Adding a `className` prop to the `MarkdownContent` component
|
|
26
|
+
|
|
3
27
|
## 0.10.1-next.0
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,8 @@ interface AvatarProps {
|
|
|
70
70
|
*/
|
|
71
71
|
declare function Avatar(props: AvatarProps): JSX.Element;
|
|
72
72
|
|
|
73
|
-
declare type LinkProps = LinkProps$1 & LinkProps$2 & {
|
|
73
|
+
declare type LinkProps = Omit<LinkProps$1, 'to'> & Omit<LinkProps$2, 'to'> & {
|
|
74
|
+
to: string;
|
|
74
75
|
component?: ElementType<any>;
|
|
75
76
|
noTrack?: boolean;
|
|
76
77
|
};
|
|
@@ -700,6 +701,7 @@ declare type Props$b = {
|
|
|
700
701
|
linkTarget?: Options['linkTarget'];
|
|
701
702
|
transformLinkUri?: (href: string) => string;
|
|
702
703
|
transformImageUri?: (href: string) => string;
|
|
704
|
+
className?: string;
|
|
703
705
|
};
|
|
704
706
|
/**
|
|
705
707
|
* MarkdownContent
|
|
@@ -893,6 +895,7 @@ declare type SelectProps = {
|
|
|
893
895
|
triggerReset?: boolean;
|
|
894
896
|
native?: boolean;
|
|
895
897
|
disabled?: boolean;
|
|
898
|
+
margin?: 'dense' | 'none';
|
|
896
899
|
};
|
|
897
900
|
/** @public */
|
|
898
901
|
declare function SelectComponent(props: SelectProps): JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -1865,12 +1865,13 @@ function MarkdownContent(props) {
|
|
|
1865
1865
|
dialect = "gfm",
|
|
1866
1866
|
linkTarget,
|
|
1867
1867
|
transformLinkUri,
|
|
1868
|
-
transformImageUri
|
|
1868
|
+
transformImageUri,
|
|
1869
|
+
className
|
|
1869
1870
|
} = props;
|
|
1870
1871
|
const classes = useStyles$B();
|
|
1871
1872
|
return /* @__PURE__ */ React.createElement(ReactMarkdown, {
|
|
1872
1873
|
remarkPlugins: dialect === "gfm" ? [gfm] : [],
|
|
1873
|
-
className: classes.markdown
|
|
1874
|
+
className: `${classes.markdown} ${className}`,
|
|
1874
1875
|
children: content,
|
|
1875
1876
|
components,
|
|
1876
1877
|
linkTarget,
|
|
@@ -2525,7 +2526,8 @@ function SelectComponent(props) {
|
|
|
2525
2526
|
onChange,
|
|
2526
2527
|
triggerReset,
|
|
2527
2528
|
native = false,
|
|
2528
|
-
disabled = false
|
|
2529
|
+
disabled = false,
|
|
2530
|
+
margin
|
|
2529
2531
|
} = props;
|
|
2530
2532
|
const classes = useStyles$s();
|
|
2531
2533
|
const [value, setValue] = useState(
|
|
@@ -2580,6 +2582,7 @@ function SelectComponent(props) {
|
|
|
2580
2582
|
"data-testid": "select",
|
|
2581
2583
|
displayEmpty: true,
|
|
2582
2584
|
multiple,
|
|
2585
|
+
margin,
|
|
2583
2586
|
onChange: handleChange,
|
|
2584
2587
|
onClick: handleClick,
|
|
2585
2588
|
open: isOpen,
|