@atlaskit/navigation-system 10.5.0 → 10.5.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,24 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 10.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c84bd629439e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c84bd629439e0) -
|
|
8
|
+
Opt `IconRenderer` out of React Compiler memoization (`'use no memo'`). This file is a copy of
|
|
9
|
+
`@atlaskit/button`'s `IconRenderer`, sharing the same `isIconRenderProp()` heuristic that
|
|
10
|
+
misclassifies icon components missing a `displayName` as render-props and invokes them as plain
|
|
11
|
+
functions instead of JSX. Under React Compiler, memoization of this render could skip re-invoking
|
|
12
|
+
an already-compiled icon component on some renders, dropping a hook call and causing a hook-count
|
|
13
|
+
mismatch (React error #300).
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 10.5.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 10.5.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -28,6 +28,9 @@ function isIconRenderProp(func) {
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
var IconRenderer = function IconRenderer(_ref) {
|
|
31
|
+
// React Compiler opt-out: RC-incompatible (memoization breaks runtime behaviour).
|
|
32
|
+
'use no memo';
|
|
33
|
+
|
|
31
34
|
var Icon = _ref.icon;
|
|
32
35
|
var isRenderProp = isIconRenderProp(Icon);
|
|
33
36
|
var iconProps = {
|
|
@@ -23,6 +23,9 @@ function isIconRenderProp(func) {
|
|
|
23
23
|
const IconRenderer = ({
|
|
24
24
|
icon: Icon
|
|
25
25
|
}) => {
|
|
26
|
+
// React Compiler opt-out: RC-incompatible (memoization breaks runtime behaviour).
|
|
27
|
+
'use no memo';
|
|
28
|
+
|
|
26
29
|
const isRenderProp = isIconRenderProp(Icon);
|
|
27
30
|
let iconProps = {
|
|
28
31
|
label: '',
|
|
@@ -21,6 +21,9 @@ function isIconRenderProp(func) {
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
var IconRenderer = function IconRenderer(_ref) {
|
|
24
|
+
// React Compiler opt-out: RC-incompatible (memoization breaks runtime behaviour).
|
|
25
|
+
'use no memo';
|
|
26
|
+
|
|
24
27
|
var Icon = _ref.icon;
|
|
25
28
|
var isRenderProp = isIconRenderProp(Icon);
|
|
26
29
|
var iconProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.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",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"module": "dist/esm/index.js",
|
|
12
12
|
"module:es2019": "dist/es2019/index.js",
|
|
13
13
|
"types": "dist/types/index.d.ts",
|
|
14
|
-
"sideEffects": [
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"*.compiled.css"
|
|
16
|
+
],
|
|
15
17
|
"atlaskit:src": "src/index.tsx",
|
|
16
18
|
"atlassian": {
|
|
17
19
|
"react-compiler": {
|
|
@@ -44,27 +46,30 @@
|
|
|
44
46
|
]
|
|
45
47
|
},
|
|
46
48
|
"integrationTests": {
|
|
47
|
-
"additionalBrowsers": [
|
|
49
|
+
"additionalBrowsers": [
|
|
50
|
+
"desktop-firefox",
|
|
51
|
+
"desktop-webkit"
|
|
52
|
+
]
|
|
48
53
|
}
|
|
49
54
|
},
|
|
50
55
|
"dependencies": {
|
|
51
|
-
"@atlaskit/analytics-next": "^12.
|
|
56
|
+
"@atlaskit/analytics-next": "^12.3.0",
|
|
52
57
|
"@atlaskit/app-provider": "^5.1.0",
|
|
53
58
|
"@atlaskit/avatar": "^26.1.0",
|
|
54
59
|
"@atlaskit/button": "^24.3.0",
|
|
55
60
|
"@atlaskit/css": "^1.0.0",
|
|
56
61
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
57
|
-
"@atlaskit/icon": "^
|
|
62
|
+
"@atlaskit/icon": "^37.0.0",
|
|
58
63
|
"@atlaskit/layering": "^4.1.0",
|
|
59
64
|
"@atlaskit/logo": "^21.4.0",
|
|
60
65
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
61
66
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
62
67
|
"@atlaskit/popup": "^5.1.0",
|
|
63
68
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
64
|
-
"@atlaskit/primitives": "^20.
|
|
69
|
+
"@atlaskit/primitives": "^20.6.0",
|
|
65
70
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
66
71
|
"@atlaskit/side-nav-items": "^2.2.0",
|
|
67
|
-
"@atlaskit/tokens": "^15.
|
|
72
|
+
"@atlaskit/tokens": "^15.6.0",
|
|
68
73
|
"@atlaskit/tooltip": "^23.1.0",
|
|
69
74
|
"@atlaskit/visually-hidden": "^4.1.0",
|
|
70
75
|
"@babel/runtime": "^7.0.0",
|
|
@@ -83,7 +88,7 @@
|
|
|
83
88
|
"@af/visual-regression": "workspace:^",
|
|
84
89
|
"@atlaskit/badge": "^19.1.0",
|
|
85
90
|
"@atlaskit/banner": "^15.1.0",
|
|
86
|
-
"@atlaskit/breadcrumbs": "^17.
|
|
91
|
+
"@atlaskit/breadcrumbs": "^17.4.0",
|
|
87
92
|
"@atlaskit/dropdown-menu": "^17.1.0",
|
|
88
93
|
"@atlaskit/flag": "^18.1.0",
|
|
89
94
|
"@atlaskit/form": "^16.1.0",
|
|
@@ -91,24 +96,24 @@
|
|
|
91
96
|
"@atlaskit/inline-dialog": "^19.1.0",
|
|
92
97
|
"@atlaskit/link": "^4.1.0",
|
|
93
98
|
"@atlaskit/lozenge": "^14.1.0",
|
|
94
|
-
"@atlaskit/menu": "^9.
|
|
99
|
+
"@atlaskit/menu": "^9.2.0",
|
|
95
100
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
96
101
|
"@atlaskit/onboarding": "^15.1.0",
|
|
97
102
|
"@atlaskit/page-header": "^13.1.0",
|
|
98
103
|
"@atlaskit/page-layout": "^5.2.0",
|
|
99
|
-
"@atlaskit/popper": "^8.
|
|
104
|
+
"@atlaskit/popper": "^8.3.0",
|
|
100
105
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|
|
101
|
-
"@atlaskit/select": "^22.
|
|
102
|
-
"@atlaskit/skeleton": "^4.
|
|
106
|
+
"@atlaskit/select": "^22.5.0",
|
|
107
|
+
"@atlaskit/skeleton": "^4.2.0",
|
|
103
108
|
"@atlaskit/spotlight": "^2.1.0",
|
|
104
109
|
"@atlaskit/textfield": "^9.1.0",
|
|
105
|
-
"@atlaskit/top-layer": "^1.
|
|
106
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
107
|
-
"@atlassian/gemini": "^1.
|
|
110
|
+
"@atlaskit/top-layer": "^1.6.0",
|
|
111
|
+
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
112
|
+
"@atlassian/gemini": "^1.49.0",
|
|
108
113
|
"@atlassian/search-dialog": "^10.5.0",
|
|
109
114
|
"@atlassian/ssr-tests": "workspace:^",
|
|
110
|
-
"@atlassian/test-utils": "^1.
|
|
111
|
-
"@atlassian/testing-library": "^0.
|
|
115
|
+
"@atlassian/test-utils": "^1.1.0",
|
|
116
|
+
"@atlassian/testing-library": "^0.11.0",
|
|
112
117
|
"@axe-core/playwright": "^4.11.1",
|
|
113
118
|
"@testing-library/react": "^16.3.0",
|
|
114
119
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -122,10 +127,17 @@
|
|
|
122
127
|
},
|
|
123
128
|
"@repo/internal": {
|
|
124
129
|
"dom-events": "use-bind-event-listener",
|
|
125
|
-
"design-tokens": [
|
|
130
|
+
"design-tokens": [
|
|
131
|
+
"color",
|
|
132
|
+
"spacing"
|
|
133
|
+
],
|
|
126
134
|
"deprecation": "no-deprecated-imports",
|
|
127
|
-
"imports": [
|
|
128
|
-
|
|
135
|
+
"imports": [
|
|
136
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
137
|
+
],
|
|
138
|
+
"styling": [
|
|
139
|
+
"emotion"
|
|
140
|
+
]
|
|
129
141
|
}
|
|
130
142
|
},
|
|
131
143
|
"platform-feature-flags": {
|