@gitkraken/gitkraken-components 10.3.3 → 10.5.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.
@@ -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, ShiftSelectMode } 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, 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';
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';
11
11
  import type { CreateRefFormData, RefIconsPosition } from '../../domain/ref/RefTypes';
12
12
  import type { OnBlur, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
@@ -73,6 +73,7 @@ export interface StateProps {
73
73
  isLoadingRows?: boolean;
74
74
  pendingCommitMessageSummary?: string;
75
75
  shiftSelectMode?: ShiftSelectMode;
76
+ suppressNonRefRowTooltips?: boolean;
76
77
  refMetadataById?: RefMetadataById | null;
77
78
  refIconsPosition?: RefIconsPosition | null;
78
79
  repoPath?: string;
@@ -190,6 +191,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
190
191
  selectedShas: Set<Sha>;
191
192
  lastFocusedSha?: Sha;
192
193
  processedGraphRowBySha: ProcessedGraphRowBySha;
194
+ shaByRefId: ShaByRefId;
193
195
  childrenBySha: ChildrenBySha;
194
196
  scrollToSha?: Sha;
195
197
  headSha?: Sha;
@@ -324,7 +326,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
324
326
  getBoxShadowAlphaForGutter(singleColumnModeFactor: number, gutterFactor: number): number;
325
327
  getLeftGutterBoxShadowAlpha(themeOpacityFactor: number): number;
326
328
  getRightGutterBoxShadowAlpha(themeOpacityFactor: number): number;
327
- updateMarkerRowIndices(types: GraphMarkerType[]): void;
329
+ updateMarkerRowIndices(types: GraphMarkerType[], nextProps?: GraphContainerProps): void;
328
330
  getMarkerColors(): GraphMarkerColors;
329
331
  initializeGraphZones(zoneSettings: GraphColumnsSettings | undefined, zoneOrdering: GraphZoneType[], width: number): GraphZone[];
330
332
  maybeSortGraphZoneOrderingFromSettings(zoneSettings?: GraphColumnsSettings): void;
@@ -17,6 +17,7 @@ type Props = {
17
17
  left: number;
18
18
  message: string;
19
19
  opacity: number;
20
+ suppressNonRefRowTooltips?: boolean;
20
21
  translate: TranslationFn;
21
22
  type: CommitType;
22
23
  useAuthorInitialsForAvatars: boolean;
@@ -42,6 +42,7 @@ type Props = {
42
42
  sha: Sha;
43
43
  shouldShowRefLine: boolean;
44
44
  style: Style;
45
+ suppressNonRefRowTooltips?: boolean;
45
46
  translate: TranslationFn;
46
47
  type: CommitType;
47
48
  useAuthorInitialsForAvatars: boolean;
@@ -15,6 +15,7 @@ interface OwnProps {
15
15
  rightGutterWidth: number;
16
16
  scrollLeft: number;
17
17
  shouldShowRefLine: boolean;
18
+ suppressNonRefRowTooltips?: boolean;
18
19
  }
19
20
  interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps, OwnProps {
20
21
  }
@@ -259,6 +259,7 @@ export declare const DEFAULT_CSS_VARIABLES: {
259
259
  '--scroll-marker-head-color': string;
260
260
  '--scroll-marker-highlights-color': string;
261
261
  '--scroll-marker-local-branches-color': string;
262
+ '--scroll-marker-pull-requests-color': string;
262
263
  '--scroll-marker-remote-branches-color': string;
263
264
  '--scroll-marker-selection-color': string;
264
265
  '--scroll-marker-stashes-color': string;
@@ -75,7 +75,7 @@ export declare enum GraphColumnMode {
75
75
  Rich = "rich",
76
76
  Text = "text"
77
77
  }
78
- export type GraphMarkerType = 'head' | 'highlights' | 'localBranches' | 'remoteBranches' | 'selection' | 'stashes' | 'tags' | 'upstream';
78
+ export type GraphMarkerType = 'head' | 'highlights' | 'localBranches' | 'pullRequests' | 'remoteBranches' | 'selection' | 'stashes' | 'tags' | 'upstream';
79
79
  export declare enum GraphMarkerShape {
80
80
  Block = "block",
81
81
  FullLine = "fullLine",
@@ -94,6 +94,7 @@ export interface CommonGraphRowProps {
94
94
  numGraphColumns: number;
95
95
  processedRows: ProcessedGraphRow[];
96
96
  processedGraphRowBySha: ProcessedGraphRowBySha;
97
+ suppressNonRefRowTooltips?: boolean;
97
98
  translate: TranslationFn;
98
99
  useAuthorInitialsForAvatars: boolean;
99
100
  scrollTop: number;
@@ -335,6 +336,9 @@ export type GraphRowBySha = {
335
336
  export type ProcessedGraphRowBySha = {
336
337
  [sha: Sha]: ProcessedGraphRow;
337
338
  };
339
+ export type ShaByRefId = {
340
+ [refId: string]: Sha;
341
+ };
338
342
  export type ChildrenBySha = {
339
343
  [sha: Sha]: Sha[];
340
344
  };