@gitkraken/gitkraken-components 10.1.8 → 10.1.9

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.
@@ -6,7 +6,7 @@ import type { Sha } from '../../domain/commit/CommitTypes';
6
6
  import type { CssVariables } from '../../domain/generic/GenericTypes';
7
7
  import type { GraphMarkerType, GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
8
8
  import type { ThrottledFn } from '../../domain/graph/GraphHelpers';
9
- import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnToggleRefNodesShown, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStats, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
9
+ import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnSettingsClick, OnToggleRefNodesShown, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStats, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
10
10
  import type { TranslationFn } from '../../domain/language/LanguageTypes';
11
11
  import type { OnBlur, OnComponentWillUnmount, OnFocus, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
12
12
  import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
@@ -87,9 +87,11 @@ export interface DispatchProps {
87
87
  onColumnResized?: OnGraphColumnResized;
88
88
  onFocusWipNodeInput?: OnFocus;
89
89
  onMessageChange?: OnCommitMessageChange;
90
+ onPopupGraphHeaderContextMenu?: OnPopupGraphHeaderContextMenu;
90
91
  onClickGraphRef?: OnClickGraphRef;
91
92
  onClickGraphRow?: OnClickGraphRow;
92
93
  onDoubleClickGraphRow?: OnDoubleClickGraphRow;
94
+ onSettingsClick?: OnSettingsClick;
93
95
  onSelectGraphRows?: OnSelectGraphRows;
94
96
  onScrollForZone?: OnGraphScrollForZone;
95
97
  onScrollToRowCausedUpdateForRefZone?: OnGraphScrollForZone;
@@ -204,6 +206,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
204
206
  onGraphZoneResize: OnGraphZoneResize;
205
207
  onGraphZoneResizeEnd: OnGraphZoneResizeEnd;
206
208
  onPopupGraphHeaderContextMenu: OnPopupGraphHeaderContextMenu;
209
+ onSettingsClick: OnSettingsClick;
207
210
  onMessageChange: OnCommitMessageChange;
208
211
  onClickRef: OnClickRef;
209
212
  onClickCommit: OnClickCommit;
@@ -1,16 +1,16 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import React from 'react';
3
3
  import type { GraphZone } from '../../domain/graph/GraphConstants';
4
- import type { ExcludeRefsById, GetExternalIcon, GraphItemContext, IncludeOnlyRefsById, OnGraphColumnReOrdered, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnPopupGraphHeaderContextMenu, OnToggleRefNodesShown } from '../../domain/graph/GraphTypes';
4
+ import type { ExcludeRefsById, GetExternalIcon, GraphItemContext, IncludeOnlyRefsById, 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';
7
7
  import type { DndIsDraggable, DndIsDroppable, DndOnDrop } from './dnd/DndContainer';
8
8
  type Props = {
9
- context?: GraphItemContext;
10
9
  dragAppendToContainer?: Element | undefined;
11
10
  enableResizer?: boolean;
12
11
  getExternalIcon: GetExternalIcon;
13
12
  excludeRefsById: ExcludeRefsById;
13
+ headerContext?: GraphItemContext;
14
14
  includeOnlyRefsById: IncludeOnlyRefsById;
15
15
  rowsStatsLoading: boolean;
16
16
  onColumnReOrdered?: OnGraphColumnReOrdered;
@@ -18,6 +18,7 @@ type Props = {
18
18
  onGraphZoneResize?: OnGraphZoneResize;
19
19
  onGraphZoneResizeEnd?: OnGraphZoneResizeEnd;
20
20
  onGraphZoneResizeFromPropChange?: OnGraphZoneResizeFromPropChange;
21
+ onSettingsClick?: OnSettingsClick;
21
22
  onToggleRefNodesShown: OnToggleRefNodesShown;
22
23
  graphZones: GraphZone[];
23
24
  repoPath: string;
@@ -25,6 +26,7 @@ type Props = {
25
26
  translate: TranslationFn;
26
27
  width: number;
27
28
  height: number;
29
+ settingsContext?: GraphItemContext;
28
30
  };
29
31
  declare class GraphHeaderRow extends React.PureComponent<Props> {
30
32
  canDrag: boolean;
@@ -165,6 +165,7 @@ export type RowContexts = {
165
165
  export type GraphContexts = {
166
166
  graph?: GraphItemContext;
167
167
  header?: GraphItemContext;
168
+ settings?: GraphItemContext;
168
169
  };
169
170
  export interface Ref {
170
171
  id?: string;
@@ -391,4 +392,5 @@ export type OnGraphZoneResize = (graphZone: GraphZone, dimensions: OnResizeParam
391
392
  export type OnGraphZoneResizeEnd = (graphZone: GraphZone, dimensions: OnResizeParams) => void;
392
393
  export type OnGraphZoneResizeStart = (graphZone: GraphZone, dimensions: OnResizeParams) => void;
393
394
  export type OnGraphZoneResizeFromPropChange = (graphZone: GraphZone, dimensions: OnResizeFromPropChangeParams) => void;
394
- export type OnPopupGraphHeaderContextMenu = (width: number) => void;
395
+ export type OnPopupGraphHeaderContextMenu = (event: React.MouseEvent<any>, width: number) => void;
396
+ export type OnSettingsClick = (event: React.MouseEvent<any>, width: number) => void;