@atlaskit/blanket 12.4.1 → 12.4.2

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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
3
9
  ## 12.4.1
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.1";
19
+ var packageVersion = "12.4.2";
20
20
  var analyticsAttributes = {
21
21
  componentName: 'blanket',
22
22
  packageName: packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.1",
3
+ "version": "12.4.2",
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.1";
10
+ const packageVersion = "12.4.2";
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.4.1",
3
+ "version": "12.4.2",
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.1";
13
+ var packageVersion = "12.4.2";
14
14
  var analyticsAttributes = {
15
15
  componentName: 'blanket',
16
16
  packageName: packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.1",
3
+ "version": "12.4.2",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { BlanketProps } from './types';
3
+ /**
4
+ * __Blanket__
5
+ *
6
+ * A Blanket provides the overlay layer for components such as a modal dialog or a tooltip
7
+ *
8
+ * - [Examples](https://atlaskit.atlassian.com/examples/design-system/blanket/basic-usage)
9
+ */
10
+ declare const Blanket: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BlanketProps & import("react").RefAttributes<HTMLDivElement>>>;
11
+ export default Blanket;
@@ -0,0 +1 @@
1
+ export type { BlanketProps } from '../types';
@@ -0,0 +1,2 @@
1
+ export { default } from './blanket';
2
+ export type { BlanketProps } from './types';
@@ -0,0 +1,30 @@
1
+ import { ReactNode } from 'react';
2
+ import UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
3
+ export interface BlanketProps {
4
+ /**
5
+ * Whether mouse events can pierce the blanket. If true, onBlanketClicked will not be fired.
6
+ */
7
+ shouldAllowClickThrough?: boolean;
8
+ /**
9
+ * 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 Blanket.
28
+ */
29
+ children?: ReactNode;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "12.4.1",
3
+ "version": "12.4.2",
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/"