@backstage/plugin-catalog-react 1.0.0 → 1.0.1-next.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
+ ## 1.0.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - a496cee4d1: Add support for string refs to the `EntityRefLinks` component
8
+ - d34900af81: Added a new `NextScaffolderRouter` which will eventually replace the exiting router
9
+ - Updated dependencies
10
+ - @backstage/catalog-model@1.0.1-next.0
11
+ - @backstage/integration@1.0.1-next.0
12
+ - @backstage/core-components@0.9.3-next.0
13
+ - @backstage/catalog-client@1.0.1-next.0
14
+
3
15
  ## 1.0.0
4
16
 
5
17
  ### Major Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-next.0",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -295,7 +295,7 @@ export declare type EntityRefLinkProps = {
295
295
  *
296
296
  * @public
297
297
  */
298
- export declare const EntityRefLinks: ({ entityRefs, defaultKind, ...linkProps }: EntityRefLinksProps) => JSX.Element;
298
+ export declare function EntityRefLinks(props: EntityRefLinksProps): JSX.Element;
299
299
 
300
300
  /**
301
301
  * Props for {@link EntityRefLink}.
@@ -303,7 +303,7 @@ export declare const EntityRefLinks: ({ entityRefs, defaultKind, ...linkProps }:
303
303
  * @public
304
304
  */
305
305
  export declare type EntityRefLinksProps = {
306
- entityRefs: (Entity | CompoundEntityRef)[];
306
+ entityRefs: (string | Entity | CompoundEntityRef)[];
307
307
  defaultKind?: string;
308
308
  } & Omit<LinkProps, 'to'>;
309
309
 
@@ -295,7 +295,7 @@ export declare type EntityRefLinkProps = {
295
295
  *
296
296
  * @public
297
297
  */
298
- export declare const EntityRefLinks: ({ entityRefs, defaultKind, ...linkProps }: EntityRefLinksProps) => JSX.Element;
298
+ export declare function EntityRefLinks(props: EntityRefLinksProps): JSX.Element;
299
299
 
300
300
  /**
301
301
  * Props for {@link EntityRefLink}.
@@ -303,7 +303,7 @@ export declare const EntityRefLinks: ({ entityRefs, defaultKind, ...linkProps }:
303
303
  * @public
304
304
  */
305
305
  export declare type EntityRefLinksProps = {
306
- entityRefs: (Entity | CompoundEntityRef)[];
306
+ entityRefs: (string | Entity | CompoundEntityRef)[];
307
307
  defaultKind?: string;
308
308
  } & Omit<LinkProps, 'to'>;
309
309
 
package/dist/index.d.ts CHANGED
@@ -295,7 +295,7 @@ export declare type EntityRefLinkProps = {
295
295
  *
296
296
  * @public
297
297
  */
298
- export declare const EntityRefLinks: ({ entityRefs, defaultKind, ...linkProps }: EntityRefLinksProps) => JSX.Element;
298
+ export declare function EntityRefLinks(props: EntityRefLinksProps): JSX.Element;
299
299
 
300
300
  /**
301
301
  * Props for {@link EntityRefLink}.
@@ -303,7 +303,7 @@ export declare const EntityRefLinks: ({ entityRefs, defaultKind, ...linkProps }:
303
303
  * @public
304
304
  */
305
305
  export declare type EntityRefLinksProps = {
306
- entityRefs: (Entity | CompoundEntityRef)[];
306
+ entityRefs: (string | Entity | CompoundEntityRef)[];
307
307
  defaultKind?: string;
308
308
  } & Omit<LinkProps, 'to'>;
309
309
 
package/dist/index.esm.js CHANGED
@@ -368,17 +368,16 @@ const EntityRefLink = forwardRef((props, ref) => {
368
368
  }, link) : link;
369
369
  });
370
370
 
371
- const EntityRefLinks = ({
372
- entityRefs,
373
- defaultKind,
374
- ...linkProps
375
- }) => /* @__PURE__ */ React.createElement(React.Fragment, null, entityRefs.map((r, i) => /* @__PURE__ */ React.createElement(React.Fragment, {
376
- key: i
377
- }, i > 0 && ", ", /* @__PURE__ */ React.createElement(EntityRefLink, {
378
- ...linkProps,
379
- entityRef: r,
380
- defaultKind
381
- }))));
371
+ function EntityRefLinks(props) {
372
+ const { entityRefs, defaultKind, ...linkProps } = props;
373
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, entityRefs.map((r, i) => /* @__PURE__ */ React.createElement(React.Fragment, {
374
+ key: i
375
+ }, i > 0 && ", ", /* @__PURE__ */ React.createElement(EntityRefLink, {
376
+ ...linkProps,
377
+ entityRef: r,
378
+ defaultKind
379
+ }))));
380
+ }
382
381
 
383
382
  class EntityKindFilter {
384
383
  constructor(value) {
@@ -828,6 +827,7 @@ const EntitySearchBar = () => {
828
827
  return /* @__PURE__ */ React.createElement(Toolbar, {
829
828
  className: classes.searchToolbar
830
829
  }, /* @__PURE__ */ React.createElement(FormControl, null, /* @__PURE__ */ React.createElement(Input, {
830
+ "aria-label": "search",
831
831
  id: "input-with-icon-adornment",
832
832
  className: classes.input,
833
833
  placeholder: "Search",
@@ -1122,6 +1122,7 @@ const YellowStar = withStyles({
1122
1122
  const FavoriteEntity = (props) => {
1123
1123
  const { toggleStarredEntity, isStarredEntity } = useStarredEntity(props.entity);
1124
1124
  return /* @__PURE__ */ React.createElement(IconButton, {
1125
+ "aria-label": "favorite",
1125
1126
  color: "inherit",
1126
1127
  ...props,
1127
1128
  onClick: () => toggleStarredEntity()