@atlaskit/blanket 12.2.16 → 12.3.1

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,5 +1,17 @@
1
1
  # @atlaskit/blanket
2
2
 
3
+ ## 12.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
8
+
9
+ ## 12.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`f2fe91811eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2fe91811eb) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behaviour change.
14
+
3
15
  ## 12.2.16
4
16
 
5
17
  ### Patch Changes
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
 
12
12
  var _react = require("react");
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react2 = require("@emotion/react");
15
15
 
16
16
  var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
17
17
 
@@ -28,13 +28,13 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
28
28
  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; }
29
29
 
30
30
  var packageName = "@atlaskit/blanket";
31
- var packageVersion = "12.2.16";
31
+ var packageVersion = "12.3.1";
32
32
  var analyticsAttributes = {
33
33
  componentName: 'blanket',
34
34
  packageName: packageName,
35
35
  packageVersion: packageVersion
36
36
  };
37
- var baseStyles = (0, _core.css)({
37
+ var baseStyles = (0, _react2.css)({
38
38
  position: 'fixed',
39
39
  zIndex: _constants.layers.blanket(),
40
40
  top: 0,
@@ -44,16 +44,16 @@ var baseStyles = (0, _core.css)({
44
44
  overflowY: 'auto',
45
45
  pointerEvents: 'initial'
46
46
  });
47
- var shouldAllowClickThroughStyles = (0, _core.css)({
47
+ var shouldAllowClickThroughStyles = (0, _react2.css)({
48
48
  pointerEvents: 'none'
49
49
  });
50
- var invisibleStyles = (0, _core.css)({
50
+ var invisibleStyles = (0, _react2.css)({
51
51
  backgroundColor: 'transparent'
52
52
  });
53
- var lightBgStyles = (0, _core.css)({
53
+ var lightBgStyles = (0, _react2.css)({
54
54
  backgroundColor: "var(--ds-blanket, ".concat(_colors.N100A, ")")
55
55
  });
56
- var darkBgStyles = (0, _core.css)({
56
+ var darkBgStyles = (0, _react2.css)({
57
57
  backgroundColor: "var(--ds-blanket, ".concat(_colors.DN90A, ")")
58
58
  });
59
59
  var backgroundStyle = {
@@ -91,7 +91,7 @@ var Blanket = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)
91
91
  return e.currentTarget === e.target ? onBlanketClickedWithAnalytics(e) : undefined;
92
92
  }, [onBlanketClickedWithAnalytics]);
93
93
  var onClick = shouldAllowClickThrough ? undefined : blanketClickOutsideChildren;
94
- return (0, _core.jsx)("div", {
94
+ return (0, _react2.jsx)("div", {
95
95
  role: "presentation",
96
96
  css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
97
97
  onClick: onClick,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.2.16",
3
+ "version": "12.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,13 +1,13 @@
1
1
  /** @jsx jsx */
2
2
  import { forwardRef, memo, useCallback } from 'react';
3
- import { css, jsx } from '@emotion/core';
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
6
  import { DN90A, N100A } from '@atlaskit/theme/colors';
7
7
  import { useGlobalTheme } from '@atlaskit/theme/components';
8
8
  import { layers } from '@atlaskit/theme/constants';
9
9
  const packageName = "@atlaskit/blanket";
10
- const packageVersion = "12.2.16";
10
+ const packageVersion = "12.3.1";
11
11
  const analyticsAttributes = {
12
12
  componentName: 'blanket',
13
13
  packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.2.16",
3
+ "version": "12.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -6,14 +6,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6
6
 
7
7
  /** @jsx jsx */
8
8
  import { forwardRef, memo, useCallback } from 'react';
9
- import { css, jsx } from '@emotion/core';
9
+ import { css, jsx } from '@emotion/react';
10
10
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
11
11
  import noop from '@atlaskit/ds-lib/noop';
12
12
  import { DN90A, N100A } from '@atlaskit/theme/colors';
13
13
  import { useGlobalTheme } from '@atlaskit/theme/components';
14
14
  import { layers } from '@atlaskit/theme/constants';
15
15
  var packageName = "@atlaskit/blanket";
16
- var packageVersion = "12.2.16";
16
+ var packageVersion = "12.3.1";
17
17
  var analyticsAttributes = {
18
18
  componentName: 'blanket',
19
19
  packageName: packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.2.16",
3
+ "version": "12.3.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.2.16",
3
+ "version": "12.3.1",
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/"
@@ -15,7 +15,8 @@
15
15
  "typesVersions": {
16
16
  ">=4.0 <4.5": {
17
17
  "*": [
18
- "dist/types-ts4.0/*"
18
+ "dist/types-ts4.0/*",
19
+ "dist/types-ts4.0/index.d.ts"
19
20
  ]
20
21
  }
21
22
  },
@@ -23,6 +24,7 @@
23
24
  "atlaskit:src": "src/index.tsx",
24
25
  "homepage": "https://atlassian.design/components/blanket",
25
26
  "atlassian": {
27
+ "disableProductCI": true,
26
28
  "team": "Design System Team",
27
29
  "releaseModel": "scheduled",
28
30
  "website": {
@@ -41,7 +43,7 @@
41
43
  "@atlaskit/theme": "^12.2.0",
42
44
  "@atlaskit/tokens": "^0.10.0",
43
45
  "@babel/runtime": "^7.0.0",
44
- "@emotion/core": "^10.0.9"
46
+ "@emotion/react": "^11.7.1"
45
47
  },
46
48
  "peerDependencies": {
47
49
  "react": "^16.8.0"
@@ -82,6 +84,7 @@
82
84
  ],
83
85
  "ui-components": "lite-mode",
84
86
  "analytics": "analytics-next",
87
+ "design-tokens": "spacing",
85
88
  "theming": "tokens",
86
89
  "deprecation": "no-deprecated-imports"
87
90
  }
package/report.api.md CHANGED
@@ -1,6 +1,8 @@
1
- ## API Report File for "@atlaskit/blanket"
1
+ ## API Report File for "@atlaskit/blanket".
2
2
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
4
6
 
5
7
  ```ts
6
8
  /// <reference types="react" />