@atlaskit/flag 15.2.16 → 15.2.18
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 +75 -62
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag-provider.js +2 -2
- package/dist/cjs/flag.js +5 -8
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag.js +3 -6
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag-provider.js +2 -2
- package/dist/esm/flag.js +5 -8
- package/package.json +9 -9
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 15.2.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40332](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40332) [`4d35602a23a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d35602a23a) - Removes tabindex from Flag container
|
|
8
|
+
|
|
9
|
+
## 15.2.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 15.2.16
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
|
-
- [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
8
|
-
- [`95401cac781`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95401cac781) - Internal change to component composition. There is no expected change.
|
|
20
|
+
- [#37533](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37533) [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
21
|
+
- [#37419](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37419) [`95401cac781`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95401cac781) - Internal change to component composition. There is no expected change.
|
|
9
22
|
|
|
10
23
|
## 15.2.15
|
|
11
24
|
|
|
12
25
|
### Patch Changes
|
|
13
26
|
|
|
14
|
-
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
27
|
+
- [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754) [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
15
28
|
|
|
16
29
|
## 15.2.14
|
|
17
30
|
|
|
18
31
|
### Patch Changes
|
|
19
32
|
|
|
20
|
-
- [`7e4085cd951`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e4085cd951) - Allow caret version range in @atlaskit/primitives dependency.
|
|
33
|
+
- [#36412](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36412) [`7e4085cd951`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e4085cd951) - Allow caret version range in @atlaskit/primitives dependency.
|
|
21
34
|
|
|
22
35
|
## 15.2.13
|
|
23
36
|
|
|
@@ -53,20 +66,20 @@
|
|
|
53
66
|
|
|
54
67
|
### Patch Changes
|
|
55
68
|
|
|
56
|
-
- [`529814693a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/529814693a1) - Pin version of @atlaskit/primitives so it resolves to correct version
|
|
69
|
+
- [#35337](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35337) [`529814693a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/529814693a1) - Pin version of @atlaskit/primitives so it resolves to correct version
|
|
57
70
|
|
|
58
71
|
## 15.2.7
|
|
59
72
|
|
|
60
73
|
### Patch Changes
|
|
61
74
|
|
|
62
|
-
- [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update how certain background colors are referenced by name. Internal changes only.
|
|
75
|
+
- [#33833](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33833) [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update how certain background colors are referenced by name. Internal changes only.
|
|
63
76
|
- Updated dependencies
|
|
64
77
|
|
|
65
78
|
## 15.2.6
|
|
66
79
|
|
|
67
80
|
### Patch Changes
|
|
68
81
|
|
|
69
|
-
- [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
|
|
82
|
+
- [#34922](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34922) [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
|
|
70
83
|
|
|
71
84
|
## 15.2.5
|
|
72
85
|
|
|
@@ -78,31 +91,31 @@
|
|
|
78
91
|
|
|
79
92
|
### Patch Changes
|
|
80
93
|
|
|
81
|
-
- [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change.
|
|
94
|
+
- [#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.
|
|
82
95
|
|
|
83
96
|
## 15.2.3
|
|
84
97
|
|
|
85
98
|
### Patch Changes
|
|
86
99
|
|
|
87
|
-
- [`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.
|
|
100
|
+
- [#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.
|
|
88
101
|
|
|
89
102
|
## 15.2.2
|
|
90
103
|
|
|
91
104
|
### Patch Changes
|
|
92
105
|
|
|
93
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
106
|
+
- [#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
|
|
94
107
|
|
|
95
108
|
## 15.2.1
|
|
96
109
|
|
|
97
110
|
### Patch Changes
|
|
98
111
|
|
|
99
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
112
|
+
- [#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`
|
|
100
113
|
|
|
101
114
|
## 15.2.0
|
|
102
115
|
|
|
103
116
|
### Minor Changes
|
|
104
117
|
|
|
105
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
118
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
106
119
|
|
|
107
120
|
### Patch Changes
|
|
108
121
|
|
|
@@ -112,13 +125,13 @@
|
|
|
112
125
|
|
|
113
126
|
### Patch Changes
|
|
114
127
|
|
|
115
|
-
- [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
|
|
128
|
+
- [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211) [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
|
|
116
129
|
|
|
117
130
|
## 15.1.5
|
|
118
131
|
|
|
119
132
|
### Patch Changes
|
|
120
133
|
|
|
121
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
134
|
+
- [#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
|
|
122
135
|
|
|
123
136
|
## 15.1.4
|
|
124
137
|
|
|
@@ -148,7 +161,7 @@
|
|
|
148
161
|
|
|
149
162
|
### Minor Changes
|
|
150
163
|
|
|
151
|
-
- [`be1170b4b1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be1170b4b1f) - Removes custom appearance styles for focus. Now uses `color.border.focused` token consistenly across all appearances..
|
|
164
|
+
- [#31299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31299) [`be1170b4b1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be1170b4b1f) - Removes custom appearance styles for focus. Now uses `color.border.focused` token consistenly across all appearances..
|
|
152
165
|
|
|
153
166
|
### Patch Changes
|
|
154
167
|
|
|
@@ -164,26 +177,26 @@
|
|
|
164
177
|
|
|
165
178
|
### Patch Changes
|
|
166
179
|
|
|
167
|
-
- [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
180
|
+
- [#31206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31206) [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
168
181
|
- Updated dependencies
|
|
169
182
|
|
|
170
183
|
## 15.0.10
|
|
171
184
|
|
|
172
185
|
### Patch Changes
|
|
173
186
|
|
|
174
|
-
- [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
|
|
187
|
+
- [#31338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31338) [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
|
|
175
188
|
|
|
176
189
|
## 15.0.9
|
|
177
190
|
|
|
178
191
|
### Patch Changes
|
|
179
192
|
|
|
180
|
-
- [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
193
|
+
- [#31242](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31242) [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
181
194
|
|
|
182
195
|
## 15.0.8
|
|
183
196
|
|
|
184
197
|
### Patch Changes
|
|
185
198
|
|
|
186
|
-
- [`842bb999a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/842bb999a85) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
199
|
+
- [#31041](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31041) [`842bb999a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/842bb999a85) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
187
200
|
|
|
188
201
|
## 15.0.7
|
|
189
202
|
|
|
@@ -201,20 +214,20 @@
|
|
|
201
214
|
|
|
202
215
|
### Patch Changes
|
|
203
216
|
|
|
204
|
-
- [`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.
|
|
217
|
+
- [#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.
|
|
205
218
|
- Updated dependencies
|
|
206
219
|
|
|
207
220
|
## 15.0.4
|
|
208
221
|
|
|
209
222
|
### Patch Changes
|
|
210
223
|
|
|
211
|
-
- [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
|
|
224
|
+
- [#28064](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28064) [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
|
|
212
225
|
|
|
213
226
|
## 15.0.3
|
|
214
227
|
|
|
215
228
|
### Patch Changes
|
|
216
229
|
|
|
217
|
-
- [`56a44cd0ae9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56a44cd0ae9) - - [ux] Updated Flag component colored background buttons to use correct tokens for better contrast
|
|
230
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`56a44cd0ae9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56a44cd0ae9) - - [ux] Updated Flag component colored background buttons to use correct tokens for better contrast
|
|
218
231
|
- Made the button color type stricter and extracted local css variable names into constants
|
|
219
232
|
|
|
220
233
|
## 15.0.2
|
|
@@ -233,7 +246,7 @@
|
|
|
233
246
|
|
|
234
247
|
### Major Changes
|
|
235
248
|
|
|
236
|
-
- [`f7b2dbd6eba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7b2dbd6eba) - BREAKING CHANGE: We have removed support for legacy light and dark themes. Previously, Flag used the `useGlobalTheme` hook to detect 'light' or 'dark' modes and apply suitable styles accordingly. This functionality has been removed in favor of supporting token-based light and dark themes as well as including fallbacks for non-token environments.
|
|
249
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`f7b2dbd6eba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7b2dbd6eba) - BREAKING CHANGE: We have removed support for legacy light and dark themes. Previously, Flag used the `useGlobalTheme` hook to detect 'light' or 'dark' modes and apply suitable styles accordingly. This functionality has been removed in favor of supporting token-based light and dark themes as well as including fallbacks for non-token environments.
|
|
237
250
|
|
|
238
251
|
Other changes include:
|
|
239
252
|
|
|
@@ -259,19 +272,19 @@
|
|
|
259
272
|
|
|
260
273
|
### Patch Changes
|
|
261
274
|
|
|
262
|
-
- [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
275
|
+
- [#26408](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26408) [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
263
276
|
|
|
264
277
|
## 14.7.1
|
|
265
278
|
|
|
266
279
|
### Patch Changes
|
|
267
280
|
|
|
268
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
281
|
+
- [#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`
|
|
269
282
|
|
|
270
283
|
## 14.7.0
|
|
271
284
|
|
|
272
285
|
### Minor Changes
|
|
273
286
|
|
|
274
|
-
- [`d176305ad56`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d176305ad56) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
287
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`d176305ad56`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d176305ad56) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
275
288
|
|
|
276
289
|
### Patch Changes
|
|
277
290
|
|
|
@@ -281,33 +294,33 @@
|
|
|
281
294
|
|
|
282
295
|
### Patch Changes
|
|
283
296
|
|
|
284
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
297
|
+
- [#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`.
|
|
285
298
|
|
|
286
299
|
## 14.6.3
|
|
287
300
|
|
|
288
301
|
### Patch Changes
|
|
289
302
|
|
|
290
|
-
- [`8202e37941b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8202e37941b) - Internal code change turning on new linting rules.
|
|
303
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`8202e37941b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8202e37941b) - Internal code change turning on new linting rules.
|
|
291
304
|
- Updated dependencies
|
|
292
305
|
|
|
293
306
|
## 14.6.2
|
|
294
307
|
|
|
295
308
|
### Patch Changes
|
|
296
309
|
|
|
297
|
-
- [`982f05dc6b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/982f05dc6b9) - [ux] Remove left indentation on bold flag's actions section
|
|
310
|
+
- [#23303](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23303) [`982f05dc6b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/982f05dc6b9) - [ux] Remove left indentation on bold flag's actions section
|
|
298
311
|
|
|
299
312
|
## 14.6.1
|
|
300
313
|
|
|
301
314
|
### Patch Changes
|
|
302
315
|
|
|
303
|
-
- [`45ebe7af434`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45ebe7af434) - Moved to using declarative entrypoints internally. Public API is unchanged.
|
|
316
|
+
- [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642) [`45ebe7af434`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45ebe7af434) - Moved to using declarative entrypoints internally. Public API is unchanged.
|
|
304
317
|
- Updated dependencies
|
|
305
318
|
|
|
306
319
|
## 14.6.0
|
|
307
320
|
|
|
308
321
|
### Minor Changes
|
|
309
322
|
|
|
310
|
-
- [`379b0a864df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/379b0a864df) - [ux] Remove truncation of titles and wrap text instead. Very slightly changed title text positioning.
|
|
323
|
+
- [#22029](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22029) [`379b0a864df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/379b0a864df) - [ux] Remove truncation of titles and wrap text instead. Very slightly changed title text positioning.
|
|
311
324
|
|
|
312
325
|
### Patch Changes
|
|
313
326
|
|
|
@@ -318,7 +331,7 @@
|
|
|
318
331
|
|
|
319
332
|
### Patch Changes
|
|
320
333
|
|
|
321
|
-
- [`2329b0e8cc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2329b0e8cc0) - [ux] DSP-4541 Update wrongly used tokens
|
|
334
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`2329b0e8cc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2329b0e8cc0) - [ux] DSP-4541 Update wrongly used tokens
|
|
322
335
|
|
|
323
336
|
## 14.5.8
|
|
324
337
|
|
|
@@ -330,7 +343,7 @@
|
|
|
330
343
|
|
|
331
344
|
### Patch Changes
|
|
332
345
|
|
|
333
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
346
|
+
- [#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
|
|
334
347
|
- Updated dependencies
|
|
335
348
|
|
|
336
349
|
## 14.5.6
|
|
@@ -343,7 +356,7 @@
|
|
|
343
356
|
|
|
344
357
|
### Patch Changes
|
|
345
358
|
|
|
346
|
-
- [`0739258f502`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0739258f502) - [ux] Fixed token usages on backgrounds and action links.
|
|
359
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`0739258f502`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0739258f502) - [ux] Fixed token usages on backgrounds and action links.
|
|
347
360
|
- Updated dependencies
|
|
348
361
|
|
|
349
362
|
## 14.5.4
|
|
@@ -362,7 +375,7 @@
|
|
|
362
375
|
|
|
363
376
|
### Patch Changes
|
|
364
377
|
|
|
365
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Internal changes to support adoption of '@compiled/react'.
|
|
378
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Internal changes to support adoption of '@compiled/react'.
|
|
366
379
|
- [`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.
|
|
367
380
|
- [`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.
|
|
368
381
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - An a11y fix for the flag dismiss/toggle button such that it retains focus when toggled.
|
|
@@ -378,7 +391,7 @@
|
|
|
378
391
|
|
|
379
392
|
### Minor Changes
|
|
380
393
|
|
|
381
|
-
- [`c04528ade6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c04528ade6a) - **Note**: It is a re-release of the wrongly `patched` version `14.4.2` that should have been a `minor` release.
|
|
394
|
+
- [#17576](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17576) [`c04528ade6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c04528ade6a) - **Note**: It is a re-release of the wrongly `patched` version `14.4.2` that should have been a `minor` release.
|
|
382
395
|
|
|
383
396
|
[ux] Instrumented flag with the new theming package, `@atlaskit/tokens`.
|
|
384
397
|
|
|
@@ -395,7 +408,7 @@
|
|
|
395
408
|
|
|
396
409
|
_WRONG RELEASE TYPE - DON'T USE_
|
|
397
410
|
|
|
398
|
-
- [`4567d73813c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4567d73813c) - Instrumented flag with the new theming package, `@atlaskit/tokens`.
|
|
411
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`4567d73813c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4567d73813c) - Instrumented flag with the new theming package, `@atlaskit/tokens`.
|
|
399
412
|
|
|
400
413
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
401
414
|
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
@@ -415,7 +428,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
415
428
|
|
|
416
429
|
### Minor Changes
|
|
417
430
|
|
|
418
|
-
- [`230e1862182`](https://bitbucket.org/atlassian/atlassian-frontend/commits/230e1862182) - Fix a11y eslint error in Flag component
|
|
431
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`230e1862182`](https://bitbucket.org/atlassian/atlassian-frontend/commits/230e1862182) - Fix a11y eslint error in Flag component
|
|
419
432
|
|
|
420
433
|
### Patch Changes
|
|
421
434
|
|
|
@@ -425,32 +438,32 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
425
438
|
|
|
426
439
|
### Patch Changes
|
|
427
440
|
|
|
428
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
441
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
429
442
|
|
|
430
443
|
## 14.3.3
|
|
431
444
|
|
|
432
445
|
### Patch Changes
|
|
433
446
|
|
|
434
|
-
- [`bc7669cb402`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc7669cb402) - [ux] Fixed flag labels to be more accurately describe their elements.
|
|
447
|
+
- [#11649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11649) [`bc7669cb402`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc7669cb402) - [ux] Fixed flag labels to be more accurately describe their elements.
|
|
435
448
|
|
|
436
449
|
## 14.3.2
|
|
437
450
|
|
|
438
451
|
### Patch Changes
|
|
439
452
|
|
|
440
|
-
- [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
453
|
+
- [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
441
454
|
|
|
442
455
|
## 14.3.1
|
|
443
456
|
|
|
444
457
|
### Patch Changes
|
|
445
458
|
|
|
446
|
-
- [`1964787a3ce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1964787a3ce) - [ux] fixes issue where flags wrapped in another component would fail to autodismiss after 8 seconds in FlagGroup
|
|
459
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`1964787a3ce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1964787a3ce) - [ux] fixes issue where flags wrapped in another component would fail to autodismiss after 8 seconds in FlagGroup
|
|
447
460
|
- Updated dependencies
|
|
448
461
|
|
|
449
462
|
## 14.3.0
|
|
450
463
|
|
|
451
464
|
### Minor Changes
|
|
452
465
|
|
|
453
|
-
- [`c139588c86d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c139588c86d) - Remove aria-expanded attribute from Flag close buttons
|
|
466
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`c139588c86d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c139588c86d) - Remove aria-expanded attribute from Flag close buttons
|
|
454
467
|
|
|
455
468
|
## 14.2.4
|
|
456
469
|
|
|
@@ -462,13 +475,13 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
462
475
|
|
|
463
476
|
### Patch Changes
|
|
464
477
|
|
|
465
|
-
- [`57f551bad1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/57f551bad1f) - Flag group children types now can have falsy children.
|
|
478
|
+
- [#9973](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9973) [`57f551bad1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/57f551bad1f) - Flag group children types now can have falsy children.
|
|
466
479
|
|
|
467
480
|
## 14.2.2
|
|
468
481
|
|
|
469
482
|
### Patch Changes
|
|
470
483
|
|
|
471
|
-
- [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
484
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
472
485
|
- [`b11ea3f327e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b11ea3f327e) - [ux] Fix text not being able to be selected.
|
|
473
486
|
- Updated dependencies
|
|
474
487
|
|
|
@@ -476,31 +489,31 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
476
489
|
|
|
477
490
|
### Patch Changes
|
|
478
491
|
|
|
479
|
-
- [`952019cfd39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/952019cfd39) - Removed extraneous/unnecessary dependencies for design system components.
|
|
492
|
+
- [#7762](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7762) [`952019cfd39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/952019cfd39) - Removed extraneous/unnecessary dependencies for design system components.
|
|
480
493
|
|
|
481
494
|
## 14.2.0
|
|
482
495
|
|
|
483
496
|
### Minor Changes
|
|
484
497
|
|
|
485
|
-
- [`6a9e722703e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a9e722703e) - You can now place an `onDismissed` prop on a Flag. This was removed as part of a major version upgrade and was previously a "private prop". It has been added back as there is a need for a Flag to know when it is being dimissed.
|
|
498
|
+
- [#7882](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7882) [`6a9e722703e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a9e722703e) - You can now place an `onDismissed` prop on a Flag. This was removed as part of a major version upgrade and was previously a "private prop". It has been added back as there is a need for a Flag to know when it is being dimissed.
|
|
486
499
|
|
|
487
500
|
## 14.1.0
|
|
488
501
|
|
|
489
502
|
### Minor Changes
|
|
490
503
|
|
|
491
|
-
- [`f92b240fc3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f92b240fc3) - Add an optional id attribute to FlagGroup via props
|
|
504
|
+
- [#6930](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6930) [`f92b240fc3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f92b240fc3) - Add an optional id attribute to FlagGroup via props
|
|
492
505
|
|
|
493
506
|
## 14.0.8
|
|
494
507
|
|
|
495
508
|
### Patch Changes
|
|
496
509
|
|
|
497
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
510
|
+
- [#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
|
|
498
511
|
|
|
499
512
|
## 14.0.7
|
|
500
513
|
|
|
501
514
|
### Patch Changes
|
|
502
515
|
|
|
503
|
-
- [`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.
|
|
516
|
+
- [#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.
|
|
504
517
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
505
518
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
506
519
|
|
|
@@ -514,7 +527,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
514
527
|
|
|
515
528
|
### Patch Changes
|
|
516
529
|
|
|
517
|
-
- [`83e32fa998`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83e32fa998) - Now uses `useAnalyticsEventHandler` in @atlaskit/analytics-next rather than its own version of the hook
|
|
530
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`83e32fa998`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83e32fa998) - Now uses `useAnalyticsEventHandler` in @atlaskit/analytics-next rather than its own version of the hook
|
|
518
531
|
- [`93b04d1161`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93b04d1161) - Fixed focus ring cut off issue on flag
|
|
519
532
|
- Updated dependencies
|
|
520
533
|
|
|
@@ -522,19 +535,19 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
522
535
|
|
|
523
536
|
### Patch Changes
|
|
524
537
|
|
|
525
|
-
- [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
538
|
+
- [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
526
539
|
|
|
527
540
|
## 14.0.3
|
|
528
541
|
|
|
529
542
|
### Patch Changes
|
|
530
543
|
|
|
531
|
-
- [`c740579074`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c740579074) - The h2 for Flag Groups no longer causes scrollbars to be triggered when a flag displays.
|
|
544
|
+
- [#4538](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4538) [`c740579074`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c740579074) - The h2 for Flag Groups no longer causes scrollbars to be triggered when a flag displays.
|
|
532
545
|
|
|
533
546
|
## 14.0.2
|
|
534
547
|
|
|
535
548
|
### Patch Changes
|
|
536
549
|
|
|
537
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
550
|
+
- [#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
|
|
538
551
|
|
|
539
552
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
540
553
|
to prevent duplicates of tslib being bundled.
|
|
@@ -543,13 +556,13 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
543
556
|
|
|
544
557
|
### Patch Changes
|
|
545
558
|
|
|
546
|
-
- [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
559
|
+
- [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293) [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
547
560
|
|
|
548
561
|
## 14.0.0
|
|
549
562
|
|
|
550
563
|
### Major Changes
|
|
551
564
|
|
|
552
|
-
- [`807cd28fc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/807cd28fc0) - In this version we made flag dramatically faster, lighter and easier to use 🤩
|
|
565
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`807cd28fc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/807cd28fc0) - In this version we made flag dramatically faster, lighter and easier to use 🤩
|
|
553
566
|
|
|
554
567
|
### Changes
|
|
555
568
|
|
|
@@ -569,7 +582,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
569
582
|
|
|
570
583
|
### Major Changes
|
|
571
584
|
|
|
572
|
-
- [`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.
|
|
585
|
+
- [#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.
|
|
573
586
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
574
587
|
|
|
575
588
|
### Patch Changes
|
|
@@ -580,25 +593,25 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
580
593
|
|
|
581
594
|
### Patch Changes
|
|
582
595
|
|
|
583
|
-
- [`eec3c9944e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eec3c9944e) - Export FlagProps type
|
|
596
|
+
- [#2859](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2859) [`eec3c9944e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eec3c9944e) - Export FlagProps type
|
|
584
597
|
|
|
585
598
|
## 12.4.4
|
|
586
599
|
|
|
587
600
|
### Patch Changes
|
|
588
601
|
|
|
589
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
602
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
590
603
|
|
|
591
604
|
## 12.4.3
|
|
592
605
|
|
|
593
606
|
### Patch Changes
|
|
594
607
|
|
|
595
|
-
- [`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade react-transition-group to latest
|
|
608
|
+
- [#2677](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2677) [`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade react-transition-group to latest
|
|
596
609
|
|
|
597
610
|
## 12.4.2
|
|
598
611
|
|
|
599
612
|
### Patch Changes
|
|
600
613
|
|
|
601
|
-
- [`98f462e2aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98f462e2aa) - Bumping use the latest version of @atlaskit/spinner
|
|
614
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`98f462e2aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98f462e2aa) - Bumping use the latest version of @atlaskit/spinner
|
|
602
615
|
- Updated dependencies
|
|
603
616
|
|
|
604
617
|
## 12.4.1
|
|
@@ -611,7 +624,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
611
624
|
|
|
612
625
|
### Minor Changes
|
|
613
626
|
|
|
614
|
-
- [`958b2bf6f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/958b2bf6f8) - FIX: Screen reader text won't be rendered when there is no flag
|
|
627
|
+
- [#1868](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/1868) [`958b2bf6f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/958b2bf6f8) - FIX: Screen reader text won't be rendered when there is no flag
|
|
615
628
|
FIX: FlagGroup screen reader text defaults to `h2` tag now. Was previously h1.
|
|
616
629
|
NEW: Customize screen reader text and the tag that renders the text
|
|
617
630
|
|
|
@@ -15,7 +15,7 @@ var _flagGroup = require("./flag-group");
|
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var packageName = "@atlaskit/flag";
|
|
18
|
-
var packageVersion = "15.2.
|
|
18
|
+
var packageVersion = "15.2.18";
|
|
19
19
|
var AUTO_DISMISS_SECONDS = 8;
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -20,8 +20,8 @@ var _flagGroup = _interopRequireDefault(require("./flag-group"));
|
|
|
20
20
|
var _excluded = ["isAutoDismiss"];
|
|
21
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
function ownKeys(
|
|
24
|
-
function _objectSpread(
|
|
23
|
+
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; }
|
|
24
|
+
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; }
|
|
25
25
|
var FlagContext = /*#__PURE__*/_react.default.createContext(null);
|
|
26
26
|
|
|
27
27
|
/**
|
package/dist/cjs/flag.js
CHANGED
|
@@ -14,14 +14,13 @@ var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
|
14
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
15
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
16
16
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
17
|
-
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
18
17
|
var _constants = require("./constants");
|
|
19
18
|
var _theme = require("./theme");
|
|
20
19
|
var _flagActions = _interopRequireDefault(require("./flag-actions"));
|
|
21
20
|
var _flagGroup = require("./flag-group");
|
|
22
21
|
var _internal = require("./internal");
|
|
23
|
-
function ownKeys(
|
|
24
|
-
function _objectSpread(
|
|
22
|
+
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; }
|
|
23
|
+
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; } /** @jsx jsx */
|
|
25
24
|
var CSS_VAR_ICON_COLOR = '--flag-icon-color';
|
|
26
25
|
var iconWrapperStyles = (0, _react2.css)({
|
|
27
26
|
display: 'flex',
|
|
@@ -43,7 +42,7 @@ var flagWrapperStyles = (0, _react2.css)({
|
|
|
43
42
|
var analyticsAttributes = {
|
|
44
43
|
componentName: 'flag',
|
|
45
44
|
packageName: "@atlaskit/flag",
|
|
46
|
-
packageVersion: "15.2.
|
|
45
|
+
packageVersion: "15.2.18"
|
|
47
46
|
};
|
|
48
47
|
var transitionStyles = (0, _react2.css)({
|
|
49
48
|
flexGrow: 1,
|
|
@@ -133,9 +132,7 @@ var Flag = function Flag(props) {
|
|
|
133
132
|
var iconColor = _theme.flagIconColor[appearance];
|
|
134
133
|
var isDismissable = isBold || isDismissAllowed;
|
|
135
134
|
var shouldRenderGap = !isBold && (description || actions.length) || isExpanded;
|
|
136
|
-
return (0, _react2.jsx)(
|
|
137
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
138
|
-
tabIndex: 0,
|
|
135
|
+
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
139
136
|
role: "alert",
|
|
140
137
|
css: flagWrapperStyles,
|
|
141
138
|
"data-testid": testId
|
|
@@ -190,7 +187,7 @@ var Flag = function Flag(props) {
|
|
|
190
187
|
appearance: appearance,
|
|
191
188
|
linkComponent: linkComponent,
|
|
192
189
|
testId: testId
|
|
193
|
-
})))))))
|
|
190
|
+
})))))));
|
|
194
191
|
};
|
|
195
192
|
var _default = Flag;
|
|
196
193
|
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
5
5
|
import Flag from './flag';
|
|
6
6
|
import { useFlagGroup } from './flag-group';
|
|
7
7
|
const packageName = "@atlaskit/flag";
|
|
8
|
-
const packageVersion = "15.2.
|
|
8
|
+
const packageVersion = "15.2.18";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/es2019/flag.js
CHANGED
|
@@ -6,7 +6,6 @@ import { UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
|
6
6
|
import { Inline, Stack, Box, xcss } from '@atlaskit/primitives';
|
|
7
7
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
8
8
|
import noop from '@atlaskit/ds-lib/noop';
|
|
9
|
-
import FocusRing from '@atlaskit/focus-ring';
|
|
10
9
|
import { DEFAULT_APPEARANCE } from './constants';
|
|
11
10
|
import { flagTextColor, flagBackgroundColor, flagIconColor } from './theme';
|
|
12
11
|
import Actions from './flag-actions';
|
|
@@ -33,7 +32,7 @@ const flagWrapperStyles = css({
|
|
|
33
32
|
const analyticsAttributes = {
|
|
34
33
|
componentName: 'flag',
|
|
35
34
|
packageName: "@atlaskit/flag",
|
|
36
|
-
packageVersion: "15.2.
|
|
35
|
+
packageVersion: "15.2.18"
|
|
37
36
|
};
|
|
38
37
|
const transitionStyles = css({
|
|
39
38
|
flexGrow: 1,
|
|
@@ -119,9 +118,7 @@ const Flag = props => {
|
|
|
119
118
|
const iconColor = flagIconColor[appearance];
|
|
120
119
|
const isDismissable = isBold || isDismissAllowed;
|
|
121
120
|
const shouldRenderGap = !isBold && (description || actions.length) || isExpanded;
|
|
122
|
-
return jsx(
|
|
123
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
124
|
-
tabIndex: 0,
|
|
121
|
+
return jsx("div", _extends({
|
|
125
122
|
role: "alert",
|
|
126
123
|
css: flagWrapperStyles,
|
|
127
124
|
"data-testid": testId
|
|
@@ -178,6 +175,6 @@ const Flag = props => {
|
|
|
178
175
|
appearance: appearance,
|
|
179
176
|
linkComponent: linkComponent,
|
|
180
177
|
testId: testId
|
|
181
|
-
})))))))
|
|
178
|
+
})))))));
|
|
182
179
|
};
|
|
183
180
|
export default Flag;
|
|
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
5
5
|
import Flag from './flag';
|
|
6
6
|
import { useFlagGroup } from './flag-group';
|
|
7
7
|
var packageName = "@atlaskit/flag";
|
|
8
|
-
var packageVersion = "15.2.
|
|
8
|
+
var packageVersion = "15.2.18";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -4,8 +4,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
6
|
var _excluded = ["isAutoDismiss"];
|
|
7
|
-
function ownKeys(
|
|
8
|
-
function _objectSpread(
|
|
7
|
+
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; }
|
|
8
|
+
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) { _defineProperty(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; }
|
|
9
9
|
import React, { useCallback, useContext, useMemo, useState } from 'react';
|
|
10
10
|
import AutoDismissFlag from './auto-dismiss-flag';
|
|
11
11
|
import Flag from './flag';
|
package/dist/esm/flag.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
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; }
|
|
5
|
+
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) { _defineProperty(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; }
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { useCallback, useEffect, useState } from 'react';
|
|
8
8
|
import { jsx, css } from '@emotion/react';
|
|
@@ -10,7 +10,6 @@ import { UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
|
10
10
|
import { Inline, Stack, Box, xcss } from '@atlaskit/primitives';
|
|
11
11
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
12
12
|
import noop from '@atlaskit/ds-lib/noop';
|
|
13
|
-
import FocusRing from '@atlaskit/focus-ring';
|
|
14
13
|
import { DEFAULT_APPEARANCE } from './constants';
|
|
15
14
|
import { flagTextColor, flagBackgroundColor, flagIconColor } from './theme';
|
|
16
15
|
import Actions from './flag-actions';
|
|
@@ -37,7 +36,7 @@ var flagWrapperStyles = css({
|
|
|
37
36
|
var analyticsAttributes = {
|
|
38
37
|
componentName: 'flag',
|
|
39
38
|
packageName: "@atlaskit/flag",
|
|
40
|
-
packageVersion: "15.2.
|
|
39
|
+
packageVersion: "15.2.18"
|
|
41
40
|
};
|
|
42
41
|
var transitionStyles = css({
|
|
43
42
|
flexGrow: 1,
|
|
@@ -127,9 +126,7 @@ var Flag = function Flag(props) {
|
|
|
127
126
|
var iconColor = flagIconColor[appearance];
|
|
128
127
|
var isDismissable = isBold || isDismissAllowed;
|
|
129
128
|
var shouldRenderGap = !isBold && (description || actions.length) || isExpanded;
|
|
130
|
-
return jsx(
|
|
131
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
132
|
-
tabIndex: 0,
|
|
129
|
+
return jsx("div", _extends({
|
|
133
130
|
role: "alert",
|
|
134
131
|
css: flagWrapperStyles,
|
|
135
132
|
"data-testid": testId
|
|
@@ -184,6 +181,6 @@ var Flag = function Flag(props) {
|
|
|
184
181
|
appearance: appearance,
|
|
185
182
|
linkComponent: linkComponent,
|
|
186
183
|
testId: testId
|
|
187
|
-
})))))))
|
|
184
|
+
})))))));
|
|
188
185
|
};
|
|
189
186
|
export default Flag;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.18",
|
|
4
4
|
"description": "A flag is used for confirmations, alerts, and acknowledgments that require minimal user interaction, often displayed using a flag group.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"atlaskit:src": "src/index.tsx",
|
|
25
25
|
"atlassian": {
|
|
26
|
-
"team": "Design System
|
|
26
|
+
"team": "Design System Team",
|
|
27
27
|
"releaseModel": "continuous",
|
|
28
28
|
"website": {
|
|
29
29
|
"name": "Flag",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
46
|
-
"@atlaskit/button": "^16.
|
|
47
|
-
"@atlaskit/ds-explorations": "^2.
|
|
46
|
+
"@atlaskit/button": "^16.10.0",
|
|
47
|
+
"@atlaskit/ds-explorations": "^2.3.0",
|
|
48
48
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
49
49
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
50
50
|
"@atlaskit/icon": "^21.12.0",
|
|
51
|
-
"@atlaskit/motion": "^1.
|
|
51
|
+
"@atlaskit/motion": "^1.5.0",
|
|
52
52
|
"@atlaskit/portal": "^4.3.0",
|
|
53
|
-
"@atlaskit/primitives": "^1.0
|
|
54
|
-
"@atlaskit/theme": "^12.
|
|
55
|
-
"@atlaskit/tokens": "^1.
|
|
53
|
+
"@atlaskit/primitives": "^1.6.0",
|
|
54
|
+
"@atlaskit/theme": "^12.6.0",
|
|
55
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
56
56
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@emotion/react": "^11.7.1"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@af/accessibility-testing": "*",
|
|
65
65
|
"@atlaskit/ssr": "*",
|
|
66
|
-
"@atlaskit/theme": "^12.
|
|
66
|
+
"@atlaskit/theme": "^12.6.0",
|
|
67
67
|
"@atlaskit/visual-regression": "*",
|
|
68
68
|
"@atlaskit/webdriver-runner": "*",
|
|
69
69
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED