@gitkraken/gitkraken-components 11.1.0 → 11.2.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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { Alignment, ScrollParams } from 'react-virtualized';
3
- import type { ReactElement } from 'react';
3
+ import type { ReactElement, ReactNode } from 'react';
4
4
  import React from 'react';
5
5
  import type { Sha } from '../../domain/commit/CommitTypes';
6
6
  import type { CssVariables } from '../../domain/generic/GenericTypes';
@@ -31,6 +31,7 @@ export interface StateProps {
31
31
  createRefFormData?: CreateRefFormData | null;
32
32
  dimMergeCommits?: boolean;
33
33
  enableShowHideRefsOptions?: boolean;
34
+ headerZoneActions?: Partial<Record<GraphZoneType, ReactNode>>;
34
35
  downstreamsByUpstream?: DownstreamsByUpstream;
35
36
  formatRefShorthand?: FormatRefShorthand;
36
37
  highlightRowsOnRefHover?: boolean;
@@ -1,6 +1,6 @@
1
- import type { ReactElement } from 'react';
1
+ import type { ReactElement, ReactNode } from 'react';
2
2
  import 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;
@@ -1,4 +1,4 @@
1
- import type { MouseEventHandler, ReactElement } from 'react';
1
+ import type { MouseEventHandler, ReactElement, ReactNode } from 'react';
2
2
  import 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;