@gitkraken/gitkraken-components 10.1.15 → 10.1.16

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.
@@ -201,6 +201,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
201
201
  graphZoneModeConstants: GraphZoneModeConstants;
202
202
  graphZonesByType: GraphZonesByType;
203
203
  graphZoneOrdering: GraphZoneType[];
204
+ clientHeight: number;
204
205
  missingAvatarsTimer?: NodeJS.Timeout;
205
206
  pendingMissingAvatars: AvatarUrlByEmail;
206
207
  requestedMissingAvatars: AvatarUrlRequestedByEmail;
@@ -269,6 +270,8 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
269
270
  getCommitZoneContentWidth(): number;
270
271
  getCommitZoneWidth(withoutVerticalScrollWidth?: boolean): number;
271
272
  getSingleColumnModeFactor(): number;
273
+ setClientHeight(clientHeight: number): void;
274
+ getClientHeight(): number;
272
275
  setScroll(graphZoneType: GraphZoneType, scroll: ScrollParams): void;
273
276
  getNonAdjustedScrollLeft(): number;
274
277
  setScrollLeft(scrollLeft: number): void;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import type { CommitType } from '../../../domain/commit/CommitTypes';
4
4
  import type { CssVariables } from '../../../domain/generic/GenericTypes';
5
5
  import type { GetExternalIcon, GraphItemContext, GraphZoneModeConstants } from '../../../domain/graph/GraphTypes';
6
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
6
7
  type Props = {
7
8
  authorEmail: string;
8
9
  authorInitials: string;
@@ -16,6 +17,7 @@ type Props = {
16
17
  left: number;
17
18
  message: string;
18
19
  opacity: number;
20
+ translate: TranslationFn;
19
21
  type: CommitType;
20
22
  useAuthorInitialsForAvatars: boolean;
21
23
  };
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
4
4
  import type { CssVariables, Style } from '../../../domain/generic/GenericTypes';
5
5
  import type { ColumnColorByColumn, GetExternalIcon, GraphItemContext, GraphZoneModeConstants, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnCommitContextMenu, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, RowEdges } from '../../../domain/graph/GraphTypes';
6
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
6
7
  type Props = {
7
8
  authorEmail: string;
8
9
  authorName: string;
@@ -41,6 +42,7 @@ type Props = {
41
42
  sha: Sha;
42
43
  shouldShowRefLine: boolean;
43
44
  style: Style;
45
+ translate: TranslationFn;
44
46
  type: CommitType;
45
47
  useAuthorInitialsForAvatars: boolean;
46
48
  zoneContext?: GraphItemContext;
@@ -4,9 +4,7 @@ import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
4
4
  import type { Style } from '../../../domain/generic/GenericTypes';
5
5
  import type { GraphZoneType } from '../../../domain/graph/GraphConstants';
6
6
  import type { GetExternalIcon, GraphItemContext, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnCommitContextMenu, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit } from '../../../domain/graph/GraphTypes';
7
- import type { TranslationFn } from '../../../domain/language/LanguageTypes';
8
7
  import type { ChildrenElements } from '../../../domain/ui/UiTypes';
9
- import type { WorkDirStats } from '../../../domain/workdir/WorkDirTypes';
10
8
  type Props = {
11
9
  clearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
12
10
  children: ChildrenElements;
@@ -38,10 +36,8 @@ type Props = {
38
36
  showTimelineMessage?: boolean;
39
37
  style: Style;
40
38
  title?: string | null;
41
- translate: TranslationFn;
42
39
  type: CommitType;
43
40
  verticalScrollWidth: number;
44
- workDirStats?: WorkDirStats;
45
41
  zoneWidth: number;
46
42
  };
47
43
  export default class GenericGraphZone extends React.PureComponent<Props> {
@@ -1,5 +1,5 @@
1
1
  import type { Alignment } from 'react-virtualized';
2
- import type { Sha } from '../commit/CommitTypes';
2
+ import type { CommitType, Sha } from '../commit/CommitTypes';
3
3
  import type { CssVariables } from '../generic/GenericTypes';
4
4
  import type { GetRealKeyForCellFunc } from '../reactvirtualized/ReactVirtualizedHelpers';
5
5
  import type { GraphRefType } from '../ref/RefTypes';
@@ -44,6 +44,8 @@ export declare const makeGetKeyForCell: (rows: ProcessedGraphRow[]) => GetRealKe
44
44
  export declare function getZoneWidthWithVerticalScrollbar(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): number;
45
45
  export declare function rowContainsCurrentHeadRef(row?: ProcessedGraphRow | GraphRow): boolean;
46
46
  export declare function getHeadRefShaFromGraphRows(graphRows: GraphRow[]): Sha | undefined;
47
+ export declare function isWorkDirNodeType(nodeType: CommitType): boolean;
48
+ export declare function isCommitNodeType(nodeType: CommitType): boolean;
47
49
  export declare function workDirStatsHaveChanges(workDirStats?: WorkDirStats): boolean;
48
50
  export declare function hasSingleSelectedSha(isSelectedBySha: IsSelectedBySha): boolean;
49
51
  export declare function isSingleSelected(isSelectedBySha: IsSelectedBySha, sha: Sha): boolean;