@atlaskit/heading 2.3.0 → 2.3.1

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,505 +1,509 @@
1
1
  # @atlaskit/heading
2
2
 
3
+ ## 2.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.3.0
4
10
 
5
11
  ### Minor Changes
6
12
 
7
- - [#97580](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97580)
8
- [`3e6f291ec2d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e6f291ec2d5) -
9
- Color prop to take color tokens when using heading with size prop.
13
+ - [#97580](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97580)
14
+ [`3e6f291ec2d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e6f291ec2d5) -
15
+ Color prop to take color tokens when using heading with size prop.
10
16
 
11
17
  ## 2.2.0
12
18
 
13
19
  ### Minor Changes
14
20
 
15
- - [#91625](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91625)
16
- [`d7770083ff25`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d7770083ff25) -
17
- Add support for React 18.
21
+ - [#91625](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91625)
22
+ [`d7770083ff25`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d7770083ff25) -
23
+ Add support for React 18.
18
24
 
19
25
  ## 2.1.2
20
26
 
21
27
  ### Patch Changes
22
28
 
23
- - [#83130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83130)
24
- [`4efd62cdc533`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4efd62cdc533) -
25
- SHPLVIII-481: Assign name to default export components to fix quick-fix imports
29
+ - [#83130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83130)
30
+ [`4efd62cdc533`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4efd62cdc533) -
31
+ SHPLVIII-481: Assign name to default export components to fix quick-fix imports
26
32
 
27
33
  ## 2.1.1
28
34
 
29
35
  ### Patch Changes
30
36
 
31
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
32
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
33
- Upgrade Typescript from `4.9.5` to `5.4.2`
37
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
38
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
39
+ Upgrade Typescript from `4.9.5` to `5.4.2`
34
40
 
35
41
  ## 2.1.0
36
42
 
37
43
  ### Minor Changes
38
44
 
39
- - [#78900](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78900)
40
- [`2e05dc3106e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2e05dc3106e3) -
41
- Run codegen for Heading font family changes.
45
+ - [#78900](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78900)
46
+ [`2e05dc3106e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2e05dc3106e3) -
47
+ Run codegen for Heading font family changes.
42
48
 
43
49
  ### Patch Changes
44
50
 
45
- - Updated dependencies
51
+ - Updated dependencies
46
52
 
47
53
  ## 2.0.1
48
54
 
49
55
  ### Patch Changes
50
56
 
51
- - [#80571](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80571)
52
- [`c193ae1d1163`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c193ae1d1163) -
53
- Fix heading typography styles to for apple OS edge cases.
57
+ - [#80571](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80571)
58
+ [`c193ae1d1163`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c193ae1d1163) -
59
+ Fix heading typography styles to for apple OS edge cases.
54
60
 
55
61
  ## 2.0.0
56
62
 
57
63
  ### Major Changes
58
64
 
59
- - [#81744](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81744)
60
- [`bc7085853ea2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc7085853ea2) -
61
- Renamed `variant` prop to `size`. The prop values remain unchanged.
65
+ - [#81744](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81744)
66
+ [`bc7085853ea2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc7085853ea2) -
67
+ Renamed `variant` prop to `size`. The prop values remain unchanged.
62
68
 
63
69
  ## 1.8.1
64
70
 
65
71
  ### Patch Changes
66
72
 
67
- - [#81644](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81644)
68
- [`8ab7a816dca7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ab7a816dca7) -
69
- Revert input border change from the previous version
73
+ - [#81644](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81644)
74
+ [`8ab7a816dca7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ab7a816dca7) -
75
+ Revert input border change from the previous version
70
76
 
71
77
  ## 1.8.0
72
78
 
73
79
  ### Minor Changes
74
80
 
75
- - [#80528](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80528)
76
- [`8877e9b57d55`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8877e9b57d55) -
77
- Added `size` prop which will replace `variant` prop in the next major version.
81
+ - [#80528](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80528)
82
+ [`8877e9b57d55`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8877e9b57d55) -
83
+ Added `size` prop which will replace `variant` prop in the next major version.
78
84
 
79
85
  ## 1.7.1
80
86
 
81
87
  ### Patch Changes
82
88
 
83
- - [#80805](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80805)
84
- [`427c2dd9e0d6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/427c2dd9e0d6) -
85
- Update input border color token and width to meet 3:1 color contrast
86
- - Updated dependencies
89
+ - [#80805](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80805)
90
+ [`427c2dd9e0d6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/427c2dd9e0d6) -
91
+ Update input border color token and width to meet 3:1 color contrast
92
+ - Updated dependencies
87
93
 
88
94
  ## 1.7.0
89
95
 
90
96
  ### Minor Changes
91
97
 
92
- - [#79770](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79770)
93
- [`32e4d951a5ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32e4d951a5ae) -
94
- Run the codegen and update heading.partial.tsx
98
+ - [#79770](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79770)
99
+ [`32e4d951a5ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32e4d951a5ae) -
100
+ Run the codegen and update heading.partial.tsx
95
101
 
96
102
  ### Patch Changes
97
103
 
98
- - Updated dependencies
104
+ - Updated dependencies
99
105
 
100
106
  ## 1.6.0
101
107
 
102
108
  ### Minor Changes
103
109
 
104
- - [#68604](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68604)
105
- [`fdf7f6635426`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fdf7f6635426) -
106
- Modified mapping of `variant` to the HTML element that gets rendered. Previously `xlarge` would
107
- render a `h2`, `large` would render a `h3` etc... Now `xlarge` renders a `h1` and so on...
110
+ - [#68604](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68604)
111
+ [`fdf7f6635426`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fdf7f6635426) -
112
+ Modified mapping of `variant` to the HTML element that gets rendered. Previously `xlarge` would
113
+ render a `h2`, `large` would render a `h3` etc... Now `xlarge` renders a `h1` and so on...
108
114
 
109
115
  ## 1.5.1
110
116
 
111
117
  ### Patch Changes
112
118
 
113
- - [#70023](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70023)
114
- [`e2d35320717b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e2d35320717b) -
115
- Fix types to set either level or variant to be required props to prevent exceptions being
116
- thrown.
119
+ - [#70023](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70023)
120
+ [`e2d35320717b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e2d35320717b) -
121
+ Fix types to set either level or variant to be required props to prevent exceptions being thrown.
117
122
 
118
123
  ## 1.5.0
119
124
 
120
125
  ### Minor Changes
121
126
 
122
- - [#67463](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67463)
123
- [`caac5b953575`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/caac5b953575) -
124
- Fixed an issue where typography tokens referenced font family tokens that may not exist on a
125
- page, causing fallbacks to break.
127
+ - [#67463](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67463)
128
+ [`caac5b953575`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/caac5b953575) -
129
+ Fixed an issue where typography tokens referenced font family tokens that may not exist on a page,
130
+ causing fallbacks to break.
126
131
 
127
132
  ### Patch Changes
128
133
 
129
- - Updated dependencies
134
+ - Updated dependencies
130
135
 
131
136
  ## 1.4.4
132
137
 
133
138
  ### Patch Changes
134
139
 
135
- - [#63526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63526)
136
- [`cae958047771`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cae958047771) -
137
- Internal change to how typography tokens are imported. There is no expected behaviour change.
138
- - Updated dependencies
140
+ - [#63526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63526)
141
+ [`cae958047771`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cae958047771) -
142
+ Internal change to how typography tokens are imported. There is no expected behaviour change.
143
+ - Updated dependencies
139
144
 
140
145
  ## 1.4.3
141
146
 
142
147
  ### Patch Changes
143
148
 
144
- - [#41226](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41226)
145
- [`fc7aba3cbae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc7aba3cbae) - [ux]
146
- Further fixes related to heading getting into possible invalid state. Heading will now always
147
- produce valid markup / aria-attributes for any configuration. Previously if there was no
148
- `HeadingContext` in the tree the heading would not produce accessibly correct markup in some
149
- cases. This is now resolved.
149
+ - [#41226](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41226)
150
+ [`fc7aba3cbae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc7aba3cbae) - [ux]
151
+ Further fixes related to heading getting into possible invalid state. Heading will now always
152
+ produce valid markup / aria-attributes for any configuration. Previously if there was no
153
+ `HeadingContext` in the tree the heading would not produce accessibly correct markup in some
154
+ cases. This is now resolved.
150
155
 
151
156
  ## 1.4.2
152
157
 
153
158
  ### Patch Changes
154
159
 
155
- - [#41124](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41124)
156
- [`40cd7f0c882`](https://bitbucket.org/atlassian/atlassian-frontend/commits/40cd7f0c882) - Fix to
157
- prevent heading getting into possible invalid state.
160
+ - [#41124](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41124)
161
+ [`40cd7f0c882`](https://bitbucket.org/atlassian/atlassian-frontend/commits/40cd7f0c882) - Fix to
162
+ prevent heading getting into possible invalid state.
158
163
 
159
164
  ## 1.4.1
160
165
 
161
166
  ### Patch Changes
162
167
 
163
- - [#41032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41032)
164
- [`8d9dad6b977`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d9dad6b977) -
165
- Heading will apply an aria level if rendered as a div. This is an accessibility fix for an
166
- incomplete feature shipped in the previous minor version.
167
- - [#40299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40299)
168
- [`b1882fdd842`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1882fdd842) - Change
169
- typography token naming to be more verbose.
168
+ - [#41032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41032)
169
+ [`8d9dad6b977`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d9dad6b977) - Heading
170
+ will apply an aria level if rendered as a div. This is an accessibility fix for an incomplete
171
+ feature shipped in the previous minor version.
172
+ - [#40299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40299)
173
+ [`b1882fdd842`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1882fdd842) - Change
174
+ typography token naming to be more verbose.
170
175
 
171
176
  ## 1.4.0
172
177
 
173
178
  ### Minor Changes
174
179
 
175
- - [#40254](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40254)
176
- [`9cc7e23c65b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9cc7e23c65b) - [ux]
177
- Adds additional heading types via the `variant` prop. This prop has been added to aid
178
- deprecation of the previous `level` prop. The `level` prop will be removed in a future release.
180
+ - [#40254](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40254)
181
+ [`9cc7e23c65b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9cc7e23c65b) - [ux]
182
+ Adds additional heading types via the `variant` prop. This prop has been added to aid deprecation
183
+ of the previous `level` prop. The `level` prop will be removed in a future release.
179
184
 
180
185
  ## 1.3.8
181
186
 
182
187
  ### Patch Changes
183
188
 
184
- - [#40040](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40040)
185
- [`ff79902b24c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff79902b24c) - This
186
- package is now onboarded onto the product push model.
189
+ - [#40040](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40040)
190
+ [`ff79902b24c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff79902b24c) - This
191
+ package is now onboarded onto the product push model.
187
192
 
188
193
  ## 1.3.7
189
194
 
190
195
  ### Patch Changes
191
196
 
192
- - [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754)
193
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use
194
- `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility
195
- testing.
197
+ - [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754)
198
+ [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use
199
+ `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility
200
+ testing.
196
201
 
197
202
  ## 1.3.6
198
203
 
199
204
  ### Patch Changes
200
205
 
201
- - [#35337](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35337)
202
- [`529814693a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/529814693a1) - Pin
203
- version of @atlaskit/primitives so it resolves to correct version
206
+ - [#35337](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35337)
207
+ [`529814693a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/529814693a1) - Pin
208
+ version of @atlaskit/primitives so it resolves to correct version
204
209
 
205
210
  ## 1.3.5
206
211
 
207
212
  ### Patch Changes
208
213
 
209
- - [#33833](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33833)
210
- [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update
211
- how certain background colors are referenced by name. Internal changes only.
214
+ - [#33833](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33833)
215
+ [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update
216
+ how certain background colors are referenced by name. Internal changes only.
212
217
 
213
218
  ## 1.3.4
214
219
 
215
220
  ### Patch Changes
216
221
 
217
- - [#34922](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34922)
218
- [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) -
219
- Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
222
+ - [#34922](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34922)
223
+ [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal
224
+ change only. Replace all instances of Box with stable @atlaskit/primitives version.
220
225
 
221
226
  ## 1.3.3
222
227
 
223
228
  ### Patch Changes
224
229
 
225
- - [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
226
- [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) -
227
- Removing unused dependencies and dev dependencies
230
+ - [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
231
+ [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing
232
+ unused dependencies and dev dependencies
228
233
 
229
234
  ## 1.3.2
230
235
 
231
236
  ### Patch Changes
232
237
 
233
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
234
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
235
- legacy types are published for TS 4.5-4.8
238
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
239
+ [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
240
+ legacy types are published for TS 4.5-4.8
236
241
 
237
242
  ## 1.3.1
238
243
 
239
244
  ### Patch Changes
240
245
 
241
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
242
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
243
- Upgrade Typescript from `4.5.5` to `4.9.5`
246
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
247
+ [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
248
+ Typescript from `4.5.5` to `4.9.5`
244
249
 
245
250
  ## 1.3.0
246
251
 
247
252
  ### Minor Changes
248
253
 
249
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
250
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
251
- minor dependency bump
254
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
255
+ [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
256
+ minor dependency bump
252
257
 
253
258
  ### Patch Changes
254
259
 
255
- - Updated dependencies
260
+ - Updated dependencies
256
261
 
257
262
  ## 1.2.1
258
263
 
259
264
  ### Patch Changes
260
265
 
261
- - [#32294](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32294)
262
- [`e0460d5d989`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0460d5d989) - Usages
263
- of `process` are now guarded by a `typeof` check.
266
+ - [#32294](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32294)
267
+ [`e0460d5d989`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0460d5d989) - Usages
268
+ of `process` are now guarded by a `typeof` check.
264
269
 
265
270
  ## 1.2.0
266
271
 
267
272
  ### Minor Changes
268
273
 
269
- - [#31206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31206)
270
- [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) -
271
- Upgrades component types to support React 18.
274
+ - [#31206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31206)
275
+ [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades
276
+ component types to support React 18.
272
277
 
273
278
  ## 1.1.4
274
279
 
275
280
  ### Patch Changes
276
281
 
277
- - [#31242](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31242)
278
- [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) -
279
- Internal change only. Replace usages of Inline/Stack with stable version from
280
- `@atlaskit/primitives`.
282
+ - [#31242](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31242)
283
+ [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal
284
+ change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
281
285
 
282
286
  ## 1.1.3
283
287
 
284
288
  ### Patch Changes
285
289
 
286
- - [#31185](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31185)
287
- [`b6c5779d358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6c5779d358) -
288
- Internal changes only to restrict usage of `Box` from the primitives package.
290
+ - [#31185](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31185)
291
+ [`b6c5779d358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6c5779d358) - Internal
292
+ changes only to restrict usage of `Box` from the primitives package.
289
293
 
290
294
  ## 1.1.2
291
295
 
292
296
  ### Patch Changes
293
297
 
294
- - Updated dependencies
298
+ - Updated dependencies
295
299
 
296
300
  ## 1.1.1
297
301
 
298
302
  ### Patch Changes
299
303
 
300
- - [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390)
301
- [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) -
302
- Internal change to update token references. There is no expected behaviour or visual change.
304
+ - [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390)
305
+ [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal
306
+ change to update token references. There is no expected behaviour or visual change.
303
307
 
304
308
  ## 1.1.0
305
309
 
306
310
  ### Minor Changes
307
311
 
308
- - [#28493](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28493)
309
- [`fce52a022f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fce52a022f5) - Adds
310
- typography tokens to @atlaskit/heading.
312
+ - [#28493](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28493)
313
+ [`fce52a022f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fce52a022f5) - Adds
314
+ typography tokens to @atlaskit/heading.
311
315
 
312
316
  ## 1.0.4
313
317
 
314
318
  ### Patch Changes
315
319
 
316
- - Updated dependencies
320
+ - Updated dependencies
317
321
 
318
322
  ## 1.0.3
319
323
 
320
324
  ### Patch Changes
321
325
 
322
- - Updated dependencies
326
+ - Updated dependencies
323
327
 
324
328
  ## 1.0.2
325
329
 
326
330
  ### Patch Changes
327
331
 
328
- - [#27341](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27341)
329
- [`95fdae34c94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95fdae34c94) - Revert
330
- experimental change to `@compiled/react` from `@emotion/react`.
332
+ - [#27341](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27341)
333
+ [`95fdae34c94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95fdae34c94) - Revert
334
+ experimental change to `@compiled/react` from `@emotion/react`.
331
335
 
332
336
  ## 1.0.1
333
337
 
334
338
  ### Patch Changes
335
339
 
336
- - Updated dependencies
340
+ - Updated dependencies
337
341
 
338
342
  ## 1.0.0
339
343
 
340
344
  ### Major Changes
341
345
 
342
- - [#27238](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27238)
343
- [`7d92ed50264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d92ed50264) - [ux]
344
- This package is still considered to be in an experimental state and is discouraged for use in
345
- production. The major is to simplify consumption and versioning in product.
346
+ - [#27238](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27238)
347
+ [`7d92ed50264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d92ed50264) - [ux]
348
+ This package is still considered to be in an experimental state and is discouraged for use in
349
+ production. The major is to simplify consumption and versioning in product.
346
350
 
347
- Other changes:
351
+ Other changes:
348
352
 
349
- - Introduction of a `HeadingContext` provider to aid with creating the right semantic
350
- structure for headings.
351
- - Migrated internals to use `@compiled/react` from `@emotion/react`.
353
+ - Introduction of a `HeadingContext` provider to aid with creating the right semantic structure
354
+ for headings.
355
+ - Migrated internals to use `@compiled/react` from `@emotion/react`.
352
356
 
353
357
  ## 0.1.18
354
358
 
355
359
  ### Patch Changes
356
360
 
357
- - [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488)
358
- [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) -
359
- Internal changes to apply spacing tokens. This should be a no-op change.
361
+ - [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488)
362
+ [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal
363
+ changes to apply spacing tokens. This should be a no-op change.
360
364
 
361
365
  ## 0.1.17
362
366
 
363
367
  ### Patch Changes
364
368
 
365
- - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
366
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) -
367
- Upgrade Typescript from `4.3.5` to `4.5.5`
369
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
370
+ [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
371
+ Typescript from `4.3.5` to `4.5.5`
368
372
 
369
373
  ## 0.1.16
370
374
 
371
375
  ### Patch Changes
372
376
 
373
- - [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004)
374
- [`30b11aab9fb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30b11aab9fb) -
375
- Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
376
- - Updated dependencies
377
+ - [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004)
378
+ [`30b11aab9fb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30b11aab9fb) - Updates
379
+ `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
380
+ - Updated dependencies
377
381
 
378
382
  ## 0.1.15
379
383
 
380
384
  ### Patch Changes
381
385
 
382
- - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
383
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) -
384
- Upgrade Typescript from `4.2.4` to `4.3.5`.
386
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
387
+ [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
388
+ Typescript from `4.2.4` to `4.3.5`.
385
389
 
386
390
  ## 0.1.14
387
391
 
388
392
  ### Patch Changes
389
393
 
390
- - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381)
391
- [`47b01007f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47b01007f27) -
392
- Introduces color prop with values default and inverse.
394
+ - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381)
395
+ [`47b01007f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47b01007f27) -
396
+ Introduces color prop with values default and inverse.
393
397
 
394
398
  ## 0.1.13
395
399
 
396
400
  ### Patch Changes
397
401
 
398
- - [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642)
399
- [`354050b68da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/354050b68da) - Revert
400
- font size calculations to raw pixels.
402
+ - [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642)
403
+ [`354050b68da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/354050b68da) - Revert
404
+ font size calculations to raw pixels.
401
405
 
402
406
  ## 0.1.12
403
407
 
404
408
  ### Patch Changes
405
409
 
406
- - Updated dependencies
410
+ - Updated dependencies
407
411
 
408
412
  ## 0.1.11
409
413
 
410
414
  ### Patch Changes
411
415
 
412
- - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
413
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) -
414
- Upgrade to TypeScript 4.2.4
416
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
417
+ [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
418
+ to TypeScript 4.2.4
415
419
 
416
420
  ## 0.1.10
417
421
 
418
422
  ### Patch Changes
419
423
 
420
- - Updated dependencies
424
+ - Updated dependencies
421
425
 
422
426
  ## 0.1.9
423
427
 
424
428
  ### Patch Changes
425
429
 
426
- - Updated dependencies
430
+ - Updated dependencies
427
431
 
428
432
  ## 0.1.8
429
433
 
430
434
  ### Patch Changes
431
435
 
432
- - Updated dependencies
436
+ - Updated dependencies
433
437
 
434
438
  ## 0.1.7
435
439
 
436
440
  ### Patch Changes
437
441
 
438
- - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
439
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) -
440
- Updates usage of deprecated token names so they're aligned with the latest naming conventions.
441
- No UI or visual changes
442
- - Updated dependencies
442
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
443
+ [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates
444
+ usage of deprecated token names so they're aligned with the latest naming conventions. No UI or
445
+ visual changes
446
+ - Updated dependencies
443
447
 
444
448
  ## 0.1.6
445
449
 
446
450
  ### Patch Changes
447
451
 
448
- - Updated dependencies
452
+ - Updated dependencies
449
453
 
450
454
  ## 0.1.5
451
455
 
452
456
  ### Patch Changes
453
457
 
454
- - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998)
455
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds
456
- for this package now pass through a tokens babel plugin, removing runtime invocations of the
457
- tokens() function and improving bundle size.
458
- - Updated dependencies
458
+ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998)
459
+ [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds
460
+ for this package now pass through a tokens babel plugin, removing runtime invocations of the
461
+ tokens() function and improving bundle size.
462
+ - Updated dependencies
459
463
 
460
464
  ## 0.1.4
461
465
 
462
466
  ### Patch Changes
463
467
 
464
- - Updated dependencies
468
+ - Updated dependencies
465
469
 
466
470
  ## 0.1.3
467
471
 
468
472
  ### Patch Changes
469
473
 
470
- - Updated dependencies
474
+ - Updated dependencies
471
475
 
472
476
  ## 0.1.2
473
477
 
474
478
  ### Patch Changes
475
479
 
476
- - Updated dependencies
480
+ - Updated dependencies
477
481
 
478
482
  ## 0.1.1
479
483
 
480
484
  ### Patch Changes
481
485
 
482
- - [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864)
483
- [`d7a9a4ff7ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7a9a4ff7ec) -
484
- Instrumented heading with the new theming package, `@atlaskit/tokens`. New tokens will be
485
- visible only in applications configured to use the new Tokens API (currently in alpha). These
486
- changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode
487
- users should expect no visual or breaking changes.
488
- - Updated dependencies
486
+ - [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864)
487
+ [`d7a9a4ff7ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7a9a4ff7ec) -
488
+ Instrumented heading with the new theming package, `@atlaskit/tokens`. New tokens will be visible
489
+ only in applications configured to use the new Tokens API (currently in alpha). These changes are
490
+ intended to be interoperable with the legacy theme implementation. Legacy dark mode users should
491
+ expect no visual or breaking changes.
492
+ - Updated dependencies
489
493
 
490
494
  ## 0.1.0
491
495
 
492
496
  ### Minor Changes
493
497
 
494
- - [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837)
495
- [`ee15e59ba60`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee15e59ba60) - This
496
- is the initial release of the Heading package. Typography styles have been duplicated from the
497
- `@atlaskit/theme` package as standalone components.
498
+ - [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837)
499
+ [`ee15e59ba60`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee15e59ba60) - This is
500
+ the initial release of the Heading package. Typography styles have been duplicated from the
501
+ `@atlaskit/theme` package as standalone components.
498
502
 
499
503
  ### Patch Changes
500
504
 
501
- - [`46816ee8526`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46816ee8526) -
502
- Changes heading element mappings to match '@atlaskit/css-reset'.
503
- - [`f9cd2065648`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9cd2065648) -
504
- Removed redundant styles for text-transform, moved font-size to `rem` insteda of `em`.
505
- - Updated dependencies
505
+ - [`46816ee8526`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46816ee8526) - Changes
506
+ heading element mappings to match '@atlaskit/css-reset'.
507
+ - [`f9cd2065648`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9cd2065648) - Removed
508
+ redundant styles for text-transform, moved font-size to `rem` insteda of `em`.
509
+ - Updated dependencies
@@ -1,6 +1,7 @@
1
- import core, {
1
+ import type {
2
2
  API,
3
3
  ASTPath,
4
+ default as core,
4
5
  FileInfo,
5
6
  ImportDeclaration,
6
7
  Options,
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  type HeadingLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
3
3
  type HeadingElement = `h${1 | 2 | 3 | 4 | 5 | 6}` | 'div';
4
4
  /**
@@ -66,7 +66,6 @@ export type NewHeadingProps = HeadingPropsBase & {
66
66
  * Heading size. This value is detached from the specific heading level applied to allow for more flexibility.
67
67
  * Use instead of the deprecated `level` prop.
68
68
  *
69
- * This prop will only work if the typography tokens theme is applied on the page.
70
69
  */
71
70
  size: HeadingSize;
72
71
  level?: never;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  type HeadingLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
3
3
  type HeadingElement = `h${1 | 2 | 3 | 4 | 5 | 6}` | 'div';
4
4
  /**
@@ -66,7 +66,6 @@ export type NewHeadingProps = HeadingPropsBase & {
66
66
  * Heading size. This value is detached from the specific heading level applied to allow for more flexibility.
67
67
  * Use instead of the deprecated `level` prop.
68
68
  *
69
- * This prop will only work if the typography tokens theme is applied on the page.
70
69
  */
71
70
  size: HeadingSize;
72
71
  level?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "A heading is a typography component used to display text in different sizes and formats.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,8 +33,8 @@
33
33
  "codegen": "ts-node ./scripts/codegen.tsx"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/primitives": "^6.0.0",
37
- "@atlaskit/tokens": "^1.45.0",
36
+ "@atlaskit/primitives": "^7.0.0",
37
+ "@atlaskit/tokens": "^1.49.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@emotion/react": "^11.7.1"
40
40
  },
@@ -48,7 +48,6 @@
48
48
  "@atlaskit/ssr": "*",
49
49
  "@atlaskit/toggle": "^13.1.0",
50
50
  "@atlaskit/visual-regression": "*",
51
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
52
51
  "@atlassian/codegen": "^0.1.0",
53
52
  "@testing-library/react": "^12.1.5",
54
53
  "jscodeshift": "^0.13.0",
@@ -87,6 +86,5 @@
87
86
  "af:exports": {
88
87
  ".": "./src/index.tsx"
89
88
  },
90
- "homepage": "https://atlassian.design/components/heading/",
91
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
89
+ "homepage": "https://atlassian.design/components/heading/"
92
90
  }