@gitkraken/gitkraken-components 13.0.0-vnext.7 → 13.0.0-vnext.8
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 +11 -8
- package/README.md +2 -0
- package/dist/components/graph/GraphContainer.d.ts +8 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
3
|
## 11.0.2
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
- Fixed an issue with ref labels sometimes not rendering properly when hovered/unhovered. ([#367](https://github.com/gitkraken/GitKrakenComponents/pull/367))
|
|
6
|
+
- Added some data-test-classes for automated UI tests to find DOM nodes. ([#369](https://github.com/gitkraken/GitKrakenComponents/pull/369))
|
|
6
7
|
|
|
7
8
|
## 11.0.1
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
- 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))
|
|
9
11
|
|
|
10
12
|
## 11.0.0
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
13
|
+
|
|
14
|
+
- **BREAKING CHANGE:** Upgraded from `react`/`react-dom` 16 to 17. ([#365](https://github.com/gitkraken/GitKrakenComponents/pull/365))
|
|
15
|
+
- **BREAKING CHANGE:** Upgraded `react-bootstrap` from 0.32.4 to 2.10.7 ([#365](https://github.com/gitkraken/GitKrakenComponents/pull/365))
|
|
16
|
+
- 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.
|
|
17
|
+
- 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.
|
|
18
|
+
- Added `AzureDevopsIssueTrackerType` (in addition to the existing `AzureDevopsIssueTrackerType`) ([262cbf8e](https://github.com/gitkraken/GitKrakenComponents/commit/262cbf8e81c8497676e93fde0d32fdf537fec706))
|
package/README.md
CHANGED
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
This is a shared module between the GitKraken app and GitLens to share React components.
|
|
4
4
|
|
|
5
5
|
## Requires resolution to React 17
|
|
6
|
+
|
|
6
7
|
> [!WARNING]
|
|
7
8
|
> In order for this package to work properly, you must resolve React to version 17 in your own project.
|
|
8
9
|
> 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
10
|
> The following is an example of what to put into your package.json:
|
|
11
|
+
|
|
10
12
|
```
|
|
11
13
|
"resolutions": {
|
|
12
14
|
"react": "17.0.2",
|
|
@@ -247,8 +247,15 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
247
247
|
onRefDrop: OnRefDrop;
|
|
248
248
|
onRefEndDrag: OnRefEndDrag;
|
|
249
249
|
onZoneRowClick(event: React.MouseEvent<any>, graphZoneType: GraphZoneType, sha: Sha): void;
|
|
250
|
-
getShiftSelectRange(currentSha: Sha, shiftSelectMode: ShiftSelectMode): Sha[];
|
|
250
|
+
getShiftSelectRange(currentSha: Sha, shiftSelectMode: ShiftSelectMode): Sha[] | undefined;
|
|
251
251
|
private getTopologicalPathBetween;
|
|
252
|
+
private getDirectTopologicalPathBetween;
|
|
253
|
+
/**
|
|
254
|
+
* Finds the nearest commit that is topologically reachable from the anchor commit.
|
|
255
|
+
* Searches in the appropriate direction based on whether the anchor is ahead or behind the target.
|
|
256
|
+
* This is used as a fallback when the clicked commit is not directly topologically reachable.
|
|
257
|
+
*/
|
|
258
|
+
private findNearestTopologicallyReachableCommit;
|
|
252
259
|
/**
|
|
253
260
|
* Validates that a path has only 2 endpoints - the start and end commits.
|
|
254
261
|
* An endpoint is a commit that has no children or parents within the selected path
|