@gitkraken/gitkraken-components 10.1.26 → 10.1.28
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/commitzone/GraphAvatar.d.ts +4 -3
- package/dist/components/graph/refzone/RefNode.d.ts +1 -1
- package/dist/components/graph/shared/Avatar.d.ts +24 -6
- package/dist/domain/graph/GraphHelpers.d.ts +1 -0
- package/dist/domain/graph/GraphTypes.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ import type { ComponentTooltip } from '../../../domain/ui/UiTypes';
|
|
|
7
7
|
type Props = {
|
|
8
8
|
authorInitials?: string;
|
|
9
9
|
avatarUrl?: string | null;
|
|
10
|
-
|
|
10
|
+
className?: string;
|
|
11
11
|
column?: number;
|
|
12
12
|
context?: GraphItemContext | null;
|
|
13
13
|
cssVariables: CssVariables;
|
|
14
|
-
|
|
14
|
+
style?: Style;
|
|
15
15
|
fontSize: number;
|
|
16
16
|
height?: number;
|
|
17
17
|
minWidth?: number;
|
|
@@ -32,9 +32,10 @@ export default class GraphAvatar extends React.Component<Props, AvatarState> {
|
|
|
32
32
|
overlayTriggerRef?: OverlayTriggerExt | null;
|
|
33
33
|
constructor(props: Props);
|
|
34
34
|
componentDidUpdate(prevProps: Props, prevState: AvatarState): void;
|
|
35
|
-
|
|
35
|
+
getDefaultAvatar: (height: number, width: number, top: number) => ReactElement<'div'>;
|
|
36
36
|
ensureTooltipText: () => void;
|
|
37
37
|
setOverlayTriggerRef: RefCallback<OverlayTriggerExt>;
|
|
38
|
+
getAvatarClassName(): string;
|
|
38
39
|
render(): ReactElement<any>;
|
|
39
40
|
}
|
|
40
41
|
export {};
|
|
@@ -40,7 +40,7 @@ export default class RefNode extends React.PureComponent<RefNodeProps> {
|
|
|
40
40
|
getDecoratedRefIcon(key: string, icon: ReactElement<any>, metadataItem: RefMetadataItem, context?: GraphItemContext, className?: string): ReactElement<any>;
|
|
41
41
|
getPullRequestIconsAndTooltipsForRef(refMetadata: RefMetadataById | null, ref: GraphRef, existingPullRequestIds: Set<number>): ReactElement<any>[] | null;
|
|
42
42
|
getUpstreamIndicatorIconsAndTooltipsForRef(refMetadata: RefMetadataById | null, ref: GraphRef): ReactElement<any> | null;
|
|
43
|
-
getIssueIconsAndTooltipsForRef(refMetadata: RefMetadataById | null, ref: GraphRef): ReactElement<any>[] | null;
|
|
43
|
+
getIssueIconsAndTooltipsForRef(refMetadata: RefMetadataById | null, ref: GraphRef, existingIssuesIds: Set<string>): ReactElement<any>[] | null;
|
|
44
44
|
onContextMenu: OnContextMenu;
|
|
45
45
|
onClick: OnClick;
|
|
46
46
|
onClickMetadata: OnClickRefMetadata;
|
|
@@ -1,13 +1,31 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { GraphItemContext } from '../../../domain/graph/GraphTypes';
|
|
4
|
+
type DataURLBase64 = string;
|
|
3
5
|
type Props = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
avatarClassName?: string;
|
|
7
|
+
avatarStyle?: CSSProperties;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
context?: GraphItemContext | null;
|
|
11
|
+
style?: CSSProperties;
|
|
7
12
|
height?: number;
|
|
13
|
+
hint?: string;
|
|
8
14
|
size: number;
|
|
9
|
-
url
|
|
15
|
+
url?: string;
|
|
10
16
|
width?: number;
|
|
11
17
|
};
|
|
12
|
-
|
|
18
|
+
type State = {
|
|
19
|
+
dataURL?: DataURLBase64;
|
|
20
|
+
};
|
|
21
|
+
declare class Avatar extends React.Component<Props, State> {
|
|
22
|
+
private image;
|
|
23
|
+
constructor(props: Props);
|
|
24
|
+
componentDidMount(): void;
|
|
25
|
+
componentDidUpdate(prevProps: Props): void;
|
|
26
|
+
componentWillUnmount(): void;
|
|
27
|
+
private refreshImage;
|
|
28
|
+
startImgLoading(url: string): void;
|
|
29
|
+
render(): ReactElement<any>;
|
|
30
|
+
}
|
|
13
31
|
export default Avatar;
|
|
@@ -13,6 +13,7 @@ export declare const debounceFrame: (func: DebouncableFn) => DebouncedFn;
|
|
|
13
13
|
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
|
+
export declare function hasScrolledToBottom(htmlElement: HTMLElement): boolean;
|
|
16
17
|
export declare function parseContext(context?: GraphItemContext | null): string | null;
|
|
17
18
|
export declare function getRowStatsConstraints(stats: number[]): RowStatsConstraints;
|
|
18
19
|
export declare function getOrAskForRefMetadata(ref: GraphRef, refMetadata: RefMetadataById | undefined, onMissingRefMetadata: GetMissingRefMetadata, refMetadataType?: RefMetadataType): RefMetadata | BaseMetadata | BaseMetadata[] | null | undefined;
|