@backstage/plugin-catalog-react 0.0.0-nightly-20220401024216 → 0.0.0-nightly-20220404023441

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,6 +1,6 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20220401024216
3
+ ## 0.0.0-nightly-20220404023441
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -13,15 +13,16 @@
13
13
  - 37b04b5a5e: Removed broken link from Labels section of entity inspector.
14
14
  - a496cee4d1: Add support for string refs to the `EntityRefLinks` component
15
15
  - d34900af81: Added a new `NextScaffolderRouter` which will eventually replace the exiting router
16
+ - 99063c39ae: Minor API report cleanup
16
17
  - 4431873583: Update `usePermission` usage.
17
18
  - Updated dependencies
18
- - @backstage/integration@0.0.0-nightly-20220401024216
19
- - @backstage/plugin-permission-react@0.0.0-nightly-20220401024216
20
- - @backstage/plugin-permission-common@0.0.0-nightly-20220401024216
21
- - @backstage/catalog-model@0.0.0-nightly-20220401024216
22
- - @backstage/plugin-catalog-common@0.0.0-nightly-20220401024216
23
- - @backstage/core-components@0.0.0-nightly-20220401024216
24
- - @backstage/catalog-client@0.0.0-nightly-20220401024216
19
+ - @backstage/integration@0.0.0-nightly-20220404023441
20
+ - @backstage/plugin-permission-react@0.0.0-nightly-20220404023441
21
+ - @backstage/plugin-permission-common@0.0.0-nightly-20220404023441
22
+ - @backstage/catalog-model@0.0.0-nightly-20220404023441
23
+ - @backstage/core-components@0.0.0-nightly-20220404023441
24
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20220404023441
25
+ - @backstage/catalog-client@0.0.0-nightly-20220404023441
25
26
 
26
27
  ## 1.0.1-next.1
27
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20220401024216",
3
+ "version": "0.0.0-nightly-20220404023441",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -259,7 +259,7 @@ export declare const EntityOwnerPicker: () => JSX.Element | null;
259
259
  *
260
260
  * @public
261
261
  */
262
- export declare const EntityProvider: ({ entity, children }: EntityProviderProps) => JSX.Element;
262
+ export declare const EntityProvider: (props: EntityProviderProps) => JSX.Element;
263
263
 
264
264
  /**
265
265
  * Properties for the EntityProvider component.
@@ -259,7 +259,7 @@ export declare const EntityOwnerPicker: () => JSX.Element | null;
259
259
  *
260
260
  * @public
261
261
  */
262
- export declare const EntityProvider: ({ entity, children }: EntityProviderProps) => JSX.Element;
262
+ export declare const EntityProvider: (props: EntityProviderProps) => JSX.Element;
263
263
 
264
264
  /**
265
265
  * Properties for the EntityProvider component.
package/dist/index.d.ts CHANGED
@@ -259,7 +259,7 @@ export declare const EntityOwnerPicker: () => JSX.Element | null;
259
259
  *
260
260
  * @public
261
261
  */
262
- export declare const EntityProvider: ({ entity, children }: EntityProviderProps) => JSX.Element;
262
+ export declare const EntityProvider: (props: EntityProviderProps) => JSX.Element;
263
263
 
264
264
  /**
265
265
  * Properties for the EntityProvider component.
package/dist/index.esm.js CHANGED
@@ -125,12 +125,12 @@ const AsyncEntityProvider = ({
125
125
  value: createVersionedValueMap({ 1: value })
126
126
  }, children);
127
127
  };
128
- const EntityProvider = ({ entity, children }) => /* @__PURE__ */ React.createElement(AsyncEntityProvider, {
129
- entity,
130
- loading: !Boolean(entity),
128
+ const EntityProvider = (props) => /* @__PURE__ */ React.createElement(AsyncEntityProvider, {
129
+ entity: props.entity,
130
+ loading: !Boolean(props.entity),
131
131
  error: void 0,
132
132
  refresh: void 0,
133
- children
133
+ children: props.children
134
134
  });
135
135
  function useEntity() {
136
136
  const versionedHolder = useVersionedContext("entity-context");