@gitkraken/gitkraken-components 10.2.0 → 10.2.2

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.
@@ -9,6 +9,7 @@ type GraphColumnProps = {
9
9
  branchUpstreamRowIndices: number[];
10
10
  rowCount: number;
11
11
  columnIndex: number;
12
+ customFooterRow?: ReactElement<any>;
12
13
  enableResizer?: boolean;
13
14
  enabledScrollMarkerTypes: GraphMarkerType[];
14
15
  getExternalIcon: GetExternalIcon;
@@ -38,5 +39,5 @@ type GraphColumnProps = {
38
39
  translate: TranslationFn;
39
40
  verticalScrollWidth: number;
40
41
  };
41
- export declare function GraphColumn({ branchUpstreamRowIndices, rowCount, cellRenderersByIds, columnIndex, enabledScrollMarkerTypes, enableResizer, getExternalIcon, getKeyForCell, graphHeight, graphWidth, graphZoneType, graphZones, hasMoreCommits, horizontalScrollHeight, isLoadingRows, markerColors, markerRowIndices, onResize, onResizeEnd, onResizeFromPropChange, onScroll, onScrollToRowCausedUpdate, onZoneEnter, scrollLeft, scrollToAlignment, scrollToIndex, scrollTop, smartCellRangeRenderer, translate, verticalScrollWidth, }: GraphColumnProps): ReactElement<any> | null;
42
+ export declare function GraphColumn({ branchUpstreamRowIndices, rowCount, cellRenderersByIds, columnIndex, customFooterRow, enabledScrollMarkerTypes, enableResizer, getExternalIcon, getKeyForCell, graphHeight, graphWidth, graphZoneType, graphZones, hasMoreCommits, horizontalScrollHeight, isLoadingRows, markerColors, markerRowIndices, onResize, onResizeEnd, onResizeFromPropChange, onScroll, onScrollToRowCausedUpdate, onZoneEnter, scrollLeft, scrollToAlignment, scrollToIndex, scrollTop, smartCellRangeRenderer, translate, verticalScrollWidth, }: GraphColumnProps): ReactElement<any> | null;
42
43
  export {};
@@ -4,7 +4,7 @@ import type { ReactElement } 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';
7
- import type { GraphMarkerType, GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
7
+ import type { GraphCommitDescDisplayMode, GraphMarkerType, GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
8
8
  import type { ThrottledFn } from '../../domain/graph/GraphHelpers';
9
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, 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';
@@ -44,6 +44,7 @@ interface OwnProps {
44
44
  export interface StateProps {
45
45
  avatarUrlByEmail?: AvatarUrlByEmail;
46
46
  cssVariables?: CssVariables;
47
+ customFooterRow?: ReactElement<any>;
47
48
  contexts?: GraphContexts | null;
48
49
  createRefFormData?: CreateRefFormData | null;
49
50
  dimMergeCommits?: boolean;
@@ -59,6 +60,7 @@ export interface StateProps {
59
60
  enabledScrollMarkerTypes?: GraphMarkerType[];
60
61
  scrollRowPadding?: number;
61
62
  enableMultiSelection?: boolean;
63
+ graphCommitDescDisplayMode?: GraphCommitDescDisplayMode;
62
64
  graphRows: GraphRow[];
63
65
  hasMoreCommits?: boolean;
64
66
  highlightedShas?: HighlightedShas;
@@ -140,6 +142,7 @@ type ComponentState = {
140
142
  showRemoteNamesOnRefs: boolean;
141
143
  enabledRefMetadataTypes: RefMetadataType[];
142
144
  enabledScrollMarkerTypes: GraphMarkerType[];
145
+ graphCommitDescDisplayMode: GraphCommitDescDisplayMode;
143
146
  graphZones: GraphZone[];
144
147
  hasMoreCommits: boolean;
145
148
  height: number;
@@ -173,7 +176,7 @@ type ColumnsUsed = {
173
176
  type HasMergeNodeChildBySha = {
174
177
  [sha: Sha]: boolean;
175
178
  };
176
- declare class GraphContainer extends React.PureComponent<Props, ComponentState> implements IGraphContainer {
179
+ declare class GraphContainer extends React.Component<Props, ComponentState> implements IGraphContainer {
177
180
  graphContainerRef: any;
178
181
  resizeObserver: ResizeObserver;
179
182
  isSelectedBySha: IsSelectedBySha;
@@ -259,6 +262,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
259
262
  onRefZoneUnhovered: OnRefZoneUnhovered;
260
263
  onShowMoreCommits: OnShowMoreCommits;
261
264
  onScrollForZone: OnScrollForZone;
265
+ loadMoreCommitsIfNecessary(graphHeight: number, hasMoreCommits: boolean): void;
262
266
  onScrollToRowCausedUpdateForRefZone: OnScrollForZone;
263
267
  onCommitContextMenu: OnCommitContextMenu;
264
268
  onRefContextMenu: OnRefZoneContextMenu;
@@ -1,8 +1,10 @@
1
1
  import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { GraphCommitDescDisplayMode } from '../../../domain/graph/GraphConstants';
2
3
  import type { CommonGraphRowDispatchProps, CommonGraphRowProps, OnCommitMessageChange, OnWipMessageBlur, OnWipMessageFocus } from '../../../domain/graph/GraphTypes';
3
4
  import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
5
  import type { WorkDirStats } from '../../../domain/workdir/WorkDirTypes';
5
6
  interface StateProps {
7
+ graphCommitDescDisplayMode: GraphCommitDescDisplayMode;
6
8
  isCommitting: boolean;
7
9
  pendingCommitMessageSummary: string;
8
10
  workDirStats?: WorkDirStats;
@@ -7,6 +7,7 @@ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
7
7
  import EntireRowSpan from '../common/EntireRowSpan';
8
8
  type Props = {
9
9
  currentCommits: number;
10
+ customFooterRow?: ReactElement<any>;
10
11
  getExternalIcon: GetExternalIcon;
11
12
  graphZoneType: GraphZoneType;
12
13
  hasMoreCommits: boolean;
@@ -147,3 +147,9 @@ export declare const DEFAULT_WORKDIR_STATS: {
147
147
  deleted: number;
148
148
  modified: number;
149
149
  };
150
+ export declare enum graphCommitDescDisplayModes {
151
+ ALWAYS = "ALWAYS",
152
+ ON_HOVER = "ON_HOVER",
153
+ NEVER = "NEVER"
154
+ }
155
+ export type GraphCommitDescDisplayMode = graphCommitDescDisplayModes.ALWAYS | graphCommitDescDisplayModes.ON_HOVER | graphCommitDescDisplayModes.NEVER;