@atlaskit/reactions 22.10.0 → 22.10.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.
Files changed (108) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/analytics/index.js +1 -1
  3. package/dist/cjs/components/Counter/Counter.js +4 -1
  4. package/dist/cjs/components/Counter/styles.js +4 -1
  5. package/dist/cjs/components/EmojiButton/EmojiButton.js +4 -1
  6. package/dist/cjs/components/FlashAnimation/FlashAnimation.js +4 -1
  7. package/dist/cjs/components/FlashAnimation/styles.js +4 -1
  8. package/dist/cjs/components/Reaction/Reaction.js +4 -1
  9. package/dist/cjs/components/Reaction/ReactionButton.js +4 -1
  10. package/dist/cjs/components/Reaction/styles.js +4 -1
  11. package/dist/cjs/components/ReactionDialog/ReactionView.js +4 -1
  12. package/dist/cjs/components/ReactionDialog/ReactionsDialog.js +4 -1
  13. package/dist/cjs/components/ReactionDialog/ReactionsList.js +4 -1
  14. package/dist/cjs/components/ReactionDialog/styles.js +4 -1
  15. package/dist/cjs/components/ReactionParticleEffect/ReactionParticleEffect.js +4 -1
  16. package/dist/cjs/components/ReactionPicker/ReactionPicker.js +4 -1
  17. package/dist/cjs/components/ReactionPicker/styles.js +4 -1
  18. package/dist/cjs/components/ReactionTooltip/ReactionTooltip.js +4 -1
  19. package/dist/cjs/components/ReactionTooltip/styles.js +4 -1
  20. package/dist/cjs/components/Reactions/Reactions.js +4 -1
  21. package/dist/cjs/components/Reactions/styles.js +4 -1
  22. package/dist/cjs/components/Selector/Selector.js +4 -1
  23. package/dist/cjs/components/Selector/styles.js +4 -1
  24. package/dist/cjs/components/ShowMore/ShowMore.js +4 -1
  25. package/dist/cjs/components/Trigger/Trigger.js +4 -1
  26. package/dist/cjs/containers/ConnectedReactionsView/ConnectedReactionsView.js +7 -5
  27. package/dist/cjs/store/MemoryReactionsStore.js +11 -1
  28. package/dist/es2019/analytics/index.js +1 -1
  29. package/dist/es2019/components/Counter/Counter.js +4 -1
  30. package/dist/es2019/components/Counter/styles.js +4 -1
  31. package/dist/es2019/components/EmojiButton/EmojiButton.js +4 -1
  32. package/dist/es2019/components/FlashAnimation/FlashAnimation.js +4 -1
  33. package/dist/es2019/components/FlashAnimation/styles.js +4 -1
  34. package/dist/es2019/components/Reaction/Reaction.js +4 -1
  35. package/dist/es2019/components/Reaction/ReactionButton.js +4 -1
  36. package/dist/es2019/components/Reaction/styles.js +4 -1
  37. package/dist/es2019/components/ReactionDialog/ReactionView.js +4 -1
  38. package/dist/es2019/components/ReactionDialog/ReactionsDialog.js +4 -1
  39. package/dist/es2019/components/ReactionDialog/ReactionsList.js +4 -1
  40. package/dist/es2019/components/ReactionDialog/styles.js +4 -1
  41. package/dist/es2019/components/ReactionParticleEffect/ReactionParticleEffect.js +4 -1
  42. package/dist/es2019/components/ReactionPicker/ReactionPicker.js +4 -1
  43. package/dist/es2019/components/ReactionPicker/styles.js +4 -1
  44. package/dist/es2019/components/ReactionTooltip/ReactionTooltip.js +4 -1
  45. package/dist/es2019/components/ReactionTooltip/styles.js +4 -1
  46. package/dist/es2019/components/Reactions/Reactions.js +4 -1
  47. package/dist/es2019/components/Reactions/styles.js +4 -1
  48. package/dist/es2019/components/Selector/Selector.js +4 -1
  49. package/dist/es2019/components/Selector/styles.js +4 -1
  50. package/dist/es2019/components/ShowMore/ShowMore.js +4 -1
  51. package/dist/es2019/components/Trigger/Trigger.js +4 -1
  52. package/dist/es2019/containers/ConnectedReactionsView/ConnectedReactionsView.js +6 -4
  53. package/dist/es2019/store/MemoryReactionsStore.js +15 -1
  54. package/dist/esm/analytics/index.js +1 -1
  55. package/dist/esm/components/Counter/Counter.js +4 -1
  56. package/dist/esm/components/Counter/styles.js +4 -1
  57. package/dist/esm/components/EmojiButton/EmojiButton.js +4 -1
  58. package/dist/esm/components/FlashAnimation/FlashAnimation.js +4 -1
  59. package/dist/esm/components/FlashAnimation/styles.js +4 -1
  60. package/dist/esm/components/Reaction/Reaction.js +4 -1
  61. package/dist/esm/components/Reaction/ReactionButton.js +4 -1
  62. package/dist/esm/components/Reaction/styles.js +4 -1
  63. package/dist/esm/components/ReactionDialog/ReactionView.js +4 -1
  64. package/dist/esm/components/ReactionDialog/ReactionsDialog.js +4 -1
  65. package/dist/esm/components/ReactionDialog/ReactionsList.js +4 -1
  66. package/dist/esm/components/ReactionDialog/styles.js +4 -1
  67. package/dist/esm/components/ReactionParticleEffect/ReactionParticleEffect.js +4 -1
  68. package/dist/esm/components/ReactionPicker/ReactionPicker.js +4 -1
  69. package/dist/esm/components/ReactionPicker/styles.js +4 -1
  70. package/dist/esm/components/ReactionTooltip/ReactionTooltip.js +4 -1
  71. package/dist/esm/components/ReactionTooltip/styles.js +4 -1
  72. package/dist/esm/components/Reactions/Reactions.js +4 -1
  73. package/dist/esm/components/Reactions/styles.js +4 -1
  74. package/dist/esm/components/Selector/Selector.js +4 -1
  75. package/dist/esm/components/Selector/styles.js +4 -1
  76. package/dist/esm/components/ShowMore/ShowMore.js +4 -1
  77. package/dist/esm/components/Trigger/Trigger.js +4 -1
  78. package/dist/esm/containers/ConnectedReactionsView/ConnectedReactionsView.js +7 -5
  79. package/dist/esm/store/MemoryReactionsStore.js +11 -1
  80. package/dist/types/components/FlashAnimation/FlashAnimation.d.ts +4 -1
  81. package/dist/types/components/FlashAnimation/styles.d.ts +4 -1
  82. package/dist/types/components/Reaction/ReactionButton.d.ts +4 -1
  83. package/dist/types/components/ReactionParticleEffect/ReactionParticleEffect.d.ts +4 -1
  84. package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +4 -1
  85. package/dist/types/components/ReactionTooltip/ReactionTooltip.d.ts +4 -1
  86. package/dist/types/components/Reactions/Reactions.d.ts +4 -1
  87. package/dist/types/components/Selector/Selector.d.ts +4 -1
  88. package/dist/types/components/Selector/styles.d.ts +4 -1
  89. package/dist/types/components/ShowMore/ShowMore.d.ts +4 -1
  90. package/dist/types/components/Trigger/Trigger.d.ts +4 -1
  91. package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +9 -1
  92. package/dist/types/store/MemoryReactionsStore.d.ts +1 -0
  93. package/dist/types/types/store.d.ts +8 -0
  94. package/dist/types-ts4.5/components/FlashAnimation/FlashAnimation.d.ts +4 -1
  95. package/dist/types-ts4.5/components/FlashAnimation/styles.d.ts +4 -1
  96. package/dist/types-ts4.5/components/Reaction/ReactionButton.d.ts +4 -1
  97. package/dist/types-ts4.5/components/ReactionParticleEffect/ReactionParticleEffect.d.ts +4 -1
  98. package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +4 -1
  99. package/dist/types-ts4.5/components/ReactionTooltip/ReactionTooltip.d.ts +4 -1
  100. package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +4 -1
  101. package/dist/types-ts4.5/components/Selector/Selector.d.ts +4 -1
  102. package/dist/types-ts4.5/components/Selector/styles.d.ts +4 -1
  103. package/dist/types-ts4.5/components/ShowMore/ShowMore.d.ts +4 -1
  104. package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +4 -1
  105. package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +9 -1
  106. package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +1 -0
  107. package/dist/types-ts4.5/types/store.d.ts +8 -0
  108. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 22.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 22.10.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#119960](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119960)
