@gitkraken/gitkraken-components 6.0.3 → 7.1.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.
Files changed (75) hide show
  1. package/LICENSE +1 -1
  2. package/ThirdPartyNotices.txt +227 -0
  3. package/dist/components/graph/GraphColumn.d.ts +38 -0
  4. package/dist/components/graph/GraphContainer.d.ts +297 -329
  5. package/dist/components/graph/GraphHeaderRow.d.ts +36 -0
  6. package/dist/components/graph/GraphScrollMarker.d.ts +22 -0
  7. package/dist/components/graph/changeszone/ChangesBar.d.ts +11 -0
  8. package/dist/components/graph/commitzone/BackgroundStreak.d.ts +12 -0
  9. package/dist/components/graph/commitzone/CommitNode.d.ts +24 -0
  10. package/dist/components/graph/commitzone/CommitZone.d.ts +48 -0
  11. package/dist/components/graph/commitzone/GraphAvatar.d.ts +39 -0
  12. package/dist/components/graph/commitzone/Gutter.d.ts +22 -0
  13. package/dist/components/graph/commitzone/edges/Arc.d.ts +4 -0
  14. package/dist/components/graph/commitzone/edges/EdgeNodes.d.ts +3 -0
  15. package/dist/components/graph/commitzone/edges/Edges.d.ts +13 -0
  16. package/dist/components/graph/commitzone/edges/EndingEdge.d.ts +4 -0
  17. package/dist/components/graph/commitzone/edges/PassThroughEdge.d.ts +4 -0
  18. package/dist/components/graph/commitzone/edges/StartingEdge.d.ts +4 -0
  19. package/dist/components/graph/common/DraggableGraphHeader.d.ts +42 -0
  20. package/dist/components/graph/common/EntireRowSpan.d.ts +15 -0
  21. package/dist/components/graph/common/GenericGraphZone.d.ts +46 -0
  22. package/dist/components/graph/common/LoadingSpinner.d.ts +11 -0
  23. package/dist/components/graph/common/RefLine.d.ts +17 -0
  24. package/dist/components/graph/common/Timeline.d.ts +6 -0
  25. package/dist/components/graph/dnd/DndContainer.d.ts +44 -0
  26. package/dist/components/graph/refzone/Icon.d.ts +39 -0
  27. package/dist/components/graph/refzone/OverflowCount.d.ts +7 -0
  28. package/dist/components/graph/refzone/RefName.d.ts +6 -0
  29. package/dist/components/graph/refzone/RefNode.d.ts +36 -0
  30. package/dist/components/graph/refzone/RefNodes.d.ts +31 -0
  31. package/dist/components/graph/refzone/RefPopover.d.ts +15 -0
  32. package/dist/components/graph/refzone/RefZone.d.ts +54 -0
  33. package/dist/components/graph/rowRenderers/ChangesZoneRow.d.ts +8 -0
  34. package/dist/components/graph/rowRenderers/CommitAuthorZoneRow.d.ts +7 -0
  35. package/dist/components/graph/rowRenderers/CommitDateTimeZoneRow.d.ts +10 -0
  36. package/dist/components/graph/rowRenderers/CommitMessageZoneRow.d.ts +20 -0
  37. package/dist/components/graph/rowRenderers/CommitShaZoneRow.d.ts +10 -0
  38. package/dist/components/graph/rowRenderers/CommitZoneRow.d.ts +19 -0
  39. package/dist/components/graph/rowRenderers/CommitsInfoRow.d.ts +25 -0
  40. package/dist/components/graph/rowRenderers/RefZoneRow.d.ts +29 -0
  41. package/dist/components/graph/rowRenderers/TimelineMsgRow.d.ts +7 -0
  42. package/dist/components/graph/shared/Avatar.d.ts +13 -0
  43. package/dist/components/graph/shared/FileDiffTypeIcon.d.ts +13 -0
  44. package/dist/components/graph/shared/InlineWorkDirSummary.d.ts +12 -0
  45. package/dist/components/graph/shared/TinyFilesReadout.d.ts +13 -0
  46. package/dist/components/resizable/Resizable.d.ts +78 -0
  47. package/dist/domain/color/ColorHelpers.d.ts +22 -0
  48. package/dist/domain/commit/CommitConstants.d.ts +10 -0
  49. package/dist/domain/commit/CommitHelpers.d.ts +5 -0
  50. package/dist/domain/commit/CommitTypes.d.ts +9 -0
  51. package/dist/domain/cssvariable/CssVariableConstants.d.ts +259 -0
  52. package/dist/domain/cssvariable/CssVariableHelpers.d.ts +4 -0
  53. package/dist/domain/date/DateHelper.d.ts +7 -0
  54. package/dist/domain/diff/DiffConstants.d.ts +5 -0
  55. package/dist/domain/diff/DiffTypes.d.ts +9 -0
  56. package/dist/domain/edge/EdgeHelpers.d.ts +9 -0
  57. package/dist/domain/generic/GenericTypes.d.ts +34 -0
  58. package/dist/domain/graph/GraphConstants.d.ts +146 -0
  59. package/dist/domain/graph/GraphHelpers.d.ts +71 -0
  60. package/dist/domain/graph/GraphTypes.d.ts +370 -0
  61. package/dist/domain/hostingservice/HostingServiceTypes.d.ts +9 -0
  62. package/dist/domain/language/LanguageConstants.d.ts +3 -0
  63. package/dist/domain/language/LanguageHelpers.d.ts +1 -0
  64. package/dist/domain/language/LanguageTypes.d.ts +1 -0
  65. package/dist/domain/reactvirtualized/ReactVirtualizedHelpers.d.ts +11 -0
  66. package/dist/domain/ref/RefConstants.d.ts +5 -0
  67. package/dist/domain/ref/RefTypes.d.ts +2 -0
  68. package/dist/domain/ui/UiTypes.d.ts +28 -0
  69. package/dist/domain/workdir/WorkDirTypes.d.ts +7 -0
  70. package/dist/index.d.ts +8 -2
  71. package/dist/index.js +1 -1
  72. package/dist/styles.css +2 -1
  73. package/dist/utils/MathUtils.d.ts +1 -0
  74. package/dist/utils/TextFormatting.d.ts +2 -0
  75. package/package.json +86 -82
