@gitkraken/gitkraken-components 10.2.11 → 10.2.12

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 { GraphCommitDescDisplayMode, 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, FormatCommitMessage, FormatRefShorthand, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsRefShorthandValid, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFilterColumnClick, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefShorthandChange, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnSettingsClick, OnToggleRefNodesShown, OnWipMessageBlur, OnWipMessageFocus, 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, FormatCommitMessage, FormatRefShorthand, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsRefShorthandValid, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFilterColumnClick, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnLoadSelectedGraphRow, OnPopupGraphHeaderContextMenu, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefShorthandChange, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnSettingsClick, OnToggleRefNodesShown, OnWipMessageBlur, OnWipMessageFocus, 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 { CreateRefFormData, RefIconsPosition } from '../../domain/ref/RefTypes';
12
12
  import type { OnBlur, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
@@ -88,6 +88,7 @@ export interface DispatchProps {
88
88
  onDoubleClickGraphRef?: OnDoubleClickGraphRef;
89
89
  onGraphRowHovered?: OnGraphRowHovered;
90
90
  onGraphRowUnhovered?: OnGraphRowUnhovered;
91
+ onLoadSelectedGraphRow?: OnLoadSelectedGraphRow;
91
92
  onRefContextMenu?: OnRefContextMenu;
92
93
  onRefBeginDrag?: OnRefBeginDrag;
93
94
  onRefCanDrag?: OnRefCanDrag;
@@ -181,6 +182,8 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
181
182
  private graphComponentRef;
182
183
  private graphContainerRef;
183
184
  private resizeObserver;
185
+ private lastNavSha;
186
+ private currentSha;
184
187
  isRefContextMenuShown: boolean;
185
188
  isMounted: boolean;
186
189
  isSelectedBySha: IsSelectedBySha;
@@ -262,6 +265,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
262
265
  onWindowBlur: OnBlur;
263
266
  onWindowKeyDown: OnKeyDown;
264
267
  onKeyDown: OnKeyDown;
268
+ loadSelectedGraphRow(sha: Sha): void;
265
269
  onRefNodeHovered: OnRefNodeHovered;
266
270
  onRefNodeUnhovered: OnRefNodeUnhovered;
267
271
  onRefShorthandChange: OnRefShorthandChange;
@@ -13,6 +13,13 @@ export type GitHttpsUrl = Url;
13
13
  export type GitSshUrl = Url;
14
14
  export type GitRemoteUrl = GitHttpsUrl | GitSshUrl;
15
15
  export type Platform = 'darwin' | 'linux' | 'win32';
16
+ export declare enum NamedKeys {
17
+ arrowDownKey = "ArrowDown",
18
+ arrowUpKey = "ArrowUp",
19
+ controlKey = "Control",
20
+ metaKey = "Meta",
21
+ shiftKey = "Shift"
22
+ }
16
23
  export type MapWithCacheQueue<T, U> = {
17
24
  data: {
18
25
  [key: string]: U;
@@ -406,6 +406,7 @@ export type RefDndData = {
406
406
  refGroup: GraphRefGroup;
407
407
  sha: Sha;
408
408
  };
409
+ export type OnLoadSelectedGraphRow = (graphRow: GraphRow) => void;
409
410
  export type OnRefBeginDrag = (event: React.DragEvent, sourceRefData?: RefDndData) => void;
410
411
  export type OnRefCanDrag = (sourceRefData?: RefDndData) => boolean;
411
412
  export type OnRefCanDrop = (event?: React.DragEvent, sourceRefData?: RefDndData, targetRefData?: RefDndData) => boolean;