@atlaskit/blanket 12.4.3 → 12.4.4

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,11 @@
1
1
  # @atlaskit/blanket
2
2
 
3
+ ## 12.4.4
4
+
5
+ ### Patch Changes
6
+
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.
8
+
3
9
  ## 12.4.3
4
10
 
5
11
  ### Patch Changes
@@ -16,7 +16,7 @@ var _constants = require("@atlaskit/theme/constants");
16
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
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 */
18
18
  var packageName = "@atlaskit/blanket";
19
- var packageVersion = "12.4.3";
19
+ var packageVersion = "12.4.4";
20
20
  var analyticsAttributes = {
21
21
  componentName: 'blanket',
22
22
  packageName: packageName,
@@ -78,14 +78,17 @@ var Blanket = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)
78
78
  var onMouseDown = (0, _react.useCallback)(function (e) {
79
79
  mouseDownTarget.current = e.target;
80
80
  }, []);
81
- return (0, _react2.jsx)("div", {
82
- role: "presentation",
83
- css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
84
- onClick: onClick,
85
- onMouseDown: onMouseDown,
86
- "data-testid": testId,
87
- ref: ref
88
- }, children);
81
+ return (
82
+ // TODO: Remove role="presentation", since div's have no semantics anyway (DSP-11587)
83
+ (0, _react2.jsx)("div", {
84
+ role: "presentation",
85
+ css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
86
+ onClick: onClick,
87
+ onMouseDown: onMouseDown,
88
+ "data-testid": testId,
89
+ ref: ref
90
+ }, children)
91
+ );
89
92
  }));
90
93
  Blanket.displayName = 'Blanket';
91
94
  var _default = Blanket;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.3",
3
+ "version": "12.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -7,7 +7,7 @@ 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.4.3";
10
+ const packageVersion = "12.4.4";
11
11
  const analyticsAttributes = {
12
12
  componentName: 'blanket',
13
13
  packageName,
@@ -67,14 +67,17 @@ const Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket({
67
67
  const onMouseDown = useCallback(e => {
68
68
  mouseDownTarget.current = e.target;
69
69
  }, []);
70
- return jsx("div", {
71
- role: "presentation",
72
- css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
73
- onClick: onClick,
74
- onMouseDown: onMouseDown,
75
- "data-testid": testId,
76
- ref: ref
77
- }, children);
70
+ return (
71
+ // TODO: Remove role="presentation", since div's have no semantics anyway (DSP-11587)
72
+ jsx("div", {
73
+ role: "presentation",
74
+ css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
75
+ onClick: onClick,
76
+ onMouseDown: onMouseDown,
77
+ "data-testid": testId,
78
+ ref: ref
79
+ }, children)
80
+ );
78
81
  }));
79
82
  Blanket.displayName = 'Blanket';
80
83
  export default Blanket;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.3",
3
+ "version": "12.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -10,7 +10,7 @@ import { DN90A, N100A } from '@atlaskit/theme/colors';
10
10
  import { useGlobalTheme } from '@atlaskit/theme/components';
11
11
  import { layers } from '@atlaskit/theme/constants';
12
12
  var packageName = "@atlaskit/blanket";
13
- var packageVersion = "12.4.3";
13
+ var packageVersion = "12.4.4";
14
14
  var analyticsAttributes = {
15
15
  componentName: 'blanket',
16
16
  packageName: packageName,
@@ -72,14 +72,17 @@ var Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket(_ref,
72
72
  var onMouseDown = useCallback(function (e) {
73
73
  mouseDownTarget.current = e.target;
74
74
  }, []);
75
- return jsx("div", {
76
- role: "presentation",
77
- css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
78
- onClick: onClick,
79
- onMouseDown: onMouseDown,
80
- "data-testid": testId,
81
- ref: ref
82
- }, children);
75
+ return (
76
+ // TODO: Remove role="presentation", since div's have no semantics anyway (DSP-11587)
77
+ jsx("div", {
78
+ role: "presentation",
79
+ css: [baseStyles, shouldAllowClickThrough && shouldAllowClickThroughStyles, backgroundStyle[mode], !isTinted && invisibleStyles],
80
+ onClick: onClick,
81
+ onMouseDown: onMouseDown,
82
+ "data-testid": testId,
83
+ ref: ref
84
+ }, children)
85
+ );
83
86
  }));
84
87
  Blanket.displayName = 'Blanket';
85
88
  export default Blanket;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.3",
3
+ "version": "12.4.4",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.3",
3
+ "version": "12.4.4",
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/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/codemod-utils": "^4.2.0",
44
44
  "@atlaskit/ds-lib": "^2.2.0",
45
45
  "@atlaskit/theme": "^12.5.0",
46
- "@atlaskit/tokens": "^1.4.0",
46
+ "@atlaskit/tokens": "^1.11.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },
@@ -51,11 +51,8 @@
51
51
  "react": "^16.8.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@atlaskit/badge": "^15.1.0",
55
- "@atlaskit/button": "^16.7.0",
56
- "@atlaskit/docs": "*",
54
+ "@af/accessibility-testing": "*",
57
55
  "@atlaskit/ssr": "*",
58
- "@atlaskit/toggle": "^12.6.0",
59
56
  "@atlaskit/visual-regression": "*",
60
57
  "@atlaskit/webdriver-runner": "*",
61
58
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -1,31 +0,0 @@
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
- ```