@gitkraken/gitkraken-components 11.0.0-vnext.3 → 11.0.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 +8 -0
- package/README.md +14 -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 +2 -1
- package/dist/components/graph/refzone/RefPopover.d.ts +4 -3
- package/dist/components/resizable/Resizable.d.ts +1 -2
- package/dist/domain/hostingservice/HostingServiceTypes.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/styles.css +2 -2
- package/package.json +13 -16
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
## 11.0.0
|
|
4
|
+
- **BREAKING CHANGE:** Upgraded from `react`/`react-dom` 16 to 17.
|
|
5
|
+
- **BREAKING CHANGE:** Upgraded `react-bootstrap` from 0.32.4 to 2.10.7
|
|
6
|
+
- The full consequences of this on your project's CSS cannot be fully predicted, so you should test thoroughly. Known concerns which affected at least one project are listed below.
|
|
7
|
+
- The DIV wrapping the ref-creation text input no longer receives the `has-error` class, and the input no longer receives the `is-valid` class. Instead, the input receives the `is-invalid` class.
|
|
8
|
+
- Added `AzureDevopsIssueTrackerType` (in addition to the existing `AzureDevopsIssueTrackerType`)
|
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
# GitKraken Components
|
|
2
2
|
|
|
3
3
|
This is a shared module between the GitKraken app and GitLens to share React components.
|
|
4
|
+
|
|
5
|
+
## Requires resolution to React 17
|
|
6
|
+
> [!WARNING]
|
|
7
|
+
> In order for this package to work properly, you must resolve React to version 17 in your own project.
|
|
8
|
+
> The reason for this is because this library's react-bootstrap dependency lists React 16 as a dependency, and npm/yarn 1 do not provide a way for dependencies to lock sub-dependencies. Therefore it is up to your project to force this library's react-bootstrap to use react 17.
|
|
9
|
+
> The following is an example of what to put into your package.json:
|
|
10
|
+
```
|
|
11
|
+
"resolutions": {
|
|
12
|
+
"react": "17.0.2",
|
|
13
|
+
"react-dom": "17.0.2"
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
[CHANGELOG](./CHANGELOG.md)
|
|
@@ -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
|
+
UNSAFE_componentWillReceiveProps(nextProps: DndContainerProps): void;
|
|
31
31
|
componentWillUnmount(): void;
|
|
32
32
|
onDrop: DraggulaOnDrop;
|
|
33
33
|
isContainerCallback: DraggulaIsContainer;
|
|
@@ -138,7 +138,6 @@ type ComponentState = {
|
|
|
138
138
|
hoveredRefZoneSha?: Sha;
|
|
139
139
|
isLoadingRows: boolean;
|
|
140
140
|
numGraphColumns: number;
|
|
141
|
-
markerRowIndices: GraphMarkerRowIndices;
|
|
142
141
|
pendingCommitMessageSummary: string;
|
|
143
142
|
processedRows: ProcessedGraphRow[];
|
|
144
143
|
refIconsPosition: RefIconsPosition;
|
|
@@ -214,6 +213,7 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
214
213
|
missingRefsMetadataTimer?: NodeJS.Timeout;
|
|
215
214
|
pendingMissingRefsMetadata: RefsMissingMetadata;
|
|
216
215
|
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) => ReactElement<'div'>;
|
|
371
|
+
render(): ReactElement<'div'>;
|
|
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
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
19
19
|
updateCanvas(nextProps?: Props): void;
|
|
20
20
|
render(): ReactElement<'canvas'>;
|
|
21
21
|
}
|
|
@@ -27,4 +27,5 @@ declare class CreateRefNode extends React.PureComponent<CreateRefNodeProps, Crea
|
|
|
27
27
|
onInputChange(shorthand?: RefShorthand): void;
|
|
28
28
|
render(): ReactElement<'div'>;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
declare const _default: import("react-onclickoutside").WrapperClass<CreateRefNodeProps, typeof CreateRefNode>;
|
|
31
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { OnMouseEnter, OnMouseLeave } from '../../../domain/ui/UiTypes';
|
|
3
4
|
type RefPopoverStyle = {
|
|
4
5
|
top: number;
|
|
@@ -11,5 +12,5 @@ type Props = {
|
|
|
11
12
|
onMouseLeave?: OnMouseLeave;
|
|
12
13
|
style?: RefPopoverStyle;
|
|
13
14
|
};
|
|
14
|
-
declare
|
|
15
|
-
export default
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export default _default;
|
|
@@ -68,8 +68,7 @@ export default class Resizable extends React.PureComponent<Props, State> {
|
|
|
68
68
|
onWheelTimeOut?: NodeJS.Timeout;
|
|
69
69
|
isMouseWheeling: boolean;
|
|
70
70
|
constructor(props: Props);
|
|
71
|
-
|
|
72
|
-
componentDidUpdate(nextProps: Props): void;
|
|
71
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
73
72
|
_onResize: ResizeCallback;
|
|
74
73
|
_onResizeStart: ResizeStartCallback;
|
|
75
74
|
_onResizeEnd: ResizeCallback;
|
|
@@ -6,6 +6,7 @@ export type AzureDevopsHostingServiceType = 'azureDevops';
|
|
|
6
6
|
export type BitBucketHostingServiceType = 'bitbucket';
|
|
7
7
|
export type BitBucketServerHostingServiceType = 'bitbucketServer';
|
|
8
8
|
export type HostingServiceType = GitHubDotComHostingServiceType | GithubEnterpriseHostingServiceType | BitBucketHostingServiceType | BitBucketServerHostingServiceType | GitLabHostingServiceType | GitLabSelfHostingServiceType | AzureDevopsHostingServiceType;
|
|
9
|
+
export type AzureDevopsIssueTrackerType = AzureDevopsHostingServiceType;
|
|
9
10
|
export type GitHubIssueTrackerType = GitHubDotComHostingServiceType;
|
|
10
11
|
export type GithubEnterpriseIssueTrackerType = GithubEnterpriseHostingServiceType;
|
|
11
12
|
export type GitLabIssueTrackerType = GitLabHostingServiceType;
|
|
@@ -13,5 +14,5 @@ export type GitLabSelfHostedIssueTrackerType = GitLabSelfHostingServiceType;
|
|
|
13
14
|
export type JiraCloudIssueTrackerType = 'jiraCloud';
|
|
14
15
|
export type JiraServerIssueTrackerType = 'jiraServer';
|
|
15
16
|
export type TrelloIssueTrackerType = 'trello';
|
|
16
|
-
export type IssueTrackerType = GitHubIssueTrackerType | GithubEnterpriseIssueTrackerType | GitLabIssueTrackerType | GitLabSelfHostedIssueTrackerType | JiraCloudIssueTrackerType | JiraServerIssueTrackerType | TrelloIssueTrackerType;
|
|
17
|
+
export type IssueTrackerType = GitHubIssueTrackerType | GithubEnterpriseIssueTrackerType | GitLabIssueTrackerType | GitLabSelfHostedIssueTrackerType | JiraCloudIssueTrackerType | JiraServerIssueTrackerType | TrelloIssueTrackerType | AzureDevopsIssueTrackerType;
|
|
17
18
|
export declare function getHostingServiceName(hostingServiceType: HostingServiceType): string;
|