@atlaskit/side-navigation 2.0.3 → 2.0.5
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 +76 -64
- package/constellation/index/examples.mdx +19 -10
- package/constellation/index/props.mdx +12 -12
- package/constellation/index/usage.mdx +5 -5
- package/dist/cjs/common/constants.js +2 -4
- package/dist/cjs/common/styles.js +4 -7
- package/dist/cjs/components/Footer/index.js +1 -2
- package/dist/cjs/components/Header/index.js +5 -7
- package/dist/cjs/components/Item/button-item.js +1 -2
- package/dist/cjs/components/Item/custom-item.js +1 -2
- package/dist/cjs/components/Item/go-back-item.js +1 -2
- package/dist/cjs/components/Item/link-item.js +1 -2
- package/dist/cjs/components/Item/skeleton-item.js +1 -2
- package/dist/cjs/components/LoadingItems/index.js +1 -2
- package/dist/cjs/components/NavigationContent/index.js +1 -2
- package/dist/cjs/components/NavigationContent/styles.js +4 -7
- package/dist/cjs/components/NavigationFooter/index.js +1 -2
- package/dist/cjs/components/NavigationHeader/index.js +1 -2
- package/dist/cjs/components/NestableNavigationContent/context.js +4 -7
- package/dist/cjs/components/NestableNavigationContent/index.js +2 -4
- package/dist/cjs/components/NestableNavigationContent/nesting-motion.js +2 -3
- package/dist/cjs/components/NestingItem/index.js +1 -2
- package/dist/cjs/components/NestingItem/styles.js +3 -5
- package/dist/cjs/components/Section/heading-item.js +1 -2
- package/dist/cjs/components/Section/section.js +1 -2
- package/dist/cjs/components/Section/skeleton-heading-item.js +1 -2
- package/dist/cjs/components/SideNavigation/index.js +1 -2
- package/dist/cjs/components/utils/hooks.js +3 -5
- package/dist/es2019/components/Header/index.js +2 -2
- package/dist/esm/components/Header/index.js +3 -3
- package/dist/types/components/Header/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Header/index.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,47 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 2.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#39812](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39812) [`879275819ed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/879275819ed) - Fix for `data-testid` not being applied to Header.
|
|
14
|
+
|
|
3
15
|
## 2.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`e3b28897c5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3b28897c5f) - Internal code changes. There is no expected change in behaviour.
|
|
19
|
+
- [#39264](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39264) [`e3b28897c5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3b28897c5f) - Internal code changes. There is no expected change in behaviour.
|
|
8
20
|
- Updated dependencies
|
|
9
21
|
|
|
10
22
|
## 2.0.2
|
|
11
23
|
|
|
12
24
|
### Patch Changes
|
|
13
25
|
|
|
14
|
-
- [`bff06efcf86`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bff06efcf86) - Fix a bug where `className` was not being applied to Header.
|
|
26
|
+
- [#39419](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39419) [`bff06efcf86`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bff06efcf86) - Fix a bug where `className` was not being applied to Header.
|
|
15
27
|
|
|
16
28
|
## 2.0.1
|
|
17
29
|
|
|
18
30
|
### Patch Changes
|
|
19
31
|
|
|
20
|
-
- [`cac6bbb702d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cac6bbb702d) - The internal composition of this component has changed. There is no expected change in behavior.
|
|
32
|
+
- [#38751](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38751) [`cac6bbb702d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cac6bbb702d) - The internal composition of this component has changed. There is no expected change in behavior.
|
|
21
33
|
|
|
22
34
|
## 2.0.0
|
|
23
35
|
|
|
24
36
|
### Major Changes
|
|
25
37
|
|
|
26
|
-
- [`cf66b43d67a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf66b43d67a) - Updated spacing of Side Navigation components to ensure token values and fallbacks are matching. When used with space tokens enabled, there is no visual difference with the previous release of Side Navigation. When used without space tokens enabled there will be a slight visual difference; we recommend enabling space tokens if they are not already enabled to resolve this.
|
|
38
|
+
- [#38561](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38561) [`cf66b43d67a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf66b43d67a) - Updated spacing of Side Navigation components to ensure token values and fallbacks are matching. When used with space tokens enabled, there is no visual difference with the previous release of Side Navigation. When used without space tokens enabled there will be a slight visual difference; we recommend enabling space tokens if they are not already enabled to resolve this.
|
|
27
39
|
|
|
28
40
|
## 1.10.4
|
|
29
41
|
|
|
30
42
|
### Patch Changes
|
|
31
43
|
|
|
32
|
-
- [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
44
|
+
- [#37533](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37533) [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
33
45
|
|
|
34
46
|
## 1.10.3
|
|
35
47
|
|
|
@@ -53,13 +65,13 @@
|
|
|
53
65
|
|
|
54
66
|
### Minor Changes
|
|
55
67
|
|
|
56
|
-
- [`ee296a14a87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee296a14a87) - Adds the `showTopScrollIndicator` prop to the nestable navigation content component. This prop should be used only when needed to distinctly separate the side navigation header from the side navigation content.
|
|
68
|
+
- [#36118](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36118) [`ee296a14a87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee296a14a87) - Adds the `showTopScrollIndicator` prop to the nestable navigation content component. This prop should be used only when needed to distinctly separate the side navigation header from the side navigation content.
|
|
57
69
|
|
|
58
70
|
## 1.9.0
|
|
59
71
|
|
|
60
72
|
### Minor Changes
|
|
61
73
|
|
|
62
|
-
- [`0af122e7d0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af122e7d0f) - [ux] Prop isList in Section component allows to add `<ul>` and `<li>` elements around the items to better semantic markup if it is a list of items
|
|
74
|
+
- [#35164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35164) [`0af122e7d0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af122e7d0f) - [ux] Prop isList in Section component allows to add `<ul>` and `<li>` elements around the items to better semantic markup if it is a list of items
|
|
63
75
|
|
|
64
76
|
### Patch Changes
|
|
65
77
|
|
|
@@ -81,14 +93,14 @@
|
|
|
81
93
|
|
|
82
94
|
### Patch Changes
|
|
83
95
|
|
|
84
|
-
- [`967dd926bfc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967dd926bfc) - Updates all navigation components to use border/shape tokens. This is a no-op as these tokens are not enabled in product.
|
|
96
|
+
- [#35385](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35385) [`967dd926bfc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967dd926bfc) - Updates all navigation components to use border/shape tokens. This is a no-op as these tokens are not enabled in product.
|
|
85
97
|
- Updated dependencies
|
|
86
98
|
|
|
87
99
|
## 1.8.7
|
|
88
100
|
|
|
89
101
|
### Patch Changes
|
|
90
102
|
|
|
91
|
-
- [`4757acc0f98`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4757acc0f98) - Internal change to use space tokens for spacing properties. There is no visual change.
|
|
103
|
+
- [#35460](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35460) [`4757acc0f98`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4757acc0f98) - Internal change to use space tokens for spacing properties. There is no visual change.
|
|
92
104
|
|
|
93
105
|
## 1.8.6
|
|
94
106
|
|
|
@@ -112,25 +124,25 @@
|
|
|
112
124
|
|
|
113
125
|
### Patch Changes
|
|
114
126
|
|
|
115
|
-
- [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change.
|
|
127
|
+
- [#34881](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34881) [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change.
|
|
116
128
|
|
|
117
129
|
## 1.8.2
|
|
118
130
|
|
|
119
131
|
### Patch Changes
|
|
120
132
|
|
|
121
|
-
- [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
|
|
133
|
+
- [#33652](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33652) [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
|
|
122
134
|
|
|
123
135
|
## 1.8.1
|
|
124
136
|
|
|
125
137
|
### Patch Changes
|
|
126
138
|
|
|
127
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
139
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
128
140
|
|
|
129
141
|
## 1.8.0
|
|
130
142
|
|
|
131
143
|
### Minor Changes
|
|
132
144
|
|
|
133
|
-
- [`d518f0e34b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d518f0e34b9) - [ux] We are testing a selected indicator change to menu, dropdown-menu, and side-navigation packages behind an internal feature flag. If successful this will be released in a later minor release.
|
|
145
|
+
- [#33349](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33349) [`d518f0e34b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d518f0e34b9) - [ux] We are testing a selected indicator change to menu, dropdown-menu, and side-navigation packages behind an internal feature flag. If successful this will be released in a later minor release.
|
|
134
146
|
|
|
135
147
|
### Patch Changes
|
|
136
148
|
|
|
@@ -140,13 +152,13 @@
|
|
|
140
152
|
|
|
141
153
|
### Patch Changes
|
|
142
154
|
|
|
143
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
155
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
144
156
|
|
|
145
157
|
## 1.7.0
|
|
146
158
|
|
|
147
159
|
### Minor Changes
|
|
148
160
|
|
|
149
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
161
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
150
162
|
|
|
151
163
|
### Patch Changes
|
|
152
164
|
|
|
@@ -156,13 +168,13 @@
|
|
|
156
168
|
|
|
157
169
|
### Patch Changes
|
|
158
170
|
|
|
159
|
-
- [`65e4baeea85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65e4baeea85) - Internal changes.
|
|
171
|
+
- [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211) [`65e4baeea85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65e4baeea85) - Internal changes.
|
|
160
172
|
|
|
161
173
|
## 1.6.7
|
|
162
174
|
|
|
163
175
|
### Patch Changes
|
|
164
176
|
|
|
165
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
177
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
166
178
|
|
|
167
179
|
## 1.6.6
|
|
168
180
|
|
|
@@ -174,7 +186,7 @@
|
|
|
174
186
|
|
|
175
187
|
### Patch Changes
|
|
176
188
|
|
|
177
|
-
- [`f7f852b0a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7f852b0a4f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
189
|
+
- [#32173](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32173) [`f7f852b0a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7f852b0a4f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
178
190
|
|
|
179
191
|
## 1.6.4
|
|
180
192
|
|
|
@@ -198,14 +210,14 @@
|
|
|
198
210
|
|
|
199
211
|
### Patch Changes
|
|
200
212
|
|
|
201
|
-
- [`3ca97be0c06`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ca97be0c06) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
213
|
+
- [#31378](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31378) [`3ca97be0c06`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ca97be0c06) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
202
214
|
- Updated dependencies
|
|
203
215
|
|
|
204
216
|
## 1.6.0
|
|
205
217
|
|
|
206
218
|
### Minor Changes
|
|
207
219
|
|
|
208
|
-
- [`62c9d42799c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62c9d42799c) - [ux] The `Footer` component will now warn a user if they are relying on a deprecated API. The `cssFn`, `onClick` and `component` are all considered deprecated APIs for `Footer`.
|
|
220
|
+
- [#30362](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30362) [`62c9d42799c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62c9d42799c) - [ux] The `Footer` component will now warn a user if they are relying on a deprecated API. The `cssFn`, `onClick` and `component` are all considered deprecated APIs for `Footer`.
|
|
209
221
|
|
|
210
222
|
Additionally, the space between icons and content has been shifted form `16px` to `12px`. This matches `@atlaskit/menu`.
|
|
211
223
|
|
|
@@ -225,20 +237,20 @@
|
|
|
225
237
|
|
|
226
238
|
### Patch Changes
|
|
227
239
|
|
|
228
|
-
- [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
240
|
+
- [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390) [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
229
241
|
|
|
230
242
|
## 1.5.1
|
|
231
243
|
|
|
232
244
|
### Patch Changes
|
|
233
245
|
|
|
234
|
-
- [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
|
|
246
|
+
- [#27891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27891) [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
|
|
235
247
|
- Updated dependencies
|
|
236
248
|
|
|
237
249
|
## 1.5.0
|
|
238
250
|
|
|
239
251
|
### Minor Changes
|
|
240
252
|
|
|
241
|
-
- [`caa68aad0fd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/caa68aad0fd) - Internal changes around styles:
|
|
253
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`caa68aad0fd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/caa68aad0fd) - Internal changes around styles:
|
|
242
254
|
|
|
243
255
|
- Application of primitives for more declarative code
|
|
244
256
|
- Application of spacing tokens to internal styles
|
|
@@ -270,19 +282,19 @@
|
|
|
270
282
|
|
|
271
283
|
### Minor Changes
|
|
272
284
|
|
|
273
|
-
- [`5c065ba2010`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c065ba2010) - Improve state management to allow detection of invalid stack state. Add prop `onUnknownNest` to allow handling of invalid stack state.
|
|
285
|
+
- [#26817](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26817) [`5c065ba2010`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c065ba2010) - Improve state management to allow detection of invalid stack state. Add prop `onUnknownNest` to allow handling of invalid stack state.
|
|
274
286
|
|
|
275
287
|
## 1.3.1
|
|
276
288
|
|
|
277
289
|
### Patch Changes
|
|
278
290
|
|
|
279
|
-
- [`5f36f2ce46d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f36f2ce46d) - Adds a defensive `css()` function wrapping to many of the style calls in the side-navigation package. This is expected to help fix an issue with certain styles in side navigation not appearing if consumed when different versions of `@emotion` are present on the page.
|
|
291
|
+
- [#26390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26390) [`5f36f2ce46d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f36f2ce46d) - Adds a defensive `css()` function wrapping to many of the style calls in the side-navigation package. This is expected to help fix an issue with certain styles in side navigation not appearing if consumed when different versions of `@emotion` are present on the page.
|
|
280
292
|
|
|
281
293
|
## 1.3.0
|
|
282
294
|
|
|
283
295
|
### Minor Changes
|
|
284
296
|
|
|
285
|
-
- [`02e2f7aacef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02e2f7aacef) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
297
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`02e2f7aacef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02e2f7aacef) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
286
298
|
|
|
287
299
|
### Patch Changes
|
|
288
300
|
|
|
@@ -292,19 +304,19 @@
|
|
|
292
304
|
|
|
293
305
|
### Patch Changes
|
|
294
306
|
|
|
295
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
307
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
296
308
|
|
|
297
309
|
## 1.2.14
|
|
298
310
|
|
|
299
311
|
### Patch Changes
|
|
300
312
|
|
|
301
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
313
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
302
314
|
|
|
303
315
|
## 1.2.13
|
|
304
316
|
|
|
305
317
|
### Patch Changes
|
|
306
318
|
|
|
307
|
-
- [`b2767947029`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2767947029) - Internal code change turning on new linting rules.
|
|
319
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`b2767947029`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2767947029) - Internal code change turning on new linting rules.
|
|
308
320
|
- Updated dependencies
|
|
309
321
|
|
|
310
322
|
## 1.2.12
|
|
@@ -317,7 +329,7 @@
|
|
|
317
329
|
|
|
318
330
|
### Patch Changes
|
|
319
331
|
|
|
320
|
-
- [`efa50ac72ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efa50ac72ba) - Adjusts jsdoc strings to improve prop documentation
|
|
332
|
+
- [#21545](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21545) [`efa50ac72ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efa50ac72ba) - Adjusts jsdoc strings to improve prop documentation
|
|
321
333
|
|
|
322
334
|
## 1.2.10
|
|
323
335
|
|
|
@@ -329,13 +341,13 @@
|
|
|
329
341
|
|
|
330
342
|
### Patch Changes
|
|
331
343
|
|
|
332
|
-
- [`85ca75319b1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/85ca75319b1) - Move side-navigation docs to Constellation (atlassian.design)
|
|
344
|
+
- [#21309](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21309) [`85ca75319b1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/85ca75319b1) - Move side-navigation docs to Constellation (atlassian.design)
|
|
333
345
|
|
|
334
346
|
## 1.2.8
|
|
335
347
|
|
|
336
348
|
### Patch Changes
|
|
337
349
|
|
|
338
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
350
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
339
351
|
|
|
340
352
|
## 1.2.7
|
|
341
353
|
|
|
@@ -347,7 +359,7 @@
|
|
|
347
359
|
|
|
348
360
|
### Patch Changes
|
|
349
361
|
|
|
350
|
-
- [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
362
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
351
363
|
- Updated dependencies
|
|
352
364
|
|
|
353
365
|
## 1.2.5
|
|
@@ -360,14 +372,14 @@
|
|
|
360
372
|
|
|
361
373
|
### Patch Changes
|
|
362
374
|
|
|
363
|
-
- [`0f8fe0b80aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0f8fe0b80aa) - Adds deprecated status to `cssFn` prop. Please avoid using this prop as we intend to remove the prop completely in a future release.
|
|
375
|
+
- [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`0f8fe0b80aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0f8fe0b80aa) - Adds deprecated status to `cssFn` prop. Please avoid using this prop as we intend to remove the prop completely in a future release.
|
|
364
376
|
- Updated dependencies
|
|
365
377
|
|
|
366
378
|
## 1.2.3
|
|
367
379
|
|
|
368
380
|
### Patch Changes
|
|
369
381
|
|
|
370
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
382
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
371
383
|
- Updated dependencies
|
|
372
384
|
|
|
373
385
|
## 1.2.2
|
|
@@ -380,14 +392,14 @@
|
|
|
380
392
|
|
|
381
393
|
### Patch Changes
|
|
382
394
|
|
|
383
|
-
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
395
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
384
396
|
- Updated dependencies
|
|
385
397
|
|
|
386
398
|
## 1.2.0
|
|
387
399
|
|
|
388
400
|
### Minor Changes
|
|
389
401
|
|
|
390
|
-
- [`213bfd77e61`](https://bitbucket.org/atlassian/atlassian-frontend/commits/213bfd77e61) - The DOM structure of menu item components has been flattened.
|
|
402
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777) [`213bfd77e61`](https://bitbucket.org/atlassian/atlassian-frontend/commits/213bfd77e61) - The DOM structure of menu item components has been flattened.
|
|
391
403
|
If you used CSS hacks (via className or cssFn) that targetted specific DOM nodes you may be broken.
|
|
392
404
|
|
|
393
405
|
Previously the structure looked like:
|
|
@@ -434,7 +446,7 @@
|
|
|
434
446
|
|
|
435
447
|
### Minor Changes
|
|
436
448
|
|
|
437
|
-
- [`0e1894c8eb0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e1894c8eb0) - Instrumented side navigation with the new theming package, `@atlaskit/tokens`.
|
|
449
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`0e1894c8eb0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e1894c8eb0) - Instrumented side navigation with the new theming package, `@atlaskit/tokens`.
|
|
438
450
|
|
|
439
451
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
440
452
|
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
@@ -447,13 +459,13 @@
|
|
|
447
459
|
|
|
448
460
|
### Patch Changes
|
|
449
461
|
|
|
450
|
-
- [`7c843858398`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7c843858398) - [ux] LinkItem and CustomItem now have correct blue text color when selected and the href has visited
|
|
462
|
+
- [#11491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11491) [`7c843858398`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7c843858398) - [ux] LinkItem and CustomItem now have correct blue text color when selected and the href has visited
|
|
451
463
|
|
|
452
464
|
## 1.0.0
|
|
453
465
|
|
|
454
466
|
### Major Changes
|
|
455
467
|
|
|
456
|
-
- [`7727f723965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7727f723965) - Internal change to the release model from continous to scheduled release. There are **NO API CHANGES** in this release.
|
|
468
|
+
- [#10609](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10609) [`7727f723965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7727f723965) - Internal change to the release model from continous to scheduled release. There are **NO API CHANGES** in this release.
|
|
457
469
|
|
|
458
470
|
### Patch Changes
|
|
459
471
|
|
|
@@ -463,7 +475,7 @@
|
|
|
463
475
|
|
|
464
476
|
### Patch Changes
|
|
465
477
|
|
|
466
|
-
- [`4e72825fa89`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e72825fa89) - JET-1156:
|
|
478
|
+
- [#10255](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10255) [`4e72825fa89`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e72825fa89) - JET-1156:
|
|
467
479
|
|
|
468
480
|
- Export `VAR_SEPARATOR_COLOR` to override separator color when using custom backrounds in side navigation.
|
|
469
481
|
- Export `VAR_SCROLL_INDICATOR_COLOR` to override menu scroll indicator color when using custom backrounds in side navigation.
|
|
@@ -472,32 +484,32 @@
|
|
|
472
484
|
|
|
473
485
|
### Patch Changes
|
|
474
486
|
|
|
475
|
-
- [`240c4120435`](https://bitbucket.org/atlassian/atlassian-frontend/commits/240c4120435) - Side navigation now uses the new common utility to calculate scrollbar width for offsetting keylines.
|
|
487
|
+
- [#9756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9756) [`240c4120435`](https://bitbucket.org/atlassian/atlassian-frontend/commits/240c4120435) - Side navigation now uses the new common utility to calculate scrollbar width for offsetting keylines.
|
|
476
488
|
- Updated dependencies
|
|
477
489
|
|
|
478
490
|
## 0.8.3
|
|
479
491
|
|
|
480
492
|
### Patch Changes
|
|
481
493
|
|
|
482
|
-
- [`e6f96e8d782`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6f96e8d782) - Fix styling for hover and active states for disabled items
|
|
494
|
+
- [#8875](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8875) [`e6f96e8d782`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6f96e8d782) - Fix styling for hover and active states for disabled items
|
|
483
495
|
|
|
484
496
|
## 0.8.2
|
|
485
497
|
|
|
486
498
|
### Patch Changes
|
|
487
499
|
|
|
488
|
-
- [`101b102ed33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/101b102ed33) - Fix disabled state; menu items with icons after the text should have height of 40px
|
|
500
|
+
- [#8637](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8637) [`101b102ed33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/101b102ed33) - Fix disabled state; menu items with icons after the text should have height of 40px
|
|
489
501
|
|
|
490
502
|
## 0.8.1
|
|
491
503
|
|
|
492
504
|
### Patch Changes
|
|
493
505
|
|
|
494
|
-
- [`0b2f7e76803`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0b2f7e76803) - Codemods will only format a file if it is mutated.
|
|
506
|
+
- [#8404](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8404) [`0b2f7e76803`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0b2f7e76803) - Codemods will only format a file if it is mutated.
|
|
495
507
|
|
|
496
508
|
## 0.8.0
|
|
497
509
|
|
|
498
510
|
### Minor Changes
|
|
499
511
|
|
|
500
|
-
- [`79a40dec30`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79a40dec30) - **Breaking** Adjusts the API of the cssFn prop used in both menu and side-navigation. The prop now no longer exposes the currentStyles to the user in the callback and instead only provides the current state. Users no longer need to spread the currentStyles into their components when overriding. This change also resolves a bug where cssFn overrides did not always take precedence correctly over the default component styles.
|
|
512
|
+
- [#6194](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6194) [`79a40dec30`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79a40dec30) - **Breaking** Adjusts the API of the cssFn prop used in both menu and side-navigation. The prop now no longer exposes the currentStyles to the user in the callback and instead only provides the current state. Users no longer need to spread the currentStyles into their components when overriding. This change also resolves a bug where cssFn overrides did not always take precedence correctly over the default component styles.
|
|
501
513
|
|
|
502
514
|
### Patch Changes
|
|
503
515
|
|
|
@@ -507,13 +519,13 @@
|
|
|
507
519
|
|
|
508
520
|
### Patch Changes
|
|
509
521
|
|
|
510
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
522
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
511
523
|
|
|
512
524
|
## 0.7.9
|
|
513
525
|
|
|
514
526
|
### Patch Changes
|
|
515
527
|
|
|
516
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
528
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
517
529
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
518
530
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
519
531
|
|
|
@@ -521,7 +533,7 @@
|
|
|
521
533
|
|
|
522
534
|
### Patch Changes
|
|
523
535
|
|
|
524
|
-
- [`e55c4eb5a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e55c4eb5a8) - [ux] Earlier left sidebar was getting focus while clicking on it. We have removed focus ring to fix this issue.
|
|
536
|
+
- [#5419](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5419) [`e55c4eb5a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e55c4eb5a8) - [ux] Earlier left sidebar was getting focus while clicking on it. We have removed focus ring to fix this issue.
|
|
525
537
|
|
|
526
538
|
## 0.7.7
|
|
527
539
|
|
|
@@ -533,7 +545,7 @@
|
|
|
533
545
|
|
|
534
546
|
### Patch Changes
|
|
535
547
|
|
|
536
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
548
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
537
549
|
|
|
538
550
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
539
551
|
to prevent duplicates of tslib being bundled.
|
|
@@ -542,13 +554,13 @@
|
|
|
542
554
|
|
|
543
555
|
### Patch Changes
|
|
544
556
|
|
|
545
|
-
- [`a3c91f82f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a3c91f82f6) - Add tabindex=0 to nested container which makes it focusable when interacting with keyboard.
|
|
557
|
+
- [#4272](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4272) [`a3c91f82f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a3c91f82f6) - Add tabindex=0 to nested container which makes it focusable when interacting with keyboard.
|
|
546
558
|
|
|
547
559
|
## 0.7.4
|
|
548
560
|
|
|
549
561
|
### Patch Changes
|
|
550
562
|
|
|
551
|
-
- [`308ad47024`](https://bitbucket.org/atlassian/atlassian-frontend/commits/308ad47024) - Passes `cssFn` throught to NestingItem so that its styles can be customised
|
|
563
|
+
- [#4198](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4198) [`308ad47024`](https://bitbucket.org/atlassian/atlassian-frontend/commits/308ad47024) - Passes `cssFn` throught to NestingItem so that its styles can be customised
|
|
552
564
|
|
|
553
565
|
## 0.7.3
|
|
554
566
|
|
|
@@ -560,32 +572,32 @@
|
|
|
560
572
|
|
|
561
573
|
### Patch Changes
|
|
562
574
|
|
|
563
|
-
- [`159e0808a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/159e0808a5) - Updates the background color of NestingItem, ButtonItem and LinkItem so that it can work with the Onboarding component.
|
|
575
|
+
- [#3980](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3980) [`159e0808a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/159e0808a5) - Updates the background color of NestingItem, ButtonItem and LinkItem so that it can work with the Onboarding component.
|
|
564
576
|
Hover and selected states will appear darker and they provide better contrast against normal items.
|
|
565
577
|
|
|
566
578
|
## 0.7.1
|
|
567
579
|
|
|
568
580
|
### Patch Changes
|
|
569
581
|
|
|
570
|
-
- [`5b3383fe67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5b3383fe67) - Nesting transitions will no longer occur if a modifier key such as Shift or Control is detected while clicking on a nesting item in the side-navigation.
|
|
582
|
+
- [#3532](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3532) [`5b3383fe67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5b3383fe67) - Nesting transitions will no longer occur if a modifier key such as Shift or Control is detected while clicking on a nesting item in the side-navigation.
|
|
571
583
|
|
|
572
584
|
## 0.7.0
|
|
573
585
|
|
|
574
586
|
### Minor Changes
|
|
575
587
|
|
|
576
|
-
- [`c7e637753f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7e637753f) - Removed unused export of SIDEBAR_DEFAULT_WIDTH. It was added when page-layout wasn’t complete. Now page-layout is fairly mature, that’s why this export isn’t required anymore.
|
|
588
|
+
- [#3569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3569) [`c7e637753f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7e637753f) - Removed unused export of SIDEBAR_DEFAULT_WIDTH. It was added when page-layout wasn’t complete. Now page-layout is fairly mature, that’s why this export isn’t required anymore.
|
|
577
589
|
|
|
578
590
|
## 0.6.1
|
|
579
591
|
|
|
580
592
|
### Patch Changes
|
|
581
593
|
|
|
582
|
-
- [`01e279bdcd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/01e279bdcd) - Restyled footer - align with new design
|
|
594
|
+
- [#3469](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3469) [`01e279bdcd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/01e279bdcd) - Restyled footer - align with new design
|
|
583
595
|
|
|
584
596
|
## 0.6.0
|
|
585
597
|
|
|
586
598
|
### Minor Changes
|
|
587
599
|
|
|
588
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
600
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
589
601
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
590
602
|
|
|
591
603
|
### Patch Changes
|
|
@@ -602,19 +614,19 @@
|
|
|
602
614
|
|
|
603
615
|
### Patch Changes
|
|
604
616
|
|
|
605
|
-
- [`cc14956821`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc14956821) - Update all the theme imports to a path thats tree shakable
|
|
617
|
+
- [#2889](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2889) [`cc14956821`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc14956821) - Update all the theme imports to a path thats tree shakable
|
|
606
618
|
|
|
607
619
|
## 0.5.5
|
|
608
620
|
|
|
609
621
|
### Patch Changes
|
|
610
622
|
|
|
611
|
-
- [`5217dcfa4d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5217dcfa4d) - Remove opacity from side-navigation seperators that appear when the container scrolls. The color is the same, just without the alpha channel.
|
|
623
|
+
- [#2775](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2775) [`5217dcfa4d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5217dcfa4d) - Remove opacity from side-navigation seperators that appear when the container scrolls. The color is the same, just without the alpha channel.
|
|
612
624
|
|
|
613
625
|
## 0.5.4
|
|
614
626
|
|
|
615
627
|
### Patch Changes
|
|
616
628
|
|
|
617
|
-
- [`d674e203b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d674e203b3) - Previously Menu items controlled their own margin spacing which caused issues when trying to use them outside of Menu.
|
|
629
|
+
- [#2537](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2537) [`d674e203b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d674e203b3) - Previously Menu items controlled their own margin spacing which caused issues when trying to use them outside of Menu.
|
|
618
630
|
Now we have moved Menu item margin styles into the Section component so now the Section dictates the spacing around child items.
|
|
619
631
|
We had to update Side Navigation to control its child item margins as well.
|
|
620
632
|
|
|
@@ -622,25 +634,25 @@
|
|
|
622
634
|
|
|
623
635
|
### Patch Changes
|
|
624
636
|
|
|
625
|
-
- [`649f69b6d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/649f69b6d7) - Patch all packages that are used by confluence that have a broken es2019 dist
|
|
637
|
+
- [#2430](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2430) [`649f69b6d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/649f69b6d7) - Patch all packages that are used by confluence that have a broken es2019 dist
|
|
626
638
|
|
|
627
639
|
## 0.5.2
|
|
628
640
|
|
|
629
641
|
### Patch Changes
|
|
630
642
|
|
|
631
|
-
- [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
643
|
+
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099) [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
632
644
|
|
|
633
645
|
## 0.5.1
|
|
634
646
|
|
|
635
647
|
### Patch Changes
|
|
636
648
|
|
|
637
|
-
- [`6ef13297b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ef13297b2) - Fixes scroll indicator not being the correct width when lazy loading large amounts of nav items.
|
|
649
|
+
- [#2098](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2098) [`6ef13297b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ef13297b2) - Fixes scroll indicator not being the correct width when lazy loading large amounts of nav items.
|
|
638
650
|
|
|
639
651
|
## 0.5.0
|
|
640
652
|
|
|
641
653
|
### Minor Changes
|
|
642
654
|
|
|
643
|
-
- [`07b2d8c491`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07b2d8c491) - FIX: NestedItem `iconAfter` will now display always and right arrow will show up and replace it on hover
|
|
655
|
+
- [#2008](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2008) [`07b2d8c491`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07b2d8c491) - FIX: NestedItem `iconAfter` will now display always and right arrow will show up and replace it on hover
|
|
644
656
|
|
|
645
657
|
## 0.4.0
|
|
646
658
|
|
|
@@ -27,31 +27,34 @@ A side navigation example showing all [components](#side-navigation-components)
|
|
|
27
27
|
Uses 100% of its parent's height and width, so make sure to place it into an element with explicit values set.<br />
|
|
28
28
|
**Minimum width of 240px.**
|
|
29
29
|
|
|
30
|
-
<Example Component={ContainerExample} packageName="@atlaskit/side-navigation"/>
|
|
30
|
+
<Example Component={ContainerExample} packageName="@atlaskit/side-navigation" />
|
|
31
31
|
|
|
32
32
|
### Header and footer
|
|
33
33
|
|
|
34
34
|
You can customise header and footer using `NavigationHeader` and `NavigationFooter`.
|
|
35
35
|
|
|
36
|
-
<Example
|
|
36
|
+
<Example
|
|
37
|
+
Component={HeaderAndFooterExample}
|
|
38
|
+
packageName="@atlaskit/side-navigation"
|
|
39
|
+
/>
|
|
37
40
|
|
|
38
41
|
### Content
|
|
39
42
|
|
|
40
43
|
Used as the container for [navigation items](#side-navigation-items). For nested views see the following example.
|
|
41
44
|
|
|
42
|
-
<Example Component={ContentExample} packageName="@atlaskit/side-navigation"/>
|
|
45
|
+
<Example Component={ContentExample} packageName="@atlaskit/side-navigation" />
|
|
43
46
|
|
|
44
47
|
### Section
|
|
45
48
|
|
|
46
49
|
Used to separate items into sections. Using the `title` prop makes a section implicitly group the items for screen readers with no additional work required.
|
|
47
50
|
|
|
48
|
-
<Example Component={SectionExample} packageName="@atlaskit/side-navigation"/>
|
|
51
|
+
<Example Component={SectionExample} packageName="@atlaskit/side-navigation" />
|
|
49
52
|
|
|
50
53
|
### Nested navigation
|
|
51
54
|
|
|
52
55
|
The container for navigation items with nested views is `NestableNavigationContent`.
|
|
53
56
|
|
|
54
|
-
<Example Component={NestedExample} packageName="@atlaskit/side-navigation"/>
|
|
57
|
+
<Example Component={NestedExample} packageName="@atlaskit/side-navigation" />
|
|
55
58
|
|
|
56
59
|
## Side navigation items
|
|
57
60
|
|
|
@@ -62,7 +65,7 @@ The `Section` component **must** be used to ensure consistent spacing around blo
|
|
|
62
65
|
|
|
63
66
|
This item is used to provide a customized "go back" button in nested navigations.
|
|
64
67
|
|
|
65
|
-
<Example Component={GoBackExample} packageName="@atlaskit/side-navigation"/>
|
|
68
|
+
<Example Component={GoBackExample} packageName="@atlaskit/side-navigation" />
|
|
66
69
|
|
|
67
70
|
### Link item
|
|
68
71
|
|
|
@@ -70,7 +73,7 @@ Renders an item wrapped in an anchor tag, useful when you have an item that shou
|
|
|
70
73
|
|
|
71
74
|
For custom SPA transitions use a custom item with the respective router logic, following the next example.
|
|
72
75
|
|
|
73
|
-
<Example Component={LinkItemExample} packageName="@atlaskit/side-navigation"/>
|
|
76
|
+
<Example Component={LinkItemExample} packageName="@atlaskit/side-navigation" />
|
|
74
77
|
|
|
75
78
|
### Custom item
|
|
76
79
|
|
|
@@ -78,13 +81,19 @@ Handles use cases where a custom router link component is needed.
|
|
|
78
81
|
|
|
79
82
|
The custom component receives all overflow props passed to the custom item component, as well as when using TypeScript will add the custom component props to the root component props type for type safety.
|
|
80
83
|
|
|
81
|
-
<Example
|
|
84
|
+
<Example
|
|
85
|
+
Component={CustomItemExample}
|
|
86
|
+
packageName="@atlaskit/side-navigation"
|
|
87
|
+
/>
|
|
82
88
|
|
|
83
89
|
### Button item
|
|
84
90
|
|
|
85
91
|
Renders an item wrapped in a button tag, used primarily when an action does something other than changing routes.
|
|
86
92
|
|
|
87
|
-
<Example
|
|
93
|
+
<Example
|
|
94
|
+
Component={ButtonItemExample}
|
|
95
|
+
packageName="@atlaskit/side-navigation"
|
|
96
|
+
/>
|
|
88
97
|
|
|
89
98
|
### Heading item
|
|
90
99
|
|
|
@@ -94,4 +103,4 @@ Available for advanced use cases, for most situations providing a `title` to `Se
|
|
|
94
103
|
|
|
95
104
|
Use loading skeletons to reduce the perceived loading time.
|
|
96
105
|
|
|
97
|
-
<Example Component={LoadingExample} packageName="@atlaskit/side-navigation"/>
|
|
106
|
+
<Example Component={LoadingExample} packageName="@atlaskit/side-navigation" />
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import SideNavigationProps from '!!extract-react-types-loader!../../src/components/SideNavigation'
|
|
2
|
-
import HeaderProps from '!!extract-react-types-loader!../../src/components/Header'
|
|
3
|
-
import FooterProps from '!!extract-react-types-loader!../../docs/ert/footer'
|
|
4
|
-
import NavigationContentProps from '!!extract-react-types-loader!../../src/components/NavigationContent'
|
|
5
|
-
import NestableNavigationContentProps from '!!extract-react-types-loader!../../src/components/NestableNavigationContent'
|
|
6
|
-
import SectionProps from '!!extract-react-types-loader!../../src/components/Section'
|
|
1
|
+
import SideNavigationProps from '!!extract-react-types-loader!../../src/components/SideNavigation';
|
|
2
|
+
import HeaderProps from '!!extract-react-types-loader!../../src/components/Header';
|
|
3
|
+
import FooterProps from '!!extract-react-types-loader!../../docs/ert/footer';
|
|
4
|
+
import NavigationContentProps from '!!extract-react-types-loader!../../src/components/NavigationContent';
|
|
5
|
+
import NestableNavigationContentProps from '!!extract-react-types-loader!../../src/components/NestableNavigationContent';
|
|
6
|
+
import SectionProps from '!!extract-react-types-loader!../../src/components/Section';
|
|
7
7
|
|
|
8
8
|
### Navigation props
|
|
9
9
|
|
|
10
|
-
<PropsTable heading="" props={SideNavigationProps}/>
|
|
10
|
+
<PropsTable heading="" props={SideNavigationProps} />
|
|
11
11
|
|
|
12
12
|
### Header props
|
|
13
13
|
|
|
14
|
-
<PropsTable heading="" props={HeaderProps}/>
|
|
14
|
+
<PropsTable heading="" props={HeaderProps} />
|
|
15
15
|
|
|
16
16
|
### Footer props
|
|
17
17
|
|
|
18
|
-
<PropsTable heading="" props={FooterProps}/>
|
|
18
|
+
<PropsTable heading="" props={FooterProps} />
|
|
19
19
|
|
|
20
20
|
### Content props
|
|
21
21
|
|
|
22
|
-
<PropsTable heading="" props={NavigationContentProps}/>
|
|
22
|
+
<PropsTable heading="" props={NavigationContentProps} />
|
|
23
23
|
|
|
24
24
|
### Nestable content props
|
|
25
25
|
|
|
26
|
-
<PropsTable heading="" props={NestableNavigationContentProps}/>
|
|
26
|
+
<PropsTable heading="" props={NestableNavigationContentProps} />
|
|
27
27
|
|
|
28
28
|
### Section props
|
|
29
29
|
|
|
30
|
-
<PropsTable heading="" props={SectionProps}/>
|
|
30
|
+
<PropsTable heading="" props={SectionProps} />
|
|
@@ -8,9 +8,9 @@ order: 2
|
|
|
8
8
|
|
|
9
9
|
Occasionally it's necessary to load some of the side navigation content asynchronously. There are a few things to take care of
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
- Only use skeletons when you're quite certain of what the loaded state will look like. Most items that would appear in side navigation are probably fine to use with skeletons, for example, `@atlaskit/tree`.
|
|
12
|
+
- When transitioning from loading skeleton to loaded items, try to ensure the jump does not look janky - use the equivalent skeleton item that is appropriate and be careful of things jumping around by a few pixels. We should be striving for UI that feels **stable**, which means it doesn't jump around when content loads.
|
|
13
|
+
- Ensure loading does not take too long - try to anticipate if a user will look at your menu via hover events and the like, and pre-load the data as soon as possible.
|
|
14
|
+
- When content is loading in, make sure it all loads in at the same time - our minds aren't fast enough to distinguish each item loading individually, for example, and it would appear slower to most users.
|
|
15
15
|
|
|
16
|
-
For a more in-depth look at how to approach loading states, please check out the _work in progress_ [skeleton exploration](https://hello.atlassian.net/wiki/spaces/ADG/pages/598816601/Loading+experiences+-+3.4+-+Guideline+exploration+-+Skeleton#Exploration-(spec)) (content restricted to Atlassian staff).
|
|
16
|
+
For a more in-depth look at how to approach loading states, please check out the _work in progress_ [skeleton exploration](<https://hello.atlassian.net/wiki/spaces/ADG/pages/598816601/Loading+experiences+-+3.4+-+Guideline+exploration+-+Skeleton#Exploration-(spec)>) (content restricted to Atlassian staff).
|
|
@@ -4,7 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VAR_SEPARATOR_COLOR = exports.VAR_SCROLL_INDICATOR_COLOR = void 0;
|
|
7
|
-
var VAR_SEPARATOR_COLOR = '--ds-menu-seperator-color';
|
|
8
|
-
exports.
|
|
9
|
-
var VAR_SCROLL_INDICATOR_COLOR = '--ds-menu-scroll-indicator-color';
|
|
10
|
-
exports.VAR_SCROLL_INDICATOR_COLOR = VAR_SCROLL_INDICATOR_COLOR;
|
|
7
|
+
var VAR_SEPARATOR_COLOR = exports.VAR_SEPARATOR_COLOR = '--ds-menu-seperator-color';
|
|
8
|
+
var VAR_SCROLL_INDICATOR_COLOR = exports.VAR_SCROLL_INDICATOR_COLOR = '--ds-menu-scroll-indicator-color';
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
*
|
|
17
17
|
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2682 for more information.
|
|
18
18
|
*/
|
|
19
|
-
var overrideStyleFunction = function overrideStyleFunction(baseStyle) {
|
|
19
|
+
var overrideStyleFunction = exports.overrideStyleFunction = function overrideStyleFunction(baseStyle) {
|
|
20
20
|
var newStyle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
|
|
21
21
|
return {};
|
|
22
22
|
};
|
|
@@ -24,7 +24,6 @@ var overrideStyleFunction = function overrideStyleFunction(baseStyle) {
|
|
|
24
24
|
return [baseStyle(state), newStyle(state)];
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
exports.overrideStyleFunction = overrideStyleFunction;
|
|
28
27
|
var defaultStyles = {
|
|
29
28
|
'&:hover': {
|
|
30
29
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
@@ -50,7 +49,7 @@ var selectedStyles = {
|
|
|
50
49
|
color: "var(--ds-text-selected, ".concat(_colors.B400, ")")
|
|
51
50
|
}
|
|
52
51
|
};
|
|
53
|
-
var baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
52
|
+
var baseSideNavItemStyle = exports.baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
54
53
|
var isSelected = _ref.isSelected,
|
|
55
54
|
isDisabled = _ref.isDisabled;
|
|
56
55
|
return _objectSpread(_objectSpread(_objectSpread({
|
|
@@ -68,10 +67,8 @@ var baseSideNavItemStyle = function baseSideNavItemStyle(_ref) {
|
|
|
68
67
|
width: "var(--ds-space-300, 24px)"
|
|
69
68
|
}));
|
|
70
69
|
};
|
|
71
|
-
exports.
|
|
72
|
-
var sectionHeaderSpacingStyles = function sectionHeaderSpacingStyles() {
|
|
70
|
+
var sectionHeaderSpacingStyles = exports.sectionHeaderSpacingStyles = function sectionHeaderSpacingStyles() {
|
|
73
71
|
return {
|
|
74
72
|
paddingInline: "var(--ds-space-100, 8px)"
|
|
75
73
|
};
|
|
76
|
-
};
|
|
77
|
-
exports.sectionHeaderSpacingStyles = sectionHeaderSpacingStyles;
|
|
74
|
+
};
|
|
@@ -14,7 +14,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
14
|
var _typography = require("@atlaskit/theme/typography");
|
|
15
15
|
var _styles = require("../../common/styles");
|
|
16
16
|
var _Item = require("../Item");
|
|
17
|
-
var _excluded = ["children"],
|
|
17
|
+
var _excluded = ["children", "data-testid"],
|
|
18
18
|
_excluded2 = ["children"];
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
var containerStyles = (0, _react2.css)({
|
|
@@ -27,13 +27,13 @@ var containerStyles = (0, _react2.css)({
|
|
|
27
27
|
*
|
|
28
28
|
* A container for Header and Footer that safely handles props to the child component
|
|
29
29
|
*/
|
|
30
|
-
var Container = function Container(_ref) {
|
|
30
|
+
var Container = exports.Container = function Container(_ref) {
|
|
31
31
|
var children = _ref.children,
|
|
32
|
+
testId = _ref['data-testid'],
|
|
32
33
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
33
34
|
// https://stackoverflow.com/a/39333479
|
|
34
35
|
var safeProps = function (_ref2) {
|
|
35
36
|
var className = _ref2.className,
|
|
36
|
-
testId = _ref2['data-testid'],
|
|
37
37
|
onClick = _ref2.onClick,
|
|
38
38
|
onMouseDown = _ref2.onMouseDown,
|
|
39
39
|
onDragStart = _ref2.onDragStart,
|
|
@@ -43,7 +43,6 @@ var Container = function Container(_ref) {
|
|
|
43
43
|
disabled = _ref2.disabled;
|
|
44
44
|
return {
|
|
45
45
|
className: className,
|
|
46
|
-
testId: testId,
|
|
47
46
|
onClick: onClick,
|
|
48
47
|
onMouseDown: onMouseDown,
|
|
49
48
|
onDragStart: onDragStart,
|
|
@@ -54,10 +53,10 @@ var Container = function Container(_ref) {
|
|
|
54
53
|
};
|
|
55
54
|
}(props);
|
|
56
55
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
56
|
+
"data-testid": testId,
|
|
57
57
|
css: containerStyles
|
|
58
58
|
}, safeProps), children);
|
|
59
59
|
};
|
|
60
|
-
exports.Container = Container;
|
|
61
60
|
/**
|
|
62
61
|
* __Header__
|
|
63
62
|
*
|
|
@@ -101,5 +100,4 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
101
100
|
}
|
|
102
101
|
}));
|
|
103
102
|
});
|
|
104
|
-
var _default = Header;
|
|
105
|
-
exports.default = _default;
|
|
103
|
+
var _default = exports.default = Header;
|
|
@@ -31,7 +31,7 @@ var skeletonHeadingBottomMargin = containerPadding * 0.75 + skeletonHeadingMargi
|
|
|
31
31
|
* They are "conditionally" shown from the users perspective using the inner container CSS
|
|
32
32
|
* which has other pseudo elements which "mask" the "real" scroll indicators.
|
|
33
33
|
*/
|
|
34
|
-
var outerContainerCSS = function outerContainerCSS(opts) {
|
|
34
|
+
var outerContainerCSS = exports.outerContainerCSS = function outerContainerCSS(opts) {
|
|
35
35
|
return {
|
|
36
36
|
// Flex is needed to ensure the overflow indicators are positioned correctly.
|
|
37
37
|
display: 'flex',
|
|
@@ -70,8 +70,7 @@ var outerContainerCSS = function outerContainerCSS(opts) {
|
|
|
70
70
|
* Essentially they cover (mask) the "real" scroll indicators when the user is scrolled
|
|
71
71
|
* to the top or bottom of the container.
|
|
72
72
|
*/
|
|
73
|
-
exports.
|
|
74
|
-
var innerContainerCSS = function innerContainerCSS(opts) {
|
|
73
|
+
var innerContainerCSS = exports.innerContainerCSS = function innerContainerCSS(opts) {
|
|
75
74
|
return _objectSpread(_objectSpread({
|
|
76
75
|
display: 'flex',
|
|
77
76
|
overflow: 'auto',
|
|
@@ -108,8 +107,7 @@ var innerContainerCSS = function innerContainerCSS(opts) {
|
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
};
|
|
111
|
-
exports.
|
|
112
|
-
var containerCSS = function containerCSS(opts) {
|
|
110
|
+
var containerCSS = exports.containerCSS = function containerCSS(opts) {
|
|
113
111
|
return {
|
|
114
112
|
// When the scroll indicator is always shown we need to add some padding
|
|
115
113
|
// so the spacing between matches what it would be if the indicator was a "block" element.
|
|
@@ -128,5 +126,4 @@ var containerCSS = function containerCSS(opts) {
|
|
|
128
126
|
marginBottom: skeletonHeadingBottomMargin
|
|
129
127
|
}
|
|
130
128
|
};
|
|
131
|
-
};
|
|
132
|
-
exports.containerCSS = containerCSS;
|
|
129
|
+
};
|
|
@@ -12,9 +12,8 @@ var _react = require("react");
|
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
|
-
var NestedContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
16
|
-
exports.
|
|
17
|
-
var useNestedContext = function useNestedContext() {
|
|
15
|
+
var NestedContext = exports.NestedContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
16
|
+
var useNestedContext = exports.useNestedContext = function useNestedContext() {
|
|
18
17
|
var context = (0, _react.useContext)(NestedContext);
|
|
19
18
|
if (!context) {
|
|
20
19
|
var error = '';
|
|
@@ -31,8 +30,7 @@ var useNestedContext = function useNestedContext() {
|
|
|
31
30
|
* If `shouldRender` returns `true` - return your nodes.
|
|
32
31
|
* If it returns `false` - either return `null` or `children` if you have children.
|
|
33
32
|
*/
|
|
34
|
-
exports.
|
|
35
|
-
var useShouldNestedElementRender = function useShouldNestedElementRender() {
|
|
33
|
+
var useShouldNestedElementRender = exports.useShouldNestedElementRender = function useShouldNestedElementRender() {
|
|
36
34
|
var context = (0, _react.useContext)(NestedContext);
|
|
37
35
|
if (!context) {
|
|
38
36
|
return {
|
|
@@ -42,5 +40,4 @@ var useShouldNestedElementRender = function useShouldNestedElementRender() {
|
|
|
42
40
|
return {
|
|
43
41
|
shouldRender: context.currentStackId === context.parentId
|
|
44
42
|
};
|
|
45
|
-
};
|
|
46
|
-
exports.useShouldNestedElementRender = useShouldNestedElementRender;
|
|
43
|
+
};
|
|
@@ -19,8 +19,7 @@ var _nestingMotion = require("./nesting-motion");
|
|
|
19
19
|
|
|
20
20
|
// Named so ERT doesn't pick up the override name as a type.
|
|
21
21
|
|
|
22
|
-
var ROOT_ID = 'ATLASKIT_NESTED_ROOT';
|
|
23
|
-
exports.ROOT_ID = ROOT_ID;
|
|
22
|
+
var ROOT_ID = exports.ROOT_ID = 'ATLASKIT_NESTED_ROOT';
|
|
24
23
|
var nestableNavigationContentStyles = (0, _react2.css)({
|
|
25
24
|
height: '100%',
|
|
26
25
|
position: 'relative',
|
|
@@ -175,5 +174,4 @@ var NestableNavigationContent = function NestableNavigationContent(props) {
|
|
|
175
174
|
}, children)));
|
|
176
175
|
}))));
|
|
177
176
|
};
|
|
178
|
-
var _default = NestableNavigationContent;
|
|
179
|
-
exports.default = _default;
|
|
177
|
+
var _default = exports.default = NestableNavigationContent;
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
/**
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
16
|
-
var NestingMotion = function NestingMotion(props) {
|
|
16
|
+
var NestingMotion = exports.NestingMotion = function NestingMotion(props) {
|
|
17
17
|
var children = props.children,
|
|
18
18
|
enterFrom = props.enterFrom,
|
|
19
19
|
exitTo = props.exitTo,
|
|
@@ -31,5 +31,4 @@ var NestingMotion = function NestingMotion(props) {
|
|
|
31
31
|
'data-testid': testId && "".concat(testId, "-").concat(direction)
|
|
32
32
|
}, innerProps));
|
|
33
33
|
});
|
|
34
|
-
};
|
|
35
|
-
exports.NestingMotion = NestingMotion;
|
|
34
|
+
};
|
|
@@ -10,7 +10,7 @@ var _enabledCSS, _disabledCSS;
|
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
// exposed for testing purposes
|
|
13
|
-
var enabledCSS = (_enabledCSS = {}, (0, _defineProperty2.default)(_enabledCSS, '&:hover [data-custom-icon]', {
|
|
13
|
+
var enabledCSS = exports.enabledCSS = (_enabledCSS = {}, (0, _defineProperty2.default)(_enabledCSS, '&:hover [data-custom-icon]', {
|
|
14
14
|
display: 'none'
|
|
15
15
|
}), (0, _defineProperty2.default)(_enabledCSS, '&:active [data-custom-icon]', {
|
|
16
16
|
display: 'none'
|
|
@@ -27,13 +27,11 @@ var enabledCSS = (_enabledCSS = {}, (0, _defineProperty2.default)(_enabledCSS, '
|
|
|
27
27
|
}), (0, _defineProperty2.default)(_enabledCSS, '& [data-right-arrow]', {
|
|
28
28
|
display: 'none'
|
|
29
29
|
}), _enabledCSS);
|
|
30
|
-
exports.enabledCSS = enabledCSS;
|
|
31
30
|
var disabledCSS = (_disabledCSS = {}, (0, _defineProperty2.default)(_disabledCSS, '[data-item-elem-after]', {
|
|
32
31
|
opacity: 0
|
|
33
32
|
}), (0, _defineProperty2.default)(_disabledCSS, '& [data-right-arrow]', {
|
|
34
33
|
display: 'none'
|
|
35
34
|
}), _disabledCSS);
|
|
36
|
-
var nestingItemStyle = function nestingItemStyle(state) {
|
|
35
|
+
var nestingItemStyle = exports.nestingItemStyle = function nestingItemStyle(state) {
|
|
37
36
|
return _objectSpread({}, state.isDisabled ? disabledCSS : enabledCSS);
|
|
38
|
-
};
|
|
39
|
-
exports.nestingItemStyle = nestingItemStyle;
|
|
37
|
+
};
|
|
@@ -35,5 +35,4 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(props) {
|
|
|
35
35
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
36
36
|
}, props));
|
|
37
37
|
};
|
|
38
|
-
var _default = SkeletonHeadingItem;
|
|
39
|
-
exports.default = _default;
|
|
38
|
+
var _default = exports.default = SkeletonHeadingItem;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useChildIdsEffect = exports.useChildIds = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _NestableNavigationContent = require("../NestableNavigationContent");
|
|
9
|
-
var useChildIds = function useChildIds(currentStackId, committedStack, onUnknownNest) {
|
|
9
|
+
var useChildIds = exports.useChildIds = function useChildIds(currentStackId, committedStack, onUnknownNest) {
|
|
10
10
|
var childIdsRef = (0, _react.useRef)(new Set());
|
|
11
11
|
(0, _react.useEffect)(function () {
|
|
12
12
|
// we are holding navigation item IDs in childIdsRef
|
|
@@ -20,8 +20,7 @@ var useChildIds = function useChildIds(currentStackId, committedStack, onUnknown
|
|
|
20
20
|
childIdsRef: childIdsRef
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
exports.
|
|
24
|
-
var useChildIdsEffect = function useChildIdsEffect(childIds, id) {
|
|
23
|
+
var useChildIdsEffect = exports.useChildIdsEffect = function useChildIdsEffect(childIds, id) {
|
|
25
24
|
(0, _react.useEffect)(function () {
|
|
26
25
|
if (!childIds || !childIds.current) {
|
|
27
26
|
return;
|
|
@@ -36,5 +35,4 @@ var useChildIdsEffect = function useChildIdsEffect(childIds, id) {
|
|
|
36
35
|
// childIds shouldn't change as it's a ref
|
|
37
36
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
38
37
|
}, [id]);
|
|
39
|
-
};
|
|
40
|
-
exports.useChildIdsEffect = useChildIdsEffect;
|
|
38
|
+
};
|
|
@@ -18,12 +18,12 @@ const containerStyles = css({
|
|
|
18
18
|
*/
|
|
19
19
|
export const Container = ({
|
|
20
20
|
children,
|
|
21
|
+
'data-testid': testId,
|
|
21
22
|
...props
|
|
22
23
|
}) => {
|
|
23
24
|
// https://stackoverflow.com/a/39333479
|
|
24
25
|
const safeProps = (({
|
|
25
26
|
className,
|
|
26
|
-
'data-testid': testId,
|
|
27
27
|
onClick,
|
|
28
28
|
onMouseDown,
|
|
29
29
|
onDragStart,
|
|
@@ -33,7 +33,6 @@ export const Container = ({
|
|
|
33
33
|
disabled
|
|
34
34
|
}) => ({
|
|
35
35
|
className,
|
|
36
|
-
testId,
|
|
37
36
|
onClick,
|
|
38
37
|
onMouseDown,
|
|
39
38
|
onDragStart,
|
|
@@ -43,6 +42,7 @@ export const Container = ({
|
|
|
43
42
|
disabled
|
|
44
43
|
}))(props);
|
|
45
44
|
return jsx("div", _extends({
|
|
45
|
+
"data-testid": testId,
|
|
46
46
|
css: containerStyles
|
|
47
47
|
}, safeProps), children);
|
|
48
48
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children"],
|
|
4
|
+
var _excluded = ["children", "data-testid"],
|
|
5
5
|
_excluded2 = ["children"];
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { forwardRef } from 'react';
|
|
@@ -22,11 +22,11 @@ var containerStyles = css({
|
|
|
22
22
|
*/
|
|
23
23
|
export var Container = function Container(_ref) {
|
|
24
24
|
var children = _ref.children,
|
|
25
|
+
testId = _ref['data-testid'],
|
|
25
26
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
27
|
// https://stackoverflow.com/a/39333479
|
|
27
28
|
var safeProps = function (_ref2) {
|
|
28
29
|
var className = _ref2.className,
|
|
29
|
-
testId = _ref2['data-testid'],
|
|
30
30
|
onClick = _ref2.onClick,
|
|
31
31
|
onMouseDown = _ref2.onMouseDown,
|
|
32
32
|
onDragStart = _ref2.onDragStart,
|
|
@@ -36,7 +36,6 @@ export var Container = function Container(_ref) {
|
|
|
36
36
|
disabled = _ref2.disabled;
|
|
37
37
|
return {
|
|
38
38
|
className: className,
|
|
39
|
-
testId: testId,
|
|
40
39
|
onClick: onClick,
|
|
41
40
|
onMouseDown: onMouseDown,
|
|
42
41
|
onDragStart: onDragStart,
|
|
@@ -47,6 +46,7 @@ export var Container = function Container(_ref) {
|
|
|
47
46
|
};
|
|
48
47
|
}(props);
|
|
49
48
|
return jsx("div", _extends({
|
|
49
|
+
"data-testid": testId,
|
|
50
50
|
css: containerStyles
|
|
51
51
|
}, safeProps), children);
|
|
52
52
|
};
|
|
@@ -6,7 +6,7 @@ import { CSSFn, CustomItemComponentProps } from '@atlaskit/menu';
|
|
|
6
6
|
*
|
|
7
7
|
* A container for Header and Footer that safely handles props to the child component
|
|
8
8
|
*/
|
|
9
|
-
export declare const Container: ({ children, ...props }: CustomItemComponentProps) => jsx.JSX.Element;
|
|
9
|
+
export declare const Container: ({ children, "data-testid": testId, ...props }: CustomItemComponentProps) => jsx.JSX.Element;
|
|
10
10
|
export type HeaderProps = {
|
|
11
11
|
/**
|
|
12
12
|
* A function that can be used to override the styles of the component.
|
|
@@ -6,7 +6,7 @@ import { CSSFn, CustomItemComponentProps } from '@atlaskit/menu';
|
|
|
6
6
|
*
|
|
7
7
|
* A container for Header and Footer that safely handles props to the child component
|
|
8
8
|
*/
|
|
9
|
-
export declare const Container: ({ children, ...props }: CustomItemComponentProps) => jsx.JSX.Element;
|
|
9
|
+
export declare const Container: ({ children, "data-testid": testId, ...props }: CustomItemComponentProps) => jsx.JSX.Element;
|
|
10
10
|
export type HeaderProps = {
|
|
11
11
|
/**
|
|
12
12
|
* A function that can be used to override the styles of the component.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/ds-explorations": "^
|
|
35
|
+
"@atlaskit/ds-explorations": "^3.0.0",
|
|
36
36
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
37
37
|
"@atlaskit/icon": "^21.12.0",
|
|
38
|
-
"@atlaskit/menu": "^1.
|
|
39
|
-
"@atlaskit/motion": "^1.
|
|
40
|
-
"@atlaskit/primitives": "^1.
|
|
38
|
+
"@atlaskit/menu": "^1.11.0",
|
|
39
|
+
"@atlaskit/motion": "^1.5.0",
|
|
40
|
+
"@atlaskit/primitives": "^1.6.0",
|
|
41
41
|
"@atlaskit/theme": "^12.6.0",
|
|
42
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|