@gitkraken/gitkraken-components 13.0.0-vnext.2 → 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.
- package/dist/domain/graph/GraphHelpers.d.ts +2 -2
- package/dist/domain/graph/GraphTypes.d.ts +2 -1
- package/dist/domain/hostingservice/HostingServiceTypes.d.ts +2 -1
- package/dist/domain/ref/RefConstants.d.ts +4 -1
- package/dist/domain/ref/RefTypes.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
|
@@ -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):
|
|
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
|
|
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;
|
|
@@ -14,5 +14,6 @@ export type GitLabSelfHostedIssueTrackerType = GitLabSelfHostingServiceType;
|
|
|
14
14
|
export type JiraCloudIssueTrackerType = 'jiraCloud';
|
|
15
15
|
export type JiraServerIssueTrackerType = 'jiraServer';
|
|
16
16
|
export type TrelloIssueTrackerType = 'trello';
|
|
17
|
-
export type
|
|
17
|
+
export type BitbucketIssueTrackerType = 'bitbucket';
|
|
18
|
+
export type IssueTrackerType = GitHubIssueTrackerType | GithubEnterpriseIssueTrackerType | GitLabIssueTrackerType | GitLabSelfHostedIssueTrackerType | JiraCloudIssueTrackerType | JiraServerIssueTrackerType | TrelloIssueTrackerType | AzureDevopsIssueTrackerType | BitbucketIssueTrackerType;
|
|
18
19
|
export declare function getHostingServiceName(hostingServiceType: HostingServiceType): string;
|
|
@@ -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 = {
|