@backstage/core-components 0.12.6-next.2 → 0.13.0-next.3

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,5 +1,36 @@
1
1
  # @backstage/core-components
2
2
 
3
+ ## 0.13.0-next.3
4
+
5
+ ### Minor Changes
6
+
7
+ - 01cd4e25754: **BREAKING:** Removing `Tabs` component from `core-components` as it is neither used in the core Backstage app nor in the monorepo plugins. If you are using this component in your instance please consider replacing it with the [Material UI `Tabs`](https://v4.mui.com/components/tabs/#tabs) component like the following:
8
+
9
+ ```diff
10
+ - <Tabs
11
+ - tabs={[{
12
+ - icon: <AccessAlarmIcon />,
13
+ - content: <div>Label</div>,
14
+ - }]}
15
+ - />
16
+
17
+ + <Tabs>
18
+ + <Tab
19
+ + label = "Label"
20
+ + icon = { <AccessAlarmIcon /> }
21
+ + />
22
+ + </Tabs>
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+ - @backstage/config@1.0.7
29
+ - @backstage/core-plugin-api@1.5.1-next.1
30
+ - @backstage/errors@1.1.5
31
+ - @backstage/theme@0.2.19-next.0
32
+ - @backstage/version-bridge@1.0.4-next.0
33
+
3
34
  ## 0.12.6-next.2
4
35
 
5
36
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { TextTruncateProps } from 'react-text-truncate';
11
11
  import { LinearProgressProps } from '@material-ui/core/LinearProgress';
12
12
  import { CardHeaderProps } from '@material-ui/core/CardHeader';
13
13
  import { BackstagePalette, BackstageTheme } from '@backstage/theme';
14
- import { TabProps as TabProps$1 } from '@material-ui/core/Tab';
14
+ import { TabProps } from '@material-ui/core/Tab';
15
15
  import { Column, MaterialTableProps, Options as Options$1, Icons } 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';
@@ -1049,7 +1049,7 @@ type SubRoute$1 = {
1049
1049
  path: string;
1050
1050
  title: string;
1051
1051
  children: JSX.Element;
1052
- tabProps?: TabProps$1<React__default.ElementType, {
1052
+ tabProps?: TabProps<React__default.ElementType, {
1053
1053
  component?: React__default.ElementType;
1054
1054
  }>;
1055
1055
  };
@@ -1078,7 +1078,7 @@ type SubRoute = {
1078
1078
  path: string;
1079
1079
  title: string;
1080
1080
  children: JSX.Element;
1081
- tabProps?: TabProps$1<React.ElementType, {
1081
+ tabProps?: TabProps<React.ElementType, {
1082
1082
  component?: React.ElementType;
1083
1083
  }>;
1084
1084
  };
@@ -1135,24 +1135,6 @@ declare namespace Table {
1135
1135
  var icons: Readonly<Icons>;
1136
1136
  }
1137
1137
 
1138
- interface TabProps {
1139
- content: any;
1140
- label?: string;
1141
- icon?: any;
1142
- }
1143
- interface TabsProps {
1144
- tabs: TabProps[];
1145
- }
1146
- type TabsClassKey = 'root' | 'styledTabs' | 'appbar';
1147
- declare function Tabs(props: TabsProps): JSX.Element;
1148
-
1149
- /** @public */
1150
- type TabClassKey = 'root' | 'selected';
1151
-
1152
- type TabBarClassKey = 'indicator' | 'flexContainer' | 'root';
1153
-
1154
- type TabIconClassKey = 'root';
1155
-
1156
1138
  declare function TrendLine(props: SparklinesProps & Pick<SparklinesLineProps, 'color'> & {
1157
1139
  title?: string;
1158
1140
  }): JSX.Element | null;
@@ -1331,7 +1313,7 @@ type HeaderTabsClassKey = 'tabsWrapper' | 'defaultTab' | 'selected' | 'tabRoot';
1331
1313
  type Tab = {
1332
1314
  id: string;
1333
1315
  label: string;
1334
- tabProps?: TabProps$1<React__default.ElementType, {
1316
+ tabProps?: TabProps<React__default.ElementType, {
1335
1317
  component?: React__default.ElementType;
1336
1318
  }>;
1337
1319
  };
@@ -1981,7 +1963,7 @@ type Props$1 = {
1981
1963
  /** @deprecated Use errorBoundaryProps instead */
1982
1964
  slackChannel?: string;
1983
1965
  errorBoundaryProps?: ErrorBoundaryProps;
1984
- children?: ReactElement<TabProps$1>[];
1966
+ children?: ReactElement<TabProps>[];
1985
1967
  onChange?: (event: React__default.ChangeEvent<{}>, value: number | string) => void;
1986
1968
  title?: string;
1987
1969
  value?: number | string;
@@ -1990,7 +1972,7 @@ type Props$1 = {
1990
1972
  declare function TabbedCard(props: PropsWithChildren<Props$1>): JSX.Element;
1991
1973
  /** @public */
1992
1974
  type CardTabClassKey = 'root' | 'selected';
1993
- type CardTabProps = TabProps$1 & {
1975
+ type CardTabProps = TabProps & {
1994
1976
  children: ReactNode;
1995
1977
  };
1996
1978
  /**
@@ -2058,10 +2040,6 @@ type BackstageComponentsNameToClassKey = {
2058
2040
  BackstageTableToolbar: TableToolbarClassKey;
2059
2041
  BackstageTableFiltersContainer: FiltersContainerClassKey;
2060
2042
  BackstageTable: TableClassKey;
2061
- BackstageTabBar: TabBarClassKey;
2062
- BackstageTabIcon: TabIconClassKey;
2063
- BackstageTabs: TabsClassKey;
2064
- BackstageTab: TabClassKey;
2065
2043
  BackstageWarningPanel: WarningPanelClassKey;
2066
2044
  BackstageBottomLink: BottomLinkClassKey;
2067
2045
  BackstageBreadcrumbsClickableText: BreadcrumbsClickableTextClassKey;
@@ -2096,4 +2074,4 @@ type BackstageOverrides = Overrides & {
2096
2074
  [Name in keyof BackstageComponentsNameToClassKey]?: Partial<StyleRules<BackstageComponentsNameToClassKey[Name]>>;
2097
2075
  };
2098
2076
 
2099
- export { AlertDisplay, AlertDisplayProps, Avatar, AvatarClassKey, AvatarProps, BackstageContentClassKey, BackstageOverrides, BoldHeaderClassKey, BottomLink, BottomLinkClassKey, BottomLinkProps, Breadcrumbs, BreadcrumbsClickableTextClassKey, BreadcrumbsStyledBoxClassKey, BrokenImageIcon, Button, ButtonProps, CardActionsTopRightClassKey, CardTab, CardTabClassKey, CatalogIcon, ChatIcon, ClosedDropdownClassKey, CodeSnippet, CodeSnippetProps, Content, ContentHeader, ContentHeaderClassKey, CopyTextButton, CopyTextButtonProps, CreateButton, CreateButtonProps, CustomProviderClassKey, DashboardIcon, DependencyGraph, DependencyGraphDefaultLabelClassKey, DependencyGraphDefaultNodeClassKey, DependencyGraphEdgeClassKey, DependencyGraphNodeClassKey, DependencyGraphProps, types_d as DependencyGraphTypes, DismissableBanner, DismissableBannerClassKey, DismissbleBannerClassKey, DocsIcon, EmailIcon, EmptyState, EmptyStateClassKey, EmptyStateImageClassKey, ErrorBoundary, ErrorBoundaryProps, ErrorPage, ErrorPageClassKey, ErrorPanel, ErrorPanelClassKey, ErrorPanelProps, FeatureCalloutCircleClassKey, FeatureCalloutCircular, FiltersContainerClassKey, Gauge, GaugeCard, GaugeCardClassKey, GaugeClassKey, GaugeProps, GaugePropsGetColor, GaugePropsGetColorOptions, GitHubIcon, GroupIcon, Header, HeaderActionMenu, HeaderActionMenuItem, HeaderActionMenuProps, HeaderClassKey, HeaderIconLinkRow, HeaderIconLinkRowClassKey, HeaderLabel, HeaderLabelClassKey, HeaderTabs, HeaderTabsClassKey, HelpIcon, HorizontalScrollGrid, HorizontalScrollGridClassKey, IconLinkVerticalClassKey, IconLinkVerticalProps, IdentityProviders, InfoCard, InfoCardClassKey, InfoCardVariants, IntroCard, ItemCard, ItemCardGrid, ItemCardGridClassKey, ItemCardGridProps, ItemCardHeader, ItemCardHeaderClassKey, ItemCardHeaderProps, Lifecycle, LifecycleClassKey, LinearGauge, Link, LinkButton, LinkButtonProps, LinkProps, LogViewer, LogViewerClassKey, LogViewerProps, LoginRequestListItemClassKey, MarkdownContent, MarkdownContentClassKey, MetadataTableCellClassKey, MetadataTableListClassKey, MetadataTableListItemClassKey, MetadataTableTitleCellClassKey, MicDropClassKey, MissingAnnotationEmptyState, MissingAnnotationEmptyStateClassKey, MobileSidebar, MobileSidebarProps, OAuthRequestDialog, OAuthRequestDialogClassKey, OpenedDropdownClassKey, OverflowTooltip, OverflowTooltipClassKey, Page, PageClassKey, PageWithHeader, Progress, ProxiedSignInPage, ProxiedSignInPageProps, ResponseErrorPanel, ResponseErrorPanelClassKey, RoutedTabs, SIDEBAR_INTRO_LOCAL_STORAGE, SelectComponent as Select, SelectClassKey, SelectInputBaseClassKey, SelectItem, SelectedItems, Sidebar, SidebarClassKey, LegacySidebarContext as SidebarContext, SidebarContextType, SidebarDivider, SidebarDividerClassKey, SidebarExpandButton, SidebarGroup, SidebarGroupProps, SidebarIntro, SidebarIntroClassKey, SidebarItem, SidebarItemClassKey, SidebarOpenState, SidebarOpenStateProvider, SidebarOptions, SidebarPage, SidebarPageClassKey, SidebarPageProps, SidebarPinState, LegacySidebarPinStateContext as SidebarPinStateContext, SidebarPinStateContextType, SidebarPinStateProvider, SidebarProps, SidebarScrollWrapper, SidebarSearchField, SidebarSpace, SidebarSpaceClassKey, SidebarSpacer, SidebarSpacerClassKey, SidebarSubmenu, SidebarSubmenuItem, SidebarSubmenuItemDropdownItem, SidebarSubmenuItemProps, SidebarSubmenuProps, SignInPage, SignInPageClassKey, SignInProviderConfig, SimpleStepper, SimpleStepperFooterClassKey, SimpleStepperStep, SimpleStepperStepClassKey, StatusAborted, StatusClassKey, StatusError, StatusOK, StatusPending, StatusRunning, StatusWarning, StructuredMetadataTable, StructuredMetadataTableListClassKey, StructuredMetadataTableNestedListClassKey, SubmenuOptions, SubvalueCell, SubvalueCellClassKey, SupportButton, SupportButtonClassKey, SupportConfig, SupportItem, SupportItemLink, Tab, TabBarClassKey, TabClassKey, TabIconClassKey, TabbedCard, TabbedCardClassKey, TabbedLayout, Table, TableClassKey, TableColumn, TableFilter, TableFiltersClassKey, TableHeaderClassKey, TableOptions, TableProps, TableState, TableToolbarClassKey, Tabs, TabsClassKey, TrendLine, UserIcon, UserIdentity, WarningIcon, WarningPanel, WarningPanelClassKey, sidebarConfig, useContent, useQueryParamState, useSidebarOpenState, useSidebarPinState, useSupportConfig };
2077
+ export { AlertDisplay, AlertDisplayProps, Avatar, AvatarClassKey, AvatarProps, BackstageContentClassKey, BackstageOverrides, BoldHeaderClassKey, BottomLink, BottomLinkClassKey, BottomLinkProps, Breadcrumbs, BreadcrumbsClickableTextClassKey, BreadcrumbsStyledBoxClassKey, BrokenImageIcon, Button, ButtonProps, CardActionsTopRightClassKey, CardTab, CardTabClassKey, CatalogIcon, ChatIcon, ClosedDropdownClassKey, CodeSnippet, CodeSnippetProps, Content, ContentHeader, ContentHeaderClassKey, CopyTextButton, CopyTextButtonProps, CreateButton, CreateButtonProps, CustomProviderClassKey, DashboardIcon, DependencyGraph, DependencyGraphDefaultLabelClassKey, DependencyGraphDefaultNodeClassKey, DependencyGraphEdgeClassKey, DependencyGraphNodeClassKey, DependencyGraphProps, types_d as DependencyGraphTypes, DismissableBanner, DismissableBannerClassKey, DismissbleBannerClassKey, DocsIcon, EmailIcon, EmptyState, EmptyStateClassKey, EmptyStateImageClassKey, ErrorBoundary, ErrorBoundaryProps, ErrorPage, ErrorPageClassKey, ErrorPanel, ErrorPanelClassKey, ErrorPanelProps, FeatureCalloutCircleClassKey, FeatureCalloutCircular, FiltersContainerClassKey, Gauge, GaugeCard, GaugeCardClassKey, GaugeClassKey, GaugeProps, GaugePropsGetColor, GaugePropsGetColorOptions, GitHubIcon, GroupIcon, Header, HeaderActionMenu, HeaderActionMenuItem, HeaderActionMenuProps, HeaderClassKey, HeaderIconLinkRow, HeaderIconLinkRowClassKey, HeaderLabel, HeaderLabelClassKey, HeaderTabs, HeaderTabsClassKey, HelpIcon, HorizontalScrollGrid, HorizontalScrollGridClassKey, IconLinkVerticalClassKey, IconLinkVerticalProps, IdentityProviders, InfoCard, InfoCardClassKey, InfoCardVariants, IntroCard, ItemCard, ItemCardGrid, ItemCardGridClassKey, ItemCardGridProps, ItemCardHeader, ItemCardHeaderClassKey, ItemCardHeaderProps, Lifecycle, LifecycleClassKey, LinearGauge, Link, LinkButton, LinkButtonProps, LinkProps, LogViewer, LogViewerClassKey, LogViewerProps, LoginRequestListItemClassKey, MarkdownContent, MarkdownContentClassKey, MetadataTableCellClassKey, MetadataTableListClassKey, MetadataTableListItemClassKey, MetadataTableTitleCellClassKey, MicDropClassKey, MissingAnnotationEmptyState, MissingAnnotationEmptyStateClassKey, MobileSidebar, MobileSidebarProps, OAuthRequestDialog, OAuthRequestDialogClassKey, OpenedDropdownClassKey, OverflowTooltip, OverflowTooltipClassKey, Page, PageClassKey, PageWithHeader, Progress, ProxiedSignInPage, ProxiedSignInPageProps, ResponseErrorPanel, ResponseErrorPanelClassKey, RoutedTabs, SIDEBAR_INTRO_LOCAL_STORAGE, SelectComponent as Select, SelectClassKey, SelectInputBaseClassKey, SelectItem, SelectedItems, Sidebar, SidebarClassKey, LegacySidebarContext as SidebarContext, SidebarContextType, SidebarDivider, SidebarDividerClassKey, SidebarExpandButton, SidebarGroup, SidebarGroupProps, SidebarIntro, SidebarIntroClassKey, SidebarItem, SidebarItemClassKey, SidebarOpenState, SidebarOpenStateProvider, SidebarOptions, SidebarPage, SidebarPageClassKey, SidebarPageProps, SidebarPinState, LegacySidebarPinStateContext as SidebarPinStateContext, SidebarPinStateContextType, SidebarPinStateProvider, SidebarProps, SidebarScrollWrapper, SidebarSearchField, SidebarSpace, SidebarSpaceClassKey, SidebarSpacer, SidebarSpacerClassKey, SidebarSubmenu, SidebarSubmenuItem, SidebarSubmenuItemDropdownItem, SidebarSubmenuItemProps, SidebarSubmenuProps, SignInPage, SignInPageClassKey, SignInProviderConfig, SimpleStepper, SimpleStepperFooterClassKey, SimpleStepperStep, SimpleStepperStepClassKey, StatusAborted, StatusClassKey, StatusError, StatusOK, StatusPending, StatusRunning, StatusWarning, StructuredMetadataTable, StructuredMetadataTableListClassKey, StructuredMetadataTableNestedListClassKey, SubmenuOptions, SubvalueCell, SubvalueCellClassKey, SupportButton, SupportButtonClassKey, SupportConfig, SupportItem, SupportItemLink, Tab, TabbedCard, TabbedCardClassKey, TabbedLayout, Table, TableClassKey, TableColumn, TableFilter, TableFiltersClassKey, TableHeaderClassKey, TableOptions, TableProps, TableState, TableToolbarClassKey, TrendLine, UserIcon, UserIdentity, WarningIcon, WarningPanel, WarningPanelClassKey, sidebarConfig, useContent, useQueryParamState, useSidebarOpenState, useSidebarPinState, useSupportConfig };