@backstage/core-components 0.16.0-next.2 → 0.16.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 +34 -0
- package/dist/components/DependencyGraph/Edge.esm.js +1 -1
- package/dist/components/FeatureDiscovery/lib/useShowCallout.esm.js +1 -1
- package/dist/components/Link/Link.esm.js +2 -2
- package/dist/components/StructuredMetadataTable/StructuredMetadataTable.esm.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/layout/Sidebar/Items.esm.js +2 -2
- package/dist/layout/Sidebar/Page.esm.js +1 -1
- package/dist/layout/SignInPage/guestProvider.esm.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- dc409c5: The SupportButton component will now be hidden if no support config is specified in app-config
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 0f18340: Change core component Table tool bar search box to the a appropriate Search icon and text
|
|
12
|
+
- af9097e: Adds the ability to mock a media query per break point and to change the active break point during a test. Usage example:
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
const { set } = mockBreakpoint({
|
|
16
|
+
initialBreakpoint: 'md',
|
|
17
|
+
queryBreakpointMap: {
|
|
18
|
+
'(min-width:1500px)': 'xl',
|
|
19
|
+
'(min-width:1000px)': 'lg',
|
|
20
|
+
'(min-width:700px)': 'md',
|
|
21
|
+
'(min-width:400px)': 'sm',
|
|
22
|
+
'(min-width:0px)': 'xs',
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
// assertions for when the active break point is "md"
|
|
26
|
+
set('lg');
|
|
27
|
+
// assertions for when the active break point is "lg"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/config@1.3.0
|
|
32
|
+
- @backstage/theme@0.6.1
|
|
33
|
+
- @backstage/core-plugin-api@1.10.1
|
|
34
|
+
- @backstage/errors@1.2.5
|
|
35
|
+
- @backstage/version-bridge@1.0.10
|
|
36
|
+
|
|
3
37
|
## 0.16.0-next.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import * as d3Shape from 'd3-shape';
|
|
3
3
|
import isFinite from 'lodash/isFinite';
|
|
4
4
|
import makeStyles from '@material-ui/core/styles/makeStyles';
|
|
5
|
-
import {
|
|
5
|
+
import { ARROW_MARKER_ID, EDGE_TEST_ID, LABEL_TEST_ID } from './constants.esm.js';
|
|
6
6
|
import { DefaultLabel } from './DefaultLabel.esm.js';
|
|
7
7
|
|
|
8
8
|
const useStyles = makeStyles(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useAnalytics,
|
|
1
|
+
import { useAnalytics, useApi, configApiRef, useApp } from '@backstage/core-plugin-api';
|
|
2
2
|
import MaterialLink from '@material-ui/core/Link';
|
|
3
3
|
import { makeStyles } from '@material-ui/core/styles';
|
|
4
4
|
import Typography from '@material-ui/core/Typography';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { trimEnd } from 'lodash';
|
|
7
7
|
import React__default from 'react';
|
|
8
|
-
import { Link as Link$1
|
|
8
|
+
import { createRoutesFromChildren, Route, Link as Link$1 } from 'react-router-dom';
|
|
9
9
|
import OpenInNew from '@material-ui/icons/OpenInNew';
|
|
10
10
|
|
|
11
11
|
function isReactRouterBeta() {
|
|
@@ -2,7 +2,7 @@ import React__default, { Fragment } from 'react';
|
|
|
2
2
|
import { createStyles, withStyles } from '@material-ui/core/styles';
|
|
3
3
|
import startCase from 'lodash/startCase';
|
|
4
4
|
import Typography from '@material-ui/core/Typography';
|
|
5
|
-
import { MetadataList,
|
|
5
|
+
import { MetadataList, MetadataTableItem, MetadataListItem, MetadataTable } from './MetadataTable.esm.js';
|
|
6
6
|
|
|
7
7
|
const listStyle = createStyles({
|
|
8
8
|
root: {
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { LinearProgressProps } from '@material-ui/core/LinearProgress';
|
|
|
12
12
|
import { CardHeaderProps } from '@material-ui/core/CardHeader';
|
|
13
13
|
import { BackstagePalette } from '@backstage/theme';
|
|
14
14
|
import { TabProps } from '@material-ui/core/Tab';
|
|
15
|
-
import { Column,
|
|
15
|
+
import { MaterialTableProps, Column, Icons, Options as Options$1 } from '@material-table/core';
|
|
16
16
|
import { SparklinesProps, SparklinesLineProps } from 'react-sparklines';
|
|
17
17
|
import { IconComponent, SignInPageProps, ApiRef, ProfileInfoApi, BackstageIdentityApi, SessionApi, IdentityApi, ProfileInfo, BackstageUserIdentity } from '@backstage/core-plugin-api';
|
|
18
18
|
import { ListItemTextProps } from '@material-ui/core/ListItemText';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAnalytics, useElementFilter } from '@backstage/core-plugin-api';
|
|
2
2
|
import Badge from '@material-ui/core/Badge';
|
|
3
3
|
import Box from '@material-ui/core/Box';
|
|
4
|
-
import {
|
|
4
|
+
import { makeStyles, styled } from '@material-ui/core/styles';
|
|
5
5
|
import TextField from '@material-ui/core/TextField';
|
|
6
6
|
import Typography from '@material-ui/core/Typography';
|
|
7
7
|
import useMediaQuery from '@material-ui/core/useMediaQuery';
|
|
@@ -10,7 +10,7 @@ import ArrowDropUpIcon from '@material-ui/icons/ArrowDropUp';
|
|
|
10
10
|
import ArrowRightIcon from '@material-ui/icons/ArrowRight';
|
|
11
11
|
import Search from '@material-ui/icons/Search';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
|
-
import React__default, { forwardRef, useContext,
|
|
13
|
+
import React__default, { forwardRef, useContext, useMemo, useCallback, useState } from 'react';
|
|
14
14
|
import { useLocation, useResolvedPath, Link, resolvePath } from 'react-router-dom';
|
|
15
15
|
import { SidebarConfigContext, SidebarItemWithSubmenuContext } from './config.esm.js';
|
|
16
16
|
import DoubleArrowLeft from './icons/DoubleArrowLeft.esm.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Box from '@material-ui/core/Box';
|
|
2
2
|
import { makeStyles } from '@material-ui/core/styles';
|
|
3
3
|
import useMediaQuery from '@material-ui/core/useMediaQuery';
|
|
4
|
-
import React__default, { createContext,
|
|
4
|
+
import React__default, { createContext, useContext, useCallback, useState, useRef, useMemo, useEffect } from 'react';
|
|
5
5
|
import { SidebarConfigContext } from './config.esm.js';
|
|
6
6
|
import { LocalStorage } from './localStorage.esm.js';
|
|
7
7
|
import { SidebarPinStateProvider } from './SidebarPinStateContext.esm.js';
|
|
@@ -4,7 +4,7 @@ import Button from '@material-ui/core/Button';
|
|
|
4
4
|
import { InfoCard } from '../InfoCard/InfoCard.esm.js';
|
|
5
5
|
import { GridItem } from './styles.esm.js';
|
|
6
6
|
import { ProxiedSignInIdentity } from '../ProxiedSignInPage/ProxiedSignInIdentity.esm.js';
|
|
7
|
-
import {
|
|
7
|
+
import { discoveryApiRef, useApi } from '@backstage/core-plugin-api';
|
|
8
8
|
import { GuestUserIdentity } from './GuestUserIdentity.esm.js';
|
|
9
9
|
import useLocalStorage from 'react-use/esm/useLocalStorage';
|
|
10
10
|
import { coreComponentsTranslationRef } from '../../translation.esm.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/core-components",
|
|
3
|
-
"version": "0.16.0
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Core components used by Backstage plugins and apps",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library"
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"test": "backstage-cli package test"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@backstage/config": "1.
|
|
70
|
-
"@backstage/core-plugin-api": "1.10.
|
|
71
|
-
"@backstage/errors": "1.2.
|
|
72
|
-
"@backstage/theme": "0.6.1
|
|
73
|
-
"@backstage/version-bridge": "1.0.10",
|
|
69
|
+
"@backstage/config": "^1.3.0",
|
|
70
|
+
"@backstage/core-plugin-api": "^1.10.1",
|
|
71
|
+
"@backstage/errors": "^1.2.5",
|
|
72
|
+
"@backstage/theme": "^0.6.1",
|
|
73
|
+
"@backstage/version-bridge": "^1.0.10",
|
|
74
74
|
"@date-io/core": "^1.3.13",
|
|
75
75
|
"@material-table/core": "^3.1.0",
|
|
76
76
|
"@material-ui/core": "^4.12.2",
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"zod": "^3.22.4"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@backstage/app-defaults": "1.5.13
|
|
109
|
-
"@backstage/cli": "0.29.0
|
|
110
|
-
"@backstage/core-app-api": "1.15.
|
|
111
|
-
"@backstage/test-utils": "1.7.1
|
|
108
|
+
"@backstage/app-defaults": "^1.5.13",
|
|
109
|
+
"@backstage/cli": "^0.29.0",
|
|
110
|
+
"@backstage/core-app-api": "^1.15.2",
|
|
111
|
+
"@backstage/test-utils": "^1.7.1",
|
|
112
112
|
"@testing-library/dom": "^10.0.0",
|
|
113
113
|
"@testing-library/jest-dom": "^6.0.0",
|
|
114
114
|
"@testing-library/user-event": "^14.0.0",
|