@backstage/core-components 0.11.2-next.2 → 0.12.0-next.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 CHANGED
@@ -1,5 +1,38 @@
1
1
  # @backstage/core-components
2
2
 
3
+ ## 0.12.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fb3733e446: **BREAKING**: Removed the `HomepageTimer` as it has been replaced by the `HeaderWorldClock` in the Home plugin and was deprecated over a year ago.
8
+
9
+ ### Patch Changes
10
+
11
+ - 5f695c219a: Set the `searchTooltip` to "Filter" to follow how the `searchPlaceholder` is set making this more consistent
12
+ - 7573b65232: Internal refactor of imports to avoid circular dependencies
13
+ - 858986f6b6: Disable base path workaround in `Link` component when React Router v6 stable is used.
14
+ - f905853ad6: Prefer using `Link` from `@backstage/core-components` rather than material-UI.
15
+ - Updated dependencies
16
+ - @backstage/core-plugin-api@1.1.0-next.0
17
+ - @backstage/config@1.0.4-next.0
18
+ - @backstage/errors@1.1.3-next.0
19
+ - @backstage/theme@0.2.16
20
+ - @backstage/version-bridge@1.0.1
21
+
22
+ ## 0.11.2
23
+
24
+ ### Patch Changes
25
+
26
+ - bde1e8c8e2: Added `curve` prop to the `DependencyGraph` component to select the type of layout
27
+ - 882101cd9b: Deep-import LightAsync component to improve module-import speed
28
+ - 0d0f30d87e: Fixed layout for core-components docs where table was broken by splitting with code sample
29
+ - Updated dependencies
30
+ - @backstage/core-plugin-api@1.0.7
31
+ - @backstage/config@1.0.3
32
+ - @backstage/errors@1.1.2
33
+ - @backstage/theme@0.2.16
34
+ - @backstage/version-bridge@1.0.1
35
+
3
36
  ## 0.11.2-next.2
4
37
 
5
38
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -510,6 +510,14 @@ interface DependencyGraphProps<NodeData, EdgeData> extends React__default.SVGPro
510
510
  * Default: `enabled`
511
511
  */
512
512
  zoom?: 'enabled' | 'disabled' | 'enable-on-click';
513
+ /**
514
+ * A factory for curve generators addressing both lines and areas.
515
+ *
516
+ * @remarks
517
+ *
518
+ * Default: 'curveMonotoneX'
519
+ */
520
+ curve?: 'curveStepBefore' | 'curveMonotoneX';
513
521
  }
514
522
  /**
515
523
  * Graph component used to visualize relations between entities
@@ -593,6 +601,7 @@ declare type ResponseErrorPanelClassKey = 'text' | 'divider';
593
601
  /**
594
602
  * Renders a warning panel as the effect of a failed server request.
595
603
  *
604
+ * @remarks
596
605
  * Has special treatment for ResponseError errors, to display rich
597
606
  * server-provided information about what happened.
598
607
  */
