@backstage/plugin-catalog-react 0.0.0-nightly-20221020030155 → 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 +11 -10
- package/alpha/package.json +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20221021024853
|
|
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-
|
|
9
|
-
- @backstage/
|
|
10
|
-
- @backstage/
|
|
11
|
-
- @backstage/catalog-
|
|
12
|
-
- @backstage/
|
|
13
|
-
- @backstage/
|
|
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
|
|
14
15
|
- @backstage/theme@0.2.16
|
|
15
16
|
- @backstage/types@1.0.0
|
|
16
17
|
- @backstage/version-bridge@1.0.1
|
|
17
|
-
- @backstage/plugin-catalog-common@0.0.0-nightly-
|
|
18
|
-
- @backstage/plugin-permission-common@0.0.0-nightly-
|
|
19
|
-
- @backstage/plugin-permission-react@0.0.0-nightly-
|
|
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
|
|
20
21
|
|
|
21
22
|
## 1.2.0
|
|
22
23
|
|
package/alpha/package.json
CHANGED
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
|
-
},
|
|
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,
|