@gitkraken/gitkraken-components 11.0.1 → 13.0.0-vnext.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.
- package/CHANGELOG.md +4 -0
- package/dist/components/dnd/DndContainer.d.ts +1 -1
- package/dist/components/graph/GraphContainer.d.ts +3 -3
- package/dist/components/graph/GraphScrollMarker.d.ts +1 -1
- package/dist/components/graph/refzone/CreateRefNode.d.ts +1 -2
- package/dist/components/graph/refzone/RefNode.d.ts +2 -2
- package/dist/components/graph/refzone/RefPopover.d.ts +3 -4
- package/dist/components/resizable/Resizable.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +17 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 11.0.2
|
|
4
|
+
- Fixed an issue with ref labels sometimes not rendering properly when hovered/unhovered. ([#367](https://github.com/gitkraken/GitKrakenComponents/pull/367))
|
|
5
|
+
- Added some data-test-classes for automated UI tests to find DOM nodes. ([#369](https://github.com/gitkraken/GitKrakenComponents/pull/369))
|
|
6
|
+
|
|
3
7
|
## 11.0.1
|
|
4
8
|
- Fixed tooltip css so that tooltips on the commit notes and ref label icons are no longer 0 opacity. (CSS classes were modified by previous `react-bootstrap` bump.) ([#366](https://github.com/gitkraken/GitKrakenComponents/pull/366))
|
|
5
9
|
|
|
@@ -27,7 +27,7 @@ declare class DndContainer extends React.PureComponent<DndContainerProps> {
|
|
|
27
27
|
childReactElementsById: ChildReactElementsById;
|
|
28
28
|
constructor(props: DndContainerProps);
|
|
29
29
|
componentDidMount(): void;
|
|
30
|
-
|
|
30
|
+
componentDidUpdate(nextProps: DndContainerProps): void;
|
|
31
31
|
componentWillUnmount(): void;
|
|
32
32
|
onDrop: DraggulaOnDrop;
|
|
33
33
|
isContainerCallback: DraggulaIsContainer;
|
|
@@ -138,6 +138,7 @@ type ComponentState = {
|
|
|
138
138
|
hoveredRefZoneSha?: Sha;
|
|
139
139
|
isLoadingRows: boolean;
|
|
140
140
|
numGraphColumns: number;
|
|
141
|
+
markerRowIndices: GraphMarkerRowIndices;
|
|
141
142
|
pendingCommitMessageSummary: string;
|
|
142
143
|
processedRows: ProcessedGraphRow[];
|
|
143
144
|
refIconsPosition: RefIconsPosition;
|
|
@@ -213,7 +214,6 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
213
214
|
missingRefsMetadataTimer?: NodeJS.Timeout;
|
|
214
215
|
pendingMissingRefsMetadata: RefsMissingMetadata;
|
|
215
216
|
requestedMissingRefsMetadata: RefMetadataRequestedById;
|
|
216
|
-
markerRowIndices: GraphMarkerRowIndices;
|
|
217
217
|
branchUpstreamRowIndices: number[];
|
|
218
218
|
downstreamsByUpstream: DownstreamsByUpstream;
|
|
219
219
|
timelinesInterval?: NodeJS.Timeout;
|
|
@@ -367,7 +367,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
367
367
|
isMacOSPlatform(): boolean;
|
|
368
368
|
isCommitListFiltered(): boolean;
|
|
369
369
|
getGraphColumnSettingFromZoneType(graphZone: GraphZone): GraphColumnSetting;
|
|
370
|
-
decorateWithHelmet: (container: ReactElement<'div'>, cssVariables: CssVariables, nonce?: string) =>
|
|
371
|
-
render():
|
|
370
|
+
decorateWithHelmet: (container: ReactElement<'div'>, cssVariables: CssVariables, nonce?: string) => React.JSX.Element;
|
|
371
|
+
render(): React.JSX.Element;
|
|
372
372
|
}
|
|
373
373
|
export default GraphContainer;
|
|
@@ -15,7 +15,7 @@ interface Props {
|
|
|
15
15
|
export default class ScrollMarker extends React.PureComponent<Props> {
|
|
16
16
|
canvas: HTMLCanvasElement | null;
|
|
17
17
|
componentDidMount(): void;
|
|
18
|
-
|
|
18
|
+
componentDidUpdate(nextProps: Props): void;
|
|
19
19
|
updateCanvas(nextProps?: Props): void;
|
|
20
20
|
render(): ReactElement<'canvas'>;
|
|
21
21
|
}
|
|
@@ -27,5 +27,4 @@ declare class CreateRefNode extends React.PureComponent<CreateRefNodeProps, Crea
|
|
|
27
27
|
onInputChange(shorthand?: RefShorthand): void;
|
|
28
28
|
render(): ReactElement<'div'>;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
export default _default;
|
|
30
|
+
export default CreateRefNode;
|
|
@@ -5,7 +5,7 @@ import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRef
|
|
|
5
5
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
6
6
|
import type { RefIconsPosition } from '../../../domain/ref/RefTypes';
|
|
7
7
|
import type { OnClick, OnContextMenu, OnDoubleClick } from '../../../domain/ui/UiTypes';
|
|
8
|
-
type RefNodeProps = {
|
|
8
|
+
export type RefNodeProps = {
|
|
9
9
|
enableShowHideRefsOptions: boolean;
|
|
10
10
|
getExternalIcon: GetExternalIcon;
|
|
11
11
|
groupIsHovered: boolean;
|
|
@@ -15,6 +15,7 @@ type RefNodeProps = {
|
|
|
15
15
|
isGhostRef: boolean;
|
|
16
16
|
isInUnsupportedRebase: boolean;
|
|
17
17
|
isRefGroupIncluded: boolean;
|
|
18
|
+
key?: string;
|
|
18
19
|
onClick: OnClickRef;
|
|
19
20
|
onContextMenu: OnRefZoneContextMenu;
|
|
20
21
|
onDoubleClick: OnDoubleClickRef;
|
|
@@ -53,4 +54,3 @@ export default class RefNode extends React.PureComponent<RefNodeProps> {
|
|
|
53
54
|
onDoubleClickMetadata: OnDoubleClickRefMetadata;
|
|
54
55
|
render(): ReactElement<any | 'span'>;
|
|
55
56
|
}
|
|
56
|
-
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
3
2
|
import type { OnMouseEnter, OnMouseLeave } from '../../../domain/ui/UiTypes';
|
|
4
3
|
type RefPopoverStyle = {
|
|
5
4
|
top: number;
|
|
@@ -12,5 +11,5 @@ type Props = {
|
|
|
12
11
|
onMouseLeave?: OnMouseLeave;
|
|
13
12
|
style?: RefPopoverStyle;
|
|
14
13
|
};
|
|
15
|
-
declare
|
|
16
|
-
export default
|
|
14
|
+
declare function RefPopover({ style, children, column, numGraphColumns, onMouseEnter, onMouseLeave, ...props }: Props): ReactElement<'div'>;
|
|
15
|
+
export default RefPopover;
|
|
@@ -68,7 +68,8 @@ export default class Resizable extends React.PureComponent<Props, State> {
|
|
|
68
68
|
onWheelTimeOut?: NodeJS.Timeout;
|
|
69
69
|
isMouseWheeling: boolean;
|
|
70
70
|
constructor(props: Props);
|
|
71
|
-
|
|
71
|
+
static getDerivedStateFromProps(props: Props, state: State): State;
|
|
72
|
+
componentDidUpdate(nextProps: Props): void;
|
|
72
73
|
_onResize: ResizeCallback;
|
|
73
74
|
_onResizeStart: ResizeStartCallback;
|
|
74
75
|
_onResizeEnd: ResizeCallback;
|