@@ -682,6 +691,7 @@ interface LogViewerProps {
682
691
  /**
683
692
  * A component that displays logs in a scrollable text area.
684
693
  *
694
+ * @remarks
685
695
  * The LogViewer has support for search and filtering, as well as displaying
686
696
  * text content with ANSI color escape codes.
687
697
  *
@@ -707,10 +717,10 @@ declare type Props$b = {
707
717
  className?: string;
708
718
  };
709
719
  /**
710
- * MarkdownContent
711
- * --
712
- * Renders markdown with the default dialect [gfm - GitHub flavored Markdown](https://github.github.com/gfm/) to backstage theme styled HTML.
713
- * If you just want to render to plain [CommonMark](https://commonmark.org/), set the dialect to `'common-mark'`
720
+ * Renders markdown with the default dialect {@link https://github.github.com/gfm/ | gfm - GitHub flavored Markdown} to backstage theme styled HTML.
721
+ *
722
+ * @remarks
723
+ * If you just want to render to plain {@link https://commonmark.org/ | CommonMark}, set the dialect to `'common-mark'`
714
724
  */
715
725
  declare function MarkdownContent(props: Props$b): JSX.Element;
716
726
 
@@ -984,6 +994,7 @@ declare type SubRoute$1 = {
984
994
  * TabbedLayout is a compound component, which allows you to define a layout for
985
995
  * pages using a sub-navigation mechanism.
986
996
  *
997
+ * @remarks
987
998
  * Consists of two parts: TabbedLayout and TabbedLayout.Route
988
999
  *
989
1000
  * @example
@@ -1090,7 +1101,7 @@ declare type WarningProps = {
1090
1101
  children?: React__default.ReactNode;
1091
1102
  };
1092
1103
  /**
1093
- * WarningPanel. Show a user friendly error message to a user similar to
1104
+ * Show a user friendly error message to a user similar to
1094
1105
  * ErrorPanel except that the warning panel only shows the warning message to
1095
1106
  * the user.
1096
1107
  *
@@ -1289,14 +1300,6 @@ declare type HeaderTabsProps = {
1289
1300
  */
1290
1301
  declare function HeaderTabs(props: HeaderTabsProps): JSX.Element;
1291
1302
 
1292
- /**
1293
- * Please use the HeaderWorldClock in the home plugin
1294
- *
1295
- * @public
1296
- * @deprecated in favor of the HeaderWorldClock which is found in the to home plugin
1297
- */
1298
- declare function HomepageTimer(_props: {}): JSX.Element | null;
1299
-
1300
1303
  declare type ItemCardProps = {
1301
1304
  description?: string;
1302
1305
  tags?: string[];
@@ -1312,6 +1315,7 @@ declare type ItemCardProps = {
1312
1315
  * This card type has been deprecated. Instead use plain MUI Card and helpers
1313
1316
  * where appropriate.
1314
1317
  *
1318
+ * @example
1315
1319
  * ```
1316
1320
  * <Card>
1317
1321
  * <CardMedia>
@@ -1347,6 +1351,7 @@ declare type ItemCardGridProps = Partial<WithStyles<typeof styles$1>> & {
1347
1351
  * A default grid to use when arranging "item cards" - cards that let users
1348
1352
  * select among several options.
1349
1353
  *
1354
+ * @remarks
1350
1355
  * The immediate children are expected to be MUI Card components.
1351
1356
  *
1352
1357
  * Styles for the grid can be overridden using the `classes` prop, e.g.:
@@ -1391,6 +1396,7 @@ declare type ItemCardHeaderProps = Partial<WithStyles<typeof styles>> & {
1391
1396
  * A simple card header, rendering a default look for "item cards" - cards that
1392
1397
  * are arranged in a grid for users to select among several options.
1393
1398
  *
1399
+ * @remarks
1394
1400
  * This component expects to be placed within a MUI `<CardMedia>`.
1395
1401
  *
1396
1402
  * Styles for the header can be overridden using the `classes` prop, e.g.:
@@ -1442,12 +1448,12 @@ declare type ProxiedSignInPageProps = SignInPageProps & {
1442
1448
  */
1443
1449
  declare const ProxiedSignInPage: (props: ProxiedSignInPageProps) => JSX.Element | null;
1444
1450
 
1445
- /** @public **/
1451
+ /** @public */
1446
1452
  declare type SidebarOptions = {
1447
1453
  drawerWidthClosed?: number;
1448
1454
  drawerWidthOpen?: number;
1449
1455
  };
1450
- /** @public **/
1456
+ /** @public */
1451
1457
  declare type SubmenuOptions = {
1452
1458
  drawerWidthClosed?: number;
1453
1459
  drawerWidthOpen?: number;
@@ -1498,6 +1504,7 @@ declare type MobileSidebarProps = {
1498
1504
  /**
1499
1505
  * A navigation component for mobile screens, which sticks to the bottom.
1500
1506
  *
1507
+ * @remarks
1501
1508
  * It alternates the normal sidebar by grouping the `SidebarItems` based on provided `SidebarGroup`s
1502
1509
  * either rendering them as a link or an overlay menu.
1503
1510
  * If no `SidebarGroup`s are provided the sidebar content is wrapped in an default overlay menu.
@@ -1529,6 +1536,7 @@ interface SidebarGroupProps extends BottomNavigationActionProps {
1529
1536
  /**
1530
1537
  * Groups items of the `Sidebar` together.
1531
1538
  *
1539
+ * @remarks
1532
1540
  * On bigger screens, this won't have any effect at the moment.
1533
1541
  * On small screens, it will add an action to the bottom navigation - either triggering an overlay menu or acting as a link
1534
1542
  *
@@ -1550,6 +1558,7 @@ declare type SidebarSubmenuItemDropdownItem = {
1550
1558
  /**
1551
1559
  * Holds submenu item content.
1552
1560
  *
1561
+ * @remarks
1553
1562
  * title: Text content of submenu item
1554
1563
  * subtitle: A subtitle displayed under the main title
1555
1564
  * to: Path to navigate to when item is clicked
@@ -1660,6 +1669,7 @@ declare type SidebarItemProps = SidebarItemLinkProps | SidebarItemButtonProps |
1660
1669
  /**
1661
1670
  * Creates a `SidebarItem`
1662
1671
  *
1672
+ * @remarks
1663
1673
  * If children contain a `SidebarSubmenu` component the `SidebarItem` will have a expandable submenu
1664
1674
  */
1665
1675
  declare const SidebarItem: (props: SidebarItemProps) => JSX.Element;
@@ -1678,6 +1688,8 @@ declare const SidebarDivider: React__default.ComponentType<React__default.ClassA
1678
1688
  declare const SidebarScrollWrapper: React__default.ComponentType<React__default.ClassAttributes<HTMLDivElement> & React__default.HTMLAttributes<HTMLDivElement> & StyledComponentProps<"root">>;
1679
1689
  /**
1680
1690
  * A button which allows you to expand the sidebar when clicked.
1691
+ *
1692
+ * @remarks
1681
1693
  * Use optionally to replace sidebar's expand-on-hover feature with expand-on-click.
1682
1694
  *
1683
1695
  * If you are using this you might want to set the `disableExpandOnHover` of the `Sidebar` to `true`.
@@ -1815,7 +1827,7 @@ declare type SignInProviderConfig = {
1815
1827
  message: string;
1816
1828
  apiRef: ApiRef<ProfileInfoApi & BackstageIdentityApi & SessionApi>;
1817
1829
  };
1818
- /** @public **/
1830
+ /** @public */
1819
1831
  declare type IdentityProviders = ('guest' | 'custom' | SignInProviderConfig)[];
1820
1832
 
1821
1833
  declare type MultiSignInPageProps = SignInPageProps & {
@@ -2031,4 +2043,4 @@ declare type BackstageOverrides = Overrides & {
2031
2043
  [Name in keyof BackstageComponentsNameToClassKey]?: Partial<StyleRules<BackstageComponentsNameToClassKey[Name]>>;
2032
2044
  };
2033
2045
 
2034
- 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, HomepageTimer, HorizontalScrollGrid, HorizontalScrollGridClassKey, IconLinkVerticalClassKey, IconLinkVerticalProps, IdentityProviders, InfoCard, InfoCardClassKey, InfoCardVariants, IntroCard, ItemCard, ItemCardGrid, ItemCardGridClassKey, ItemCardGridProps, ItemCardHeader, ItemCardHeaderClassKey, ItemCardHeaderProps, Lifecycle, LifecycleClassKey, LinearGauge, Link, 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, TableProps, TableState, TableToolbarClassKey, Tabs, TabsClassKey, TrendLine, UserIcon, UserIdentity, WarningIcon, WarningPanel, WarningPanelClassKey, sidebarConfig, useContent, useQueryParamState, useSidebarOpenState, useSidebarPinState, useSupportConfig };
2046
+ 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, 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, TableProps, TableState, TableToolbarClassKey, Tabs, TabsClassKey, TrendLine, UserIcon, UserIdentity, WarningIcon, WarningPanel, WarningPanelClassKey, sidebarConfig, useContent, useQueryParamState, useSidebarOpenState, useSidebarPinState, useSupportConfig };
package/dist/index.esm.js CHANGED
@@ -9,8 +9,8 @@ import { makeStyles, createStyles, useTheme, darken, lighten, withStyles, styled
9
9
  import MaterialAvatar from '@material-ui/core/Avatar';
10
10
  import Button$1 from '@material-ui/core/Button';
11
11
  import classNames from 'classnames';
12
- import Link$1 from '@material-ui/core/Link';
13
- import { Link as Link$2, useSearchParams, useLocation, useResolvedPath as useResolvedPath$1, resolvePath } from 'react-router-dom';
12
+ import MaterialLink from '@material-ui/core/Link';
13
+ import { Link as Link$1, createRoutesFromChildren, Route as Route$1, useSearchParams, useLocation, useResolvedPath as useResolvedPath$1, resolvePath } from 'react-router-dom';
14
14
  import { trimEnd, isEqual, orderBy, isMatch, transform } from 'lodash';
15
15
  import Tooltip from '@material-ui/core/Tooltip';
16
16
  import CopyIcon from '@material-ui/icons/FileCopy';
@@ -96,15 +96,6 @@ import BottomNavigation from '@material-ui/core/BottomNavigation';
96
96
  import Drawer from '@material-ui/core/Drawer';
97
97
  import MenuIcon from '@material-ui/icons/Menu';
98
98
  import BottomNavigationAction from '@material-ui/core/BottomNavigationAction';
99
- import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';
100
- import ArrowDropUpIcon from '@material-ui/icons/ArrowDropUp';
101
- import Badge from '@material-ui/core/Badge';
102
- import TextField from '@material-ui/core/TextField';
103
- import ArrowRightIcon from '@material-ui/icons/ArrowRight';
104
- import SearchIcon from '@material-ui/icons/Search';
105
- import Collapse from '@material-ui/core/Collapse';
106
- import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos';
107
- import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos';
108
99
  import Tab from '@material-ui/core/Tab';
109
100
  import Tabs$1 from '@material-ui/core/Tabs';
110
101
  import AddBox from '@material-ui/icons/AddBox';
@@ -125,6 +116,15 @@ import NavigateBeforeIcon from '@material-ui/icons/NavigateBefore';
125
116
  import NavigateNextIcon from '@material-ui/icons/NavigateNext';
126
117
  import useWindowSize from 'react-use/lib/useWindowSize';
127
118
  import { Sparklines, SparklinesLine } from 'react-sparklines';
119
+ import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';
120
+ import ArrowDropUpIcon from '@material-ui/icons/ArrowDropUp';
121
+ import Badge from '@material-ui/core/Badge';
122
+ import TextField from '@material-ui/core/TextField';
123
+ import ArrowRightIcon from '@material-ui/icons/ArrowRight';
124
+ import SearchIcon from '@material-ui/icons/Search';
125
+ import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos';
126
+ import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos';
127
+ import Collapse from '@material-ui/core/Collapse';
128
128
  import MicDropSvgUrl from './layout/ErrorPage/mic-drop.svg';
129
129
  import MaterialBreadcrumbs from '@material-ui/core/Breadcrumbs';
130
130
  import MoreVert from '@material-ui/icons/MoreVert';
@@ -216,6 +216,13 @@ function Avatar(props) {
216
216
  }, displayName && extractInitials(displayName));
217
217
  }
218
218
 
219
+ function isReactRouterBeta() {
220
+ const [obj] = createRoutesFromChildren(/* @__PURE__ */ React.createElement(Route$1, {
221
+ index: true,
222
+ element: /* @__PURE__ */ React.createElement("div", null)
223
+ }));
224
+ return !obj.index;
225
+ }
219
226
  const useStyles$R = makeStyles(
220
227
  {
221
228
  visuallyHidden: {
@@ -276,7 +283,7 @@ const Link = React.forwardRef(
276
283
  ({ onClick, noTrack, ...props }, ref) => {
277
284
  const classes = useStyles$R();
278
285
  const analytics = useAnalytics();
279
- const to = useResolvedPath(props.to);
286
+ const to = isReactRouterBeta() ? useResolvedPath(props.to) : props.to;
280
287
  const linkText = getNodeText(props.children) || to;
281
288
  const external = isExternalUri(to);
282
289
  const newWindow = external && !!/^https?:/.exec(to);
@@ -286,7 +293,7 @@ const Link = React.forwardRef(
286
293
  analytics.captureEvent("click", linkText, { attributes: { to } });
287
294
  }
288
295
  };
289
- return external ? /* @__PURE__ */ React.createElement(Link$1, {
296
+ return external ? /* @__PURE__ */ React.createElement(MaterialLink, {
290
297
  ...newWindow ? { target: "_blank", rel: "noopener" } : {},
291
298
  ...props,
292
299
  ref,
@@ -295,10 +302,10 @@ const Link = React.forwardRef(
295
302
  className: classNames(classes.externalLink, props.className)
296
303
  }, props.children, /* @__PURE__ */ React.createElement("span", {
297
304
  className: classes.visuallyHidden
298
- }, ", Opens in a new window")) : /* @__PURE__ */ React.createElement(Link$1, {
305
+ }, ", Opens in a new window")) : /* @__PURE__ */ React.createElement(MaterialLink, {
299
306
  ...props,
300
307
  ref,
301
- component: Link$2,
308
+ component: Link$1,
302
309
  to,
303
310
  onClick: handleClick
304
311
  });
@@ -391,13 +398,13 @@ function CreateButton(props) {
391
398
  return null;
392
399
  }
393
400
  return isXSScreen ? /* @__PURE__ */ React.createElement(IconButton, {
394
- component: Link$2,
401
+ component: Link$1,
395
402
  color: "primary",
396
403
  title,
397
404
  size: "small",
398
405
  to
399
406
  }, /* @__PURE__ */ React.createElement(AddCircleOutline, null)) : /* @__PURE__ */ React.createElement(Button$1, {
400
- component: Link$2,
407
+ component: Link$1,
401
408
  variant: "contained",
402
409
  color: "primary",
403
410
  to
@@ -551,7 +558,7 @@ function DefaultLabel({ edge: { label } }) {
551
558
  const useStyles$N = makeStyles$1(
552
559
  (theme) => ({
553
560
  path: {
554
- strokeWidth: 2,
561
+ strokeWidth: 1,
555
562
  stroke: theme.palette.textSubtle,
556
563
  fill: "none",
557
564
  transition: `${theme.transitions.duration.shortest}ms`
@@ -565,12 +572,12 @@ const useStyles$N = makeStyles$1(
565
572
  const renderDefault = (props) => /* @__PURE__ */ React.createElement(DefaultLabel, {
566
573
  ...props
567
574
  });
568
- const createPath = d3Shape.line().x((d) => d.x).y((d) => d.y).curve(d3Shape.curveMonotoneX);
569
575
  function Edge({
570
576
  render = renderDefault,
571
577
  setEdge,
572
578
  id,
573
- edge
579
+ edge,
580
+ curve
574
581
  }) {
575
582
  const { x = 0, y = 0, width, height, points } = edge;
576
583
  const labelProps = edge;
@@ -591,6 +598,10 @@ function Edge({
591
598
  }
592
599
  }, [edge, height, width, setEdge, id]);
593
600
  let path = "";
601
+ const createPath = React.useMemo(
602
+ () => d3Shape.line().x((d) => d.x).y((d) => d.y).curve(d3Shape[curve]),
603
+ [curve]
604
+ );
594
605
  if (points) {
595
606
  const finitePoints = points.filter(
596
607
  (point) => isFinite(point.x) && isFinite(point.y)
@@ -600,7 +611,6 @@ function Edge({
600
611
  return /* @__PURE__ */ React.createElement(React.Fragment, null, path && /* @__PURE__ */ React.createElement("path", {
601
612
  "data-testid": EDGE_TEST_ID,
602
613
  className: classes.path,
603
- markerEnd: `url(#${ARROW_MARKER_ID})`,
604
614
  d: path
605
615
  }), labelProps.label ? /* @__PURE__ */ React.createElement("g", {
606
616
  ref: labelRef,
@@ -633,6 +643,7 @@ function DependencyGraph(props) {
633
643
  renderLabel,
634
644
  defs,
635
645
  zoom = "enabled",
646
+ curve = "curveMonotoneX",
636
647
  ...svgProps
637
648
  } = props;
638
649
  const theme = useTheme$1();
@@ -823,7 +834,8 @@ function DependencyGraph(props) {
823
834
  id: e,
824
835
  setEdge,
825
836
  render: renderLabel,
826
- edge
837
+ edge,
838
+ curve
827
839
  });
828
840
  }), graphNodes.map((id) => {
829
841
  const node = graph.current.node(id);
@@ -1557,19 +1569,17 @@ function IconLinkVertical({
1557
1569
  }) {
1558
1570
  const classes = useIconStyles();
1559
1571
  if (disabled) {
1560
- return /* @__PURE__ */ React.createElement(Link$1, {
1572
+ return /* @__PURE__ */ React.createElement("div", {
1561
1573
  title,
1562
- className: classNames(classes.link, classes.disabled),
1563
- underline: "none"
1574
+ className: classNames(classes.link, classes.disabled)
1564
1575
  }, icon, /* @__PURE__ */ React.createElement("span", {
1565
1576
  className: classes.label
1566
1577
  }, label));
1567
1578
  }
1568
- return /* @__PURE__ */ React.createElement(Link$1, {
1579
+ return /* @__PURE__ */ React.createElement(Link, {
1569
1580
  title,
1570
1581
  className: classNames(classes.link, classes[color]),
1571
1582
  to: href,
1572
- component: Link,
1573
1583
  onClick
1574
1584
  }, icon, /* @__PURE__ */ React.createElement("span", {
1575
1585
  className: classes.label
@@ -4281,7 +4291,7 @@ const WorkaroundNavLink = React.forwardRef(function WorkaroundNavLinkWithRef({
4281
4291
  isActive = locationPathname.startsWith(`${toPathname}/`);
4282
4292
  }
4283
4293
  const ariaCurrent = isActive ? ariaCurrentProp : void 0;
4284
- return /* @__PURE__ */ React.createElement(Link$2, {
4294
+ return /* @__PURE__ */ React.createElement(Link$1, {
4285
4295
  ...rest,
4286
4296
  to,
4287
4297
  ref,
@@ -4596,10 +4606,8 @@ function IntroCard(props) {
4596
4606
  variant: "subtitle2"
4597
4607
  }, text), /* @__PURE__ */ React.createElement("div", {
4598
4608
  className: classes.introDismiss
4599
- }, /* @__PURE__ */ React.createElement(Link$1, {
4600
- component: "button",
4609
+ }, /* @__PURE__ */ React.createElement(IconButton, {
4601
4610
  onClick: handleClose,
4602
- underline: "none",
4603
4611
  className: classes.introDismissLink
4604
4612
  }, /* @__PURE__ */ React.createElement(CloseIcon, {
4605
4613
  className: classes.introDismissIcon
@@ -5326,7 +5334,9 @@ function Table(props) {
5326
5334
  }, subtitle)),
5327
5335
  data: typeof data === "function" ? data : tableData,
5328
5336
  style: { width: "100%" },
5329
- localization: { toolbar: { searchPlaceholder: "Filter" } },
5337
+ localization: {
5338
+ toolbar: { searchPlaceholder: "Filter", searchTooltip: "Filter" }
5339
+ },
5330
5340
  ...restProps
5331
5341
  }));
5332
5342
  }
@@ -6033,63 +6043,6 @@ function HeaderLabel(props) {
6033
6043
  }, content) : content));
6034
6044
  }
6035
6045
 
6036
- const timeFormat = {
6037
- hour: "2-digit",
6038
- minute: "2-digit"
6039
- };
6040
- function getTimes(configApi) {
6041
- const d = new Date();
6042
- const lang = window.navigator.language;
6043
- const clocks = [];
6044
- if (!configApi.has("homepage.clocks")) {
6045
- return clocks;
6046
- }
6047
- const clockConfigs = configApi.getConfigArray("homepage.clocks");
6048
- for (const clock of clockConfigs) {
6049
- if (clock.has("label") && clock.has("timezone")) {
6050
- let label = clock.getString("label");
6051
- const options = {
6052
- timeZone: clock.getString("timezone"),
6053
- ...timeFormat
6054
- };
6055
- try {
6056
- new Date().toLocaleString(lang, options);
6057
- } catch (e) {
6058
- console.warn(
6059
- `The timezone ${options.timeZone} is invalid. Defaulting to GMT`
6060
- );
6061
- options.timeZone = "GMT";
6062
- label = "GMT";
6063
- }
6064
- const time = d.toLocaleTimeString(lang, options);
6065
- clocks.push({ time, label });
6066
- }
6067
- }
6068
- return clocks;
6069
- }
6070
- function HomepageTimer(_props) {
6071
- const configApi = useApi(configApiRef);
6072
- const defaultTimes = [];
6073
- const [clocks, setTimes] = React.useState(defaultTimes);
6074
- React.useEffect(() => {
6075
- setTimes(getTimes(configApi));
6076
- const intervalId = setInterval(() => {
6077
- setTimes(getTimes(configApi));
6078
- }, 1e3);
6079
- return () => {
6080
- clearInterval(intervalId);
6081
- };
6082
- }, [configApi]);
6083
- if (clocks.length !== 0) {
6084
- return /* @__PURE__ */ React.createElement(React.Fragment, null, clocks.map((clock) => /* @__PURE__ */ React.createElement(HeaderLabel, {
6085
- label: clock.label,
6086
- value: clock.time,
6087
- key: clock.label
6088
- })));
6089
- }
6090
- return null;
6091
- }
6092
-
6093
6046
  const styles$1 = (theme) => createStyles({
6094
6047
  root: {
6095
6048
  color: theme.palette.common.white,
@@ -7019,5 +6972,5 @@ function CardTab(props) {
7019
6972
  });
7020
6973
  }
7021
6974
 
7022
- export { AlertDisplay, Avatar, BottomLink, Breadcrumbs, BrokenImageIcon, Button, CardTab, CatalogIcon, ChatIcon, CodeSnippet, Content, ContentHeader, CopyTextButton, CreateButton, DashboardIcon, DependencyGraph, types as DependencyGraphTypes, DismissableBanner, DocsIcon, EmailIcon, EmptyState, ErrorBoundary, ErrorPage, ErrorPanel, FeatureCalloutCircular, Gauge, GaugeCard, GitHubIcon, GroupIcon, Header, HeaderActionMenu, HeaderIconLinkRow, HeaderLabel, HeaderTabs, HelpIcon, HomepageTimer, HorizontalScrollGrid, InfoCard, IntroCard, ItemCard, ItemCardGrid, ItemCardHeader, Lifecycle, LinearGauge, Link, LogViewer, MarkdownContent, MissingAnnotationEmptyState, MobileSidebar, OAuthRequestDialog, OverflowTooltip, Page, PageWithHeader, Progress, ProxiedSignInPage, ResponseErrorPanel, RoutedTabs, SIDEBAR_INTRO_LOCAL_STORAGE, SelectComponent as Select, Sidebar, LegacySidebarContext as SidebarContext, SidebarDivider, SidebarExpandButton, SidebarGroup, SidebarIntro, SidebarItem, SidebarOpenStateProvider, SidebarPage, LegacySidebarPinStateContext as SidebarPinStateContext, SidebarPinStateProvider, SidebarScrollWrapper, SidebarSearchField, SidebarSpace, SidebarSpacer, SidebarSubmenu, SidebarSubmenuItem, SignInPage, SimpleStepper, SimpleStepperStep, StatusAborted, StatusError, StatusOK, StatusPending, StatusRunning, StatusWarning, StructuredMetadataTable, SubvalueCell, SupportButton, TabbedCard, TabbedLayout, Table, Tabs, TrendLine, UserIcon, UserIdentity, WarningIcon, WarningPanel, sidebarConfig, useContent, useQueryParamState, useSidebarOpenState, useSidebarPinState, useSupportConfig };
6975
+ export { AlertDisplay, Avatar, BottomLink, Breadcrumbs, BrokenImageIcon, Button, CardTab, CatalogIcon, ChatIcon, CodeSnippet, Content, ContentHeader, CopyTextButton, CreateButton, DashboardIcon, DependencyGraph, types as DependencyGraphTypes, DismissableBanner, DocsIcon, EmailIcon, EmptyState, ErrorBoundary, ErrorPage, ErrorPanel, FeatureCalloutCircular, Gauge, GaugeCard, GitHubIcon, GroupIcon, Header, HeaderActionMenu, HeaderIconLinkRow, HeaderLabel, HeaderTabs, HelpIcon, HorizontalScrollGrid, InfoCard, IntroCard, ItemCard, ItemCardGrid, ItemCardHeader, Lifecycle, LinearGauge, Link, LogViewer, MarkdownContent, MissingAnnotationEmptyState, MobileSidebar, OAuthRequestDialog, OverflowTooltip, Page, PageWithHeader, Progress, ProxiedSignInPage, ResponseErrorPanel, RoutedTabs, SIDEBAR_INTRO_LOCAL_STORAGE, SelectComponent as Select, Sidebar, LegacySidebarContext as SidebarContext, SidebarDivider, SidebarExpandButton, SidebarGroup, SidebarIntro, SidebarItem, SidebarOpenStateProvider, SidebarPage, LegacySidebarPinStateContext as SidebarPinStateContext, SidebarPinStateProvider, SidebarScrollWrapper, SidebarSearchField, SidebarSpace, SidebarSpacer, SidebarSubmenu, SidebarSubmenuItem, SignInPage, SimpleStepper, SimpleStepperStep, StatusAborted, StatusError, StatusOK, StatusPending, StatusRunning, StatusWarning, StructuredMetadataTable, SubvalueCell, SupportButton, TabbedCard, TabbedLayout, Table, Tabs, TrendLine, UserIcon, UserIdentity, WarningIcon, WarningPanel, sidebarConfig, useContent, useQueryParamState, useSidebarOpenState, useSidebarPinState, useSupportConfig };
7023
6976
  //# sourceMappingURL=index.esm.js.map