@backstage/plugin-catalog-react 1.8.2 → 1.8.3-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,22 +1,22 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 1.8.2
3
+ ## 1.8.3-next.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/integration@1.6.1
8
+ - @backstage/integration@1.7.0-next.0
9
+ - @backstage/core-plugin-api@1.6.0-next.0
10
+ - @backstage/core-components@0.13.5-next.0
9
11
  - @backstage/catalog-client@1.4.3
10
12
  - @backstage/catalog-model@1.4.1
11
- - @backstage/core-components@0.13.4
12
- - @backstage/core-plugin-api@1.5.3
13
13
  - @backstage/errors@1.2.1
14
14
  - @backstage/theme@0.4.1
15
15
  - @backstage/types@1.1.0
16
16
  - @backstage/version-bridge@1.0.4
17
17
  - @backstage/plugin-catalog-common@1.0.15
18
18
  - @backstage/plugin-permission-common@0.7.7
19
- - @backstage/plugin-permission-react@0.4.14
19
+ - @backstage/plugin-permission-react@0.4.15-next.0
20
20
 
21
21
  ## 1.8.1
22
22
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "1.8.2",
3
+ "version": "1.8.3-next.0",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CatalogApi } from '@backstage/catalog-client';
3
2
  export { CATALOG_FILTER_EXISTS, CatalogApi } from '@backstage/catalog-client';
4
3
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
@@ -60,17 +59,17 @@ declare class MockStarredEntitiesApi implements StarredEntitiesApi {
60
59
  declare const CatalogFilterLayout: {
61
60
  (props: {
62
61
  children: React.ReactNode;
63
- }): JSX.Element;
62
+ }): React.JSX.Element;
64
63
  Filters: (props: {
65
64
  children: React.ReactNode;
66
65
  options?: {
67
66
  drawerBreakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
68
67
  drawerAnchor?: 'left' | 'right' | 'top' | 'bottom';
69
68
  };
70
- }) => JSX.Element;
69
+ }) => React.JSX.Element;
71
70
  Content: (props: {
72
71
  children: React.ReactNode;
73
- }) => JSX.Element;
72
+ }) => React.JSX.Element;
74
73
  };
75
74
 
76
75
  /**
@@ -88,14 +87,14 @@ interface EntityKindPickerProps {
88
87
  hidden?: boolean;
89
88
  }
90
89
  /** @public */
91
- declare const EntityKindPicker: (props: EntityKindPickerProps) => JSX.Element | null;
90
+ declare const EntityKindPicker: (props: EntityKindPickerProps) => React.JSX.Element | null;
92
91
 
93
92
  /** @public */
94
93
  type CatalogReactEntityLifecyclePickerClassKey = 'input';
95
94
  /** @public */
96
95
  declare const EntityLifecyclePicker: (props: {
97
96
  initialFilter?: string[];
98
- }) => JSX.Element;
97
+ }) => React.JSX.Element;
99
98
 
100
99
  /** @public */
101
100
  type CatalogReactEntityOwnerPickerClassKey = 'input';
@@ -106,7 +105,7 @@ type EntityOwnerPickerProps = {
106
105
  mode?: 'owners-only' | 'all';
107
106
  };
108
107
  /** @public */
109
- declare const EntityOwnerPicker: (props?: EntityOwnerPickerProps) => JSX.Element | null;
108
+ declare const EntityOwnerPicker: (props?: EntityOwnerPickerProps) => React.JSX.Element | null;
110
109
 
111
110
  /**
112
111
  * Props for {@link EntityRefLink}.
@@ -147,7 +146,7 @@ type EntityRefLinksProps<TRef extends string | CompoundEntityRef | Entity> = ({
147
146
  *
148
147
  * @public
149
148
  */
150
- declare function EntityRefLinks<TRef extends string | CompoundEntityRef | Entity>(props: EntityRefLinksProps<TRef>): JSX.Element;
149
+ declare function EntityRefLinks<TRef extends string | CompoundEntityRef | Entity>(props: EntityRefLinksProps<TRef>): React.JSX.Element;
151
150
 
152
151
  /**
153
152
  * @param defaultNamespace - if set to false then namespace is never omitted,
@@ -174,7 +173,7 @@ type EntityPeekAheadPopoverProps = PropsWithChildren<{
174
173
  *
175
174
  * @public
176
175
  */
