@atlaskit/heading 2.1.2 → 2.3.0
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 +202 -77
- package/dist/cjs/heading.js +3 -5
- package/dist/cjs/heading.partial.js +31 -9
- package/dist/es2019/heading.js +2 -4
- package/dist/es2019/heading.partial.js +30 -7
- package/dist/esm/heading.js +3 -5
- package/dist/esm/heading.partial.js +30 -8
- package/dist/types/heading.d.ts +1 -1
- package/dist/types/heading.partial.d.ts +12 -11
- package/dist/types/types.d.ts +18 -7
- package/dist/types-ts4.5/heading.d.ts +1 -1
- package/dist/types-ts4.5/heading.partial.d.ts +12 -11
- package/dist/types-ts4.5/types.d.ts +18 -7
- package/package.json +8 -5
- package/scripts/codegen.tsx +6 -16
- package/codemods/__tests__/1.6.0-level-to-size.tsx +0 -80
- package/codemods/__tests__/_framework.tsx +0 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,380 +1,505 @@
|
|
|
1
1
|
# @atlaskit/heading
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
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.
|
|
10
|
+
|
|
11
|
+
## 2.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
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.
|
|
18
|
+
|
|
3
19
|
## 2.1.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
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
|
|
8
26
|
|
|
9
27
|
## 2.1.1
|
|
10
28
|
|
|
11
29
|
### Patch Changes
|
|
12
30
|
|
|
13
|
-
-
|
|
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`
|
|
14
34
|
|
|
15
35
|
## 2.1.0
|
|
16
36
|
|
|
17
37
|
### Minor Changes
|
|
18
38
|
|
|
19
|
-
-
|
|
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.
|
|
20
42
|
|
|
21
43
|
### Patch Changes
|
|
22
44
|
|
|
23
|
-
-
|
|
45
|
+
- Updated dependencies
|
|
24
46
|
|
|
25
47
|
## 2.0.1
|
|
26
48
|
|
|
27
49
|
### Patch Changes
|
|
28
50
|
|
|
29
|
-
-
|
|
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.
|
|
30
54
|
|
|
31
55
|
## 2.0.0
|
|
32
56
|
|
|
33
57
|
### Major Changes
|
|
34
58
|
|
|
35
|
-
-
|
|
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.
|
|
36
62
|
|
|
37
63
|
## 1.8.1
|
|
38
64
|
|
|
39
65
|
### Patch Changes
|
|
40
66
|
|
|
41
|
-
-
|
|
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
|
|
42
70
|
|
|
43
71
|
## 1.8.0
|
|
44
72
|
|
|
45
73
|
### Minor Changes
|
|
46
74
|
|
|
47
|
-
-
|
|
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.
|
|
48
78
|
|
|
49
79
|
## 1.7.1
|
|
50
80
|
|
|
51
81
|
### Patch Changes
|
|
52
82
|
|
|
53
|
-
-
|
|
54
|
-
-
|
|
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
|
|
55
87
|
|
|
56
88
|
## 1.7.0
|
|
57
89
|
|
|
58
90
|
### Minor Changes
|
|
59
91
|
|
|
60
|
-
-
|
|
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
|
|
61
95
|
|
|
62
96
|
### Patch Changes
|
|
63
97
|
|
|
64
|
-
-
|
|
98
|
+
- Updated dependencies
|
|
65
99
|
|
|
66
100
|
## 1.6.0
|
|
67
101
|
|
|
68
102
|
### Minor Changes
|
|
69
103
|
|
|
70
|
-
-
|
|
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...
|
|
71
108
|
|
|
72
109
|
## 1.5.1
|
|
73
110
|
|
|
74
111
|
### Patch Changes
|
|
75
112
|
|
|
76
|
-
-
|
|
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.
|
|
77
117
|
|
|
78
118
|
## 1.5.0
|
|
79
119
|
|
|
80
120
|
### Minor Changes
|
|
81
121
|
|
|
82
|
-
-
|
|
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.
|
|
83
126
|
|
|
84
127
|
### Patch Changes
|
|
85
128
|
|
|
86
|
-
-
|
|
129
|
+
- Updated dependencies
|
|
87
130
|
|
|
88
131
|
## 1.4.4
|
|
89
132
|
|
|
90
133
|
### Patch Changes
|
|
91
134
|
|
|
92
|
-
-
|
|
93
|
-
-
|
|
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
|
|
94
139
|
|
|
95
140
|
## 1.4.3
|
|
96
141
|
|
|
97
142
|
### Patch Changes
|
|
98
143
|
|
|
99
|
-
-
|
|
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.
|
|
100
150
|
|
|
101
151
|
## 1.4.2
|
|
102
152
|
|
|
103
153
|
### Patch Changes
|
|
104
154
|
|
|
105
|
-
-
|
|
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.
|
|
106
158
|
|
|
107
159
|
## 1.4.1
|
|
108
160
|
|
|
109
161
|
### Patch Changes
|
|
110
162
|
|
|
111
|
-
-
|
|
112
|
-
|
|
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.
|
|
113
170
|
|
|
114
171
|
## 1.4.0
|
|
115
172
|
|
|
116
173
|
### Minor Changes
|
|
117
174
|
|
|
118
|
-
-
|
|
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.
|
|
119
179
|
|
|
120
180
|
## 1.3.8
|
|
121
181
|
|
|
122
182
|
### Patch Changes
|
|
123
183
|
|
|
124
|
-
-
|
|
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.
|
|
125
187
|
|
|
126
188
|
## 1.3.7
|
|
127
189
|
|
|
128
190
|
### Patch Changes
|
|
129
191
|
|
|
130
|
-
-
|
|
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.
|
|
131
196
|
|
|
132
197
|
## 1.3.6
|
|
133
198
|
|
|
134
199
|
### Patch Changes
|
|
135
200
|
|
|
136
|
-
-
|
|
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
|
|
137
204
|
|
|
138
205
|
## 1.3.5
|
|
139
206
|
|
|
140
207
|
### Patch Changes
|
|
141
208
|
|
|
142
|
-
-
|
|
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.
|
|
143
212
|
|
|
144
213
|
## 1.3.4
|
|
145
214
|
|
|
146
215
|
### Patch Changes
|
|
147
216
|
|
|
148
|
-
-
|
|
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.
|
|
149
220
|
|
|
150
221
|
## 1.3.3
|
|
151
222
|
|
|
152
223
|
### Patch Changes
|
|
153
224
|
|
|
154
|
-
-
|
|
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
|
|
155
228
|
|
|
156
229
|
## 1.3.2
|
|
157
230
|
|
|
158
231
|
### Patch Changes
|
|
159
232
|
|
|
160
|
-
-
|
|
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
|
|
161
236
|
|
|
162
237
|
## 1.3.1
|
|
163
238
|
|
|
164
239
|
### Patch Changes
|
|
165
240
|
|
|
166
|
-
-
|
|
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`
|
|
167
244
|
|
|
168
245
|
## 1.3.0
|
|
169
246
|
|
|
170
247
|
### Minor Changes
|
|
171
248
|
|
|
172
|
-
-
|
|
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
|
|
173
252
|
|
|
174
253
|
### Patch Changes
|
|
175
254
|
|
|
176
|
-
-
|
|
255
|
+
- Updated dependencies
|
|
177
256
|
|
|
178
257
|
## 1.2.1
|
|
179
258
|
|
|
180
259
|
### Patch Changes
|
|
181
260
|
|
|
182
|
-
-
|
|
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.
|
|
183
264
|
|
|
184
265
|
## 1.2.0
|
|
185
266
|
|
|
186
267
|
### Minor Changes
|
|
187
268
|
|
|
188
|
-
-
|
|
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.
|
|
189
272
|
|
|
190
273
|
## 1.1.4
|
|
191
274
|
|
|
192
275
|
### Patch Changes
|
|
193
276
|
|
|
194
|
-
-
|
|
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`.
|
|
195
281
|
|
|
196
282
|
## 1.1.3
|
|
197
283
|
|
|
198
284
|
### Patch Changes
|
|
199
285
|
|
|
200
|
-
-
|
|
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.
|
|
201
289
|
|
|
202
290
|
## 1.1.2
|
|
203
291
|
|
|
204
292
|
### Patch Changes
|
|
205
293
|
|
|
206
|
-
-
|
|
294
|
+
- Updated dependencies
|
|
207
295
|
|
|
208
296
|
## 1.1.1
|
|
209
297
|
|
|
210
298
|
### Patch Changes
|
|
211
299
|
|
|
212
|
-
-
|
|
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.
|
|
213
303
|
|
|
214
304
|
## 1.1.0
|
|
215
305
|
|
|
216
306
|
### Minor Changes
|
|
217
307
|
|
|
218
|
-
-
|
|
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.
|
|
219
311
|
|
|
220
312
|
## 1.0.4
|
|
221
313
|
|
|
222
314
|
### Patch Changes
|
|
223
315
|
|
|
224
|
-
-
|
|
316
|
+
- Updated dependencies
|
|
225
317
|
|
|
226
318
|
## 1.0.3
|
|
227
319
|
|
|
228
320
|
### Patch Changes
|
|
229
321
|
|
|
230
|
-
-
|
|
322
|
+
- Updated dependencies
|
|
231
323
|
|
|
232
324
|
## 1.0.2
|
|
233
325
|
|
|
234
326
|
### Patch Changes
|
|
235
327
|
|
|
236
|
-
-
|
|
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`.
|
|
237
331
|
|
|
238
332
|
## 1.0.1
|
|
239
333
|
|
|
240
334
|
### Patch Changes
|
|
241
335
|
|
|
242
|
-
-
|
|
336
|
+
- Updated dependencies
|
|
243
337
|
|
|
244
338
|
## 1.0.0
|
|
245
339
|
|
|
246
340
|
### Major Changes
|
|
247
341
|
|
|
248
|
-
-
|
|
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.
|
|
249
346
|
|
|
250
|
-
|
|
347
|
+
Other changes:
|
|
251
348
|
|
|
252
|
-
|
|
253
|
-
|
|
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`.
|
|
254
352
|
|
|
255
353
|
## 0.1.18
|
|
256
354
|
|
|
257
355
|
### Patch Changes
|
|
258
356
|
|
|
259
|
-
-
|
|
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.
|
|
260
360
|
|
|
261
361
|
## 0.1.17
|
|
262
362
|
|
|
263
363
|
### Patch Changes
|
|
264
364
|
|
|
265
|
-
-
|
|
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`
|
|
266
368
|
|
|
267
369
|
## 0.1.16
|
|
268
370
|
|
|
269
371
|
### Patch Changes
|
|
270
372
|
|
|
271
|
-
-
|
|
272
|
-
-
|
|
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
|
|
273
377
|
|
|
274
378
|
## 0.1.15
|
|
275
379
|
|
|
276
380
|
### Patch Changes
|
|
277
381
|
|
|
278
|
-
-
|
|
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`.
|
|
279
385
|
|
|
280
386
|
## 0.1.14
|
|
281
387
|
|
|
282
388
|
### Patch Changes
|
|
283
389
|
|
|
284
|
-
-
|
|
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.
|
|
285
393
|
|
|
286
394
|
## 0.1.13
|
|
287
395
|
|
|
288
396
|
### Patch Changes
|
|
289
397
|
|
|
290
|
-
-
|
|
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.
|
|
291
401
|
|
|
292
402
|
## 0.1.12
|
|
293
403
|
|
|
294
404
|
### Patch Changes
|
|
295
405
|
|
|
296
|
-
-
|
|
406
|
+
- Updated dependencies
|
|
297
407
|
|
|
298
408
|
## 0.1.11
|
|
299
409
|
|
|
300
410
|
### Patch Changes
|
|
301
411
|
|
|
302
|
-
-
|
|
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
|
|
303
415
|
|
|
304
416
|
## 0.1.10
|
|
305
417
|
|
|
306
418
|
### Patch Changes
|
|
307
419
|
|
|
308
|
-
-
|
|
420
|
+
- Updated dependencies
|
|
309
421
|
|
|
310
422
|
## 0.1.9
|
|
311
423
|
|
|
312
424
|
### Patch Changes
|
|
313
425
|
|
|
314
|
-
-
|
|
426
|
+
- Updated dependencies
|
|
315
427
|
|
|
316
428
|
## 0.1.8
|
|
317
429
|
|
|
318
430
|
### Patch Changes
|
|
319
431
|
|
|
320
|
-
-
|
|
432
|
+
- Updated dependencies
|
|
321
433
|
|
|
322
434
|
## 0.1.7
|
|
323
435
|
|
|
324
436
|
### Patch Changes
|
|
325
437
|
|
|
326
|
-
-
|
|
327
|
-
-
|
|
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
|
|
328
443
|
|
|
329
444
|
## 0.1.6
|
|
330
445
|
|
|
331
446
|
### Patch Changes
|
|
332
447
|
|
|
333
|
-
-
|
|
448
|
+
- Updated dependencies
|
|
334
449
|
|
|
335
450
|
## 0.1.5
|
|
336
451
|
|
|
337
452
|
### Patch Changes
|
|
338
453
|
|
|
339
|
-
-
|
|
340
|
-
-
|
|
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
|
|
341
459
|
|
|
342
460
|
## 0.1.4
|
|
343
461
|
|
|
344
462
|
### Patch Changes
|
|
345
463
|
|
|
346
|
-
-
|
|
464
|
+
- Updated dependencies
|
|
347
465
|
|
|
348
466
|
## 0.1.3
|
|
349
467
|
|
|
350
468
|
### Patch Changes
|
|
351
469
|
|
|
352
|
-
-
|
|
470
|
+
- Updated dependencies
|
|
353
471
|
|
|
354
472
|
## 0.1.2
|
|
355
473
|
|
|
356
474
|
### Patch Changes
|
|
357
475
|
|
|
358
|
-
-
|
|
476
|
+
- Updated dependencies
|
|
359
477
|
|
|
360
478
|
## 0.1.1
|
|
361
479
|
|
|
362
480
|
### Patch Changes
|
|
363
481
|
|
|
364
|
-
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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
|
|
369
489
|
|
|
370
490
|
## 0.1.0
|
|
371
491
|
|
|
372
492
|
### Minor Changes
|
|
373
493
|
|
|
374
|
-
-
|
|
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.
|
|
375
498
|
|
|
376
499
|
### Patch Changes
|
|
377
500
|
|
|
378
|
-
-
|
|
379
|
-
|
|
380
|
-
-
|
|
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
|
package/dist/cjs/heading.js
CHANGED
|
@@ -11,7 +11,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _react = require("@emotion/react");
|
|
12
12
|
var _headingContext = require("./heading-context");
|
|
13
13
|
var _heading = _interopRequireDefault(require("./heading.partial"));
|
|
14
|
-
var _excluded = ["level"
|
|
14
|
+
var _excluded = ["level"];
|
|
15
|
+
/* eslint-disable @atlaskit/design-system/no-deprecated-design-token-usage */
|
|
15
16
|
/** @jsx jsx */
|
|
16
17
|
// https://atlassian.design/foundations/typography
|
|
17
18
|
var levelMap = {
|
|
@@ -155,7 +156,6 @@ var OldHeading = function OldHeading(_ref) {
|
|
|
155
156
|
*/
|
|
156
157
|
var Heading = function Heading(_ref2) {
|
|
157
158
|
var level = _ref2.level,
|
|
158
|
-
size = _ref2.size,
|
|
159
159
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
160
160
|
return level ?
|
|
161
161
|
// eslint-disable-next-line jsx-a11y/heading-has-content, @repo/internal/react/no-unsafe-spread-props
|
|
@@ -163,8 +163,6 @@ var Heading = function Heading(_ref2) {
|
|
|
163
163
|
level: level
|
|
164
164
|
}, props)) :
|
|
165
165
|
// eslint-disable-next-line jsx-a11y/heading-has-content, @repo/internal/react/no-unsafe-spread-props
|
|
166
|
-
(0, _react.jsx)(_heading.default,
|
|
167
|
-
size: size
|
|
168
|
-
}, props));
|
|
166
|
+
(0, _react.jsx)(_heading.default, props);
|
|
169
167
|
};
|
|
170
168
|
var _default = exports.default = Heading;
|