@atlaskit/flag 15.2.17 → 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 +69 -63
- 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 +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,30 +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
|
+
|
|
3
9
|
## 15.2.17
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
13
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
8
14
|
- Updated dependencies
|
|
9
15
|
|
|
10
16
|
## 15.2.16
|
|
11
17
|
|
|
12
18
|
### Patch Changes
|
|
13
19
|
|
|
14
|
-
- [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
15
|
-
- [`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.
|
|
16
22
|
|
|
17
23
|
## 15.2.15
|
|
18
24
|
|
|
19
25
|
### Patch Changes
|
|
20
26
|
|
|
21
|
-
- [`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.
|
|
22
28
|
|
|
23
29
|
## 15.2.14
|
|
24
30
|
|
|
25
31
|
### Patch Changes
|
|
26
32
|
|
|
27
|
-
- [`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.
|
|
28
34
|
|
|
29
35
|
## 15.2.13
|
|
30
36
|
|
|
@@ -60,20 +66,20 @@
|
|
|
60
66
|
|
|
61
67
|
### Patch Changes
|
|
62
68
|
|
|
63
|
-
- [`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
|
|
64
70
|
|
|
65
71
|
## 15.2.7
|
|
66
72
|
|
|
67
73
|
### Patch Changes
|
|
68
74
|
|
|
69
|
-
- [`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.
|
|
70
76
|
- Updated dependencies
|
|
71
77
|
|
|
72
78
|
## 15.2.6
|
|
73
79
|
|
|
74
80
|
### Patch Changes
|
|
75
81
|
|
|
76
|
-
- [`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.
|
|
77
83
|
|
|
78
84
|
## 15.2.5
|
|
79
85
|
|
|
@@ -85,31 +91,31 @@
|
|
|
85
91
|
|
|
86
92
|
### Patch Changes
|
|
87
93
|
|
|
88
|
-
- [`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.
|
|
89
95
|
|
|
90
96
|
## 15.2.3
|
|
91
97
|
|
|
92
98
|
### Patch Changes
|
|
93
99
|
|
|
94
|
-
- [`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.
|
|
95
101
|
|
|
96
102
|
## 15.2.2
|
|
97
103
|
|
|
98
104
|
### Patch Changes
|
|
99
105
|
|
|
100
|
-
- [`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
|
|
101
107
|
|
|
102
108
|
## 15.2.1
|
|
103
109
|
|
|
104
110
|
### Patch Changes
|
|
105
111
|
|
|
106
|
-
- [`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`
|
|
107
113
|
|
|
108
114
|
## 15.2.0
|
|
109
115
|
|
|
110
116
|
### Minor Changes
|
|
111
117
|
|
|
112
|
-
- [`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
|
|
113
119
|
|
|
114
120
|
### Patch Changes
|
|
115
121
|
|
|
@@ -119,13 +125,13 @@
|
|
|
119
125
|
|
|
120
126
|
### Patch Changes
|
|
121
127
|
|
|
122
|
-
- [`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.
|
|
123
129
|
|
|
124
130
|
## 15.1.5
|
|
125
131
|
|
|
126
132
|
### Patch Changes
|
|
127
133
|
|
|
128
|
-
- [`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
|
|
129
135
|
|
|
130
136
|
## 15.1.4
|
|
131
137
|
|
|
@@ -155,7 +161,7 @@
|
|
|
155
161
|
|
|
156
162
|
### Minor Changes
|
|
157
163
|
|
|
158
|
-
- [`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..
|
|
159
165
|
|
|
160
166
|
### Patch Changes
|
|
161
167
|
|
|
@@ -171,26 +177,26 @@
|
|
|
171
177
|
|
|
172
178
|
### Patch Changes
|
|
173
179
|
|
|
174
|
-
- [`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.
|
|
175
181
|
- Updated dependencies
|
|
176
182
|
|
|
177
183
|
## 15.0.10
|
|
178
184
|
|
|
179
185
|
### Patch Changes
|
|
180
186
|
|
|
181
|
-
- [`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.
|
|
182
188
|
|
|
183
189
|
## 15.0.9
|
|
184
190
|
|
|
185
191
|
### Patch Changes
|
|
186
192
|
|
|
187
|
-
- [`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`.
|
|
188
194
|
|
|
189
195
|
## 15.0.8
|
|
190
196
|
|
|
191
197
|
### Patch Changes
|
|
192
198
|
|
|
193
|
-
- [`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`.
|
|
194
200
|
|
|
195
201
|
## 15.0.7
|
|
196
202
|
|
|
@@ -208,20 +214,20 @@
|
|
|
208
214
|
|
|
209
215
|
### Patch Changes
|
|
210
216
|
|
|
211
|
-
- [`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.
|
|
212
218
|
- Updated dependencies
|
|
213
219
|
|
|
214
220
|
## 15.0.4
|
|
215
221
|
|
|
216
222
|
### Patch Changes
|
|
217
223
|
|
|
218
|
-
- [`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.
|
|
219
225
|
|
|
220
226
|
## 15.0.3
|
|
221
227
|
|
|
222
228
|
### Patch Changes
|
|
223
229
|
|
|
224
|
-
- [`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
|
|
225
231
|
- Made the button color type stricter and extracted local css variable names into constants
|
|
226
232
|
|
|
227
233
|
## 15.0.2
|
|
@@ -240,7 +246,7 @@
|
|
|
240
246
|
|
|
241
247
|
### Major Changes
|
|
242
248
|
|
|
243
|
-
- [`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.
|
|
244
250
|
|
|
245
251
|
Other changes include:
|
|
246
252
|
|
|
@@ -266,19 +272,19 @@
|
|
|
266
272
|
|
|
267
273
|
### Patch Changes
|
|
268
274
|
|
|
269
|
-
- [`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.
|
|
270
276
|
|
|
271
277
|
## 14.7.1
|
|
272
278
|
|
|
273
279
|
### Patch Changes
|
|
274
280
|
|
|
275
|
-
- [`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`
|
|
276
282
|
|
|
277
283
|
## 14.7.0
|
|
278
284
|
|
|
279
285
|
### Minor Changes
|
|
280
286
|
|
|
281
|
-
- [`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.
|
|
282
288
|
|
|
283
289
|
### Patch Changes
|
|
284
290
|
|
|
@@ -288,33 +294,33 @@
|
|
|
288
294
|
|
|
289
295
|
### Patch Changes
|
|
290
296
|
|
|
291
|
-
- [`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`.
|
|
292
298
|
|
|
293
299
|
## 14.6.3
|
|
294
300
|
|
|
295
301
|
### Patch Changes
|
|
296
302
|
|
|
297
|
-
- [`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.
|
|
298
304
|
- Updated dependencies
|
|
299
305
|
|
|
300
306
|
## 14.6.2
|
|
301
307
|
|
|
302
308
|
### Patch Changes
|
|
303
309
|
|
|
304
|
-
- [`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
|
|
305
311
|
|
|
306
312
|
## 14.6.1
|
|
307
313
|
|
|
308
314
|
### Patch Changes
|
|
309
315
|
|
|
310
|
-
- [`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.
|
|
311
317
|
- Updated dependencies
|
|
312
318
|
|
|
313
319
|
## 14.6.0
|
|
314
320
|
|
|
315
321
|
### Minor Changes
|
|
316
322
|
|
|
317
|
-
- [`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.
|
|
318
324
|
|
|
319
325
|
### Patch Changes
|
|
320
326
|
|
|
@@ -325,7 +331,7 @@
|
|
|
325
331
|
|
|
326
332
|
### Patch Changes
|
|
327
333
|
|
|
328
|
-
- [`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
|
|
329
335
|
|
|
330
336
|
## 14.5.8
|
|
331
337
|
|
|
@@ -337,7 +343,7 @@
|
|
|
337
343
|
|
|
338
344
|
### Patch Changes
|
|
339
345
|
|
|
340
|
-
- [`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
|
|
341
347
|
- Updated dependencies
|
|
342
348
|
|
|
343
349
|
## 14.5.6
|
|
@@ -350,7 +356,7 @@
|
|
|
350
356
|
|
|
351
357
|
### Patch Changes
|
|
352
358
|
|
|
353
|
-
- [`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.
|
|
354
360
|
- Updated dependencies
|
|
355
361
|
|
|
356
362
|
## 14.5.4
|
|
@@ -369,7 +375,7 @@
|
|
|
369
375
|
|
|
370
376
|
### Patch Changes
|
|
371
377
|
|
|
372
|
-
- [`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'.
|
|
373
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.
|
|
374
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.
|
|
375
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.
|
|
@@ -385,7 +391,7 @@
|
|
|
385
391
|
|
|
386
392
|
### Minor Changes
|
|
387
393
|
|
|
388
|
-
- [`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.
|
|
389
395
|
|
|
390
396
|
[ux] Instrumented flag with the new theming package, `@atlaskit/tokens`.
|
|
391
397
|
|
|
@@ -402,7 +408,7 @@
|
|
|
402
408
|
|
|
403
409
|
_WRONG RELEASE TYPE - DON'T USE_
|
|
404
410
|
|
|
405
|
-
- [`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`.
|
|
406
412
|
|
|
407
413
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
408
414
|
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
@@ -422,7 +428,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
422
428
|
|
|
423
429
|
### Minor Changes
|
|
424
430
|
|
|
425
|
-
- [`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
|
|
426
432
|
|
|
427
433
|
### Patch Changes
|
|
428
434
|
|
|
@@ -432,32 +438,32 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
432
438
|
|
|
433
439
|
### Patch Changes
|
|
434
440
|
|
|
435
|
-
- [`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`.
|
|
436
442
|
|
|
437
443
|
## 14.3.3
|
|
438
444
|
|
|
439
445
|
### Patch Changes
|
|
440
446
|
|
|
441
|
-
- [`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.
|
|
442
448
|
|
|
443
449
|
## 14.3.2
|
|
444
450
|
|
|
445
451
|
### Patch Changes
|
|
446
452
|
|
|
447
|
-
- [`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`
|
|
448
454
|
|
|
449
455
|
## 14.3.1
|
|
450
456
|
|
|
451
457
|
### Patch Changes
|
|
452
458
|
|
|
453
|
-
- [`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
|
|
454
460
|
- Updated dependencies
|
|
455
461
|
|
|
456
462
|
## 14.3.0
|
|
457
463
|
|
|
458
464
|
### Minor Changes
|
|
459
465
|
|
|
460
|
-
- [`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
|
|
461
467
|
|
|
462
468
|
## 14.2.4
|
|
463
469
|
|
|
@@ -469,13 +475,13 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
469
475
|
|
|
470
476
|
### Patch Changes
|
|
471
477
|
|
|
472
|
-
- [`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.
|
|
473
479
|
|
|
474
480
|
## 14.2.2
|
|
475
481
|
|
|
476
482
|
### Patch Changes
|
|
477
483
|
|
|
478
|
-
- [`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.
|
|
479
485
|
- [`b11ea3f327e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b11ea3f327e) - [ux] Fix text not being able to be selected.
|
|
480
486
|
- Updated dependencies
|
|
481
487
|
|
|
@@ -483,31 +489,31 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
483
489
|
|
|
484
490
|
### Patch Changes
|
|
485
491
|
|
|
486
|
-
- [`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.
|
|
487
493
|
|
|
488
494
|
## 14.2.0
|
|
489
495
|
|
|
490
496
|
### Minor Changes
|
|
491
497
|
|
|
492
|
-
- [`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.
|
|
493
499
|
|
|
494
500
|
## 14.1.0
|
|
495
501
|
|
|
496
502
|
### Minor Changes
|
|
497
503
|
|
|
498
|
-
- [`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
|
|
499
505
|
|
|
500
506
|
## 14.0.8
|
|
501
507
|
|
|
502
508
|
### Patch Changes
|
|
503
509
|
|
|
504
|
-
- [`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
|
|
505
511
|
|
|
506
512
|
## 14.0.7
|
|
507
513
|
|
|
508
514
|
### Patch Changes
|
|
509
515
|
|
|
510
|
-
- [`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.
|
|
511
517
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
512
518
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
513
519
|
|
|
@@ -521,7 +527,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
521
527
|
|
|
522
528
|
### Patch Changes
|
|
523
529
|
|
|
524
|
-
- [`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
|
|
525
531
|
- [`93b04d1161`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93b04d1161) - Fixed focus ring cut off issue on flag
|
|
526
532
|
- Updated dependencies
|
|
527
533
|
|
|
@@ -529,19 +535,19 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
529
535
|
|
|
530
536
|
### Patch Changes
|
|
531
537
|
|
|
532
|
-
- [`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
|
|
533
539
|
|
|
534
540
|
## 14.0.3
|
|
535
541
|
|
|
536
542
|
### Patch Changes
|
|
537
543
|
|
|
538
|
-
- [`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.
|
|
539
545
|
|
|
540
546
|
## 14.0.2
|
|
541
547
|
|
|
542
548
|
### Patch Changes
|
|
543
549
|
|
|
544
|
-
- [`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
|
|
545
551
|
|
|
546
552
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
547
553
|
to prevent duplicates of tslib being bundled.
|
|
@@ -550,13 +556,13 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
550
556
|
|
|
551
557
|
### Patch Changes
|
|
552
558
|
|
|
553
|
-
- [`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.
|
|
554
560
|
|
|
555
561
|
## 14.0.0
|
|
556
562
|
|
|
557
563
|
### Major Changes
|
|
558
564
|
|
|
559
|
-
- [`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 🤩
|
|
560
566
|
|
|
561
567
|
### Changes
|
|
562
568
|
|
|
@@ -576,7 +582,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
576
582
|
|
|
577
583
|
### Major Changes
|
|
578
584
|
|
|
579
|
-
- [`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.
|
|
580
586
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
581
587
|
|
|
582
588
|
### Patch Changes
|
|
@@ -587,25 +593,25 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
587
593
|
|
|
588
594
|
### Patch Changes
|
|
589
595
|
|
|
590
|
-
- [`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
|
|
591
597
|
|
|
592
598
|
## 12.4.4
|
|
593
599
|
|
|
594
600
|
### Patch Changes
|
|
595
601
|
|
|
596
|
-
- [`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
|
|
597
603
|
|
|
598
604
|
## 12.4.3
|
|
599
605
|
|
|
600
606
|
### Patch Changes
|
|
601
607
|
|
|
602
|
-
- [`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
|
|
603
609
|
|
|
604
610
|
## 12.4.2
|
|
605
611
|
|
|
606
612
|
### Patch Changes
|
|
607
613
|
|
|
608
|
-
- [`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
|
|
609
615
|
- Updated dependencies
|
|
610
616
|
|
|
611
617
|
## 12.4.1
|
|
@@ -618,7 +624,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
618
624
|
|
|
619
625
|
### Minor Changes
|
|
620
626
|
|
|
621
|
-
- [`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
|
|
622
628
|
FIX: FlagGroup screen reader text defaults to `h2` tag now. Was previously h1.
|
|
623
629
|
NEW: Customize screen reader text and the tag that renders the text
|
|
624
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/"
|
|
@@ -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.
|
|
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",
|