@atlaskit/flag 17.4.4 → 17.5.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,18 @@
1
1
  # @atlaskit/flag
2
2
 
3
+ ## 17.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`1c7d57038910d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1c7d57038910d) -
14
+ Adds react-ufo out of band concept, and prevents flags from impacting visual complete calculations
15
+
3
16
  ## 17.4.4
4
17
 
5
18
  ### Patch Changes
@@ -952,7 +965,6 @@
952
965
  well as including fallbacks for non-token environments.
953
966
 
954
967
  Other changes include:
955
-
956
968
  - Flag shadow is now the same across normal and bold flags and has been made consistent with
957
969
  overlay shadows in other components.
958
970
  - Dismiss button is better aligned within the Flag and has a more consistent hit target.
@@ -1359,7 +1371,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1359
1371
 
1360
1372
  In `13.0.0` we bring significant performance improvements as well as improving the experience of
1361
1373
  using flag.
1362
-
1363
1374
  - Flag no longer has a `peerDependency` on `styled-components@3`. Internally flag is now using
1364
1375
  `@emotion/core` for styling
1365
1376
  - Change Flag and FlagGroup to use our standardized and performant `@atlaskit/motion` instead of
@@ -1509,7 +1520,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1509
1520
 
1510
1521
  Fixes flag icon being slightly off center.- Updated dependencies
