@backstage/plugin-catalog-react 0.0.0-nightly-20221018030035 → 0.0.0-nightly-20221021024853

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,25 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20221018030035
3
+ ## 0.0.0-nightly-20221021024853
4
+
5
+ ### Patch Changes
6
+
7
+ - a889314692: Both `EntityProvider` and `AsyncEntityProvider` contexts now wrap all children with an `AnalyticsContext` containing the corresponding `entityRef`; this opens up the possibility for all events underneath these contexts to be associated with and aggregated by the corresponding entity.
8
+ - Updated dependencies
9
+ - @backstage/core-components@0.0.0-nightly-20221021024853
10
+ - @backstage/integration@0.0.0-nightly-20221021024853
11
+ - @backstage/core-plugin-api@0.0.0-nightly-20221021024853
12
+ - @backstage/catalog-client@0.0.0-nightly-20221021024853
13
+ - @backstage/catalog-model@0.0.0-nightly-20221021024853
14
+ - @backstage/errors@0.0.0-nightly-20221021024853
15
+ - @backstage/theme@0.2.16
16
+ - @backstage/types@1.0.0
17
+ - @backstage/version-bridge@1.0.1
18
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20221021024853
19
+ - @backstage/plugin-permission-common@0.0.0-nightly-20221021024853
20
+ - @backstage/plugin-permission-react@0.0.0-nightly-20221021024853
21
+
22
+ ## 1.2.0
4
23
 
5
24
  ### Minor Changes
6
25
 
@@ -9,19 +28,20 @@
9
28
  ### Patch Changes
10
29
 
11
30
  - 7939e743f5: Added two new `EntityRefLinks` props, the first being `getTitle` that allows for customization of the title used for each link. The second one is `fetchEntities`, which triggers a fetching of all entities so that the full entity definition is available in the `getTitle` callback.
12
- - Updated dependencies
13
- - @backstage/catalog-model@0.0.0-nightly-20221018030035
14
- - @backstage/core-components@0.0.0-nightly-20221018030035
15
- - @backstage/plugin-catalog-common@0.0.0-nightly-20221018030035
16
- - @backstage/plugin-permission-common@0.0.0-nightly-20221018030035
17
- - @backstage/catalog-client@0.0.0-nightly-20221018030035
18
- - @backstage/core-plugin-api@0.0.0-nightly-20221018030035
19
- - @backstage/errors@0.0.0-nightly-20221018030035
20
- - @backstage/integration@0.0.0-nightly-20221018030035
31
+ - e9e532ebd8: Fixed issue where the query kind parameter is not honored
32
+ - Updated dependencies
33
+ - @backstage/catalog-model@1.1.2
34
+ - @backstage/core-components@0.11.2
35
+ - @backstage/plugin-catalog-common@1.0.7
36
+ - @backstage/plugin-permission-common@0.7.0
37
+ - @backstage/catalog-client@1.1.1
38
+ - @backstage/core-plugin-api@1.0.7
39
+ - @backstage/errors@1.1.2
40
+ - @backstage/integration@1.3.2
21
41
  - @backstage/theme@0.2.16
22
42
  - @backstage/types@1.0.0
23
43
  - @backstage/version-bridge@1.0.1
24
- - @backstage/plugin-permission-react@0.0.0-nightly-20221018030035
44
+ - @backstage/plugin-permission-react@0.4.6
25
45
 
26
46
  ## 1.2.0-next.2
27
47
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20221018030035",
3
+ "version": "0.0.0-nightly-20221021024853",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CATALOG_FILTER_EXISTS } from '@backstage/catalog-client';
2
- import { createApiRef, createRouteRef, useRouteRef, useApi, identityApiRef, alertApiRef, useApp, configApiRef } from '@backstage/core-plugin-api';
2
+ import { createApiRef, createRouteRef, useRouteRef, useApi, AnalyticsContext, identityApiRef, alertApiRef, useApp, configApiRef } from '@backstage/core-plugin-api';
3
3
  import ObservableImpl from 'zen-observable';
4
4
  import React, { useState, forwardRef, createContext, useMemo, useCallback, useContext, useEffect, useRef, useLayoutEffect, Fragment } from 'react';
5
5
  import { Grid, useMediaQuery, useTheme, Button, Drawer, Box, Typography, Tooltip, makeStyles, FormControlLabel, Checkbox, TextField, Toolbar, FormControl, Input, InputAdornment, IconButton, withStyles, DialogContentText, ListItemText as ListItemText$1, ListSubheader as ListSubheader$1, Card, CardContent, ListItem, ListItemIcon, List, Dialog, DialogTitle, DialogContent, Tabs, Tab, DialogActions, Divider, MenuItem, ListItemSecondaryAction } from '@material-ui/core';
@@ -471,7 +471,11 @@ const AsyncEntityProvider = ({
471
471
  const value = { entity, loading, error, refresh };
472
472
  return /* @__PURE__ */ React.createElement(NewEntityContext.Provider, {
473
473
  value: createVersionedValueMap({ 1: value })
474
- }, children);
474
+ }, /* @__PURE__ */ React.createElement(AnalyticsContext, {
475
+ attributes: {
476
+ ...entity ? { entityRef: stringifyEntityRef(entity) } : void 0
477
+ }
478
+ }, children));
475
479
  };
476
480
  const EntityProvider = (props) => /* @__PURE__ */ React.createElement(AsyncEntityProvider, {
477
481
  entity: props.entity,
@@ -932,10 +936,7 @@ const EntityKindPicker = (props) => {
932
936
  severity: "error"
933
937
  });
934
938
  }
935
- if (initialFilter) {
936
- setSelectedKind(initialFilter);
937
- }
938
- }, [error, alertApi, initialFilter, setSelectedKind]);
939
+ }, [error, alertApi]);
939
940
  if ((availableKinds == null ? void 0 : availableKinds.length) === 0 || error)
940
941
  return null;
941
942
  const items = [