@gitkraken/gitkraken-components 13.0.0-vnext.3 → 13.0.0-vnext.4

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 { GraphRefType } from '../ref/RefTypes';
6
6
  import type { WorkDirStats } from '../workdir/WorkDirTypes';
7
7
  import type { GraphMarkerType, GraphZone, GraphZoneType, TimelineEntriesByPeriod } from './GraphConstants';
8
8
  import { GraphColumnMode } from './GraphConstants';
9
- import type { BaseMetadata, GetMissingRefMetadata, GraphColumnWidthConstraints, GraphItemContext, GraphRef, GraphRefGroup, GraphRow, GraphZoneModeConstants, Head, HighlightedShas, ProcessedGraphRow, ProcessedGraphRowBySha, Ref, RefMetadata, RefMetadataById, RefMetadataType, RowStatsConstraints } from './GraphTypes';
9
+ import type { BaseMetadata, ExternalIconKeys, GetMissingRefMetadata, GraphColumnWidthConstraints, GraphItemContext, GraphRef, GraphRefGroup, GraphRow, GraphZoneModeConstants, Head, HighlightedShas, ProcessedGraphRow, ProcessedGraphRowBySha, Ref, RefMetadata, RefMetadataById, RefMetadataType, RowStatsConstraints } from './GraphTypes';
10
10
  export type DebouncableFn = (...args: any) => void;
11
11
  export type DebouncedFn = (...args: any) => void;
12
12
  export declare const debounceFrame: (func: DebouncableFn) => DebouncedFn;
@@ -53,7 +53,7 @@ export declare function workDirStatsHaveChanges(workDirStats?: WorkDirStats): bo
53
53
  export declare function hasSingleSelectedSha(selectedShas: Set<Sha>): boolean;
54
54
  export declare function isSingleSelected(selectedShas: Set<Sha>, sha: Sha): boolean;
55
55
  export declare function getScrollToAlignment(rowHeight: number, clientHeight: number, scrollTop: number, scrollToIndex: number): Alignment;
56
- export declare function getGraphZoneIconByType(zoneType: GraphZoneType): string;
56
+ export declare function getGraphZoneIconByType(zoneType: GraphZoneType): ExternalIconKeys | undefined;
57
57
  export declare function isHeadActive(head: Head): boolean;
58
58
  export declare function isGraphRefActive(ref: GraphRef): boolean;
59
59
  export interface GraphRowHelperProps {
@@ -396,7 +396,8 @@ export type DownstreamsByUpstream = {
396
396
  [upstreamName: string]: string[];
397
397
  };
398
398
  export type GraphPlatform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin';
399
- export type GetExternalIcon = (key: string) => ReactElement<any>;
399
+ export type ExternalIconKeys = 'added' | 'author' | 'branch' | 'changes' | 'check' | 'commit' | 'datetime' | 'deleted' | 'files' | 'filter' | 'graph' | 'head' | 'hide' | `issue-${IssueTrackerType}` | 'loading' | 'message' | 'modified' | 'pull-request' | 'remote' | `remote-${HostingServiceType}` | 'renamed' | 'resolved' | 'settings' | 'show' | 'stash' | 'tag' | 'upstream-ahead' | 'upstream-behind' | 'warning' | 'worktree';
400
+ export type GetExternalIcon = (key: ExternalIconKeys) => ReactElement<any>;
400
401
  export type GetMissingAvatar = (email: string, sha: string) => void;
401
402
  export type GetMissingRefMetadata = (id: string, types: RefMetadataType[]) => void;
402
403
  export type FormatRefShorthand = (shorthand: RefShorthand, sha: Sha, refType: GraphRefType, data?: any | null) => RefShorthand;
@@ -1,5 +1,8 @@
1
1
  export declare const refTypes: {
2
- [key: string]: string;
2
+ readonly HEAD: "head";
3
+ readonly REMOTE: "remote";
4
+ readonly TAG: "tag";
5
+ readonly WORKTREE: "worktree";
3
6
  };
4
7
  export declare enum refIconsPositions {
5
8
  LEFT = "LEFT",
@@ -1,6 +1,6 @@
1
1
  import type { Sha } from '../commit/CommitTypes';
2
2
  import type * as RefConstants from './RefConstants';
3
- export type GraphRefType = keyof typeof RefConstants.refTypes;
3
+ export type GraphRefType = (typeof RefConstants.refTypes)[keyof typeof RefConstants.refTypes];
4
4
  export type RefFullName = string;
5
5
  export type RefShorthand = string;
6
6
  export type CreateRefFormData = {