@atlaskit/blanket 12.4.4 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,34 +1,46 @@
1
1
  # @atlaskit/blanket
2
2
 
3
+ ## 13.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#41760](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41760) [`909e4a30fe7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/909e4a30fe7) - Removed all remaining legacy theming logic from the Blanket, Breadcrumbs and Checkbox components.
8
+
9
+ ## 12.4.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#40123](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40123) [`b289e593932`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b289e593932) - Internal change to apply logical properties instead of physical properties for spacing, border, and position.
14
+
3
15
  ## 12.4.4
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - [`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.
19
+ - [#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.
8
20
 
9
21
  ## 12.4.3
10
22
 
11
23
  ### Patch Changes
12
24
 
13
- - [`77766ad157d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/77766ad157d) - Enrol packages to push-model consumption in Jira.
25
+ - [#34124](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34124) [`77766ad157d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/77766ad157d) - Enrol packages to push-model consumption in Jira.
14
26
 
15
27
  ## 12.4.2
16
28
 
17
29
  ### Patch Changes
18
30
 
19
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
31
+ - [#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
20
32
 
21
33
  ## 12.4.1
22
34
 
23
35
  ### Patch Changes
24
36
 
25
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
37
+ - [#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`
26
38
 
27
39
  ## 12.4.0
28
40
 
29
41
  ### Minor Changes
30
42
 
31
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
43
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
32
44
 
33
45
  ### Patch Changes
34
46
 
@@ -38,7 +50,7 @@
38
50
 
39
51
  ### Patch Changes
40
52
 
41
- - [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
53
+ - [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211) [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
42
54
 
43
55
  ## 12.3.7
44
56
 
@@ -50,7 +62,7 @@
50
62
 
51
63
  ### Patch Changes
52
64
 
53
- - [`a7e8a6c3ace`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7e8a6c3ace) - Prevent onBlanketClick function firing on Blanket when mousedown event begins on Blanket children
65
+ - [#29669](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29669) [`a7e8a6c3ace`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7e8a6c3ace) - Prevent onBlanketClick function firing on Blanket when mousedown event begins on Blanket children
54
66
 
55
67
  ## 12.3.5
56
68
 
@@ -80,25 +92,25 @@
80
92
 
81
93
  ### Patch Changes
82
94
 
83
- - [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
95
+ - [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488) [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
84
96
 
85
97
  ## 12.3.0
86
98
 
87
99
  ### Minor Changes
88
100
 
89
- - [`f2fe91811eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2fe91811eb) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behaviour change.
101
+ - [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`f2fe91811eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2fe91811eb) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behaviour change.
90
102
 
91
103
  ## 12.2.16
92
104
 
93
105
  ### Patch Changes
94
106
 
95
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
107
+ - [#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`
96
108
 
97
109
  ## 12.2.15
98
110
 
99
111
  ### Patch Changes
100
112
 
101
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
113
+ - [#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`.
102
114
 
103
115
  ## 12.2.14
104
116
 
@@ -116,7 +128,7 @@
116
128
 
117
129
  ### Patch Changes
118
130
 
119
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
131
+ - [#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
120
132
 
121
133
  ## 12.2.11
122
134
 
@@ -128,14 +140,14 @@
128
140
 
129
141
  ### Patch Changes
130
142
 
131
- - [`dcd92130cc4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dcd92130cc4) - Migrate deleted background accent tokens to replacements
143
+ - [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`dcd92130cc4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dcd92130cc4) - Migrate deleted background accent tokens to replacements
132
144
  - Updated dependencies
133
145
 
134
146
  ## 12.2.9
135
147
 
136
148
  ### Patch Changes
137
149
 
138
- - [`a0b4a3db79c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a0b4a3db79c) - Change internal type syntax to work with extract-react-types
150
+ - [#19696](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19696) [`a0b4a3db79c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a0b4a3db79c) - Change internal type syntax to work with extract-react-types
139
151
 
140
152
  ## 12.2.8
141
153
 
@@ -147,7 +159,7 @@
147
159
 
148
160
  ### Patch Changes
149
161
 
150
- - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
162
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
151
163
  - Updated dependencies
152
164
 
153
165
  ## 12.2.6
@@ -160,7 +172,7 @@
160
172
 
161
173
  ### Patch Changes
162
174
 
163
- - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
175
+ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
164
176
  - Updated dependencies
165
177
 
166
178
  ## 12.2.4
@@ -173,7 +185,7 @@
173
185
 
174
186
  ### Patch Changes
175
187
 
176
- - [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
188
+ - [#15632](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15632) [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
177
189
 
178
190
  ## 12.2.2
179
191
 
@@ -191,7 +203,7 @@
191
203
 
192
204
  ### Minor Changes
193
205
 
194
- - [`9f7f8e0b581`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f7f8e0b581) - [ux] Blanket now uses a transparent background color when un-tinted instead of using opacity.
206
+ - [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`9f7f8e0b581`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f7f8e0b581) - [ux] Blanket now uses a transparent background color when un-tinted instead of using opacity.
195
207
 
196
208
  ### Patch Changes
197
209
 
@@ -208,7 +220,7 @@
208
220
 
209
221
  ### Minor Changes
210
222
 
211
- - [`6071d362abb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6071d362abb) - [ux] Colors now sourced from tokens.
223
+ - [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`6071d362abb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6071d362abb) - [ux] Colors now sourced from tokens.
212
224
 
213
225
  ### Patch Changes
214
226
 
@@ -219,13 +231,13 @@
219
231
 
220
232
  ### Patch Changes
221
233
 
222
- - [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
234
+ - [#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`.
223
235
 
224
236
  ## 12.0.0
225
237
 
226
238
  ### Major Changes
227
239
 
228
- - [`f166f5398b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f166f5398b2) - In this version we made **Blanket** faster and lighter
240
+ - [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`f166f5398b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f166f5398b2) - In this version we made **Blanket** faster and lighter
229
241
 
230
242
  - General performance improvements
231
243
 
@@ -257,7 +269,7 @@
257
269
  Run `npx @atlaskit/codemod-cli -h` for more details on usage.
258
270
 
259
271
  For Atlassians,
260
- refer to the [documentation](https://developer.atlassian.com/cloud/framework/atlassian-frontend/codemods/01-atlassian-codemods/) for more details on the codemod CLI.
272
+ refer to the [documentation](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more details on the codemod CLI.
261
273
 
262
274
  ### Patch Changes
263
275
 
@@ -268,37 +280,37 @@
268
280
 
269
281
  ### Patch Changes
270
282
 
271
- - [`dd89416d229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dd89416d229) - Updated dependency of `@atlaskit/theme` to 11.2.0
283
+ - [#12670](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12670) [`dd89416d229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dd89416d229) - Updated dependency of `@atlaskit/theme` to 11.2.0
272
284
 
273
285
  ## 11.4.0
274
286
 
275
287
  ### Minor Changes
276
288
 
277
- - [`96fda7877a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96fda7877a1) - We converted blanket from class to functional component and replaced styled components with emotion
289
+ - [#11649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11649) [`96fda7877a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96fda7877a1) - We converted blanket from class to functional component and replaced styled components with emotion
278
290
 
279
291
  ## 11.3.1
280
292
 
281
293
  ### Patch Changes
282
294
 
283
- - [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
295
+ - [#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`
284
296
 
285
297
  ## 11.3.0
286
298
 
287
299
  ### Minor Changes
288
300
 
289
- - [`f6b951a51f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f6b951a51f2) - Removes usage of styled-components in favour of standardising on emotion
301
+ - [#12170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12170) [`f6b951a51f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f6b951a51f2) - Removes usage of styled-components in favour of standardising on emotion
290
302
 
291
303
  ## 11.2.1
292
304
 
293
305
  ### Patch Changes
294
306
 
295
- - [`e08a57e5055`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e08a57e5055) - Added the `design-system` tech stacks to the `package.json`
307
+ - [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`e08a57e5055`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e08a57e5055) - Added the `design-system` tech stacks to the `package.json`
296
308
 
297
309
  ## 11.2.0
298
310
 
299
311
  ### Minor Changes
300
312
 
301
- - [`990aefd838b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/990aefd838b) - Blanket now accepts testId prop to be used for automated testing purposes.
313
+ - [#9756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9756) [`990aefd838b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/990aefd838b) - Blanket now accepts testId prop to be used for automated testing purposes.
302
314
 
303
315
  ### Patch Changes
304
316
 
@@ -308,25 +320,25 @@
308
320
 
309
321
  ### Patch Changes
310
322
 
311
- - [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
323
+ - [#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.
312
324
 
313
325
  ## 11.1.0
314
326
 
315
327
  ### Minor Changes
316
328
 
317
- - [`4f9e6e2db5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f9e6e2db5) - These packages now have defined entry points -- this means that you cannot access internal files in the packages that are not meant to be public. Sub-components in these packages have been explicitly defined, aiding tree-shaking and reducing bundle size.
329
+ - [#7170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7170) [`4f9e6e2db5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f9e6e2db5) - These packages now have defined entry points -- this means that you cannot access internal files in the packages that are not meant to be public. Sub-components in these packages have been explicitly defined, aiding tree-shaking and reducing bundle size.
318
330
 
319
331
  ## 11.0.4
320
332
 
321
333
  ### Patch Changes
322
334
 
323
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
335
+ - [#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
324
336
 
325
337
  ## 11.0.3
326
338
 
327
339
  ### Patch Changes
328
340
 
329
- - [`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.
341
+ - [#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.
330
342
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
331
343
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
332
344
 
@@ -340,7 +352,7 @@
340
352
 
341
353
  ### Patch Changes
342
354
 
343
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
355
+ - [#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
344
356
 
345
357
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
346
358
  to prevent duplicates of tslib being bundled.
@@ -349,7 +361,7 @@
349
361
 
350
362
  ### Major Changes
351
363
 
352
- - [`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.
364
+ - [#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.
353
365
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
354
366
 
355
367
  ### Patch Changes
@@ -360,7 +372,7 @@
360
372
 
361
373
  ### Patch Changes
362
374
 
363
- - [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
375
+ - [#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
364
376
 
365
377
  ## 10.0.18
366
378
 
@@ -11,12 +11,11 @@ var _react2 = require("@emotion/react");
11
11
  var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
12
12
  var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
13
13
  var _colors = require("@atlaskit/theme/colors");
14
- var _components = require("@atlaskit/theme/components");
15
14
  var _constants = require("@atlaskit/theme/constants");
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
15
+ 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; }
16
+ 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 */
18
17
  var packageName = "@atlaskit/blanket";
19
- var packageVersion = "12.4.4";
18
+ var packageVersion = "13.0.0";
20
19
  var analyticsAttributes = {
21
20
  componentName: 'blanket',
22
21
  packageName: packageName,
@@ -26,6 +25,7 @@ var baseStyles = (0, _react2.css)({
26
25
  position: 'fixed',
27
26
  zIndex: _constants.layers.blanket(),
28
27
  inset: 0,
28
+ backgroundColor: "var(--ds-blanket, ".concat(_colors.N100A, ")"),
29
29
  overflowY: 'auto',
30
30
  pointerEvents: 'initial'
31
31
  });
@@ -35,16 +35,6 @@ var shouldAllowClickThroughStyles = (0, _react2.css)({
35
35
  var invisibleStyles = (0, _react2.css)({
36
36
  backgroundColor: 'transparent'
37
37
  });
38
- var lightBgStyles = (0, _react2.css)({
39
- backgroundColor: "var(--ds-blanket, ".concat(_colors.N100A, ")")
40
- });
41
- var darkBgStyles = (0, _react2.css)({
42
- backgroundColor: "var(--ds-blanket, ".concat(_colors.DN90A, ")")
43
- });
44
- var backgroundStyle = {
45
- light: lightBgStyles,
46
- dark: darkBgStyles
47
- };
48
38
 
49
39
  /**
50
40
  * __Blanket__
@@ -63,8 +53,6 @@ var Blanket = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)
63
53
  testId = _ref.testId,
64
54
  children = _ref.children,
65
55
  analyticsContext = _ref.analyticsContext;
66
- var _useGlobalTheme = (0, _components.useGlobalTheme)(),
67
- mode = _useGlobalTheme.mode;
68
56
  var mouseDownTarget = (0, _react.useRef)(null);
69
57
  var onBlanketClickedWithAnalytics = (0, _usePlatformLeafEventHandler.usePlatformLeafEventHandler)(_objectSpread({
70
58
  fn: onBlanketClicked,
@@ -79,10 +67,16 @@ var Blanket = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)
79
67
  mouseDownTarget.current = e.target;
80
68
  }, []);
81
69
  return (
82
- // TODO: Remove role="presentation", since div's have no semantics anyway (DSP-11587)
70
+ /**
71
+ * It is not normally acceptable to add click and key handlers to non-interactive
72
+ * elements as this is an accessibility anti-pattern. However, because this
73
+ * instance is to enable light dismiss functionality instead of creating an
74
+ * inaccessible custom element, we can add role="presentation" so that there
75
+ * are no negative impacts to assistive technologies.
76
+ */
83
77
  (0, _react2.jsx)("div", {
84
78
  role: "presentation",
85
- css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
79
+ css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, !isTinted && invisibleStyles],
86
80
  onClick: onClick,
87
81
  onMouseDown: onMouseDown,
88
82
  "data-testid": testId,
@@ -91,5 +85,4 @@ var Blanket = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)
91
85
  );
92
86
  }));
93
87
  Blanket.displayName = 'Blanket';
94
- var _default = Blanket;
95
- exports.default = _default;
88
+ var _default = exports.default = Blanket;
@@ -3,11 +3,10 @@ import { forwardRef, memo, useCallback, useRef } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
5
5
  import noop from '@atlaskit/ds-lib/noop';
6
- import { DN90A, N100A } from '@atlaskit/theme/colors';
7
- import { useGlobalTheme } from '@atlaskit/theme/components';
6
+ import { N100A } from '@atlaskit/theme/colors';
8
7
  import { layers } from '@atlaskit/theme/constants';
9
8
  const packageName = "@atlaskit/blanket";
10
- const packageVersion = "12.4.4";
9
+ const packageVersion = "13.0.0";
11
10
  const analyticsAttributes = {
12
11
  componentName: 'blanket',
13
12
  packageName,
@@ -17,6 +16,7 @@ const baseStyles = css({
17
16
  position: 'fixed',
18
17
  zIndex: layers.blanket(),
19
18
  inset: 0,
19
+ backgroundColor: `var(--ds-blanket, ${N100A})`,
20
20
  overflowY: 'auto',
21
21
  pointerEvents: 'initial'
22
22
  });
@@ -26,16 +26,6 @@ const shouldAllowClickThroughStyles = css({
26
26
  const invisibleStyles = css({
27
27
  backgroundColor: 'transparent'
28
28
  });
29
- const lightBgStyles = css({
30
- backgroundColor: `var(--ds-blanket, ${N100A})`
31
- });
32
- const darkBgStyles = css({
33
- backgroundColor: `var(--ds-blanket, ${DN90A})`
34
- });
35
- const backgroundStyle = {
36
- light: lightBgStyles,
37
- dark: darkBgStyles
38
- };
39
29
 
40
30
  /**
41
31
  * __Blanket__
@@ -52,9 +42,6 @@ const Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket({
52
42
  children,
53
43
  analyticsContext
54
44
  }, ref) {
55
- const {
56
- mode
57
- } = useGlobalTheme();
58
45
  const mouseDownTarget = useRef(null);
59
46
  const onBlanketClickedWithAnalytics = usePlatformLeafEventHandler({
60
47
  fn: onBlanketClicked,
@@ -68,10 +55,16 @@ const Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket({
68
55
  mouseDownTarget.current = e.target;
69
56
  }, []);
70
57
  return (
71
- // TODO: Remove role="presentation", since div's have no semantics anyway (DSP-11587)
58
+ /**
59
+ * It is not normally acceptable to add click and key handlers to non-interactive
60
+ * elements as this is an accessibility anti-pattern. However, because this
61
+ * instance is to enable light dismiss functionality instead of creating an
62
+ * inaccessible custom element, we can add role="presentation" so that there
63
+ * are no negative impacts to assistive technologies.
64
+ */
72
65
  jsx("div", {
73
66
  role: "presentation",
74
- css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
67
+ css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, !isTinted && invisibleStyles],
75
68
  onClick: onClick,
76
69
  onMouseDown: onMouseDown,
77
70
  "data-testid": testId,
@@ -1,16 +1,15 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2
+ 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; }
3
+ 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; }
4
4
  /** @jsx jsx */
5
5
  import { forwardRef, memo, useCallback, useRef } from 'react';
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
8
8
  import noop from '@atlaskit/ds-lib/noop';
9
- import { DN90A, N100A } from '@atlaskit/theme/colors';
10
- import { useGlobalTheme } from '@atlaskit/theme/components';
9
+ import { N100A } from '@atlaskit/theme/colors';
11
10
  import { layers } from '@atlaskit/theme/constants';
12
11
  var packageName = "@atlaskit/blanket";
13
- var packageVersion = "12.4.4";
12
+ var packageVersion = "13.0.0";
14
13
  var analyticsAttributes = {
15
14
  componentName: 'blanket',
16
15
  packageName: packageName,
@@ -20,6 +19,7 @@ var baseStyles = css({
20
19
  position: 'fixed',
21
20
  zIndex: layers.blanket(),
22
21
  inset: 0,
22
+ backgroundColor: "var(--ds-blanket, ".concat(N100A, ")"),
23
23
  overflowY: 'auto',
24
24
  pointerEvents: 'initial'
25
25
  });
@@ -29,16 +29,6 @@ var shouldAllowClickThroughStyles = css({
29
29
  var invisibleStyles = css({
30
30
  backgroundColor: 'transparent'
31
31
  });
32
- var lightBgStyles = css({
33
- backgroundColor: "var(--ds-blanket, ".concat(N100A, ")")
34
- });
35
- var darkBgStyles = css({
36
- backgroundColor: "var(--ds-blanket, ".concat(DN90A, ")")
37
- });
38
- var backgroundStyle = {
39
- light: lightBgStyles,
40
- dark: darkBgStyles
41
- };
42
32
 
43
33
  /**
44
34
  * __Blanket__
@@ -57,8 +47,6 @@ var Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket(_ref,
57
47
  testId = _ref.testId,
58
48
  children = _ref.children,
59
49
  analyticsContext = _ref.analyticsContext;
60
- var _useGlobalTheme = useGlobalTheme(),
61
- mode = _useGlobalTheme.mode;
62
50
  var mouseDownTarget = useRef(null);
63
51
  var onBlanketClickedWithAnalytics = usePlatformLeafEventHandler(_objectSpread({
64
52
  fn: onBlanketClicked,
@@ -73,10 +61,16 @@ var Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket(_ref,
73
61
  mouseDownTarget.current = e.target;
74
62
  }, []);
75
63
  return (
76
- // TODO: Remove role="presentation", since div's have no semantics anyway (DSP-11587)
64
+ /**
65
+ * It is not normally acceptable to add click and key handlers to non-interactive
66
+ * elements as this is an accessibility anti-pattern. However, because this
67
+ * instance is to enable light dismiss functionality instead of creating an
68
+ * inaccessible custom element, we can add role="presentation" so that there
69
+ * are no negative impacts to assistive technologies.
70
+ */
77
71
  jsx("div", {
78
72
  role: "presentation",
79
- css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
73
+ css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, !isTinted && invisibleStyles],
80
74
  onClick: onClick,
81
75
  onMouseDown: onMouseDown,
82
76
  "data-testid": testId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.4",
3
+ "version": "13.0.0",
4
4
  "description": "A blanket covers the underlying UI for a layered component, such as a modal dialog or a tooltip.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,8 +42,8 @@
42
42
  "@atlaskit/analytics-next": "^9.1.0",
43
43
  "@atlaskit/codemod-utils": "^4.2.0",
44
44
  "@atlaskit/ds-lib": "^2.2.0",
45
- "@atlaskit/theme": "^12.5.0",
46
- "@atlaskit/tokens": "^1.11.0",
45
+ "@atlaskit/theme": "^12.6.0",
46
+ "@atlaskit/tokens": "^1.28.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },
@@ -52,6 +52,7 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@af/accessibility-testing": "*",
55
+ "@af/integration-testing": "*",
55
56
  "@atlaskit/ssr": "*",
56
57
  "@atlaskit/visual-regression": "*",
57
58
  "@atlaskit/webdriver-runner": "*",
@@ -92,4 +93,4 @@
92
93
  }
93
94
  },
94
95
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
95
- }
96
+ }
@@ -0,0 +1,31 @@
1
+ ## API Report File for "@atlaskit/blanket"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { ForwardRefExoticComponent } from 'react';
10
+ import { MemoExoticComponent } from 'react';
11
+ import { ReactNode } from 'react';
12
+ import { RefAttributes } from 'react';
13
+ import UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
14
+
15
+ // @public
16
+ const Blanket: MemoExoticComponent<ForwardRefExoticComponent<BlanketProps & RefAttributes<HTMLDivElement>>>;
17
+ export default Blanket;
18
+
19
+ // @public (undocumented)
20
+ export interface BlanketProps {
21
+ analyticsContext?: Record<string, any>;
22
+ children?: ReactNode;
23
+ isTinted?: boolean;
24
+ onBlanketClicked?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent: UIAnalyticsEvent) => void;
25
+ shouldAllowClickThrough?: boolean;
26
+ testId?: string;
27
+ }
28
+
29
+ // (No @packageDocumentation comment for this package)
30
+
31
+ ```
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/blanket",
3
- "version": "12.4.4",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/blanket",
3
- "version": "12.4.4",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/blanket",
3
- "version": "12.4.4",
4
- "sideEffects": false
5
- }