@atlaskit/flag 16.1.0 → 16.1.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,15 @@
1
1
  # @atlaskit/flag
2
2
 
3
+ ## 16.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#119202](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119202)
8
+ [`903841d1b85ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/903841d1b85ba) -
9
+ Removes the explicit return type on withFlagsProvider to allow typescript to infer the real type.
10
+ This allows consumers to have a better typescript experience and not have to cast the
11
+ withFlagsProvider type in storybook.
12
+
3
13
  ## 16.1.0
4
14
 
5
15
  ### Minor Changes
@@ -15,7 +15,7 @@ var _flagGroup = require("./flag-group");
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  var packageName = "@atlaskit/flag";
18
- var packageVersion = "16.1.0";
18
+ var packageVersion = "16.1.1";
19
19
  var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
20
20
 
21
21
  /**
package/dist/cjs/flag.js CHANGED
@@ -67,7 +67,7 @@ var flagWrapperStyles = (0, _react2.css)({
67
67
  var analyticsAttributes = {
68
68
  componentName: 'flag',
69
69
  packageName: "@atlaskit/flag",
70
- packageVersion: "16.1.0"
70
+ packageVersion: "16.1.1"
71
71
  };
72
72
  var transitionStyles = (0, _react2.css)({
73
73
  flexGrow: 1,
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
5
5
  import Flag from './flag';
6
6
  import { useFlagGroup } from './flag-group';
7
7
  const packageName = "@atlaskit/flag";
8
- const packageVersion = "16.1.0";
8
+ const packageVersion = "16.1.1";
9
9
  export const AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
@@ -59,7 +59,7 @@ const flagWrapperStyles = css({
59
59
  const analyticsAttributes = {
60
60
  componentName: 'flag',
61
61
  packageName: "@atlaskit/flag",
62
- packageVersion: "16.1.0"
62
+ packageVersion: "16.1.1"
63
63
  };
64
64
  const transitionStyles = css({
65
65
  flexGrow: 1,
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
5
5
  import Flag from './flag';
6
6
  import { useFlagGroup } from './flag-group';
7
7
  var packageName = "@atlaskit/flag";
8
- var packageVersion = "16.1.0";
8
+ var packageVersion = "16.1.1";
9
9
  export var AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
package/dist/esm/flag.js CHANGED
@@ -63,7 +63,7 @@ var flagWrapperStyles = css({
63
63
  var analyticsAttributes = {
64
64
  componentName: 'flag',
65
65
  packageName: "@atlaskit/flag",
66
- packageVersion: "16.1.0"
66
+ packageVersion: "16.1.1"
67
67
  };
68
68
  var transitionStyles = css({
69
69
  flexGrow: 1,
@@ -30,5 +30,5 @@ export declare function FlagsProvider({ children, shouldRenderToParent, }: {
30
30
  children: React.ReactNode;
31
31
  shouldRenderToParent?: boolean;
32
32
  }): React.JSX.Element;
33
- export declare const withFlagsProvider: (fn: () => React.ReactNode) => React.ReactNode;
33
+ export declare const withFlagsProvider: (fn: () => React.ReactNode) => React.JSX.Element;
34
34
  export {};
@@ -30,5 +30,5 @@ export declare function FlagsProvider({ children, shouldRenderToParent, }: {
30
30
  children: React.ReactNode;
31
31
  shouldRenderToParent?: boolean;
32
32
  }): React.JSX.Element;
33
- export declare const withFlagsProvider: (fn: () => React.ReactNode) => React.ReactNode;
33
+ export declare const withFlagsProvider: (fn: () => React.ReactNode) => React.JSX.Element;
34
34
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "16.1.0",
3
+ "version": "16.1.1",
4
4
  "description": "A flag is used for confirmations, alerts, and acknowledgments that require minimal user interaction, often displayed using a flag group.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"