@gitkraken/gitkraken-components 10.2.5 → 10.2.6
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/components/graph/GraphContainer.d.ts +5 -2
- package/dist/components/graph/common/ScrollbarContainer.d.ts +7 -1
- package/dist/components/graph/shared/Avatar.d.ts +1 -0
- package/dist/domain/graph/GraphConstants.d.ts +1 -0
- package/dist/domain/graph/GraphHelpers.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -115,7 +115,7 @@ export interface DispatchProps {
|
|
|
115
115
|
onSettingsClick?: OnSettingsClick;
|
|
116
116
|
onSelectGraphRows?: OnSelectGraphRows;
|
|
117
117
|
onScrollForZone?: OnGraphScrollForZone;
|
|
118
|
-
|
|
118
|
+
onScrollToRowCausedUpdateForFirstColumn?: OnGraphScrollForZone;
|
|
119
119
|
onShowMoreCommits?: OnShowMoreCommits;
|
|
120
120
|
onGraphResized?: OnGraphResized;
|
|
121
121
|
onGraphVisibleRowsChanged?: OnGraphVisibleRowsChanged;
|
|
@@ -179,6 +179,7 @@ type HasMergeNodeChildBySha = {
|
|
|
179
179
|
declare class GraphContainer extends React.Component<Props, ComponentState> implements IGraphContainer {
|
|
180
180
|
graphContainerRef: any;
|
|
181
181
|
resizeObserver: ResizeObserver;
|
|
182
|
+
isMounted: boolean;
|
|
182
183
|
isSelectedBySha: IsSelectedBySha;
|
|
183
184
|
processedGraphRowBySha: ProcessedGraphRowBySha;
|
|
184
185
|
childrenBySha: ChildrenBySha;
|
|
@@ -264,7 +265,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
264
265
|
onShowMoreCommits: OnShowMoreCommits;
|
|
265
266
|
onScrollForZone: OnScrollForZone;
|
|
266
267
|
loadMoreCommitsIfNecessary(graphHeight: number, hasMoreCommits: boolean): void;
|
|
267
|
-
|
|
268
|
+
onScrollToRowCausedUpdateForFirstColumn: OnScrollForZone;
|
|
268
269
|
onCommitContextMenu: OnCommitContextMenu;
|
|
269
270
|
onRefContextMenu: OnRefZoneContextMenu;
|
|
270
271
|
selectCommits(shas: Sha[], includeToPrevSel: boolean, isAutoOrKeyScroll: boolean): void;
|
|
@@ -340,6 +341,8 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
340
341
|
updateRowStatsConstraints(): void;
|
|
341
342
|
updateTimelines(): void;
|
|
342
343
|
clearTimelines(): void;
|
|
344
|
+
clearTimelinesInterval(): void;
|
|
345
|
+
onTimelinesRefreshInterval: () => void;
|
|
343
346
|
cleanupSelections(): void;
|
|
344
347
|
getColumnColorByColumn(cssVariables: CssVariables): ColumnColorByColumn;
|
|
345
348
|
getNumGraphColumns(cssVariables: CssVariables): number;
|
|
@@ -15,7 +15,8 @@ export type Props = {
|
|
|
15
15
|
displayHorizontalScrollbar?: boolean;
|
|
16
16
|
displayVerticalScrollbar?: boolean;
|
|
17
17
|
forceHorizontalScrollbar?: boolean;
|
|
18
|
-
|
|
18
|
+
forceOnHorizontalWheel?: boolean;
|
|
19
|
+
forceOnVerticalWheel?: boolean;
|
|
19
20
|
forceVerticalScrollbar?: boolean;
|
|
20
21
|
height?: number;
|
|
21
22
|
onScroll?: ((params: ScrollParams) => any) | undefined;
|
|
@@ -24,16 +25,21 @@ export type Props = {
|
|
|
24
25
|
width?: number;
|
|
25
26
|
};
|
|
26
27
|
declare class ScrollbarContainer extends React.PureComponent<Props> {
|
|
28
|
+
resizeObserver: ResizeObserver;
|
|
29
|
+
scrollbarContainerRef: React.RefObject<any>;
|
|
27
30
|
horizontalScrollRef: React.RefObject<any>;
|
|
28
31
|
scrollabbleContentRef: React.RefObject<any>;
|
|
29
32
|
verticalScrollRef: React.RefObject<any>;
|
|
30
33
|
outerHorizontalScrollRef: React.RefObject<any>;
|
|
34
|
+
constructor(props: Props);
|
|
31
35
|
updateScrollbarValues(scrollLeft?: number, scrollTop?: number): void;
|
|
32
36
|
componentDidUpdate(prevProps: Props): void;
|
|
33
37
|
onHorizontalScroll(event: any): void;
|
|
34
38
|
onVerticalScroll(event: any): void;
|
|
35
39
|
onWheel(event: React.WheelEvent): void;
|
|
36
40
|
componentDidMount(): void;
|
|
41
|
+
componentWillUnmount(): void;
|
|
42
|
+
onContainerResized: import("../../../domain/graph/GraphHelpers").DebouncedFn;
|
|
37
43
|
hasHorizontalScroll(): boolean;
|
|
38
44
|
hasVerticalScroll(): boolean;
|
|
39
45
|
getHorizontalScrollbarTickness(): number;
|
|
@@ -21,6 +21,7 @@ type State = {
|
|
|
21
21
|
declare class Avatar extends React.Component<Props, State> {
|
|
22
22
|
private image;
|
|
23
23
|
constructor(props: Props);
|
|
24
|
+
static getDerivedStateFromProps(props: Props, state: State): State;
|
|
24
25
|
componentDidMount(): void;
|
|
25
26
|
componentDidUpdate(prevProps: Props): void;
|
|
26
27
|
componentWillUnmount(): void;
|
|
@@ -4,6 +4,7 @@ export declare const GRAPH_HEADER_ROW_HEIGHT = 26;
|
|
|
4
4
|
export declare const GRAPH_ROW_HEIGHT = 28;
|
|
5
5
|
export declare const GRAPH_ROW_INNER_HEIGHT = 22;
|
|
6
6
|
export declare const GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET: number;
|
|
7
|
+
export declare const GRAPH_ROW_PADDING: number;
|
|
7
8
|
export declare const COMMIT_NODE_MIN_ALPHA = 0.5;
|
|
8
9
|
export declare const COMMIT_ZONE_MARGIN_BOTTOM = 3;
|
|
9
10
|
export declare const COMMIT_ZONE_MARGIN_TOP = 3;
|
|
@@ -14,6 +14,7 @@ export type ThrottleableFn = (...args: any) => void;
|
|
|
14
14
|
export type ThrottledFn = (...args: any) => void;
|
|
15
15
|
export declare const throttle: (func: ThrottleableFn, time: number, initial?: number) => ThrottledFn;
|
|
16
16
|
export declare function hasScrolledToBottom(htmlElement: HTMLElement): boolean;
|
|
17
|
+
export declare function hasScrolledToRight(htmlElement: HTMLElement): boolean;
|
|
17
18
|
export declare function parseContext(context?: GraphItemContext | null): string | null;
|
|
18
19
|
export declare function getRowStatsConstraints(stats: number[]): RowStatsConstraints;
|
|
19
20
|
export declare function getOrAskForRefMetadata(ref: GraphRef, refMetadata: RefMetadataById | undefined, onMissingRefMetadata: GetMissingRefMetadata, refMetadataType?: RefMetadataType): RefMetadata | BaseMetadata | BaseMetadata[] | null | undefined;
|