@gitkraken/gitkraken-components 10.2.1 → 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.
|
@@ -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';
|
|
@@ -60,6 +60,7 @@ export interface StateProps {
|
|
|
60
60
|
enabledScrollMarkerTypes?: GraphMarkerType[];
|
|
61
61
|
scrollRowPadding?: number;
|
|
62
62
|
enableMultiSelection?: boolean;
|
|
63
|
+
graphCommitDescDisplayMode?: GraphCommitDescDisplayMode;
|
|
63
64
|
graphRows: GraphRow[];
|
|
64
65
|
hasMoreCommits?: boolean;
|
|
65
66
|
highlightedShas?: HighlightedShas;
|
|
@@ -141,6 +142,7 @@ type ComponentState = {
|
|
|
141
142
|
showRemoteNamesOnRefs: boolean;
|
|
142
143
|
enabledRefMetadataTypes: RefMetadataType[];
|
|
143
144
|
enabledScrollMarkerTypes: GraphMarkerType[];
|
|
145
|
+
graphCommitDescDisplayMode: GraphCommitDescDisplayMode;
|
|
144
146
|
graphZones: GraphZone[];
|
|
145
147
|
hasMoreCommits: boolean;
|
|
146
148
|
height: number;
|
|
@@ -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;
|
|
@@ -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;
|