@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 +6 -0
- package/dist/cjs/blanket.js +12 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/blanket.js +12 -9
- package/dist/es2019/version.json +1 -1
- package/dist/esm/blanket.js +12 -9
- package/dist/esm/version.json +1 -1
- package/package.json +3 -6
- package/tmp/api-report-tmp.d.ts +0 -31
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
|
package/dist/cjs/blanket.js
CHANGED
|
@@ -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.
|
|
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 (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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;
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/blanket.js
CHANGED
|
@@ -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.
|
|
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
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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;
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/blanket.js
CHANGED
|
@@ -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.
|
|
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
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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;
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/blanket",
|
|
3
|
-
"version": "12.4.
|
|
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.
|
|
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
|
-
"@
|
|
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",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -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
|
-
```
|