@@ -0,0 +1,54 @@
1
+ import type { ReactElement } from 'react';
2
+ import React from 'react';
3
+ import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
4
+ import type { Style } from '../../../domain/generic/GenericTypes';
5
+ import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRefGroup, IncludeOnlyRefsById, IncludeOnlyRemotesByName, OnClickRef, OnDoubleClickRef, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefGroupContexts, RefMetadataById, RefMetadataType, RefTargetFunc } from '../../../domain/graph/GraphTypes';
6
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
7
+ type RefZoneDefaultProps = {
8
+ style: Style;
9
+ };
10
+ type RefZoneProps = {
11
+ column: number;
12
+ context: GraphItemContext | null;
13
+ showGhostRefsOnRowHover: boolean;
14
+ getExternalIcon: GetExternalIcon;
15
+ hasActive: boolean;
16
+ hasRefs: boolean;
17
+ hasTimeline: boolean;
18
+ hoveredRefGroup: GraphRefGroup | null;
19
+ hoveredRefZoneSha?: Sha;
20
+ includeOnlyRefsById: IncludeOnlyRefsById;
21
+ includeOnlyRemotesByName: IncludeOnlyRemotesByName;
22
+ isContainerWindowFocused: boolean;
23
+ isInUnsupportedRebase: boolean;
24
+ isSingleSelected: boolean;
25
+ numGraphColumns: number;
26
+ onClickRef: OnClickRef;
27
+ onDoubleClickRef: OnDoubleClickRef;
28
+ onMissingRefMetadata: GetMissingRefMetadata;
29
+ onToggleRefNodesShown: OnToggleRefNodesShown;
30
+ refGroupContexts: RefGroupContexts | null;
31
+ refGroupsByName: GraphRefGroup[];
32
+ refMetadata: RefMetadataById | null;
33
+ refNodeHovered: OnRefNodeHovered;
34
+ refNodeUnhovered: OnRefNodeUnhovered;
35
+ refZoneHovered: OnRefZoneHovered;
36
+ refZoneUnhovered: OnRefZoneUnhovered;
37
+ sha: Sha;
38
+ showContextMenuForGroupedRef: OnRefZoneContextMenu;
39
+ enabledRefMetadataTypes: RefMetadataType[];
40
+ style: Style;
41
+ translate: TranslationFn;
42
+ type: CommitType;
43
+ width: number;
44
+ };
45
+ export default class RefZone extends React.PureComponent<RefZoneProps> {
46
+ refPopoverTarget?: Element;
47
+ isContextMenuShown: boolean;
48
+ static defaultProps: RefZoneDefaultProps;
49
+ componentWillReceiveProps(nextProps: RefZoneProps): void;
50
+ getRefPopoverTarget: RefTargetFunc;
51
+ onCustomToggleRefNodesShown: OnToggleRefNodesShown;
52
+ render(): ReactElement<any>;
53
+ }
54
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps, RowStatsConstraints } from '../../../domain/graph/GraphTypes';
3
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps {
5
+ rowStatsConstraints: RowStatsConstraints;
6
+ }
7
+ declare const makeChangesZoneRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
8
+ export default makeChangesZoneRowRenderer;
@@ -0,0 +1,7 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps } from '../../../domain/graph/GraphTypes';
3
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps {
5
+ }
6
+ declare const makeCommitAuthorZoneRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
7
+ export default makeCommitAuthorZoneRowRenderer;
@@ -0,0 +1,10 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps, OnFormatCommitDateTime } from '../../../domain/graph/GraphTypes';
3
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
+ interface DispatchProps {
5
+ formatCommitDateTime: OnFormatCommitDateTime;
6
+ }
7
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps, DispatchProps {
8
+ }
9
+ declare const makeCommitDateTimeZoneRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
10
+ export default makeCommitDateTimeZoneRowRenderer;
@@ -0,0 +1,20 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps, OnCommitMessageChange } from '../../../domain/graph/GraphTypes';
3
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
+ import type { OnBlur, OnComponentWillUnmount, OnFocus } from '../../../domain/ui/UiTypes';
5
+ import type { WorkDirStats } from '../../../domain/workdir/WorkDirTypes';
6
+ interface StateProps {
7
+ isCommitting: boolean;
8
+ pendingCommitMessageSummary: string;
9
+ workDirStats?: WorkDirStats;
10
+ }
11
+ interface DispatchProps {
12
+ onBlurWipNodeInput: OnBlur;
13
+ onWipNodeInputWillUnmount: OnComponentWillUnmount;
14
+ onFocusWipNodeInput: OnFocus;
15
+ onMessageChange: OnCommitMessageChange;
16
+ }
17
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps, StateProps, DispatchProps {
18
+ }
19
+ declare const makeCommitMessageZoneRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
20
+ export default makeCommitMessageZoneRowRenderer;
@@ -0,0 +1,10 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps } from '../../../domain/graph/GraphTypes';
3
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
+ interface OwnProps {
5
+ shaLength?: number | null;
6
+ }
7
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps, OwnProps {
8
+ }
9
+ declare const makeCommitShaZoneRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
10
+ export default makeCommitShaZoneRowRenderer;
@@ -0,0 +1,19 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { AvatarUrlByEmail, ColumnColorByColumn, CommonGraphRowDispatchProps, CommonGraphRowProps, GetMissingAvatar, NodeOffsetByColumn, NodeOpacityByColumn } from '../../../domain/graph/GraphTypes';
3
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
+ interface OwnProps {
5
+ avatarUrlByEmail: AvatarUrlByEmail;
6
+ onMissingAvatar: GetMissingAvatar;
7
+ columnColorByColumn: ColumnColorByColumn;
8
+ leftGutterBoxShadowAlpha: number;
9
+ leftGutterWidth: number;
10
+ nodeOffsetByColumn: NodeOffsetByColumn;
11
+ nodeOpacityByColumn: NodeOpacityByColumn;
12
+ rightGutterBoxShadowAlpha: number;
13
+ rightGutterWidth: number;
14
+ scrollLeft: number;
15
+ }
16
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps, OwnProps {
17
+ }
18
+ declare function makeCommitZoneRowRenderer(props: Props, getKeyForCell: GetRealKeyForCellFunc): GridCellRenderer;
19
+ export default makeCommitZoneRowRenderer;
@@ -0,0 +1,25 @@
1
+ import type { ReactElement } from 'react';
2
+ import React from 'react';
3
+ import type { CssVariables, Style } from '../../../domain/generic/GenericTypes';
4
+ import type { GraphZoneType } from '../../../domain/graph/GraphConstants';
5
+ import type { GetExternalIcon } from '../../../domain/graph/GraphTypes';
6
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
7
+ import EntireRowSpan from '../common/EntireRowSpan';
8
+ type Props = {
9
+ cssVariables: CssVariables;
10
+ currentCommits: number;
11
+ getExternalIcon: GetExternalIcon;
12
+ graphZoneType: GraphZoneType;
13
+ hasMoreCommits: boolean;
14
+ height: number;
15
+ isLoadingRows: boolean;
16
+ scrollTop: number;
17
+ style: Style;
18
+ translate: TranslationFn;
19
+ zoneContentWidth: number;
20
+ zoneWidth: number;
21
+ };
22
+ declare class CommitsInfoRow extends React.Component<Props> {
23
+ render(): ReactElement<typeof EntireRowSpan>;
24
+ }
25
+ export default CommitsInfoRow;
@@ -0,0 +1,29 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { Sha } from '../../../domain/commit/CommitTypes';
3
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps, GetMissingRefMetadata, IncludeOnlyRefsById, IncludeOnlyRemotesByName, OnClickRef, OnDoubleClickRef, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefMetadataById } from '../../../domain/graph/GraphTypes';
4
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
5
+ interface OwnProps {
6
+ height: number;
7
+ includeOnlyRefsById: IncludeOnlyRefsById;
8
+ includeOnlyRemotesByName: IncludeOnlyRemotesByName;
9
+ }
10
+ interface StateProps {
11
+ isInUnsupportedRebase: boolean;
12
+ hoveredRefZoneSha?: Sha;
13
+ refMetadataById?: RefMetadataById | null;
14
+ }
15
+ interface DispatchProps {
16
+ onClickRef: OnClickRef;
17
+ onDoubleClickRef: OnDoubleClickRef;
18
+ onMissingRefMetadata: GetMissingRefMetadata;
19
+ onShowContextMenuForGroupedRef: OnRefZoneContextMenu;
20
+ onRefNodeHovered: OnRefNodeHovered;
21
+ onRefNodeUnhovered: OnRefNodeUnhovered;
22
+ onRefZoneHovered: OnRefZoneHovered;
23
+ onRefZoneUnhovered: OnRefZoneUnhovered;
24
+ onToggleRefNodesShown: OnToggleRefNodesShown;
25
+ }
26
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps, OwnProps, StateProps, DispatchProps {
27
+ }
28
+ declare const makeRefZoneRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
29
+ export default makeRefZoneRowRenderer;
@@ -0,0 +1,7 @@
1
+ import type { GridCellRenderer } from 'react-virtualized';
2
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps } from '../../../domain/graph/GraphTypes';
3
+ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
4
+ interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps {
5
+ }
6
+ declare const makeTimelineMsgRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
7
+ export default makeTimelineMsgRowRenderer;
@@ -0,0 +1,13 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { GraphItemContext } from '../../../domain/graph/GraphTypes';
3
+ type Props = {
4
+ classes?: string[];
5
+ context: GraphItemContext | null;
6
+ divStyle?: Object;
7
+ height?: number;
8
+ size: number;
9
+ url: string;
10
+ width?: number;
11
+ };
12
+ declare function Avatar({ classes, context, divStyle, height, size, url, width }: Props): ReactElement<'div'>;
13
+ export default Avatar;
@@ -0,0 +1,13 @@
1
+ import type { ReactElement } from 'react';
2
+ import React from 'react';
3
+ import type { Style } from '../../../domain/generic/GenericTypes';
4
+ import type { GetExternalIcon } from '../../../domain/graph/GraphTypes';
5
+ type Props = {
6
+ style: Style;
7
+ fileDiffType: string;
8
+ getExternalIcon: GetExternalIcon;
9
+ };
10
+ declare class FileDiffTypeIcon extends React.Component<Props> {
11
+ render(): ReactElement<'span'> | null;
12
+ }
13
+ export default FileDiffTypeIcon;
@@ -0,0 +1,12 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { DiffCountStats } from '../../../domain/diff/DiffTypes';
3
+ import type { GetExternalIcon } from '../../../domain/graph/GraphTypes';
4
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
5
+ type Props = {
6
+ diffStats?: DiffCountStats;
7
+ fileNodeListStyle?: boolean;
8
+ getExternalIcon: GetExternalIcon;
9
+ translate: TranslationFn;
10
+ };
11
+ declare function InlineWorkDirSummary({ diffStats, fileNodeListStyle, getExternalIcon, translate, }: Props): ReactElement<'span'>;
12
+ export default InlineWorkDirSummary;
@@ -0,0 +1,13 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { DiffType } from '../../../domain/diff/DiffTypes';
3
+ import type { GetExternalIcon } from '../../../domain/graph/GraphTypes';
4
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
5
+ type Props = {
6
+ count: number;
7
+ diffType: DiffType;
8
+ fileNodeListStyle?: boolean;
9
+ getExternalIcon: GetExternalIcon;
10
+ translate: TranslationFn;
11
+ };
12
+ declare function TinyFilesReadout({ count, diffType, getExternalIcon, fileNodeListStyle, translate, }: Props): ReactElement<'span'>;
13
+ export default TinyFilesReadout;
@@ -0,0 +1,78 @@
1
+ /// <reference types="node" />
2
+ import type { HandleStyles, ResizeCallback, ResizeStartCallback } from 're-resizable';
3
+ import type { ReactElement, ReactNode } from 'react';
4
+ import React from 'react';
5
+ import type { Style } from '../../domain/generic/GenericTypes';
6
+ import type { TranslationFn } from '../../domain/language/LanguageTypes';
7
+ import type { OnResize, OnResizeEnd, OnResizeFromPropChange, OnResizeStart, OnWheel } from '../../domain/ui/UiTypes';
8
+ declare const resizableEdges: {
9
+ bottom: string;
10
+ left: string;
11
+ right: string;
12
+ top: string;
13
+ };
14
+ type Constraints = {
15
+ min: number;
16
+ max: number;
17
+ };
18
+ interface Dimensions {
19
+ height: number;
20
+ width: number;
21
+ }
22
+ type ResizableEdges = keyof typeof resizableEdges;
23
+ type DefaultProps = {
24
+ heightConstraints: Constraints;
25
+ className: string;
26
+ enable: boolean;
27
+ resizeContentClassName: string;
28
+ resizeHandleClassName: string;
29
+ style: Style;
30
+ wrapperStyle: Style;
31
+ translate: TranslationFn;
32
+ wrapChildrenInDivContainer?: boolean;
33
+ widthConstraints: Constraints;
34
+ };
35
+ type Props = {
36
+ children?: ReactNode;
37
+ className: string;
38
+ enable?: boolean;
39
+ handleStyles?: HandleStyles;
40
+ height: number;
41
+ heightConstraints: Constraints;
42
+ id?: string;
43
+ onResize?: OnResize;
44
+ onResizeEnd?: OnResizeEnd;
45
+ onResizeFromPropChange?: OnResizeFromPropChange;
46
+ onResizeStart?: OnResizeStart;
47
+ resizeContentClassName: string;
48
+ resizeEdge: ResizableEdges;
49
+ resizeHandleClassName: string;
50
+ style: Style;
51
+ wrapperStyle: Style;
52
+ translate: TranslationFn;
53
+ width?: number;
54
+ wrapChildrenInDivContainer?: boolean;
55
+ widthConstraints: Constraints;
56
+ };
57
+ interface State extends Dimensions {
58
+ enable: boolean;
59
+ horizontal: boolean;
60
+ initialHeight: number;
61
+ initialWidth: number;
62
+ resizing: boolean;
63
+ vertical: boolean;
64
+ isMouseWheeling: boolean;
65
+ }
66
+ export default class Resizable extends React.PureComponent<Props, State> {
67
+ static defaultProps: DefaultProps;
68
+ onWheelTimeOut?: NodeJS.Timeout;
69
+ isMouseWheeling: boolean;
70
+ constructor(props: Props);
71
+ componentWillReceiveProps(nextProps: Props): void;
72
+ _onResize: ResizeCallback;
73
+ _onResizeStart: ResizeStartCallback;
74
+ _onResizeEnd: ResizeCallback;
75
+ _onWheel: OnWheel;
76
+ render(): ReactElement<'div'>;
77
+ }
78
+ export {};
@@ -0,0 +1,22 @@
1
+ export declare const COLOR_WHITE = "#FFFFFF";
2
+ export declare const COLOR_BLACK = "#000000";
3
+ interface RGBA {
4
+ type: 'rgba';
5
+ r: number;
6
+ g: number;
7
+ b: number;
8
+ a: number;
9
+ }
10
+ interface HSLA {
11
+ type: 'hsla';
12
+ h: number;
13
+ s: number;
14
+ l: number;
15
+ a: number;
16
+ }
17
+ type Color = RGBA | HSLA;
18
+ export declare function parseHexColor(hex: string): Color | null;
19
+ export declare function parseColor(value: string): Color | null;
20
+ export declare function formatColor(color: Color): string;
21
+ export declare const getTextColor: (hexCode: string) => string;
22
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const commitNodeType = "commit-node";
2
+ export declare const mergeConflictNodeType = "merge-conflict-node";
3
+ export declare const mergeNodeType = "merge-node";
4
+ export declare const unsupportedRebaseWarningNodeType = "unsupported-rebase-warning-node";
5
+ export declare const stashNodeType = "stash-node";
6
+ export declare const workDirType = "work-dir-changes";
7
+ export declare enum CommitDateTimeSources {
8
+ RowEntry = "rowEntry",
9
+ Tooltip = "tooltip"
10
+ }
@@ -0,0 +1,5 @@
1
+ import type { Author, CommitType, Sha, ShortSha } from './CommitTypes';
2
+ export declare const hasPendingChanges: (type: CommitType) => boolean;
3
+ export declare const getShortSha: (sha?: Sha | null, shaLength?: number) => ShortSha;
4
+ export declare function getCommitMessageDescription(commitMessage: string, lineEnding?: string): string;
5
+ export declare function getCommitMessageCoauthors(commitMessageDescription: string): Author[];
@@ -0,0 +1,9 @@
1
+ import type { commitNodeType, mergeConflictNodeType, mergeNodeType, stashNodeType, unsupportedRebaseWarningNodeType, workDirType } from './CommitConstants';
2
+ export type Sha = string;
3
+ export type ShortSha = string;
4
+ export type WorkDirType = typeof mergeConflictNodeType | typeof unsupportedRebaseWarningNodeType | typeof workDirType;
5
+ export type CommitType = typeof commitNodeType | typeof mergeNodeType | typeof stashNodeType | WorkDirType;
6
+ export type Author = {
7
+ name: string;
8
+ email: string;
9
+ };
@@ -0,0 +1,259 @@
1
+ export declare const NUM_COLUMNS_SUPPORTED_PROP_NAME = "--num-columns-supported";
2
+ export declare const DEFAULT_CSS_VARIABLES: {
3
+ '--graph-row-height': string;
4
+ '--font-default': string;
5
+ '--font-monospace': string;
6
+ '--font-size': string;
7
+ '--fs-1': string;
8
+ '--fs-2': string;
9
+ '--fs-3': string;
10
+ '--fs-4': string;
11
+ '--fs-5': string;
12
+ '--fs-6': string;
13
+ '--fs-7': string;
14
+ '--button-xs-padding-y': string;
15
+ '--button-xs-padding-x': string;
16
+ '--button-small-padding-y': string;
17
+ '--button-small-padding-x': string;
18
+ '--button-medium-padding-y': string;
19
+ '--button-medium-padding-x': string;
20
+ '--button-large-padding-y': string;
21
+ '--button-large-padding-x': string;
22
+ '--button-radius': string;
23
+ '--input-radius': string;
24
+ '--about-modal-bg-color': string;
25
+ '--about-modal-width': string;
26
+ '--label__purple-color-f25': string;
27
+ '--registration-modal-width': string;
28
+ '--file-history-header-height': string;
29
+ '--shop-modal-width': string;
30
+ '--shop-modal-height': string;
31
+ '--scrollable-scrollbar-thickness': string;
32
+ '--mini-commit-col-left-width': string;
33
+ '--mini-commit-col-middle-padding': string;
34
+ '--mini-commit-col-right-width': string;
35
+ '--fuzzy-finder-repo-color': string;
36
+ '--fuzzy-finder-checkout-color': string;
37
+ '--fuzzy-finder-history-color': string;
38
+ '--handle-width': string;
39
+ '--shadow-color': string;
40
+ '--graph-color-5-f10': string;
41
+ '--graph-color-6-f10': string;
42
+ '--graph-color-7-f10': string;
43
+ '--graph-color-8-f10': string;
44
+ '--graph-color-9-f10': string;
45
+ '--graph-color-0-f10': string;
46
+ '--graph-color-1-f10': string;
47
+ '--graph-color-2-f10': string;
48
+ '--graph-color-3-f10': string;
49
+ '--graph-color-4-f10': string;
50
+ '--graph-color-5-f50': string;
51
+ '--graph-color-6-f50': string;
52
+ '--graph-color-7-f50': string;
53
+ '--graph-color-8-f50': string;
54
+ '--graph-color-9-f50': string;
55
+ '--graph-color-0-f50': string;
56
+ '--graph-color-1-f50': string;
57
+ '--graph-color-2-f50': string;
58
+ '--graph-color-3-f50': string;
59
+ '--graph-color-4-f50': string;
60
+ '--axo-orange': string;
61
+ '--axo-ink': string;
62
+ '--axo-cream': string;
63
+ '--axo-yellow': string;
64
+ '--info-bar-height': string;
65
+ '--left-panel-header-height': string;
66
+ '--toolbar-height': string;
67
+ '--toolbar-border': string;
68
+ '--toolbar-item-height': string;
69
+ '--expand-detail-panel-transition': string;
70
+ '--conflict-left-color': string;
71
+ '--conflict-right-color': string;
72
+ '--conflict-output-color': string;
73
+ '--graph-color-5-bg50': string;
74
+ '--graph-color-6-bg50': string;
75
+ '--graph-color-7-bg50': string;
76
+ '--graph-color-8-bg50': string;
77
+ '--graph-color-9-bg50': string;
78
+ '--graph-color-0-bg50': string;
79
+ '--graph-color-1-bg50': string;
80
+ '--graph-color-2-bg50': string;
81
+ '--graph-color-3-bg50': string;
82
+ '--graph-color-4-bg50': string;
83
+ '--graph-color-5-bg45': string;
84
+ '--graph-color-6-bg45': string;
85
+ '--graph-color-7-bg45': string;
86
+ '--graph-color-8-bg45': string;
87
+ '--graph-color-9-bg45': string;
88
+ '--graph-color-0-bg45': string;
89
+ '--graph-color-1-bg45': string;
90
+ '--graph-color-2-bg45': string;
91
+ '--graph-color-3-bg45': string;
92
+ '--graph-color-4-bg45': string;
93
+ '--graph-color-5-bg25': string;
94
+ '--graph-color-6-bg25': string;
95
+ '--graph-color-7-bg25': string;
96
+ '--graph-color-8-bg25': string;
97
+ '--graph-color-9-bg25': string;
98
+ '--graph-color-0-bg25': string;
99
+ '--graph-color-1-bg25': string;
100
+ '--graph-color-2-bg25': string;
101
+ '--graph-color-3-bg25': string;
102
+ '--graph-color-4-bg25': string;
103
+ '--graph-color-5-bg15': string;
104
+ '--graph-color-6-bg15': string;
105
+ '--graph-color-7-bg15': string;
106
+ '--graph-color-8-bg15': string;
107
+ '--graph-color-9-bg15': string;
108
+ '--graph-color-0-bg15': string;
109
+ '--graph-color-1-bg15': string;
110
+ '--graph-color-2-bg15': string;
111
+ '--graph-color-3-bg15': string;
112
+ '--graph-color-4-bg15': string;
113
+ '--semi-bold': string;
114
+ '--bold': string;
115
+ '--num-columns-supported': string;
116
+ '--column-0-color': string;
117
+ '--column-1-color': string;
118
+ '--column-2-color': string;
119
+ '--column-3-color': string;
120
+ '--column-4-color': string;
121
+ '--column-5-color': string;
122
+ '--column-6-color': string;
123
+ '--column-7-color': string;
124
+ '--column-8-color': string;
125
+ '--column-9-color': string;
126
+ '--red': string;
127
+ '--orange': string;
128
+ '--yellow': string;
129
+ '--green': string;
130
+ '--blue': string;
131
+ '--ltblue': string;
132
+ '--app__bg0': string;
133
+ '--toolbar__bg0': string;
134
+ '--toolbar__bg1': string;
135
+ '--toolbar__bg2': string;
136
+ '--panel__bg0': string;
137
+ '--panel__bg1': string;
138
+ '--panel__bg2': string;
139
+ '--input__bg': string;
140
+ '--input-bg-warn-color': string;
141
+ '--panel-border': string;
142
+ '--section-border': string;
143
+ '--subtle-border': string;
144
+ '--modal-overlay-color': string;
145
+ '--graph-color-0': string;
146
+ '--graph-color-1': string;
147
+ '--graph-color-2': string;
148
+ '--graph-color-3': string;
149
+ '--graph-color-4': string;
150
+ '--graph-color-5': string;
151
+ '--graph-color-6': string;
152
+ '--graph-color-7': string;
153
+ '--graph-color-8': string;
154
+ '--graph-color-9': string;
155
+ '--text-selected': string;
156
+ '--text-selected-row': string;
157
+ '--text-dimmed': string;
158
+ '--text-dimmed-selected': string;
159
+ '--text-normal': string;
160
+ '--text-secondary': string;
161
+ '--text-disabled': string;
162
+ '--text-accent': string;
163
+ '--text-inverse': string;
164
+ '--text-bright': string;
165
+ '--btn-text': string;
166
+ '--btn-text-hover': string;
167
+ '--default-border': string;
168
+ '--default-bg': string;
169
+ '--default-hover': string;
170
+ '--default-border-hover': string;
171
+ '--primary-border': string;
172
+ '--primary-bg': string;
173
+ '--primary-hover': string;
174
+ '--success-border': string;
175
+ '--success-bg': string;
176
+ '--success-hover': string;
177
+ '--warning-border': string;
178
+ '--warning-bg': string;
179
+ '--warning-hover': string;
180
+ '--danger-border': string;
181
+ '--danger-bg': string;
182
+ '--danger-hover': string;
183
+ '--hover-row': string;
184
+ '--hover-row-border': string;
185
+ '--danger-row': string;
186
+ '--selected-row': string;
187
+ '--selected-row-border': string;
188
+ '--warning-row': string;
189
+ '--droppable': string;
190
+ '--drop-target': string;
191
+ '--input--disabled': string;
192
+ '--link-color': string;
193
+ '--link-color-bright': string;
194
+ '--form-control-focus': string;
195
+ '--scroll-thumb-border': string;
196
+ '--scroll-thumb-bg': string;
197
+ '--scroll-thumb-bg-light': string;
198
+ '--wip-status': string;
199
+ '--card__bg': string;
200
+ '--card-shadow': string;
201
+ '--statusbar__warning-bg': string;
202
+ '--label__yellow-color': string;
203
+ '--label__light-blue-color': string;
204
+ '--label__purple-color': string;
205
+ '--filtering': string;
206
+ '--soloing': string;
207
+ '--checked-out': string;
208
+ '--soloed': string;
209
+ '--filter-match': string;
210
+ '--clone__progress': string;
211
+ '--toolbar__prompt': string;
212
+ '--verified': string;
213
+ '--unverified': string;
214
+ '--drop-sort-border': string;
215
+ '--terminal__repo-name-color': string;
216
+ '--terminal__repo-branch-color': string;
217
+ '--terminal__repo-tag-color': string;
218
+ '--terminal__repo-upstream-color': string;
219
+ '--terminal__background': string;
220
+ '--terminal__cursor': string;
221
+ '--terminal__cursorAccent': string;
222
+ '--terminal__foreground': string;
223
+ '--terminal__selection': string;
224
+ '--terminal__black': string;
225
+ '--terminal__red': string;
226
+ '--terminal__green': string;
227
+ '--terminal__yellow': string;
228
+ '--terminal__blue': string;
229
+ '--terminal__magenta': string;
230
+ '--terminal__cyan': string;
231
+ '--terminal__white': string;
232
+ '--terminal__brightBlack': string;
233
+ '--terminal__brightRed': string;
234
+ '--terminal__brightGreen': string;
235
+ '--terminal__brightYellow': string;
236
+ '--terminal__brightBlue': string;
237
+ '--terminal__brightMagenta': string;
238
+ '--terminal__brightCyan': string;
239
+ '--terminal__brightWhite': string;
240
+ '--code-bg': string;
241
+ '--code-foreground': string;
242
+ '--code-blame-color-0': string;
243
+ '--code-blame-color-1': string;
244
+ '--code-blame-color-2': string;
245
+ '--code-blame-color-3': string;
246
+ '--code-blame-color-4': string;
247
+ '--code-blame-color-5': string;
248
+ '--code-blame-color-6': string;
249
+ '--code-blame-color-7': string;
250
+ '--code-blame-color-8': string;
251
+ '--code-blame-color-9': string;
252
+ '--added-line': string;
253
+ '--deleted-line': string;
254
+ '--modified-line': string;
255
+ '--conflict-info-color': string;
256
+ '--conflict-left-border-color': string;
257
+ '--conflict-right-border-color': string;
258
+ '--conflict-output-border-color': string;
259
+ };
@@ -0,0 +1,4 @@
1
+ import type { CssVariables } from '../generic/GenericTypes';
2
+ export declare function columnToColorPropName(column: number): string;
3
+ export declare function validateAndMergeCssVariablesWithDefaults(cssVariables?: CssVariables): CssVariables;
4
+ export declare function getStyleStringFromCssVariables(cssVariables: CssVariables): string;