14
+ [`77542b34dfee2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77542b34dfee2) -
15
+ Exposed particleEffectByEmoji prop in ConnectedReactionsView to support particle effect
16
+ - Updated dependencies
17
+
3
18
  ## 22.10.0
4
19
 
5
20
  ### Minor 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 = "22.10.0";
14
+ var packageVersion = "22.10.2";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -9,7 +9,10 @@ var _react2 = require("@emotion/react");
9
9
  var _motion = require("@atlaskit/motion");
10
10
  var _utils = require("../../shared/utils");
11
11
  var _styles = require("./styles");
12
- /** @jsx jsx */
12
+ /**
13
+ * @jsxRuntime classic
14
+ * @jsx jsx
15
+ */
13
16
 
14
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
18
 
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.highlightStyle = exports.counterLabelStyle = exports.countStyle = exports.containerStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
- /** @jsx jsx */
9
+ /**
10
+ * @jsxRuntime classic
11
+ * @jsx jsx
12
+ */
10
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
14
 
12
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -12,7 +12,10 @@ var _emoji = require("@atlaskit/emoji");
12
12
  var _primitives = require("@atlaskit/primitives");
13
13
  var _i18n = require("../../shared/i18n");
14
14
  var _utils = require("../../shared/utils");
15
- /** @jsx jsx */
15
+ /**
16
+ * @jsxRuntime classic
17
+ * @jsx jsx
18
+ */
16
19
 
17
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
21
 
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.RENDER_FLASHANIMATION_TESTID = exports.FlashAnimation = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _styles = require("./styles");
9
- /** @jsx jsx */
9
+ /**
10
+ * @jsxRuntime classic
11
+ * @jsx jsx
12
+ */
10
13
 
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.flashStyle = exports.flashAnimation = exports.containerStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
- /** @jsx jsx */
9
+ /**
10
+ * @jsxRuntime classic
11
+ * @jsx jsx
12
+ */
10
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
14
 
12
15
  var flashTime = 700;
@@ -25,7 +25,10 @@ var _styles = require("./styles");
25
25
  var _ReactionButton = require("./ReactionButton");
26
26
  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); }
27
27
  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 && Object.prototype.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; }
28
- /** @jsx jsx */
28
+ /**
29
+ * @jsxRuntime classic
30
+ * @jsx jsx
31
+ */
29
32
 
30
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
31
34
 
@@ -12,7 +12,10 @@ var _primitives = require("@atlaskit/primitives");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _FlashAnimation = require("../FlashAnimation");
14
14
  var _styles = require("./styles");
15
- /** @jsx jsx */
15
+ /**
16
+ * @jsxRuntime classic
17
+ * @jsx jsx
18
+ */
16
19
 
17
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
21
 
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.reactionStyle = exports.reactedStyle = exports.flashStyle = exports.flashHeight = exports.emojiStyle = exports.emojiNoReactionStyle = exports.containerStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
- /** @jsx jsx */
9
+ /**
10
+ * @jsxRuntime classic
11
+ * @jsx jsx
12
+ */
10
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
14
 
12
15
  /**
@@ -18,7 +18,10 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
18
18
  var _tabs = require("@atlaskit/tabs");
19
19
  var _i18n = require("../../shared/i18n");
20
20
  var _styles = require("./styles");
21
- /** @jsx jsx */
21
+ /**
22
+ * @jsxRuntime classic
23
+ * @jsx jsx
24
+ */
22
25
 
23
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
27
 
@@ -18,7 +18,10 @@ var _ReactionsList = require("./ReactionsList");
18
18
  var _styles = require("./styles");
19
19
  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); }
20
20
  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 && Object.prototype.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; }
21
- /** @jsx jsx */
21
+ /**
22
+ * @jsxRuntime classic
23
+ * @jsx jsx
24
+ */
22
25
 
23
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
27
 
@@ -17,7 +17,10 @@ var _styles = require("./styles");
17
17
  var _ReactionView = require("./ReactionView");
18
18
  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); }
19
19
  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 && Object.prototype.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; }
20
- /** @jsx jsx */
20
+ /**
21
+ * @jsxRuntime classic
22
+ * @jsx jsx
23
+ */
21
24
 
22
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
26
 
@@ -7,7 +7,10 @@ exports.userStyle = exports.userListStyle = exports.titleStyle = exports.reactio
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
  var _constants = require("../../shared/constants");
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
13
16
  var REACTIONS_CONTAINER_WIDTH = 48;
@@ -9,7 +9,10 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
9
9
  var _emoji = require("@atlaskit/emoji");
10
10
  var _react = require("@emotion/react");
11
11
  var _styles = require("./styles");
12
- /** @jsx jsx */
12
+ /**
13
+ * @jsxRuntime classic
14
+ * @jsx jsx
15
+ */
13
16
 
14
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
18
 
@@ -25,7 +25,10 @@ var _RepositionOnUpdate = require("./RepositionOnUpdate");
25
25
  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); }
26
26
  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 && Object.prototype.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; }
27
27
  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; }
28
- 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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
28
+ 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; } /**
29
+ * @jsxRuntime classic
30
+ * @jsx jsx
31
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
32
  /**
30
33
  * Test id for wrapper ReactionPicker div
31
34
  */
@@ -7,7 +7,10 @@ exports.popupWrapperStyle = exports.popupStyle = exports.pickerStyle = exports.c
7
7
  var _react = require("@emotion/react");
8
8
  var _constants = require("@atlaskit/theme/constants");
9
9
  var _colors = require("@atlaskit/theme/colors");
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
13
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -13,7 +13,10 @@ var _reactIntlNext = require("react-intl-next");
13
13
  var _constants = require("../../shared/constants");
14
14
  var _i18n = require("../../shared/i18n");
15
15
  var _styles = require("./styles");
16
- /** @jsx jsx */
16
+ /**
17
+ * @jsxRuntime classic
18
+ * @jsx jsx
19
+ */
17
20
 
18
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
22
 
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.verticalMargin = exports.underlineStyle = exports.tooltipStyle = exports.footerStyle = exports.emojiNameStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
- /** @jsx jsx */
9
+ /**
10
+ * @jsxRuntime classic
11
+ * @jsx jsx
12
+ */
10
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
14
 
12
15
  var verticalMargin = exports.verticalMargin = 5;
@@ -28,7 +28,10 @@ var _styles = require("./styles");
28
28
  var _ReactionSummary = require("../ReactionSummary/");
29
29
  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); }
30
30
  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 && Object.prototype.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; }
31
- /** @jsx jsx */
31
+ /**
32
+ * @jsxRuntime classic
33
+ * @jsx jsx
34
+ */
32
35
 
33
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
34
37
 
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.wrapperStyle = exports.seeWhoReactedStyle = exports.reactionPickerStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
- /** @jsx jsx */
8
+ /**
9
+ * @jsxRuntime classic
10
+ * @jsx jsx
11
+ */
9
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
13
 
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -16,7 +16,10 @@ var _ShowMore = require("../ShowMore");
16
16
  var _styles = require("./styles");
17
17
  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); }
18
18
  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 && Object.prototype.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; }
19
- /** @jsx jsx */
19
+ /**
20
+ * @jsxRuntime classic
21
+ * @jsx jsx
22
+ */
20
23
 
21
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
25
 
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.revealStyle = exports.revealAnimation = void 0;
7
7
  var _react = require("@emotion/react");
8
- /** @jsx jsx */
8
+ /**
9
+ * @jsxRuntime classic
10
+ * @jsx jsx
11
+ */
9
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
13
 
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -11,7 +11,10 @@ var _new = require("@atlaskit/button/new");
11
11
  var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/more"));
12
12
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
13
13
  var _i18n = require("../../shared/i18n");
14
- /** @jsx jsx */
14
+ /**
15
+ * @jsxRuntime classic
16
+ * @jsx jsx
17
+ */
15
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
19
 
17
20
  /**
@@ -11,7 +11,10 @@ var _react2 = require("@emotion/react");
11
11
  var _primitives = require("@atlaskit/primitives");
12
12
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
13
13
  var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/glyph/emoji-add"));
14
- /** @jsx jsx */
14
+ /**
15
+ * @jsxRuntime classic
16
+ * @jsx jsx
17
+ */
15
18
 
16
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
20
 
@@ -17,7 +17,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
17
17
  var _components = require("../../components");
18
18
  var _store2 = require("../../store");
19
19
  var _types = require("../../types");
20
- var _excluded = ["ari", "containerAri", "store"];
20
+ var _excluded = ["ari", "containerAri", "store", "particleEffectByEmojiEnabled"];
21
21
  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); }
22
22
  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 && Object.prototype.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; }
23
23
  /**
@@ -31,7 +31,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
31
31
  /**
32
32
  * Export the mapper function outside the component so easier to do unit tests
33
33
  */
34
- var mapStateToPropsHelper = exports.mapStateToPropsHelper = function mapStateToPropsHelper(containerAri, ari, state) {
34
+ var mapStateToPropsHelper = exports.mapStateToPropsHelper = function mapStateToPropsHelper(containerAri, ari, particleEffectByEmojiEnabled, state) {
35
35
  var reactionsState = state && state.reactions["".concat(containerAri, "|").concat(ari)];
36
36
  if (!state || !reactionsState) {
37
37
  return {
@@ -44,7 +44,8 @@ var mapStateToPropsHelper = exports.mapStateToPropsHelper = function mapStateToP
44
44
  return {
45
45
  reactions: reactionsState.reactions,
46
46
  status: reactionsState.status,
47
- flash: state.flash["".concat(containerAri, "|").concat(ari)]
47
+ flash: state.flash["".concat(containerAri, "|").concat(ari)],
48
+ particleEffectByEmoji: particleEffectByEmojiEnabled ? state.particleEffectByEmoji["".concat(containerAri, "|").concat(ari)] : {}
48
49
  };
49
50
  case _types.ReactionStatus.error:
50
51
  return {
@@ -82,6 +83,7 @@ var ConnectedReactionsView = exports.ConnectedReactionsView = function Connected
82
83
  var ari = props.ari,
83
84
  containerAri = props.containerAri,
84
85
  store = props.store,
86
+ particleEffectByEmojiEnabled = props.particleEffectByEmojiEnabled,
85
87
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
86
88
  /**
87
89
  * Reference to the <Reactions /> component instance mandatory props
@@ -122,8 +124,8 @@ var ConnectedReactionsView = exports.ConnectedReactionsView = function Connected
122
124
  * @param state store instance latest data
123
125
  */
124
126
  var mapStateToProps = (0, _react.useCallback)(function (state) {
125
- return mapStateToPropsHelper(containerAri, ari, state);
126
- }, [containerAri, ari]);
127
+ return mapStateToPropsHelper(containerAri, ari, particleEffectByEmojiEnabled, state);
128
+ }, [containerAri, ari, particleEffectByEmojiEnabled]);
127
129
 
128
130
  /**
129
131
  * Map the store instance "actions" methods to the <Reactions /> component actions methods
@@ -53,7 +53,8 @@ var MemoryReactionsStore = exports.MemoryReactionsStore = /*#__PURE__*/function
53
53
  */
54
54
  (0, _defineProperty2.default)(this, "initialState", {
55
55
  reactions: {},
56
- flash: {}
56
+ flash: {},
57
+ particleEffectByEmoji: {}
57
58
  });
58
59
  /**
59
60
  * Update the store state data with a new data
@@ -132,6 +133,7 @@ var MemoryReactionsStore = exports.MemoryReactionsStore = /*#__PURE__*/function
132
133
  emojiId = reaction.emojiId;
133
134
  _this.optmisticUpdate(containerAri, ari, emojiId)(_utils.addOne);
134
135
  _this.flash(reaction);
136
+ _this.setParticleEffectForEmoji(containerAri, ari, emojiId, true);
135
137
  var exp = ufoExperiences.add.getInstance("".concat(ari, "|").concat(emojiId));
136
138
  // ufo start reaction experience
137
139
  exp.start();
@@ -167,6 +169,7 @@ var MemoryReactionsStore = exports.MemoryReactionsStore = /*#__PURE__*/function
167
169
  ari = reaction.ari,
168
170
  emojiId = reaction.emojiId;
169
171
  var exp = ufoExperiences.remove.getInstance("".concat(ari, "|").concat(emojiId));
172
+ _this.setParticleEffectForEmoji(containerAri, ari, emojiId, false);
170
173
 
171
174
  // ufo start reaction experience
172
175
 
@@ -299,6 +302,13 @@ var MemoryReactionsStore = exports.MemoryReactionsStore = /*#__PURE__*/function
299
302
  flash: _objectSpread(_objectSpread({}, this.state.flash), {}, (0, _defineProperty2.default)({}, "".concat(containerAri, "|").concat(ari), _objectSpread(_objectSpread({}, this.state.flash["".concat(containerAri, "|").concat(ari)]), {}, (0, _defineProperty2.default)({}, emojiId, flash))))
300
303
  });
301
304
  }
305
+ }, {
306
+ key: "setParticleEffectForEmoji",
307
+ value: function setParticleEffectForEmoji(containerAri, ari, emojiId, enable) {
308
+ this.setState({
309
+ particleEffectByEmoji: _objectSpread(_objectSpread({}, this.state.particleEffectByEmoji), {}, (0, _defineProperty2.default)({}, "".concat(containerAri, "|").concat(ari), _objectSpread(_objectSpread({}, this.state.particleEffectByEmoji["".concat(containerAri, "|").concat(ari)]), {}, (0, _defineProperty2.default)({}, emojiId, enable))))
310
+ });
311
+ }
302
312
  }, {
303
313
  key: "withReadyReaction",
304
314
  value:
@@ -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 = "22.10.0";
4
+ const packageVersion = "22.10.2";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { useEffect, useMemo, useRef } from 'react';
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx, css } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css } from '@emotion/react';
4
7
  import { N90, B400 } from '@atlaskit/theme/colors';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { useIntl } from 'react-intl-next';
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
 
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css, keyframes } from '@emotion/react';
4
7
  import { B75, B300 } from '@atlaskit/theme/colors';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { useCallback, useEffect, useRef, useState } from 'react';
3
6
  import { useIntl } from 'react-intl-next';
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import React from 'react';
4
7
  import { Pressable, xcss } from '@atlaskit/primitives';
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css } from '@emotion/react';
4
7
  import { B50, B75, B300, N20, N40, N400, B100 } from '@atlaskit/theme/colors';
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { useEffect, useState, useMemo } from 'react';
4
7
  import { useIntl } from 'react-intl-next';
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { useEffect, useState, useRef, useCallback, useMemo } from 'react';
3
6
  import { useIntl } from 'react-intl-next';
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { useCallback, useState } from 'react';
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css } from '@emotion/react';
4
7
  import { B400, N500, N800 } from '@atlaskit/theme/colors';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { ResourcedEmoji } from '@atlaskit/emoji';
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css } from '@emotion/react';
4
7
  import { borderRadius } from '@atlaskit/theme/constants';
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import React from 'react';
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
8
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { css } from '@emotion/react';
4
7
  import { N90, N800, N0 } from '@atlaskit/theme/colors';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';