177
- declare const EntityPeekAheadPopover: (props: EntityPeekAheadPopoverProps) => JSX.Element;
176
+ declare const EntityPeekAheadPopover: (props: EntityPeekAheadPopoverProps) => React.JSX.Element;
178
177
 
179
178
  /** @public */
180
179
  type CatalogReactEntitySearchBarClassKey = 'searchToolbar' | 'input';
@@ -182,7 +181,7 @@ type CatalogReactEntitySearchBarClassKey = 'searchToolbar' | 'input';
182
181
  * Renders search bar for filtering the entity list.
183
182
  * @public
184
183
  */
185
- declare const EntitySearchBar: () => JSX.Element;
184
+ declare const EntitySearchBar: () => React.JSX.Element;
186
185
 
187
186
  /**
188
187
  * Props for {@link EntityTable}.
@@ -204,7 +203,7 @@ interface EntityTableProps<T extends Entity> {
204
203
  * @public
205
204
  */
206
205
  declare const EntityTable: {
207
- <T extends Entity>(props: EntityTableProps<T>): JSX.Element;
206
+ <T extends Entity>(props: EntityTableProps<T>): React.JSX.Element;
208
207
  columns: Readonly<{
209
208
  createEntityRefColumn<T_1 extends Entity>(options: {
210
209
  defaultKind?: string | undefined;
@@ -256,7 +255,7 @@ type EntityTagPickerProps = {
256
255
  showCounts?: boolean;
257
256
  };
258
257
  /** @public */
259
- declare const EntityTagPicker: (props: EntityTagPickerProps) => JSX.Element;
258
+ declare const EntityTagPicker: (props: EntityTagPickerProps) => React.JSX.Element;
260
259
 
261
260
  /**
262
261
  * Props for {@link EntityTypePicker}.
@@ -268,7 +267,7 @@ interface EntityTypePickerProps {
268
267
  hidden?: boolean;
269
268
  }
270
269
  /** @public */
271
- declare const EntityTypePicker: (props: EntityTypePickerProps) => JSX.Element | null;
270
+ declare const EntityTypePicker: (props: EntityTypePickerProps) => React.JSX.Element | null;
272
271
 
273
272
  /** @public */
274
273
  type FavoriteEntityProps = ComponentProps<typeof IconButton> & {
@@ -279,7 +278,7 @@ type FavoriteEntityProps = ComponentProps<typeof IconButton> & {
279
278
  * @param props - MaterialUI IconButton props extended by required `entity` prop
280
279
  * @public
281
280
  */
282
- declare const FavoriteEntity: (props: FavoriteEntityProps) => JSX.Element;
281
+ declare const FavoriteEntity: (props: FavoriteEntityProps) => React.JSX.Element;
283
282
 
284
283
  /**
285
284
  * A dialog that lets users inspect the low level details of their entities.
@@ -290,7 +289,7 @@ declare function InspectEntityDialog(props: {
290
289
  open: boolean;
291
290
  entity: Entity;
292
291
  onClose: () => void;
293
- }): JSX.Element | null;
292
+ }): React.JSX.Element | null;
294
293
 
295
294
  /** @public */
296
295
  type UnregisterEntityDialogProps = {
@@ -300,7 +299,7 @@ type UnregisterEntityDialogProps = {
300
299
  entity: Entity;
301
300
  };
302
301
  /** @public */
303
- declare const UnregisterEntityDialog: (props: UnregisterEntityDialogProps) => JSX.Element;
302
+ declare const UnregisterEntityDialog: (props: UnregisterEntityDialogProps) => React.JSX.Element;
304
303
 
305
304
  /** @public */
306
305
  type EntityFilter = {
@@ -335,17 +334,17 @@ type UserListPickerProps = {
335
334
  availableFilters?: UserListFilterKind[];
336
335
  };
337
336
  /** @public */
338
- declare const UserListPicker: (props: UserListPickerProps) => JSX.Element;
337
+ declare const UserListPicker: (props: UserListPickerProps) => React.JSX.Element;
339
338
 
340
339
  /** @public */
341
340
  type CatalogReactEntityProcessingStatusPickerClassKey = 'input';
342
341
  /** @public */
343
- declare const EntityProcessingStatusPicker: () => JSX.Element;
342
+ declare const EntityProcessingStatusPicker: () => React.JSX.Element;
344
343
 
345
344
  /** @public */
346
345
  type CatalogReactEntityNamespacePickerClassKey = 'input';
347
346
  /** @public */
348
- declare const EntityNamespacePicker: () => JSX.Element;
347
+ declare const EntityNamespacePicker: () => React.JSX.Element;
349
348
 
350
349
  /** @public */
351
350
  type EntityLoadingStatus<TEntity extends Entity = Entity> = {
@@ -371,7 +370,7 @@ interface AsyncEntityProviderProps {
371
370
  *
372
371
  * @public
373
372
  */
374
- declare const AsyncEntityProvider: (props: AsyncEntityProviderProps) => JSX.Element;
373
+ declare const AsyncEntityProvider: (props: AsyncEntityProviderProps) => React.JSX.Element;
375
374
  /**
376
375
  * Properties for the EntityProvider component.
377
376
  *
@@ -386,7 +385,7 @@ interface EntityProviderProps {
386
385
  *
387
386
  * @public
388
387
  */
389
- declare const EntityProvider: (props: EntityProviderProps) => JSX.Element;
388
+ declare const EntityProvider: (props: EntityProviderProps) => React.JSX.Element;
390
389
  /**
391
390
  * Grab the current entity from the context, throws if the entity has not yet been loaded
392
391
  * or is not available.
@@ -560,7 +559,7 @@ declare const EntityListContext: React.Context<EntityListContextProps<any> | und
560
559
  * Provides entities and filters for a catalog listing.
561
560
  * @public
562
561
  */
563
- declare const EntityListProvider: <EntityFilters extends DefaultEntityFilters>(props: PropsWithChildren<{}>) => JSX.Element;
562
+ declare const EntityListProvider: <EntityFilters extends DefaultEntityFilters>(props: PropsWithChildren<{}>) => React.JSX.Element;
564
563
  /**
565
564
  * Hook for interacting with the entity list context provided by the {@link EntityListProvider}.
566
565
  * @public
@@ -651,7 +650,7 @@ declare function entityRouteParams(entity: Entity): {
651
650
  /** @public */
652
651
  declare function MockEntityListContextProvider<T extends DefaultEntityFilters = DefaultEntityFilters>(props: PropsWithChildren<{
653
652
  value?: Partial<EntityListContextProps<T>>;
654
- }>): JSX.Element;
653
+ }>): React.JSX.Element;
655
654
 
656
655
  /** @public */
657
656
  type CatalogReactComponentsNameToClassKey = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
3
  "description": "A frontend library that helps other Backstage plugins interact with the catalog",
4
- "version": "1.8.2",
4
+ "version": "1.8.3-next.0",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -45,13 +45,13 @@
45
45
  "dependencies": {
46
46
  "@backstage/catalog-client": "^1.4.3",
47
47
  "@backstage/catalog-model": "^1.4.1",
48
- "@backstage/core-components": "^0.13.4",
49
- "@backstage/core-plugin-api": "^1.5.3",
48
+ "@backstage/core-components": "^0.13.5-next.0",
49
+ "@backstage/core-plugin-api": "^1.6.0-next.0",
50
50
  "@backstage/errors": "^1.2.1",
51
- "@backstage/integration": "^1.6.1",
51
+ "@backstage/integration": "^1.7.0-next.0",
52
52
  "@backstage/plugin-catalog-common": "^1.0.15",
53
53
  "@backstage/plugin-permission-common": "^0.7.7",
54
- "@backstage/plugin-permission-react": "^0.4.14",
54
+ "@backstage/plugin-permission-react": "^0.4.15-next.0",
55
55
  "@backstage/theme": "^0.4.1",
56
56
  "@backstage/types": "^1.1.0",
57
57
  "@backstage/version-bridge": "^1.0.4",
@@ -75,11 +75,11 @@
75
75
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@backstage/cli": "^0.22.11",
79
- "@backstage/core-app-api": "^1.9.1",
78
+ "@backstage/cli": "^0.22.12-next.0",
79
+ "@backstage/core-app-api": "^1.10.0-next.0",
80
80
  "@backstage/plugin-catalog-common": "^1.0.15",
81
81
  "@backstage/plugin-scaffolder-common": "^1.4.0",
82
- "@backstage/test-utils": "^1.4.2",
82
+ "@backstage/test-utils": "^1.4.3-next.0",
83
83
  "@testing-library/dom": "^8.0.0",
84
84
  "@testing-library/jest-dom": "^5.10.1",
85
85
  "@testing-library/react": "^12.1.3",