@backstage/plugin-catalog-react 0.0.0-nightly-20221020030155 → 0.0.0-nightly-20221022025638

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,23 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20221020030155
3
+ ## 0.0.0-nightly-20221022025638
4
4
 
5
5
  ### Patch Changes
6
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.
7
8
  - Updated dependencies
8
- - @backstage/core-components@0.0.0-nightly-20221020030155
9
- - @backstage/core-plugin-api@0.0.0-nightly-20221020030155
10
- - @backstage/catalog-client@0.0.0-nightly-20221020030155
11
- - @backstage/catalog-model@0.0.0-nightly-20221020030155
12
- - @backstage/errors@0.0.0-nightly-20221020030155
13
- - @backstage/integration@0.0.0-nightly-20221020030155
9
+ - @backstage/core-components@0.0.0-nightly-20221022025638
10
+ - @backstage/core-plugin-api@0.0.0-nightly-20221022025638
11
+ - @backstage/integration@0.0.0-nightly-20221022025638
12
+ - @backstage/plugin-permission-common@0.0.0-nightly-20221022025638
13
+ - @backstage/plugin-permission-react@0.0.0-nightly-20221022025638
14
+ - @backstage/catalog-client@0.0.0-nightly-20221022025638
15
+ - @backstage/catalog-model@0.0.0-nightly-20221022025638
16
+ - @backstage/errors@0.0.0-nightly-20221022025638
14
17
  - @backstage/theme@0.2.16
15
18
  - @backstage/types@1.0.0
16
19
  - @backstage/version-bridge@1.0.1
17
- - @backstage/plugin-catalog-common@0.0.0-nightly-20221020030155
18
- - @backstage/plugin-permission-common@0.0.0-nightly-20221020030155
19
- - @backstage/plugin-permission-react@0.0.0-nightly-20221020030155
20
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20221022025638
20
21
 
21
22
  ## 1.2.0
22
23
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20221020030155",
3
+ "version": "0.0.0-nightly-20221022025638",
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,