@atlaskit/focus-ring 1.3.9 → 1.4.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 +131 -52
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,265 +1,344 @@
|
|
|
1
1
|
# @atlaskit/focus-ring
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#96204](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96204)
|
|
8
|
+
[`a53c45efeac1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a53c45efeac1) -
|
|
9
|
+
Add support for React 18.
|
|
10
|
+
|
|
3
11
|
## 1.3.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
6
14
|
|
|
7
|
-
-
|
|
15
|
+
- [#83297](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83297)
|
|
16
|
+
[`6b1707c169e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b1707c169e0) -
|
|
17
|
+
The internal composition of this component has changed. There is no expected change in
|
|
18
|
+
behaviour.
|
|
8
19
|
|
|
9
20
|
## 1.3.8
|
|
10
21
|
|
|
11
22
|
### Patch Changes
|
|
12
23
|
|
|
13
|
-
-
|
|
24
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
25
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
26
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
14
27
|
|
|
15
28
|
## 1.3.7
|
|
16
29
|
|
|
17
30
|
### Patch Changes
|
|
18
31
|
|
|
19
|
-
-
|
|
32
|
+
- [#72130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72130)
|
|
33
|
+
[`b037e5451037`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b037e5451037) -
|
|
34
|
+
Update new button text color fallback for default theme (non-token) to match that of old button
|
|
35
|
+
current text color
|
|
20
36
|
|
|
21
37
|
## 1.3.6
|
|
22
38
|
|
|
23
39
|
### Patch Changes
|
|
24
40
|
|
|
25
|
-
-
|
|
41
|
+
- [#39309](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39309)
|
|
42
|
+
[`1e90520801a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e90520801a) - Added
|
|
43
|
+
this package into push model consumption.
|
|
26
44
|
|
|
27
45
|
## 1.3.5
|
|
28
46
|
|
|
29
47
|
### Patch Changes
|
|
30
48
|
|
|
31
|
-
-
|
|
49
|
+
- [#38098](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38098)
|
|
50
|
+
[`63ee052ee1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63ee052ee1b) - Fix
|
|
51
|
+
focus-ring border width token with `border.width.outline`
|
|
32
52
|
|
|
33
53
|
## 1.3.4
|
|
34
54
|
|
|
35
55
|
### Patch Changes
|
|
36
56
|
|
|
37
|
-
-
|
|
57
|
+
- [#37186](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37186)
|
|
58
|
+
[`ce22a54e852`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce22a54e852) - [ux]
|
|
59
|
+
update focus ring outline border.focused fallback to B200 to meet contrast
|
|
38
60
|
|
|
39
61
|
## 1.3.3
|
|
40
62
|
|
|
41
63
|
### Patch Changes
|
|
42
64
|
|
|
43
|
-
-
|
|
65
|
+
- [#32935](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32935)
|
|
66
|
+
[`b1bdec7cce2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1bdec7cce2) -
|
|
67
|
+
Internal change to enforce token usage for spacing properties. There is no expected visual or
|
|
68
|
+
behaviour change.
|
|
44
69
|
|
|
45
70
|
## 1.3.2
|
|
46
71
|
|
|
47
72
|
### Patch Changes
|
|
48
73
|
|
|
49
|
-
-
|
|
74
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
75
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
76
|
+
legacy types are published for TS 4.5-4.8
|
|
50
77
|
|
|
51
78
|
## 1.3.1
|
|
52
79
|
|
|
53
80
|
### Patch Changes
|
|
54
81
|
|
|
55
|
-
-
|
|
82
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
83
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
|
|
84
|
+
Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
56
85
|
|
|
57
86
|
## 1.3.0
|
|
58
87
|
|
|
59
88
|
### Minor Changes
|
|
60
89
|
|
|
61
|
-
-
|
|
90
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
91
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
92
|
+
minor dependency bump
|
|
62
93
|
|
|
63
94
|
### Patch Changes
|
|
64
95
|
|
|
65
|
-
-
|
|
96
|
+
- Updated dependencies
|
|
66
97
|
|
|
67
98
|
## 1.2.6
|
|
68
99
|
|
|
69
100
|
### Patch Changes
|
|
70
101
|
|
|
71
|
-
-
|
|
102
|
+
- [#31299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31299)
|
|
103
|
+
[`c23cf0b085d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c23cf0b085d) - Adds
|
|
104
|
+
display name to component for React devtools debugging.
|
|
72
105
|
|
|
73
106
|
## 1.2.5
|
|
74
107
|
|
|
75
108
|
### Patch Changes
|
|
76
109
|
|
|
77
|
-
-
|
|
110
|
+
- [#30125](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30125)
|
|
111
|
+
[`7f5f23dcb68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f5f23dcb68) -
|
|
112
|
+
Introduce shape tokens to some packages.
|
|
78
113
|
|
|
79
114
|
## 1.2.4
|
|
80
115
|
|
|
81
116
|
### Patch Changes
|
|
82
117
|
|
|
83
|
-
-
|
|
118
|
+
- Updated dependencies
|
|
84
119
|
|
|
85
120
|
## 1.2.3
|
|
86
121
|
|
|
87
122
|
### Patch Changes
|
|
88
123
|
|
|
89
|
-
-
|
|
124
|
+
- Updated dependencies
|
|
90
125
|
|
|
91
126
|
## 1.2.2
|
|
92
127
|
|
|
93
128
|
### Patch Changes
|
|
94
129
|
|
|
95
|
-
-
|
|
130
|
+
- Updated dependencies
|
|
96
131
|
|
|
97
132
|
## 1.2.1
|
|
98
133
|
|
|
99
134
|
### Patch Changes
|
|
100
135
|
|
|
101
|
-
-
|
|
136
|
+
- Updated dependencies
|
|
102
137
|
|
|
103
138
|
## 1.2.0
|
|
104
139
|
|
|
105
140
|
### Minor Changes
|
|
106
141
|
|
|
107
|
-
-
|
|
142
|
+
- [#26244](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26244)
|
|
143
|
+
[`71bf011db22`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71bf011db22) - Focus
|
|
144
|
+
ring inset styles are now applied via outline - consistent with offset styles.
|
|
108
145
|
|
|
109
146
|
## 1.1.0
|
|
110
147
|
|
|
111
148
|
### Minor Changes
|
|
112
149
|
|
|
113
|
-
-
|
|
150
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710)
|
|
151
|
+
[`b5d79ded842`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5d79ded842) -
|
|
152
|
+
Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
114
153
|
|
|
115
154
|
## 1.0.7
|
|
116
155
|
|
|
117
156
|
### Patch Changes
|
|
118
157
|
|
|
119
|
-
-
|
|
158
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
159
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) -
|
|
160
|
+
Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
120
161
|
|
|
121
162
|
## 1.0.6
|
|
122
163
|
|
|
123
164
|
### Patch Changes
|
|
124
165
|
|
|
125
|
-
-
|
|
166
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
167
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) -
|
|
168
|
+
Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
126
169
|
|
|
127
170
|
## 1.0.5
|
|
128
171
|
|
|
129
172
|
### Patch Changes
|
|
130
173
|
|
|
131
|
-
-
|
|
174
|
+
- Updated dependencies
|
|
132
175
|
|
|
133
176
|
## 1.0.4
|
|
134
177
|
|
|
135
178
|
### Patch Changes
|
|
136
179
|
|
|
137
|
-
-
|
|
180
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
181
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) -
|
|
182
|
+
Upgrade to TypeScript 4.2.4
|
|
138
183
|
|
|
139
184
|
## 1.0.3
|
|
140
185
|
|
|
141
186
|
### Patch Changes
|
|
142
187
|
|
|
143
|
-
-
|
|
188
|
+
- Updated dependencies
|
|
144
189
|
|
|
145
190
|
## 1.0.2
|
|
146
191
|
|
|
147
192
|
### Patch Changes
|
|
148
193
|
|
|
149
|
-
-
|
|
194
|
+
- Updated dependencies
|
|
150
195
|
|
|
151
196
|
## 1.0.1
|
|
152
197
|
|
|
153
198
|
### Patch Changes
|
|
154
199
|
|
|
155
|
-
-
|
|
200
|
+
- Updated dependencies
|
|
156
201
|
|
|
157
202
|
## 1.0.0
|
|
158
203
|
|
|
159
204
|
### Major Changes
|
|
160
205
|
|
|
161
|
-
-
|
|
206
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
|
|
207
|
+
[`3e1a93c6b67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3e1a93c6b67) -
|
|
208
|
+
Releases FocusRing to v1.
|
|
162
209
|
|
|
163
210
|
### Minor Changes
|
|
164
211
|
|
|
165
|
-
-
|
|
212
|
+
- [`63b8679585b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63b8679585b) - Adds
|
|
213
|
+
an additional prop `focus` to the `FocusRing` to allow the component to also be controlled. This
|
|
214
|
+
prop is designed to be used in conjunction with a complementary hook; `useFocusRing`.
|
|
166
215
|
|
|
167
216
|
## 0.2.7
|
|
168
217
|
|
|
169
218
|
### Patch Changes
|
|
170
219
|
|
|
171
|
-
-
|
|
172
|
-
|
|
173
|
-
|
|
220
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) -
|
|
221
|
+
Updates usage of deprecated token names so they're aligned with the latest naming conventions.
|
|
222
|
+
No UI or visual changes
|
|
223
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - [ux]
|
|
224
|
+
The component has reworked its internal so that it can now better deal with issues where the
|
|
225
|
+
background-color was obscured by the focus-ring box shadow.
|
|
226
|
+
- Updated dependencies
|
|
174
227
|
|
|
175
228
|
## 0.2.6
|
|
176
229
|
|
|
177
230
|
### Patch Changes
|
|
178
231
|
|
|
179
|
-
-
|
|
232
|
+
- Updated dependencies
|
|
180
233
|
|
|
181
234
|
## 0.2.5
|
|
182
235
|
|
|
183
236
|
### Patch Changes
|
|
184
237
|
|
|
185
|
-
-
|
|
186
|
-
-
|
|
238
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998)
|
|
239
|
+
[`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds
|
|
240
|
+
for this package now pass through a tokens babel plugin, removing runtime invocations of the
|
|
241
|
+
tokens() function and improving bundle size.
|
|
242
|
+
- Updated dependencies
|
|
187
243
|
|
|
188
244
|
## 0.2.4
|
|
189
245
|
|
|
190
246
|
### Patch Changes
|
|
191
247
|
|
|
192
|
-
-
|
|
193
|
-
-
|
|
248
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777)
|
|
249
|
+
[`6c1c909296d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c1c909296d) - [ux]
|
|
250
|
+
When composing elements that define class name they will now be correctly retained.
|
|
251
|
+
- Updated dependencies
|
|
194
252
|
|
|
195
253
|
## 0.2.3
|
|
196
254
|
|
|
197
255
|
### Patch Changes
|
|
198
256
|
|
|
199
|
-
-
|
|
257
|
+
- [#15632](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15632)
|
|
258
|
+
[`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds
|
|
259
|
+
explicit type to button usages components.
|
|
200
260
|
|
|
201
261
|
## 0.2.2
|
|
202
262
|
|
|
203
263
|
### Patch Changes
|
|
204
264
|
|
|
205
|
-
-
|
|
265
|
+
- Updated dependencies
|
|
206
266
|
|
|
207
267
|
## 0.2.1
|
|
208
268
|
|
|
209
269
|
### Patch Changes
|
|
210
270
|
|
|
211
|
-
-
|
|
271
|
+
- Updated dependencies
|
|
212
272
|
|
|
213
273
|
## 0.2.0
|
|
214
274
|
|
|
215
275
|
### Minor Changes
|
|
216
276
|
|
|
217
|
-
-
|
|
218
|
-
|
|
277
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302)
|
|
278
|
+
[`c765dce3afb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c765dce3afb) - [ux]
|
|
279
|
+
Focus Ring now exposes an additional prop `isInset` to support inset focus states; for example
|
|
280
|
+
on inputs, or textfields.
|
|
281
|
+
- [`0dac09c47b6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dac09c47b6) - [ux]
|
|
282
|
+
Colors are now sourced through tokens.
|
|
219
283
|
|
|
220
284
|
### Patch Changes
|
|
221
285
|
|
|
222
|
-
-
|
|
286
|
+
- Updated dependencies
|
|
223
287
|
|
|
224
288
|
## 0.1.1
|
|
225
289
|
|
|
226
290
|
### Patch Changes
|
|
227
291
|
|
|
228
|
-
-
|
|
292
|
+
- [#13232](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13232)
|
|
293
|
+
[`9c9296f2959`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c9296f2959) - Fix
|
|
294
|
+
bug where the package was being exported from the wrong file.
|
|
229
295
|
|
|
230
296
|
## 0.1.0
|
|
231
297
|
|
|
232
298
|
### Minor Changes
|
|
233
299
|
|
|
234
|
-
-
|
|
235
|
-
|
|
300
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837)
|
|
301
|
+
[`5ab09801cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5ab09801cfa) - [ux]
|
|
302
|
+
Updates focus-ring to use an offset box-shadow for its focus state.
|
|
303
|
+
- [`adaa7913de0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/adaa7913de0) -
|
|
304
|
+
Initial release for the package. A Focus Ring can be used to compose focusable elements with a
|
|
305
|
+
simple composable API.
|
|
236
306
|
|
|
237
307
|
### Patch Changes
|
|
238
308
|
|
|
239
|
-
-
|
|
309
|
+
- Updated dependencies
|
|
240
310
|
|
|
241
311
|
## 0.0.4
|
|
242
312
|
|
|
243
313
|
### Patch Changes
|
|
244
314
|
|
|
245
|
-
-
|
|
315
|
+
- [#8306](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8306)
|
|
316
|
+
[`229b32842b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/229b32842b5) - Fix
|
|
317
|
+
.npmignore and tsconfig.json for **tests**
|
|
246
318
|
|
|
247
319
|
## 0.0.3
|
|
248
320
|
|
|
249
321
|
### Patch Changes
|
|
250
322
|
|
|
251
|
-
-
|
|
323
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
324
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) -
|
|
325
|
+
Transpile packages using babel rather than tsc
|
|
252
326
|
|
|
253
327
|
## 0.0.2
|
|
254
328
|
|
|
255
329
|
### Patch Changes
|
|
256
330
|
|
|
257
|
-
-
|
|
258
|
-
|
|
259
|
-
|
|
331
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
332
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
333
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
334
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle
|
|
335
|
+
Typescript versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
336
|
+
`devDependencies` to denote version that the package was built with.
|
|
260
337
|
|
|
261
338
|
## 0.0.1
|
|
262
339
|
|
|
263
340
|
### Patch Changes
|
|
264
341
|
|
|
265
|
-
-
|
|
342
|
+
- [#4967](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4967)
|
|
343
|
+
[`b443b5a60f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b443b5a60f) - Renamed
|
|
344
|
+
template package
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/focus-ring",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "A focus ring is used to indicate the currently focused item.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"website": {
|
|
17
17
|
"name": "Focus ring",
|
|
18
18
|
"category": "Components"
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"runReact18": true
|
|
20
21
|
},
|
|
21
22
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
22
23
|
"main": "dist/cjs/index.js",
|
|
@@ -37,12 +38,12 @@
|
|
|
37
38
|
".": "./src/index.tsx"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
41
|
+
"@atlaskit/tokens": "^1.44.0",
|
|
41
42
|
"@babel/runtime": "^7.0.0",
|
|
42
43
|
"@emotion/react": "^11.7.1"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
|
-
"react": "^16.8.0"
|
|
46
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@af/accessibility-testing": "*",
|