1511
1522
  [0603860c07](https://bitbucket.org/atlassian/atlassian-frontend/commits/0603860c07):
1512
-
1513
1523
  - @atlaskit/icon@20.0.2
1514
1524
 
1515
1525
  ## 12.3.7
@@ -1520,7 +1530,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1520
1530
 
1521
1531
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
1522
1532
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
1523
-
1524
1533
  - @atlaskit/docs@8.3.2
1525
1534
  - @atlaskit/visual-regression@0.1.9
1526
1535
  - @atlaskit/analytics-next@6.3.5
@@ -1736,12 +1745,10 @@ _WRONG RELEASE TYPE - DON'T USE_
1736
1745
  safety. Flow types are no longer provided. No behavioural changes.
1737
1746
 
1738
1747
  **Breaking changes**
1739
-
1740
1748
  - `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
1741
1749
  - `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
1742
1750
 
1743
1751
  **Breaking changes to TypeScript annotations**
1744
-
1745
1752
  - `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
1746
1753
  props as a generic type.
1747
1754
  - `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
@@ -1790,7 +1797,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1790
1797
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
1791
1798
 
1792
1799
  In this PR, we are:
1793
-
1794
1800
  - Re-introducing dist build folders
1795
1801
  - Adding back cjs
1796
1802
  - Replacing es5 by cjs and es2015 by esm
@@ -1887,7 +1893,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1887
1893
  ## 12.0.3
1888
1894
 
1889
1895
  - [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
1890
-
1891
1896
  - This is just a safety release in case anything strange happened in in the previous one. See Pull
1892
1897
  Request #5942 for details
1893
1898
 
@@ -1904,26 +1909,22 @@ _WRONG RELEASE TYPE - DON'T USE_
1904
1909
  ## 12.0.1
1905
1910
 
1906
1911
  - [patch][cdba81d4f2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cdba81d4f2):
1907
-
1908
1912
  - export the correct types so typescript usage works correctly
1909
1913
 
1910
1914
  ## 12.0.0
1911
1915
 
1912
1916
  - [major][238b65171f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/238b65171f):
1913
-
1914
1917
  - @atlaskit/flag has been converted to Typescript. Typescript consumers will now get static type
1915
1918
  safety. Flow types are no longer provided. No API or behavioural changes.
1916
1919
 
1917
1920
  ## 11.0.1
1918
1921
 
1919
1922
  - [patch][dccab11ef4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dccab11ef4):
1920
-
1921
1923
  - Fixed incorrect flag appearing after dismiss a previous one
1922
1924
 
1923
1925
  ## 11.0.0
1924
1926
 
1925
1927
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
1926
-
1927
1928
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
1928
1929
  this package, please ensure you use at least this version of react and react-dom.
1929
1930
 
@@ -1960,7 +1961,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1960
1961
  ## 10.0.4
1961
1962
 
1962
1963
  - [patch][23672bbd2d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/23672bbd2d):
1963
-
1964
1964
  - Improvement: Align the flag actions with title and text for normal appearance flags
1965
1965
 
1966
1966
  ## 10.0.3
@@ -1972,7 +1972,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1972
1972
  ## 10.0.2
1973
1973
 
1974
1974
  - [patch][98e11001ff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/98e11001ff):
1975
-
1976
1975
  - Removes duplicate babel-runtime dependency
1977
1976
 
1978
1977
  ## 10.0.1
@@ -1991,7 +1990,6 @@ _WRONG RELEASE TYPE - DON'T USE_
1991
1990
  ## 10.0.0
1992
1991
 
1993
1992
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
1994
-
1995
1993
  - Drop ES5 from all the flow modules
1996
1994
 
1997
1995
  ### Dropping CJS support in all @atlaskit packages
@@ -14,7 +14,7 @@ var _flag = _interopRequireDefault(require("./flag"));
14
14
  var _flagGroup = require("./flag-group");
15
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
16
  var packageName = "@atlaskit/flag";
17
- var packageVersion = "0.0.0-development";
17
+ var packageVersion = "17.5.0";
18
18
  var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
19
19
 
20
20
  /**
@@ -88,7 +88,8 @@ var FlagGroup = function FlagGroup(props) {
88
88
  return /*#__PURE__*/React.createElement("div", {
89
89
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
90
90
  className: (0, _runtime.ax)([groupStyles.root, index === 0 && groupStyles.first, index === 1 && groupStyles.second, index >= 1 && groupStyles.nth, index >= 2 && groupStyles.hidden, isDismissAllowed && "_12a7luct", className]),
91
- ref: ref
91
+ ref: ref,
92
+ "data-vc-oob": true
92
93
  }, /*#__PURE__*/React.createElement(FlagGroupContext.Provider, {
93
94
  value:
94
95
  // Only the first flag should be able to be dismissed.
@@ -99,6 +100,7 @@ var FlagGroup = function FlagGroup(props) {
99
100
  };
100
101
  var flags = /*#__PURE__*/React.createElement("div", {
101
102
  id: id,
103
+ "data-vc-oob": true,
102
104
  className: (0, _runtime.ax)(["_kqsw1n9t _1pbyxejw _u7cooahv _1e021epz _1iafidpf _il0widpf"])
103
105
  }, hasFlags ? /*#__PURE__*/React.createElement(_visuallyHidden.default, null, /*#__PURE__*/React.createElement(LabelTag, null, label)) : null, /*#__PURE__*/React.createElement(_motion.ExitingPersistence, {
104
106
  appear: false
package/dist/cjs/flag.js CHANGED
@@ -38,7 +38,7 @@ var flagWrapperStyles = null;
38
38
  var analyticsAttributes = {
39
39
  componentName: 'flag',
40
40
  packageName: "@atlaskit/flag",
41
- packageVersion: "0.0.0-development"
41
+ packageVersion: "17.5.0"
42
42
  };
43
43
  var transitionStyles = null;
44
44
 
@@ -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 = "0.0.0-development";
8
+ const packageVersion = "17.5.0";
9
9
  export const AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
@@ -73,7 +73,8 @@ const FlagGroup = props => {
73
73
  }) => /*#__PURE__*/React.createElement("div", {
74
74
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
75
75
  className: ax([groupStyles.root, index === 0 && groupStyles.first, index === 1 && groupStyles.second, index >= 1 && groupStyles.nth, index >= 2 && groupStyles.hidden, isDismissAllowed && "_12a7luct", className]),
76
- ref: ref
76
+ ref: ref,
77
+ "data-vc-oob": true
77
78
  }, /*#__PURE__*/React.createElement(FlagGroupContext.Provider, {
78
79
  value:
79
80
  // Only the first flag should be able to be dismissed.
@@ -83,6 +84,7 @@ const FlagGroup = props => {
83
84
  };
84
85
  const flags = /*#__PURE__*/React.createElement("div", {
85
86
  id: id,
87
+ "data-vc-oob": true,
86
88
  className: ax(["_kqsw1n9t _1pbyxejw _u7cooahv _1e021epz _1iafidpf _il0widpf"])
87
89
  }, hasFlags ? /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(LabelTag, null, label)) : null, /*#__PURE__*/React.createElement(ExitingPersistence, {
88
90
  appear: false
@@ -25,7 +25,7 @@ const flagWrapperStyles = null;
25
25
  const analyticsAttributes = {
26
26
  componentName: 'flag',
27
27
  packageName: "@atlaskit/flag",
28
- packageVersion: "0.0.0-development"
28
+ packageVersion: "17.5.0"
29
29
  };
30
30
  const transitionStyles = null;
31
31
 
@@ -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 = "0.0.0-development";
8
+ var packageVersion = "17.5.0";
9
9
  export var AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
@@ -78,7 +78,8 @@ var FlagGroup = function FlagGroup(props) {
78
78
  return /*#__PURE__*/React.createElement("div", {
79
79
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
80
80
  className: ax([groupStyles.root, index === 0 && groupStyles.first, index === 1 && groupStyles.second, index >= 1 && groupStyles.nth, index >= 2 && groupStyles.hidden, isDismissAllowed && "_12a7luct", className]),
81
- ref: ref
81
+ ref: ref,
82
+ "data-vc-oob": true
82
83
  }, /*#__PURE__*/React.createElement(FlagGroupContext.Provider, {
83
84
  value:
84
85
  // Only the first flag should be able to be dismissed.
@@ -89,6 +90,7 @@ var FlagGroup = function FlagGroup(props) {
89
90
  };
90
91
  var flags = /*#__PURE__*/React.createElement("div", {
91
92
  id: id,
93
+ "data-vc-oob": true,
92
94
  className: ax(["_kqsw1n9t _1pbyxejw _u7cooahv _1e021epz _1iafidpf _il0widpf"])
93
95
  }, hasFlags ? /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(LabelTag, null, label)) : null, /*#__PURE__*/React.createElement(ExitingPersistence, {
94
96
  appear: false
package/dist/esm/flag.js CHANGED
@@ -29,7 +29,7 @@ var flagWrapperStyles = null;
29
29
  var analyticsAttributes = {
30
30
  componentName: 'flag',
31
31
  packageName: "@atlaskit/flag",
32
- packageVersion: "0.0.0-development"
32
+ packageVersion: "17.5.0"
33
33
  };
34
34
  var transitionStyles = null;
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "17.4.4",
3
+ "version": "17.5.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/"
@@ -43,10 +43,10 @@
43
43
  "@atlaskit/portal": "^5.1.0",
44
44
  "@atlaskit/primitives": "^15.0.0",
45
45
  "@atlaskit/theme": "^21.0.0",
46
- "@atlaskit/tokens": "^6.5.0",
46
+ "@atlaskit/tokens": "^7.0.0",
47
47
  "@atlaskit/visually-hidden": "^3.0.0",
48
48
  "@babel/runtime": "^7.0.0",
49
- "@compiled/react": "^0.18.3"
49
+ "@compiled/react": "^0.18.6"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^18.2.0"
@@ -55,7 +55,7 @@
55
55
  "@af/accessibility-testing": "workspace:^",
56
56
  "@af/integration-testing": "workspace:^",
57
57
  "@af/visual-regression": "workspace:^",
58
- "@atlaskit/docs": "^11.1.0",
58
+ "@atlaskit/docs": "^11.2.0",
59
59
  "@atlaskit/drawer": "^11.0.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
61
  "@atlaskit/radio": "^8.3.0",