@atlaskit/blanket 15.0.34 → 16.0.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 +35 -0
- package/dist/cjs/blanket.js +1 -1
- package/dist/es2019/blanket.js +1 -1
- package/dist/esm/blanket.js +1 -1
- package/package.json +16 -24
- package/types/package.json +1 -8
- package/dist/types-ts4.5/blanket.d.ts +0 -15
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/types.d.ts +0 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @atlaskit/blanket
|
|
2
2
|
|
|
3
|
+
## 16.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
|
|
8
|
+
Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
|
|
9
|
+
gating.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 16.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
17
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
18
|
+
|
|
19
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
20
|
+
|
|
21
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
22
|
+
|
|
23
|
+
```diff
|
|
24
|
+
- "typesVersions": {
|
|
25
|
+
- ">=4.5 <4.9": {
|
|
26
|
+
- "*": [
|
|
27
|
+
- "dist/types-ts4.5/*",
|
|
28
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
29
|
+
- ]
|
|
30
|
+
- }
|
|
31
|
+
- },
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
|
|
3
38
|
## 15.0.34
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
package/dist/cjs/blanket.js
CHANGED
|
@@ -19,7 +19,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
19
19
|
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; }
|
|
20
20
|
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; }
|
|
21
21
|
var packageName = "@atlaskit/blanket";
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "16.0.0";
|
|
23
23
|
var analyticsAttributes = {
|
|
24
24
|
componentName: 'blanket',
|
|
25
25
|
packageName: packageName,
|
package/dist/es2019/blanket.js
CHANGED
|
@@ -7,7 +7,7 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatfor
|
|
|
7
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
8
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
9
|
const packageName = "@atlaskit/blanket";
|
|
10
|
-
const packageVersion = "
|
|
10
|
+
const packageVersion = "16.0.0";
|
|
11
11
|
const analyticsAttributes = {
|
|
12
12
|
componentName: 'blanket',
|
|
13
13
|
packageName,
|
package/dist/esm/blanket.js
CHANGED
|
@@ -10,7 +10,7 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatfor
|
|
|
10
10
|
import noop from '@atlaskit/ds-lib/noop';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
12
|
var packageName = "@atlaskit/blanket";
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "16.0.0";
|
|
14
14
|
var analyticsAttributes = {
|
|
15
15
|
componentName: 'blanket',
|
|
16
16
|
packageName: packageName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/blanket",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.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/"
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.5 <4.9": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.5/*",
|
|
19
|
-
"dist/types-ts4.5/index.d.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
15
|
"sideEffects": [
|
|
24
16
|
"**/*.compiled.css"
|
|
25
17
|
],
|
|
@@ -40,11 +32,12 @@
|
|
|
40
32
|
}
|
|
41
33
|
},
|
|
42
34
|
"dependencies": {
|
|
43
|
-
"@atlaskit/analytics-next": "^
|
|
44
|
-
"@atlaskit/css": "^0.
|
|
45
|
-
"@atlaskit/ds-lib": "^
|
|
46
|
-
"@atlaskit/theme": "^
|
|
47
|
-
"@atlaskit/tokens": "^
|
|
35
|
+
"@atlaskit/analytics-next": "^12.0.0",
|
|
36
|
+
"@atlaskit/css": "^1.0.0",
|
|
37
|
+
"@atlaskit/ds-lib": "^8.0.0",
|
|
38
|
+
"@atlaskit/theme": "^26.0.0",
|
|
39
|
+
"@atlaskit/tokens": "^15.0.0",
|
|
40
|
+
"@atlassian/react-compiler-gating": "^0.2.0",
|
|
48
41
|
"@babel/runtime": "^7.0.0",
|
|
49
42
|
"@compiled/react": "^0.20.0"
|
|
50
43
|
},
|
|
@@ -54,16 +47,15 @@
|
|
|
54
47
|
"devDependencies": {
|
|
55
48
|
"@af/accessibility-testing": "workspace:^",
|
|
56
49
|
"@af/integration-testing": "workspace:^",
|
|
57
|
-
"@atlaskit/badge": "^
|
|
58
|
-
"@atlaskit/button": "^
|
|
59
|
-
"@atlaskit/docs": "^
|
|
60
|
-
"@atlaskit/heading": "^
|
|
61
|
-
"@atlaskit/layering": "^
|
|
62
|
-
"@atlaskit/link": "^
|
|
63
|
-
"@atlaskit/primitives": "^
|
|
64
|
-
"@atlaskit/section-message": "^
|
|
65
|
-
"@atlaskit/toggle": "^
|
|
66
|
-
"@atlassian/react-compiler-gating": "workspace:^",
|
|
50
|
+
"@atlaskit/badge": "^19.0.0",
|
|
51
|
+
"@atlaskit/button": "^24.1.0",
|
|
52
|
+
"@atlaskit/docs": "^12.0.0",
|
|
53
|
+
"@atlaskit/heading": "^6.0.0",
|
|
54
|
+
"@atlaskit/layering": "^4.0.0",
|
|
55
|
+
"@atlaskit/link": "^4.0.0",
|
|
56
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
57
|
+
"@atlaskit/section-message": "^9.1.0",
|
|
58
|
+
"@atlaskit/toggle": "^17.0.0",
|
|
67
59
|
"@atlassian/ssr-tests": "workspace:^",
|
|
68
60
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
69
61
|
"@testing-library/dom": "^10.1.0",
|
package/types/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/types.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/types.d.ts"
|
|
17
10
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ForwardRefExoticComponent, type MemoExoticComponent, type RefAttributes } from 'react';
|
|
6
|
-
import type { BlanketProps } from './types';
|
|
7
|
-
/**
|
|
8
|
-
* __Blanket__
|
|
9
|
-
*
|
|
10
|
-
* A Blanket provides the overlay layer for components such as a modal dialog or a tooltip
|
|
11
|
-
*
|
|
12
|
-
* - [Examples](https://atlaskit.atlassian.com/examples/design-system/blanket/basic-usage)
|
|
13
|
-
*/
|
|
14
|
-
declare const Blanket: MemoExoticComponent<ForwardRefExoticComponent<BlanketProps & RefAttributes<HTMLDivElement>>>;
|
|
15
|
-
export default Blanket;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { BlanketProps } from '../types';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
3
|
-
export interface BlanketProps {
|
|
4
|
-
/**
|
|
5
|
-
* Whether mouse events can pass through the blanket. If `true`, `onBlanketClicked` will not be called.
|
|
6
|
-
*/
|
|
7
|
-
shouldAllowClickThrough?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Sets whether the blanket has a tinted background color.
|
|
10
|
-
*/
|
|
11
|
-
isTinted?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Handler function to be called when the blanket is clicked.
|
|
14
|
-
*/
|
|
15
|
-
onBlanketClicked?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Additional information to be included in the `context` of analytics events.
|
|
18
|
-
*/
|
|
19
|
-
analyticsContext?: Record<string, any>;
|
|
20
|
-
/**
|
|
21
|
-
* A `testId` prop is provided for specified elements,
|
|
22
|
-
* which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
23
|
-
* serving as a hook for automated tests.
|
|
24
|
-
*/
|
|
25
|
-
testId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The children to be rendered within the blanket.
|
|
28
|
-
*/
|
|
29
|
-
children?: ReactNode;
|
|
30
|
-
}
|