@atlaskit/navigation-system 5.8.0 → 5.8.2
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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 5.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.8.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c60dda81827ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60dda81827ec) -
|
|
14
|
+
Type fixes for scrollIntoViewIfNeeded
|
|
15
|
+
|
|
3
16
|
## 5.8.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -17,8 +17,9 @@ function scrollMenuItemIntoView(element) {
|
|
|
17
17
|
*
|
|
18
18
|
* Otherwise, we are falling back to [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
var elementWithScrollMethod = element;
|
|
21
|
+
if (typeof elementWithScrollMethod.scrollIntoViewIfNeeded === 'function') {
|
|
22
|
+
elementWithScrollMethod.scrollIntoViewIfNeeded(true);
|
|
22
23
|
return;
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -10,8 +10,9 @@ function scrollMenuItemIntoView(element) {
|
|
|
10
10
|
*
|
|
11
11
|
* Otherwise, we are falling back to [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const elementWithScrollMethod = element;
|
|
14
|
+
if (typeof elementWithScrollMethod.scrollIntoViewIfNeeded === 'function') {
|
|
15
|
+
elementWithScrollMethod.scrollIntoViewIfNeeded(true);
|
|
15
16
|
return;
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -10,8 +10,9 @@ function scrollMenuItemIntoView(element) {
|
|
|
10
10
|
*
|
|
11
11
|
* Otherwise, we are falling back to [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
var elementWithScrollMethod = element;
|
|
14
|
+
if (typeof elementWithScrollMethod.scrollIntoViewIfNeeded === 'function') {
|
|
15
|
+
elementWithScrollMethod.scrollIntoViewIfNeeded(true);
|
|
15
16
|
return;
|
|
16
17
|
}
|
|
17
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.2",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
70
70
|
"@atlaskit/avatar": "^25.5.0",
|
|
71
71
|
"@atlaskit/button": "^23.6.0",
|
|
72
|
-
"@atlaskit/css": "^0.
|
|
72
|
+
"@atlaskit/css": "^0.16.0",
|
|
73
73
|
"@atlaskit/ds-lib": "^5.2.0",
|
|
74
74
|
"@atlaskit/icon": "^29.0.0",
|
|
75
75
|
"@atlaskit/layering": "^3.4.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
80
80
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
81
81
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
82
|
-
"@atlaskit/primitives": "^16.
|
|
83
|
-
"@atlaskit/tokens": "^8.
|
|
82
|
+
"@atlaskit/primitives": "^16.2.0",
|
|
83
|
+
"@atlaskit/tokens": "^8.1.0",
|
|
84
84
|
"@atlaskit/tooltip": "^20.10.0",
|
|
85
85
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
86
86
|
"@babel/runtime": "^7.0.0",
|