@atlaskit/reactions 31.5.1 → 31.5.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,16 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 31.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#148201](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148201)
8
+ [`8e811f1840de7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e811f1840de7) -
9
+ Either actively or pre-emptively fixes a bug with keyframe animations in CJS and ESM distribution
10
+ targets for packages using Compiled CSS-in-JS. This may not affect this package, but the change
11
+ was made so a future migration does not accidentally break it.
12
+ - Updated dependencies
13
+
3
14
  ## 31.5.1
4
15
 
5
16
  ### Patch Changes
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
11
11
  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; }
12
12
  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; }
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "31.5.1";
14
+ var packageVersion = "31.5.2";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -1,3 +1,6 @@
1
-
2
- ._y44vt91o{animation:var(--_770km1)}._1bsb1osq{width:100%}
3
- ._4t3i1osq{height:100%}
1
+ ._1bsb1osq{width:100%}
2
+ ._1pgl1ytf{animation-timing-function:ease-in-out}
3
+ ._4t3i1osq{height:100%}
4
+ ._5sagolkx{animation-duration:var(--_gwerdd)}
5
+ ._j7hq1x5b{animation-name:kfhns1k}
6
+ @keyframes kfhns1k{20%{border-color:var(--_8ijx7f);background-color:var(--_17s7zfd)}75%{border-color:var(--_8ijx7f);background-color:var(--_17s7zfd)}to{border-color:var(--_8ijx7f);background-color:var(--_17s7zfd)}0%{background-color:transparent}}
@@ -26,10 +26,12 @@ var RENDER_FLASHANIMATION_TESTID = exports.RENDER_FLASHANIMATION_TESTID = 'flash
26
26
  var FlashAnimation = exports.FlashAnimation = function FlashAnimation(props) {
27
27
  return /*#__PURE__*/React.createElement("div", {
28
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
29
- className: (0, _runtime.ax)(["_1bsb1osq _4t3i1osq", props.flash && "_y44vt91o", props.className]),
29
+ className: (0, _runtime.ax)(["_1bsb1osq _4t3i1osq", props.flash && "", props.flash && "_j7hq1x5b _5sagolkx _1pgl1ytf", props.className]),
30
30
  "data-testid": RENDER_FLASHANIMATION_TESTID,
31
31
  style: {
32
- "--_770km1": (0, _runtime.ix)("".concat(flashAnimation, " ").concat(flashTime, "ms ease-in-out"))
32
+ "--_17s7zfd": (0, _runtime.ix)("var(--ds-background-selected-pressed, ".concat(_colors.B75, ")")),
33
+ "--_8ijx7f": (0, _runtime.ix)("var(--ds-border-selected, ".concat(_colors.B300, ")")),
34
+ "--_gwerdd": (0, _runtime.ix)("".concat(flashTime, "ms"))
33
35
  }
34
36
  }, props.children);
35
37
  };
@@ -1,13 +1,17 @@
1
-
2
- ._y44vlcmg{animation:var(--_1m4wxxu)}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
1
+ ._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
3
2
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
4
3
  ._1e0c1o8l{display:inline-block}
4
+ ._1o51q7pw{animation-fill-mode:forwards}
5
5
  ._1p3lnqa1{border-left-style:solid}
6
+ ._1pgl1ytf{animation-timing-function:ease-in-out}
6
7
  ._4t3i1tcg{height:24px}
8
+ ._5sag6ebc{animation-duration:.15s}
7
9
  ._5wramuej{border-left-color:var(--ds-border,#091e4224)}
8
10
  ._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
9
11
  ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
12
+ ._j7hqordv{animation-name:k12q5x3s}
10
13
  ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
11
14
  ._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
12
15
  ._tzy4idpf{opacity:0}
13
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
16
+ ._u5f31b66{padding-right:var(--ds-space-050,4px)}
17
+ @keyframes k12q5x3s{0%{opacity:1;transform:scale(.5)}75%{transform:scale(1.25)}to{opacity:1;transform:scale(1)}}
@@ -34,10 +34,7 @@ var Reveal = function Reveal(_ref) {
34
34
  testId = _ref.testId;
35
35
  return /*#__PURE__*/React.createElement("div", {
36
36
  "data-testid": testId,
37
- className: (0, _runtime.ax)(["_y44vlcmg _tzy4idpf"]),
38
- style: {
39
- "--_1m4wxxu": (0, _runtime.ix)("".concat(revealAnimation, " 150ms ease-in-out forwards"))
40
- }
37
+ className: (0, _runtime.ax)(["_j7hqordv _5sag6ebc _1pgl1ytf _1o51q7pw _tzy4idpf"])
41
38
  }, children);
42
39
  };
43
40
 
@@ -1,7 +1,7 @@
1
1
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
3
3
  const packageName = "@atlaskit/reactions";
4
- const packageVersion = "31.5.1";
4
+ const packageVersion = "31.5.2";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -1,4 +1,6 @@
1
-
2
- ._y44v1li1{animation:k1qrjcqm .7s ease-in-out}._1bsb1osq{width:100%}
1
+ ._1bsb1osq{width:100%}
2
+ ._1pgl1ytf{animation-timing-function:ease-in-out}
3
3
  ._4t3i1osq{height:100%}
4
+ ._5sagpwmj{animation-duration:.7s}
5
+ ._j7hqdjji{animation-name:k1qrjcqm}
4
6
  @keyframes k1qrjcqm{20%{border-color:var(--ds-border-selected,#0065ff);background-color:var(--ds-background-selected-pressed,#b3d4ff)}75%{border-color:var(--ds-border-selected,#0065ff);background-color:var(--ds-background-selected-pressed,#b3d4ff)}to{border-color:var(--ds-border-selected,#0065ff);background-color:var(--ds-background-selected-pressed,#b3d4ff)}0%{background-color:transparent}}
@@ -16,6 +16,6 @@ export const RENDER_FLASHANIMATION_TESTID = 'flash-animation';
16
16
  */
17
17
  export const FlashAnimation = props => /*#__PURE__*/React.createElement("div", {
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
19
- className: ax(["_1bsb1osq _4t3i1osq", props.flash && "", props.flash && "_y44v1li1", props.className]),
19
+ className: ax(["_1bsb1osq _4t3i1osq", props.flash && "", props.flash && "_j7hqdjji _5sagpwmj _1pgl1ytf", props.className]),
20
20
  "data-testid": RENDER_FLASHANIMATION_TESTID
21
21
  }, props.children);
@@ -1,12 +1,15 @@
1
-
2
- ._y44v8out{animation:k12q5x3s .15s ease-in-out forwards}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
1
+ ._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
3
2
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
4
3
  ._1e0c1o8l{display:inline-block}
4
+ ._1o51q7pw{animation-fill-mode:forwards}
5
5
  ._1p3lnqa1{border-left-style:solid}
6
+ ._1pgl1ytf{animation-timing-function:ease-in-out}
6
7
  ._4t3i1tcg{height:24px}
8
+ ._5sag6ebc{animation-duration:.15s}
7
9
  ._5wramuej{border-left-color:var(--ds-border,#091e4224)}
8
10
  ._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
9
11
  ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
12
+ ._j7hqordv{animation-name:k12q5x3s}
10
13
  ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
11
14
  ._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
12
15
  ._tzy4idpf{opacity:0}
@@ -25,7 +25,7 @@ const Reveal = ({
25
25
  }) => {
26
26
  return /*#__PURE__*/React.createElement("div", {
27
27
  "data-testid": testId,
28
- className: ax(["_y44v8out _tzy4idpf"])
28
+ className: ax(["_j7hqordv _5sag6ebc _1pgl1ytf _1o51q7pw _tzy4idpf"])
29
29
  }, children);
30
30
  };
31
31
 
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
6
6
  var packageName = "@atlaskit/reactions";
7
- var packageVersion = "31.5.1";
7
+ var packageVersion = "31.5.2";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -1,3 +1,6 @@
1
-
2
- ._y44vt91o{animation:var(--_770km1)}._1bsb1osq{width:100%}
3
- ._4t3i1osq{height:100%}
1
+ ._1bsb1osq{width:100%}
2
+ ._1pgl1ytf{animation-timing-function:ease-in-out}
3
+ ._4t3i1osq{height:100%}
4
+ ._5sagolkx{animation-duration:var(--_gwerdd)}
5
+ ._j7hq1x5b{animation-name:kfhns1k}
6
+ @keyframes kfhns1k{20%{border-color:var(--_8ijx7f);background-color:var(--_17s7zfd)}75%{border-color:var(--_8ijx7f);background-color:var(--_17s7zfd)}to{border-color:var(--_8ijx7f);background-color:var(--_17s7zfd)}0%{background-color:transparent}}
@@ -17,10 +17,12 @@ export var RENDER_FLASHANIMATION_TESTID = 'flash-animation';
17
17
  export var FlashAnimation = function FlashAnimation(props) {
18
18
  return /*#__PURE__*/React.createElement("div", {
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
20
- className: ax(["_1bsb1osq _4t3i1osq", props.flash && "_y44vt91o", props.className]),
20
+ className: ax(["_1bsb1osq _4t3i1osq", props.flash && "", props.flash && "_j7hq1x5b _5sagolkx _1pgl1ytf", props.className]),
21
21
  "data-testid": RENDER_FLASHANIMATION_TESTID,
22
22
  style: {
23
- "--_770km1": ix("".concat(flashAnimation, " ").concat(flashTime, "ms ease-in-out"))
23
+ "--_17s7zfd": ix("var(--ds-background-selected-pressed, ".concat(B75, ")")),
24
+ "--_8ijx7f": ix("var(--ds-border-selected, ".concat(B300, ")")),
25
+ "--_gwerdd": ix("".concat(flashTime, "ms"))
24
26
  }
25
27
  }, props.children);
26
28
  };
@@ -1,13 +1,17 @@
1
-
2
- ._y44vlcmg{animation:var(--_1m4wxxu)}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
1
+ ._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
3
2
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
4
3
  ._1e0c1o8l{display:inline-block}
4
+ ._1o51q7pw{animation-fill-mode:forwards}
5
5
  ._1p3lnqa1{border-left-style:solid}
6
+ ._1pgl1ytf{animation-timing-function:ease-in-out}
6
7
  ._4t3i1tcg{height:24px}
8
+ ._5sag6ebc{animation-duration:.15s}
7
9
  ._5wramuej{border-left-color:var(--ds-border,#091e4224)}
8
10
  ._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
9
11
  ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
12
+ ._j7hqordv{animation-name:k12q5x3s}
10
13
  ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
11
14
  ._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
12
15
  ._tzy4idpf{opacity:0}
13
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
16
+ ._u5f31b66{padding-right:var(--ds-space-050,4px)}
17
+ @keyframes k12q5x3s{0%{opacity:1;transform:scale(.5)}75%{transform:scale(1.25)}to{opacity:1;transform:scale(1)}}
@@ -24,10 +24,7 @@ var Reveal = function Reveal(_ref) {
24
24
  testId = _ref.testId;
25
25
  return /*#__PURE__*/React.createElement("div", {
26
26
  "data-testid": testId,
27
- className: ax(["_y44vlcmg _tzy4idpf"]),
28
- style: {
29
- "--_1m4wxxu": ix("".concat(revealAnimation, " 150ms ease-in-out forwards"))
30
- }
27
+ className: ax(["_j7hqordv _5sag6ebc _1pgl1ytf _1o51q7pw _tzy4idpf"])
31
28
  }, children);
32
29
  };
33
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "31.5.1",
3
+ "version": "31.5.2",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/popper": "^7.0.0",
49
49
  "@atlaskit/popup": "^4.1.0",
50
50
  "@atlaskit/primitives": "^14.4.0",
51
- "@atlaskit/react-ufo": "^3.6.0",
51
+ "@atlaskit/react-ufo": "^3.9.0",
52
52
  "@atlaskit/spinner": "^18.0.0",
53
53
  "@atlaskit/tabs": "^18.0.0",
54
54
  "@atlaskit/theme": "^18.0.0",
@@ -66,9 +66,9 @@
66
66
  "react-intl-next": "npm:react-intl@^5.18.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@af/visual-regression": "^1.3.0",
70
- "@atlaskit/editor-test-helpers": "^22.1.0",
71
- "@atlaskit/elements-test-helpers": "^0.9.0",
69
+ "@af/visual-regression": "workspace:^",
70
+ "@atlaskit/editor-test-helpers": "workspace:^",
71
+ "@atlaskit/elements-test-helpers": "workspace:^",
72
72
  "@atlaskit/util-data-test": "^18.0.0",
73
73
  "@atlassian/feature-flags-test-utils": "^0.3.0",
74
74
  "@testing-library/dom": "^10.1.0",