@atlaskit/flag 15.2.17 → 15.2.19
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 -63
- package/dist/cjs/auto-dismiss-flag.js +3 -5
- package/dist/cjs/constants.js +5 -10
- package/dist/cjs/flag-actions.js +1 -2
- package/dist/cjs/flag-group.js +4 -8
- package/dist/cjs/flag-provider.js +4 -5
- package/dist/cjs/flag.js +6 -10
- package/dist/cjs/internal/dismiss-button.js +1 -2
- package/dist/cjs/internal/expander.js +1 -2
- package/dist/cjs/theme.js +7 -13
- package/dist/cjs/types.js +2 -3
- 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 +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,30 +1,42 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 15.2.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.2.18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#40332](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40332) [`4d35602a23a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d35602a23a) - Removes tabindex from Flag container
|
|
14
|
+
|
|
3
15
|
## 15.2.17
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
19
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
8
20
|
- Updated dependencies
|
|
9
21
|
|
|
10
22
|
## 15.2.16
|
|
11
23
|
|
|
12
24
|
### Patch Changes
|
|
13
25
|
|
|
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.
|
|
26
|
+
- [#37533](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37533) [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
27
|
+
- [#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
28
|
|
|
17
29
|
## 15.2.15
|
|
18
30
|
|
|
19
31
|
### Patch Changes
|
|
20
32
|
|
|
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.
|
|
33
|
+
- [#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
34
|
|
|
23
35
|
## 15.2.14
|
|
24
36
|
|
|
25
37
|
### Patch Changes
|
|
26
38
|
|
|
27
|
-
- [`7e4085cd951`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e4085cd951) - Allow caret version range in @atlaskit/primitives dependency.
|
|
39
|
+
- [#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
40
|
|
|
29
41
|
## 15.2.13
|
|
30
42
|
|
|
@@ -60,20 +72,20 @@
|
|
|
60
72
|
|
|
61
73
|
### Patch Changes
|
|
62
74
|
|
|
63
|
-
- [`529814693a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/529814693a1) - Pin version of @atlaskit/primitives so it resolves to correct version
|
|
75
|
+
- [#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
76
|
|
|
65
77
|
## 15.2.7
|
|
66
78
|
|
|
67
79
|
### Patch Changes
|
|
68
80
|
|
|
69
|
-
- [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update how certain background colors are referenced by name. Internal changes only.
|
|
81
|
+
- [#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
82
|
- Updated dependencies
|
|
71
83
|
|
|
72
84
|
## 15.2.6
|
|
73
85
|
|
|
74
86
|
### Patch Changes
|
|
75
87
|
|
|
76
|
-
- [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
|
|
88
|
+
- [#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
89
|
|
|
78
90
|
## 15.2.5
|
|
79
91
|
|
|
@@ -85,31 +97,31 @@
|
|
|
85
97
|
|
|
86
98
|
### Patch Changes
|
|
87
99
|
|
|
88
|
-
- [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change.
|
|
100
|
+
- [#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
101
|
|
|
90
102
|
## 15.2.3
|
|
91
103
|
|
|
92
104
|
### Patch Changes
|
|
93
105
|
|
|
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.
|
|
106
|
+
- [#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
107
|
|
|
96
108
|
## 15.2.2
|
|
97
109
|
|
|
98
110
|
### Patch Changes
|
|
99
111
|
|
|
100
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
112
|
+
- [#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
113
|
|
|
102
114
|
## 15.2.1
|
|
103
115
|
|
|
104
116
|
### Patch Changes
|
|
105
117
|
|
|
106
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
118
|
+
- [#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
119
|
|
|
108
120
|
## 15.2.0
|
|
109
121
|
|
|
110
122
|
### Minor Changes
|
|
111
123
|
|
|
112
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
124
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
113
125
|
|
|
114
126
|
### Patch Changes
|
|
115
127
|
|
|
@@ -119,13 +131,13 @@
|
|
|
119
131
|
|
|
120
132
|
### Patch Changes
|
|
121
133
|
|
|
122
|
-
- [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
|
|
134
|
+
- [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211) [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
|
|
123
135
|
|
|
124
136
|
## 15.1.5
|
|
125
137
|
|
|
126
138
|
### Patch Changes
|
|
127
139
|
|
|
128
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
140
|
+
- [#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
141
|
|
|
130
142
|
## 15.1.4
|
|
131
143
|
|
|
@@ -155,7 +167,7 @@
|
|
|
155
167
|
|
|
156
168
|
### Minor Changes
|
|
157
169
|
|
|
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..
|
|
170
|
+
- [#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
171
|
|
|
160
172
|
### Patch Changes
|
|
161
173
|
|
|
@@ -171,26 +183,26 @@
|
|
|
171
183
|
|
|
172
184
|
### Patch Changes
|
|
173
185
|
|
|
174
|
-
- [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
186
|
+
- [#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
187
|
- Updated dependencies
|
|
176
188
|
|
|
177
189
|
## 15.0.10
|
|
178
190
|
|
|
179
191
|
### Patch Changes
|
|
180
192
|
|
|
181
|
-
- [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
|
|
193
|
+
- [#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
194
|
|
|
183
195
|
## 15.0.9
|
|
184
196
|
|
|
185
197
|
### Patch Changes
|
|
186
198
|
|
|
187
|
-
- [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
199
|
+
- [#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
200
|
|
|
189
201
|
## 15.0.8
|
|
190
202
|
|
|
191
203
|
### Patch Changes
|
|
192
204
|
|
|
193
|
-
- [`842bb999a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/842bb999a85) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
205
|
+
- [#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
206
|
|
|
195
207
|
## 15.0.7
|
|
196
208
|
|
|
@@ -208,20 +220,20 @@
|
|
|
208
220
|
|
|
209
221
|
### Patch Changes
|
|
210
222
|
|
|
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.
|
|
223
|
+
- [#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
224
|
- Updated dependencies
|
|
213
225
|
|
|
214
226
|
## 15.0.4
|
|
215
227
|
|
|
216
228
|
### Patch Changes
|
|
217
229
|
|
|
218
|
-
- [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
|
|
230
|
+
- [#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
231
|
|
|
220
232
|
## 15.0.3
|
|
221
233
|
|
|
222
234
|
### Patch Changes
|
|
223
235
|
|
|
224
|
-
- [`56a44cd0ae9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56a44cd0ae9) - - [ux] Updated Flag component colored background buttons to use correct tokens for better contrast
|
|
236
|
+
- [#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
237
|
- Made the button color type stricter and extracted local css variable names into constants
|
|
226
238
|
|
|
227
239
|
## 15.0.2
|
|
@@ -240,7 +252,7 @@
|
|
|
240
252
|
|
|
241
253
|
### Major Changes
|
|
242
254
|
|
|
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.
|
|
255
|
+
- [#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
256
|
|
|
245
257
|
Other changes include:
|
|
246
258
|
|
|
@@ -266,19 +278,19 @@
|
|
|
266
278
|
|
|
267
279
|
### Patch Changes
|
|
268
280
|
|
|
269
|
-
- [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
281
|
+
- [#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
282
|
|
|
271
283
|
## 14.7.1
|
|
272
284
|
|
|
273
285
|
### Patch Changes
|
|
274
286
|
|
|
275
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
287
|
+
- [#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
288
|
|
|
277
289
|
## 14.7.0
|
|
278
290
|
|
|
279
291
|
### Minor Changes
|
|
280
292
|
|
|
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.
|
|
293
|
+
- [#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
294
|
|
|
283
295
|
### Patch Changes
|
|
284
296
|
|
|
@@ -288,33 +300,33 @@
|
|
|
288
300
|
|
|
289
301
|
### Patch Changes
|
|
290
302
|
|
|
291
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
303
|
+
- [#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
304
|
|
|
293
305
|
## 14.6.3
|
|
294
306
|
|
|
295
307
|
### Patch Changes
|
|
296
308
|
|
|
297
|
-
- [`8202e37941b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8202e37941b) - Internal code change turning on new linting rules.
|
|
309
|
+
- [#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
310
|
- Updated dependencies
|
|
299
311
|
|
|
300
312
|
## 14.6.2
|
|
301
313
|
|
|
302
314
|
### Patch Changes
|
|
303
315
|
|
|
304
|
-
- [`982f05dc6b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/982f05dc6b9) - [ux] Remove left indentation on bold flag's actions section
|
|
316
|
+
- [#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
317
|
|
|
306
318
|
## 14.6.1
|
|
307
319
|
|
|
308
320
|
### Patch Changes
|
|
309
321
|
|
|
310
|
-
- [`45ebe7af434`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45ebe7af434) - Moved to using declarative entrypoints internally. Public API is unchanged.
|
|
322
|
+
- [#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
323
|
- Updated dependencies
|
|
312
324
|
|
|
313
325
|
## 14.6.0
|
|
314
326
|
|
|
315
327
|
### Minor Changes
|
|
316
328
|
|
|
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.
|
|
329
|
+
- [#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
330
|
|
|
319
331
|
### Patch Changes
|
|
320
332
|
|
|
@@ -325,7 +337,7 @@
|
|
|
325
337
|
|
|
326
338
|
### Patch Changes
|
|
327
339
|
|
|
328
|
-
- [`2329b0e8cc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2329b0e8cc0) - [ux] DSP-4541 Update wrongly used tokens
|
|
340
|
+
- [#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
341
|
|
|
330
342
|
## 14.5.8
|
|
331
343
|
|
|
@@ -337,7 +349,7 @@
|
|
|
337
349
|
|
|
338
350
|
### Patch Changes
|
|
339
351
|
|
|
340
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
352
|
+
- [#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
353
|
- Updated dependencies
|
|
342
354
|
|
|
343
355
|
## 14.5.6
|
|
@@ -350,7 +362,7 @@
|
|
|
350
362
|
|
|
351
363
|
### Patch Changes
|
|
352
364
|
|
|
353
|
-
- [`0739258f502`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0739258f502) - [ux] Fixed token usages on backgrounds and action links.
|
|
365
|
+
- [#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
366
|
- Updated dependencies
|
|
355
367
|
|
|
356
368
|
## 14.5.4
|
|
@@ -369,7 +381,7 @@
|
|
|
369
381
|
|
|
370
382
|
### Patch Changes
|
|
371
383
|
|
|
372
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Internal changes to support adoption of '@compiled/react'.
|
|
384
|
+
- [#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
385
|
- [`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
386
|
- [`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
387
|
- [`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 +397,7 @@
|
|
|
385
397
|
|
|
386
398
|
### Minor Changes
|
|
387
399
|
|
|
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.
|
|
400
|
+
- [#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
401
|
|
|
390
402
|
[ux] Instrumented flag with the new theming package, `@atlaskit/tokens`.
|
|
391
403
|
|
|
@@ -402,7 +414,7 @@
|
|
|
402
414
|
|
|
403
415
|
_WRONG RELEASE TYPE - DON'T USE_
|
|
404
416
|
|
|
405
|
-
- [`4567d73813c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4567d73813c) - Instrumented flag with the new theming package, `@atlaskit/tokens`.
|
|
417
|
+
- [#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
418
|
|
|
407
419
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
408
420
|
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 +434,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
422
434
|
|
|
423
435
|
### Minor Changes
|
|
424
436
|
|
|
425
|
-
- [`230e1862182`](https://bitbucket.org/atlassian/atlassian-frontend/commits/230e1862182) - Fix a11y eslint error in Flag component
|
|
437
|
+
- [#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
438
|
|
|
427
439
|
### Patch Changes
|
|
428
440
|
|
|
@@ -432,32 +444,32 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
432
444
|
|
|
433
445
|
### Patch Changes
|
|
434
446
|
|
|
435
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
447
|
+
- [#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
448
|
|
|
437
449
|
## 14.3.3
|
|
438
450
|
|
|
439
451
|
### Patch Changes
|
|
440
452
|
|
|
441
|
-
- [`bc7669cb402`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc7669cb402) - [ux] Fixed flag labels to be more accurately describe their elements.
|
|
453
|
+
- [#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
454
|
|
|
443
455
|
## 14.3.2
|
|
444
456
|
|
|
445
457
|
### Patch Changes
|
|
446
458
|
|
|
447
|
-
- [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
459
|
+
- [#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
460
|
|
|
449
461
|
## 14.3.1
|
|
450
462
|
|
|
451
463
|
### Patch Changes
|
|
452
464
|
|
|
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
|
|
465
|
+
- [#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
466
|
- Updated dependencies
|
|
455
467
|
|
|
456
468
|
## 14.3.0
|
|
457
469
|
|
|
458
470
|
### Minor Changes
|
|
459
471
|
|
|
460
|
-
- [`c139588c86d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c139588c86d) - Remove aria-expanded attribute from Flag close buttons
|
|
472
|
+
- [#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
473
|
|
|
462
474
|
## 14.2.4
|
|
463
475
|
|
|
@@ -469,13 +481,13 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
469
481
|
|
|
470
482
|
### Patch Changes
|
|
471
483
|
|
|
472
|
-
- [`57f551bad1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/57f551bad1f) - Flag group children types now can have falsy children.
|
|
484
|
+
- [#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
485
|
|
|
474
486
|
## 14.2.2
|
|
475
487
|
|
|
476
488
|
### Patch Changes
|
|
477
489
|
|
|
478
|
-
- [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
490
|
+
- [#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
491
|
- [`b11ea3f327e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b11ea3f327e) - [ux] Fix text not being able to be selected.
|
|
480
492
|
- Updated dependencies
|
|
481
493
|
|
|
@@ -483,31 +495,31 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
483
495
|
|
|
484
496
|
### Patch Changes
|
|
485
497
|
|
|
486
|
-
- [`952019cfd39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/952019cfd39) - Removed extraneous/unnecessary dependencies for design system components.
|
|
498
|
+
- [#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
499
|
|
|
488
500
|
## 14.2.0
|
|
489
501
|
|
|
490
502
|
### Minor Changes
|
|
491
503
|
|
|
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.
|
|
504
|
+
- [#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
505
|
|
|
494
506
|
## 14.1.0
|
|
495
507
|
|
|
496
508
|
### Minor Changes
|
|
497
509
|
|
|
498
|
-
- [`f92b240fc3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f92b240fc3) - Add an optional id attribute to FlagGroup via props
|
|
510
|
+
- [#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
511
|
|
|
500
512
|
## 14.0.8
|
|
501
513
|
|
|
502
514
|
### Patch Changes
|
|
503
515
|
|
|
504
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
516
|
+
- [#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
517
|
|
|
506
518
|
## 14.0.7
|
|
507
519
|
|
|
508
520
|
### Patch Changes
|
|
509
521
|
|
|
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.
|
|
522
|
+
- [#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
523
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
512
524
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
513
525
|
|
|
@@ -521,7 +533,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
521
533
|
|
|
522
534
|
### Patch Changes
|
|
523
535
|
|
|
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
|
|
536
|
+
- [#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
537
|
- [`93b04d1161`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93b04d1161) - Fixed focus ring cut off issue on flag
|
|
526
538
|
- Updated dependencies
|
|
527
539
|
|
|
@@ -529,19 +541,19 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
529
541
|
|
|
530
542
|
### Patch Changes
|
|
531
543
|
|
|
532
|
-
- [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
544
|
+
- [#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
545
|
|
|
534
546
|
## 14.0.3
|
|
535
547
|
|
|
536
548
|
### Patch Changes
|
|
537
549
|
|
|
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.
|
|
550
|
+
- [#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
551
|
|
|
540
552
|
## 14.0.2
|
|
541
553
|
|
|
542
554
|
### Patch Changes
|
|
543
555
|
|
|
544
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
556
|
+
- [#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
557
|
|
|
546
558
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
547
559
|
to prevent duplicates of tslib being bundled.
|
|
@@ -550,13 +562,13 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
550
562
|
|
|
551
563
|
### Patch Changes
|
|
552
564
|
|
|
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.
|
|
565
|
+
- [#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
566
|
|
|
555
567
|
## 14.0.0
|
|
556
568
|
|
|
557
569
|
### Major Changes
|
|
558
570
|
|
|
559
|
-
- [`807cd28fc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/807cd28fc0) - In this version we made flag dramatically faster, lighter and easier to use 🤩
|
|
571
|
+
- [#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
572
|
|
|
561
573
|
### Changes
|
|
562
574
|
|
|
@@ -576,7 +588,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
576
588
|
|
|
577
589
|
### Major Changes
|
|
578
590
|
|
|
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.
|
|
591
|
+
- [#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
592
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
581
593
|
|
|
582
594
|
### Patch Changes
|
|
@@ -587,25 +599,25 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
587
599
|
|
|
588
600
|
### Patch Changes
|
|
589
601
|
|
|
590
|
-
- [`eec3c9944e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eec3c9944e) - Export FlagProps type
|
|
602
|
+
- [#2859](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2859) [`eec3c9944e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eec3c9944e) - Export FlagProps type
|
|
591
603
|
|
|
592
604
|
## 12.4.4
|
|
593
605
|
|
|
594
606
|
### Patch Changes
|
|
595
607
|
|
|
596
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
608
|
+
- [#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
609
|
|
|
598
610
|
## 12.4.3
|
|
599
611
|
|
|
600
612
|
### Patch Changes
|
|
601
613
|
|
|
602
|
-
- [`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade react-transition-group to latest
|
|
614
|
+
- [#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
615
|
|
|
604
616
|
## 12.4.2
|
|
605
617
|
|
|
606
618
|
### Patch Changes
|
|
607
619
|
|
|
608
|
-
- [`98f462e2aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98f462e2aa) - Bumping use the latest version of @atlaskit/spinner
|
|
620
|
+
- [#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
621
|
- Updated dependencies
|
|
610
622
|
|
|
611
623
|
## 12.4.1
|
|
@@ -618,7 +630,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
618
630
|
|
|
619
631
|
### Minor Changes
|
|
620
632
|
|
|
621
|
-
- [`958b2bf6f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/958b2bf6f8) - FIX: Screen reader text won't be rendered when there is no flag
|
|
633
|
+
- [#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
634
|
FIX: FlagGroup screen reader text defaults to `h2` tag now. Was previously h1.
|
|
623
635
|
NEW: Customize screen reader text and the tag that renders the text
|
|
624
636
|
|
|
@@ -15,8 +15,8 @@ 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.
|
|
19
|
-
var AUTO_DISMISS_SECONDS = 8;
|
|
18
|
+
var packageVersion = "15.2.19";
|
|
19
|
+
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* __Auto dismiss flag__
|
|
@@ -26,7 +26,6 @@ var AUTO_DISMISS_SECONDS = 8;
|
|
|
26
26
|
* - [Examples](https://atlassian.design/components/flag/auto-dismiss-flag/examples)
|
|
27
27
|
* - [Code](https://atlassian.design/components/flag/auto-dismiss-flag/code)
|
|
28
28
|
*/
|
|
29
|
-
exports.AUTO_DISMISS_SECONDS = AUTO_DISMISS_SECONDS;
|
|
30
29
|
var AutoDismissFlag = function AutoDismissFlag(props) {
|
|
31
30
|
var id = props.id,
|
|
32
31
|
analyticsContext = props.analyticsContext,
|
|
@@ -80,5 +79,4 @@ var AutoDismissFlag = function AutoDismissFlag(props) {
|
|
|
80
79
|
onBlur: startAutoDismissTimer
|
|
81
80
|
}));
|
|
82
81
|
};
|
|
83
|
-
var _default = AutoDismissFlag;
|
|
84
|
-
exports.default = _default;
|
|
82
|
+
var _default = exports.default = AutoDismissFlag;
|
package/dist/cjs/constants.js
CHANGED
|
@@ -4,13 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VAR_COLOR = exports.VAR_BG_COLOR_HOVER = exports.VAR_BG_COLOR_ACTIVE = exports.VAR_BG_COLOR = exports.DEFAULT_APPEARANCE = void 0;
|
|
7
|
-
var DEFAULT_APPEARANCE = 'normal';
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.
|
|
11
|
-
var
|
|
12
|
-
exports.VAR_BG_COLOR = VAR_BG_COLOR;
|
|
13
|
-
var VAR_BG_COLOR_HOVER = '--bg-color-hover';
|
|
14
|
-
exports.VAR_BG_COLOR_HOVER = VAR_BG_COLOR_HOVER;
|
|
15
|
-
var VAR_BG_COLOR_ACTIVE = '--bg-color-active';
|
|
16
|
-
exports.VAR_BG_COLOR_ACTIVE = VAR_BG_COLOR_ACTIVE;
|
|
7
|
+
var DEFAULT_APPEARANCE = exports.DEFAULT_APPEARANCE = 'normal';
|
|
8
|
+
var VAR_COLOR = exports.VAR_COLOR = '--color';
|
|
9
|
+
var VAR_BG_COLOR = exports.VAR_BG_COLOR = '--bg-color';
|
|
10
|
+
var VAR_BG_COLOR_HOVER = exports.VAR_BG_COLOR_HOVER = '--bg-color-hover';
|
|
11
|
+
var VAR_BG_COLOR_ACTIVE = exports.VAR_BG_COLOR_ACTIVE = '--bg-color-active';
|
package/dist/cjs/flag-actions.js
CHANGED
package/dist/cjs/flag-group.js
CHANGED
|
@@ -19,20 +19,17 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
20
20
|
|
|
21
21
|
var gridSize = (0, _constants.gridSize)();
|
|
22
|
-
var flagWidth = gridSize * 50;
|
|
23
|
-
exports.
|
|
24
|
-
var flagAnimationTime = 400;
|
|
25
|
-
exports.flagAnimationTime = flagAnimationTime;
|
|
22
|
+
var flagWidth = exports.flagWidth = gridSize * 50;
|
|
23
|
+
var flagAnimationTime = exports.flagAnimationTime = 400;
|
|
26
24
|
var defaultFlagGroupContext = {
|
|
27
25
|
onDismissed: _noop.default,
|
|
28
26
|
isDismissAllowed: false
|
|
29
27
|
};
|
|
30
28
|
|
|
31
29
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
32
|
-
var FlagGroupContext = /*#__PURE__*/(0, _react.createContext)(defaultFlagGroupContext);
|
|
30
|
+
var FlagGroupContext = exports.FlagGroupContext = /*#__PURE__*/(0, _react.createContext)(defaultFlagGroupContext);
|
|
33
31
|
|
|
34
32
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
35
|
-
exports.FlagGroupContext = FlagGroupContext;
|
|
36
33
|
function useFlagGroup() {
|
|
37
34
|
return (0, _react.useContext)(FlagGroupContext);
|
|
38
35
|
}
|
|
@@ -148,5 +145,4 @@ var FlagGroup = function FlagGroup(props) {
|
|
|
148
145
|
appear: false
|
|
149
146
|
}, renderChildren())));
|
|
150
147
|
};
|
|
151
|
-
var _default = FlagGroup;
|
|
152
|
-
exports.default = _default;
|
|
148
|
+
var _default = exports.default = FlagGroup;
|
|
@@ -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
|
/**
|
|
@@ -94,7 +94,6 @@ function FlagsProvider(_ref) {
|
|
|
94
94
|
}));
|
|
95
95
|
})));
|
|
96
96
|
}
|
|
97
|
-
var withFlagsProvider = function withFlagsProvider(fn) {
|
|
97
|
+
var withFlagsProvider = exports.withFlagsProvider = function withFlagsProvider(fn) {
|
|
98
98
|
return /*#__PURE__*/_react.default.createElement(FlagsProvider, null, fn());
|
|
99
|
-
};
|
|
100
|
-
exports.withFlagsProvider = withFlagsProvider;
|
|
99
|
+
};
|
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.19"
|
|
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,6 @@ var Flag = function Flag(props) {
|
|
|
190
187
|
appearance: appearance,
|
|
191
188
|
linkComponent: linkComponent,
|
|
192
189
|
testId: testId
|
|
193
|
-
})))))))
|
|
190
|
+
})))))));
|
|
194
191
|
};
|
|
195
|
-
var _default = Flag;
|
|
196
|
-
exports.default = _default;
|
|
192
|
+
var _default = exports.default = Flag;
|
|
@@ -55,5 +55,4 @@ var DismissButton = function DismissButton(_ref) {
|
|
|
55
55
|
primaryColor: _theme.flagTextColorToken[appearance]
|
|
56
56
|
})));
|
|
57
57
|
};
|
|
58
|
-
var _default = /*#__PURE__*/(0, _react.memo)(DismissButton);
|
|
59
|
-
exports.default = _default;
|
|
58
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(DismissButton);
|
package/dist/cjs/theme.js
CHANGED
|
@@ -7,15 +7,14 @@ exports.flagTextColorToken = exports.flagTextColor = exports.flagIconColor = exp
|
|
|
7
7
|
var _colors = require("@atlaskit/theme/colors");
|
|
8
8
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
9
9
|
|
|
10
|
-
var flagBackgroundColor = {
|
|
10
|
+
var flagBackgroundColor = exports.flagBackgroundColor = {
|
|
11
11
|
error: 'color.background.danger.bold',
|
|
12
12
|
info: 'color.background.neutral.bold',
|
|
13
13
|
normal: 'elevation.surface.overlay',
|
|
14
14
|
success: 'color.background.success.bold',
|
|
15
15
|
warning: 'color.background.warning.bold'
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
var flagIconColor = {
|
|
17
|
+
var flagIconColor = exports.flagIconColor = {
|
|
19
18
|
error: "var(--ds-icon-inverse, ".concat(_colors.N0, ")"),
|
|
20
19
|
info: "var(--ds-icon-inverse, ".concat(_colors.N0, ")"),
|
|
21
20
|
normal: "var(--ds-icon-subtle, ".concat(_colors.N500, ")"),
|
|
@@ -24,26 +23,23 @@ var flagIconColor = {
|
|
|
24
23
|
};
|
|
25
24
|
|
|
26
25
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
27
|
-
exports.
|
|
28
|
-
var flagTextColor = {
|
|
26
|
+
var flagTextColor = exports.flagTextColor = {
|
|
29
27
|
error: 'inverse',
|
|
30
28
|
info: 'inverse',
|
|
31
29
|
normal: 'subtle',
|
|
32
30
|
success: 'inverse',
|
|
33
31
|
warning: 'warning.inverse'
|
|
34
32
|
};
|
|
35
|
-
exports.
|
|
36
|
-
var flagTextColorToken = {
|
|
33
|
+
var flagTextColorToken = exports.flagTextColorToken = {
|
|
37
34
|
error: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
38
35
|
info: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
39
36
|
normal: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
40
37
|
success: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
41
38
|
warning: "var(--ds-text-warning-inverse, ".concat(_colors.N700, ")")
|
|
42
39
|
};
|
|
43
|
-
exports.flagTextColorToken = flagTextColorToken;
|
|
44
40
|
// TODO: DSP-2519 Interaction tokens should be used for hovered and pressed states
|
|
45
41
|
// https://product-fabric.atlassian.net/browse/DSP-2519
|
|
46
|
-
var actionBackgroundColor = {
|
|
42
|
+
var actionBackgroundColor = exports.actionBackgroundColor = {
|
|
47
43
|
success: {
|
|
48
44
|
default: "var(--ds-background-inverse-subtle, ".concat(_colors.N30A, ")"),
|
|
49
45
|
active: "var(--ds-background-inverse-subtle-pressed, ".concat(_colors.N30A, ")"),
|
|
@@ -70,12 +66,10 @@ var actionBackgroundColor = {
|
|
|
70
66
|
pressed: 'none'
|
|
71
67
|
}
|
|
72
68
|
};
|
|
73
|
-
exports.
|
|
74
|
-
var actionTextColor = {
|
|
69
|
+
var actionTextColor = exports.actionTextColor = {
|
|
75
70
|
success: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
76
71
|
info: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
77
72
|
error: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
78
73
|
warning: "var(--ds-text-warning-inverse, ".concat(_colors.N700, ")"),
|
|
79
74
|
normal: "var(--ds-link, ".concat(_colors.B400, ")")
|
|
80
|
-
};
|
|
81
|
-
exports.actionTextColor = actionTextColor;
|
|
75
|
+
};
|
package/dist/cjs/types.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.AppearanceArray = void 0;
|
|
|
8
8
|
|
|
9
9
|
// exported for testing - keep in sync from `type AppearanceTypes`
|
|
10
10
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
11
|
-
var AppearanceArray = ['error', 'info', 'normal', 'success', 'warning'];
|
|
11
|
+
var AppearanceArray = exports.AppearanceArray = ['error', 'info', 'normal', 'success', 'warning'];
|
|
12
12
|
|
|
13
13
|
// CreateFlagsArg makes id optional so define this prop separately
|
|
14
14
|
|
|
@@ -16,5 +16,4 @@ var AppearanceArray = ['error', 'info', 'normal', 'success', 'warning'];
|
|
|
16
16
|
|
|
17
17
|
// This is extended by CreateFlagArgs
|
|
18
18
|
|
|
19
|
-
// Normal FlagProps should include the id
|
|
20
|
-
exports.AppearanceArray = AppearanceArray;
|
|
19
|
+
// Normal FlagProps should include the id
|
|
@@ -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.19";
|
|
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.19"
|
|
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.19";
|
|
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.19"
|
|
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.19",
|
|
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": "^
|
|
46
|
+
"@atlaskit/button": "^16.10.0",
|
|
47
|
+
"@atlaskit/ds-explorations": "^3.0.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,6 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@af/accessibility-testing": "*",
|
|
65
65
|
"@atlaskit/ssr": "*",
|
|
66
|
-
"@atlaskit/theme": "^12.5.0",
|
|
67
66
|
"@atlaskit/visual-regression": "*",
|
|
68
67
|
"@atlaskit/webdriver-runner": "*",
|
|
69
68
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|