@gitkraken/gitkraken-components 13.0.0-vnext.31 → 13.0.0-vnext.32

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.
@@ -1,5 +1,5 @@
1
1
  import type { Alignment, ScrollParams } from 'react-virtualized';
2
- import type { ReactElement } from 'react';
2
+ import type { ReactElement, ReactNode } from 'react';
3
3
  import * as React from 'react';
4
4
  import type { Sha } from '../../domain/commit/CommitTypes';
5
5
  import type { CssVariables } from '../../domain/generic/GenericTypes';
@@ -48,6 +48,7 @@ export interface StateProps {
48
48
  */
49
49
  onlyFirstParent?: boolean;
50
50
  enableShowHideRefsOptions?: boolean;
51
+ headerZoneActions?: Partial<Record<GraphZoneType, ReactNode>>;
51
52
  downstreamsByUpstream?: DownstreamsByUpstream;
52
53
  formatRefShorthand?: FormatRefShorthand;
53
54
  highlightRowsOnRefHover?: boolean;
@@ -525,6 +526,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
525
526
  formatCommitMessageCallback: FormatCommitMessage;
526
527
  formatRefShorthandCallback: FormatRefShorthand;
527
528
  isRefShorthandValidCallback: IsRefShorthandValid;
529
+ get pinnedBranchFullName(): string | null;
528
530
  translateCallback: TranslationFn;
529
531
  getIconCallback: GetExternalIcon;
530
532
  onMissingAvatar: GetMissingAvatar;
@@ -1,6 +1,6 @@
1
- import type { ReactElement } from 'react';
1
+ import type { ReactElement, ReactNode } from 'react';
2
2
  import * as React from 'react';
3
- import type { GraphZone } from '../../domain/graph/GraphConstants';
3
+ import type { GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
4
4
  import type { ExcludeRefsById, GetExternalIcon, GraphColumnsSettings, GraphItemContext, IncludeOnlyRefsById, OnFilterColumnClick, OnGraphColumnReOrdered, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnPopupGraphHeaderContextMenu, OnSettingsClick, OnToggleRefNodesShown } from '../../domain/graph/GraphTypes';
5
5
  import type { TranslationFn } from '../../domain/language/LanguageTypes';
6
6
  import type { OnMouseEnter, OnMouseLeave } from '../../domain/ui/UiTypes';
@@ -13,6 +13,7 @@ type Props = {
13
13
  getExternalIcon: GetExternalIcon;
14
14
  excludeRefsById: ExcludeRefsById;
15
15
  headerContext?: GraphItemContext;
16
+ headerZoneActions?: Partial<Record<GraphZoneType, ReactNode>>;
16
17
  includeOnlyRefsById: IncludeOnlyRefsById;
17
18
  rowsStatsLoading: boolean;
18
19
  onColumnReOrdered?: OnGraphColumnReOrdered;
@@ -3,4 +3,5 @@ import type { TranslationFn } from '../../domain/language/LanguageTypes';
3
3
  export interface IGraphContainer {
4
4
  formatCommitMessageCallback: FormatCommitMessage;
5
5
  translateCallback: TranslationFn;
6
+ pinnedBranchFullName?: string | null;
6
7
  }
@@ -1,4 +1,4 @@
1
- import type { MouseEventHandler, ReactElement } from 'react';
1
+ import type { MouseEventHandler, ReactElement, ReactNode } from 'react';
2
2
  import * as React from 'react';
3
3
  import type { GraphZone, GraphZoneType } from '../../../domain/graph/GraphConstants';
4
4
  import type { ExcludeRefsById, GetExternalIcon, GraphColumnSetting, GraphItemContext, GraphRefOptData, IncludeOnlyRefsById, OnFilterColumnClick, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnGraphZoneResizeStart, OnSettingsClick, OnToggleRefNodesShown } from '../../../domain/graph/GraphTypes';
@@ -14,6 +14,7 @@ type GraphHeaderProps = {
14
14
  graphZones: GraphZone[];
15
15
  graphZoneType: GraphZoneType;
16
16
  excludeRefsById: ExcludeRefsById;
17
+ headerZoneAction?: ReactNode;
17
18
  id: string;
18
19
  includeOnlyRefsById: IncludeOnlyRefsById;
19
20
  isDraggable: boolean;