@gitkraken/gitkraken-components 10.6.0 → 10.7.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.
- package/dist/components/graph/GraphContainer.d.ts +5 -1
- package/dist/components/graph/commitzone/CommitZone.d.ts +1 -0
- package/dist/components/graph/common/GenericGraphZone.d.ts +1 -0
- package/dist/components/graph/refzone/RefNodes.d.ts +2 -1
- package/dist/components/graph/refzone/RefZone.d.ts +1 -0
- package/dist/components/graph/shared/Avatar.d.ts +1 -0
- package/dist/domain/graph/GraphConstants.d.ts +1 -0
- package/dist/domain/graph/GraphHelpers.d.ts +2 -0
- package/dist/domain/graph/GraphTypes.d.ts +2 -0
- package/dist/domain/graph/row/ProcessedGraphRowObj.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -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 { GraphCommitDescDisplayMode, GraphMarkerType, GraphZone, GraphZoneType, ShiftSelectMode } from '../../domain/graph/GraphConstants';
|
|
7
|
+
import type { GraphCommitDescDisplayMode, GraphMarkerType, GraphSearchMode, GraphZone, GraphZoneType, ShiftSelectMode } 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, 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, ShaByRefId, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
|
|
10
10
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
@@ -77,6 +77,7 @@ export interface StateProps {
|
|
|
77
77
|
refMetadataById?: RefMetadataById | null;
|
|
78
78
|
refIconsPosition?: RefIconsPosition | null;
|
|
79
79
|
repoPath?: string;
|
|
80
|
+
searchMode?: GraphSearchMode;
|
|
80
81
|
columnsSettings?: GraphColumnsSettings;
|
|
81
82
|
themeOpacityFactor?: number;
|
|
82
83
|
translate?: TranslationFn;
|
|
@@ -214,6 +215,8 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
214
215
|
includeOnlyRefsById: IncludeOnlyRefsById;
|
|
215
216
|
excludeRemotesByName: ExcludeRemotesByName;
|
|
216
217
|
includeOnlyRemotesByName: IncludeOnlyRemotesByName;
|
|
218
|
+
highlightedShas: HighlightedShas;
|
|
219
|
+
searchMode: GraphSearchMode;
|
|
217
220
|
scrollLeft: number;
|
|
218
221
|
scrollTop: number;
|
|
219
222
|
graphHeight: number;
|
|
@@ -380,6 +383,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
380
383
|
onGraphVisibleRowsUpdated(): void;
|
|
381
384
|
getCurrentPlatform(): string;
|
|
382
385
|
isMacOSPlatform(): boolean;
|
|
386
|
+
isCommitListFiltered(): boolean;
|
|
383
387
|
getGraphColumnSettingFromZoneType(graphZone: GraphZone): GraphColumnSetting;
|
|
384
388
|
decorateWithHelmet: (container: ReactElement<'div'>, cssVariables: CssVariables, nonce?: string) => ReactElement<'div'>;
|
|
385
389
|
render(): ReactElement<'div'>;
|
|
@@ -12,6 +12,7 @@ type Props = {
|
|
|
12
12
|
clearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
|
|
13
13
|
column: number;
|
|
14
14
|
columnColorByColumn: ColumnColorByColumn;
|
|
15
|
+
columnForColoring?: number;
|
|
15
16
|
commitZoneWidth: number;
|
|
16
17
|
cssVariables: CssVariables;
|
|
17
18
|
currentlyHoveredCommitSha?: Sha;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
clearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
|
|
10
10
|
children: ChildrenElements;
|
|
11
11
|
column: number;
|
|
12
|
+
columnForColoring?: number;
|
|
12
13
|
context?: GraphItemContext | null;
|
|
13
14
|
currentlyHoveredCommitSha: Sha | null;
|
|
14
15
|
dimRowsOfSelectedCommit?: boolean;
|
|
@@ -7,6 +7,7 @@ type RefNodesProps = {
|
|
|
7
7
|
onDoubleClickRef: OnDoubleClickRef;
|
|
8
8
|
enabledRefMetadataTypes: RefMetadataType[];
|
|
9
9
|
column: number;
|
|
10
|
+
columnForColoring?: number;
|
|
10
11
|
context: GraphItemContext | null;
|
|
11
12
|
enableShowHideRefsOptions: boolean;
|
|
12
13
|
getExternalIcon: GetExternalIcon;
|
|
@@ -41,5 +42,5 @@ type RefNodesProps = {
|
|
|
41
42
|
type: CommitType;
|
|
42
43
|
useColumnHeaderIcons: boolean;
|
|
43
44
|
};
|
|
44
|
-
declare function RefNodes({ enabledRefMetadataTypes, column, context, enableShowHideRefsOptions, getTargetRef, hasActive, hasRefs, getExternalIcon, includeOnlyRefsById, includeOnlyRemotesByName, isGhostRef, isHovered, isInUnsupportedRebase, numGraphColumns, onMissingRefMetadata, refGroupContexts, refGroupsByName, refIconsPosition, refMetadata, refNodeHovered, sha, showRemoteNamesOnRefs, showContextMenuForGroupedRef, onClickRef, onDoubleClickRef, onToggleRefNodesShown, onRefBeginDrag, onRefCanDrag, onRefCanDrop, onRefDragEnter, onRefDragLeave, onRefDrop, onRefEndDrag, translate, type, useColumnHeaderIcons, }: RefNodesProps): ReactElement<'span' | 'div'>;
|
|
45
|
+
declare function RefNodes({ enabledRefMetadataTypes, column, columnForColoring, context, enableShowHideRefsOptions, getTargetRef, hasActive, hasRefs, getExternalIcon, includeOnlyRefsById, includeOnlyRemotesByName, isGhostRef, isHovered, isInUnsupportedRebase, numGraphColumns, onMissingRefMetadata, refGroupContexts, refGroupsByName, refIconsPosition, refMetadata, refNodeHovered, sha, showRemoteNamesOnRefs, showContextMenuForGroupedRef, onClickRef, onDoubleClickRef, onToggleRefNodesShown, onRefBeginDrag, onRefCanDrag, onRefCanDrop, onRefDragEnter, onRefDragLeave, onRefDrop, onRefEndDrag, translate, type, useColumnHeaderIcons, }: RefNodesProps): ReactElement<'span' | 'div'>;
|
|
45
46
|
export default RefNodes;
|
|
@@ -155,3 +155,4 @@ export declare enum graphCommitDescDisplayModes {
|
|
|
155
155
|
}
|
|
156
156
|
export type GraphCommitDescDisplayMode = graphCommitDescDisplayModes.ALWAYS | graphCommitDescDisplayModes.ON_HOVER | graphCommitDescDisplayModes.NEVER;
|
|
157
157
|
export type ShiftSelectMode = 'simple';
|
|
158
|
+
export type GraphSearchMode = 'normal' | 'filter';
|
|
@@ -70,6 +70,7 @@ export interface GraphRowHelperProps {
|
|
|
70
70
|
selectedShas: Set<Sha>;
|
|
71
71
|
processedRows: ProcessedGraphRow[];
|
|
72
72
|
processedGraphRowBySha: ProcessedGraphRowBySha;
|
|
73
|
+
alwaysShowTimelines?: boolean;
|
|
73
74
|
}
|
|
74
75
|
export declare class GraphRowHelper {
|
|
75
76
|
props: GraphRowHelperProps;
|
|
@@ -79,6 +80,7 @@ export declare class GraphRowHelper {
|
|
|
79
80
|
getRow(rowIndex: number): ProcessedGraphRow | undefined;
|
|
80
81
|
getZoneWidth(graphZoneType: GraphZoneType, withoutVerticalScrollWidth?: boolean): number;
|
|
81
82
|
isDateTimeZoneActive(): boolean;
|
|
83
|
+
shouldShowTimelines(): boolean;
|
|
82
84
|
isFirstRow(rowIndex: number): boolean;
|
|
83
85
|
isColumnFollowingGraphColumn(graphZoneType: GraphZoneType): boolean;
|
|
84
86
|
isHighlighted(rowIndex: number): boolean;
|
|
@@ -71,6 +71,7 @@ export type RowEdges = {
|
|
|
71
71
|
[column: number]: RowEdge;
|
|
72
72
|
};
|
|
73
73
|
export interface CommonGraphRowProps {
|
|
74
|
+
alwaysShowTimelines?: boolean;
|
|
74
75
|
enabledRefMetadataTypes: RefMetadataType[];
|
|
75
76
|
enabledScrollMarkerTypes: GraphMarkerType[];
|
|
76
77
|
avatarUrlByEmail: AvatarUrlByEmail;
|
|
@@ -315,6 +316,7 @@ export interface GraphRefsData {
|
|
|
315
316
|
export interface ProcessedGraphRow extends GraphRow {
|
|
316
317
|
rowIndex?: number;
|
|
317
318
|
column: number;
|
|
319
|
+
columnForColoring?: number;
|
|
318
320
|
displayMessage: string;
|
|
319
321
|
displaySummary: string;
|
|
320
322
|
displayBody?: string;
|
|
@@ -21,6 +21,7 @@ export declare class ProcessedGraphRowObj implements ProcessedGraphRow {
|
|
|
21
21
|
contexts?: RowContexts;
|
|
22
22
|
rowIndex?: number;
|
|
23
23
|
column: number;
|
|
24
|
+
columnForColoring?: number;
|
|
24
25
|
edgeColumnMaxes: number;
|
|
25
26
|
edges: RowEdges;
|
|
26
27
|
childRefs: ChildRefsByType;
|
|
@@ -41,7 +42,7 @@ export declare class ProcessedGraphRowObj implements ProcessedGraphRow {
|
|
|
41
42
|
get hasRefs(): boolean;
|
|
42
43
|
get hasChildRefs(): boolean;
|
|
43
44
|
get refsData(): GraphRefsData | undefined;
|
|
44
|
-
constructor(graphContainer: IGraphContainer, row: GraphRow, column?: number, edgeColumnMaxes?: number, edges?: RowEdges, childRefs?: ChildRefsByType, timeLineEntry?: TimelineEntry);
|
|
45
|
+
constructor(graphContainer: IGraphContainer, row: GraphRow, column?: number, edgeColumnMaxes?: number, edges?: RowEdges, childRefs?: ChildRefsByType, timeLineEntry?: TimelineEntry, columnForColoring?: number);
|
|
45
46
|
private updateSummaryAndBody;
|
|
46
47
|
private initializeRefGroups;
|
|
47
48
|
private addRefToRefGroup;
|