@atlaskit/reactions 22.16.13 → 23.0.0

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 (31) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/analytics/index.js +1 -1
  3. package/dist/cjs/components/Counter/styles.js +1 -0
  4. package/dist/cjs/components/Reaction/styles.js +1 -0
  5. package/dist/cjs/components/ReactionDialog/styles.js +3 -1
  6. package/dist/cjs/components/ReactionSummary/ReactionSummaryButton.js +1 -0
  7. package/dist/cjs/components/Reactions/styles.js +1 -0
  8. package/dist/cjs/components/Trigger/Trigger.js +1 -0
  9. package/dist/cjs/containers/ConnectedReactionsView/ConnectedReactionsView.js +2 -5
  10. package/dist/cjs/shared/i18n.js +6 -1
  11. package/dist/es2019/analytics/index.js +1 -1
  12. package/dist/es2019/components/Counter/styles.js +1 -0
  13. package/dist/es2019/components/Reaction/styles.js +1 -0
  14. package/dist/es2019/components/ReactionDialog/styles.js +3 -1
  15. package/dist/es2019/components/ReactionSummary/ReactionSummaryButton.js +1 -0
  16. package/dist/es2019/components/Reactions/styles.js +1 -0
  17. package/dist/es2019/components/Trigger/Trigger.js +1 -0
  18. package/dist/es2019/containers/ConnectedReactionsView/ConnectedReactionsView.js +2 -5
  19. package/dist/es2019/shared/i18n.js +6 -1
  20. package/dist/esm/analytics/index.js +1 -1
  21. package/dist/esm/components/Counter/styles.js +1 -0
  22. package/dist/esm/components/Reaction/styles.js +1 -0
  23. package/dist/esm/components/ReactionDialog/styles.js +3 -1
  24. package/dist/esm/components/ReactionSummary/ReactionSummaryButton.js +1 -0
  25. package/dist/esm/components/Reactions/styles.js +1 -0
  26. package/dist/esm/components/Trigger/Trigger.js +1 -0
  27. package/dist/esm/containers/ConnectedReactionsView/ConnectedReactionsView.js +2 -5
  28. package/dist/esm/shared/i18n.js +6 -1
  29. package/dist/types/shared/i18n.d.ts +5 -0
  30. package/dist/types-ts4.5/shared/i18n.d.ts +5 -0
  31. package/package.json +6 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 23.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#101694](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101694)
8
+ [`948ffe9fc5518`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/948ffe9fc5518) -
9
+ Update and add i18n translations for Reactions Dialog
10
+
11
+ ## 22.16.14
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 22.16.13
4
18
 
5
19
  ### 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 = "22.16.13";
14
+ var packageVersion = "23.0.0";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -19,6 +19,7 @@ var countStyle = exports.countStyle = (0, _react.css)({
19
19
  overflow: 'hidden',
20
20
  position: 'relative',
21
21
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)", " 0"),
22
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
22
23
  lineHeight: '14px'
23
24
  });
24
25
 
@@ -31,6 +31,7 @@ var containerStyle = exports.containerStyle = (0, _react.css)({
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
32
32
  var emojiStyle = exports.emojiStyle = (0, _react.css)({
33
33
  transformOrigin: 'center center 0',
34
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
34
35
  lineHeight: '12px',
35
36
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-100, 8px)")
36
37
  });
@@ -65,6 +65,7 @@ var counterStyle = exports.counterStyle = function counterStyle(isSelected) {
65
65
  return (0, _react.css)({
66
66
  display: 'flex',
67
67
  alignSelf: 'center',
68
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
68
69
  lineHeight: '14px',
69
70
  font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
70
71
  paddingRight: '0px',
@@ -77,7 +78,7 @@ var counterStyle = exports.counterStyle = function counterStyle(isSelected) {
77
78
  //Counter component has its own styles overriding them to match designs
78
79
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
79
80
  color: isSelected ? "".concat("var(--ds-text, ".concat(_colors.B400, ")"), "!important") : "2px solid ".concat("var(--ds-text, ".concat(_colors.N500, ")"), "!important"),
80
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
81
82
  fontWeight: isSelected ? 700 : 400
82
83
  }
83
84
  });
@@ -172,6 +173,7 @@ var reactionViewStyle = exports.reactionViewStyle = (0, _react.css)({
172
173
  textTransform: 'capitalize',
173
174
  font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
174
175
  fontWeight: "var(--ds-font-weight-semibold, 600)",
176
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
175
177
  lineHeight: '20px',
176
178
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
177
179
  '> span': {
@@ -18,6 +18,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
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 && {}.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
19
  var emojiStyle = (0, _primitives.xcss)({
20
20
  transformOrigin: 'center center 0',
21
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
21
22
  lineHeight: '12px'
22
23
  });
23
24
  var buttonStyle = (0, _primitives.xcss)({
@@ -20,6 +20,7 @@ var reactionPickerStyle = exports.reactionPickerStyle = (0, _react.css)({
20
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
21
21
  var seeWhoReactedStyle = exports.seeWhoReactedStyle = (0, _react.css)({
22
22
  height: '24px',
23
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
23
24
  lineHeight: '24px',
24
25
  paddingLeft: 0,
25
26
  paddingRight: 0,
@@ -42,6 +42,7 @@ var triggerStyles = (0, _primitives.xcss)({
42
42
  display: 'flex',
43
43
  justifyContent: 'center',
44
44
  alignItems: 'center',
45
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
45
46
  lineHeight: '16px'
46
47
  });
47
48
  var subtleTriggerStyles = (0, _primitives.xcss)({
@@ -17,7 +17,6 @@ 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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
20
  var _excluded = ["ari", "containerAri", "store", "particleEffectByEmojiEnabled", "onReactionSuccess"];
22
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); }
23
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 && {}.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; }
@@ -70,8 +69,7 @@ var mapDispatchToPropsHelper = exports.mapDispatchToPropsHelper = function mapDi
70
69
  actions.getReactions(containerAri, ari);
71
70
  },
72
71
  onReactionClick: function onReactionClick(emojiId) {
73
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
74
- if ((0, _platformFeatureFlags.fg)('platform_reaction_success_callback') && successCallBack) {
72
+ if (successCallBack) {
75
73
  actions.toggleReaction(containerAri, ari, emojiId, successCallBack);
76
74
  return;
77
75
  }
@@ -81,8 +79,7 @@ var mapDispatchToPropsHelper = exports.mapDispatchToPropsHelper = function mapDi
81
79
  actions.getDetailedReaction(containerAri, ari, emojiId);
82
80
  },
83
81
  onSelection: function onSelection(emojiId) {
84
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
85
- if ((0, _platformFeatureFlags.fg)('platform_reaction_success_callback') && successCallBack) {
82
+ if (successCallBack) {
86
83
  actions.addReaction(containerAri, ari, emojiId, successCallBack);
87
84
  return;
88
85
  }
@@ -73,12 +73,17 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
73
73
  },
74
74
  seeWhoReacted: {
75
75
  id: 'reactions.dialog.viewall',
76
- defaultMessage: 'See who reacted',
76
+ defaultMessage: 'View all',
77
77
  description: 'Link button to show who reacted in a modal'
78
78
  },
79
79
  seeWhoReactedTooltip: {
80
80
  id: 'reactions.dialog.viewall.tooltip',
81
81
  defaultMessage: 'View all user reactions',
82
82
  description: 'Tooltip content of see who reacted link'
83
+ },
84
+ peopleWhoReactedSubheading: {
85
+ id: 'reactions.dialog.people-who-reacted.subheader',
86
+ defaultMessage: 'People who reacted with {emojiShortName}',
87
+ description: 'Subheading that shows the user which emoji tab they are on'
83
88
  }
84
89
  });
@@ -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.16.13";
4
+ const packageVersion = "23.0.0";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -12,6 +12,7 @@ export const countStyle = css({
12
12
  overflow: 'hidden',
13
13
  position: 'relative',
14
14
  padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-050, 4px)"} 0`,
15
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
15
16
  lineHeight: '14px'
16
17
  });
17
18
 
@@ -24,6 +24,7 @@ export const containerStyle = css({
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
25
25
  export const emojiStyle = css({
26
26
  transformOrigin: 'center center 0',
27
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
27
28
  lineHeight: '12px',
28
29
  padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`
29
30
  });
@@ -55,6 +55,7 @@ const containerEdgeAngle = {
55
55
  export const counterStyle = isSelected => css({
56
56
  display: 'flex',
57
57
  alignSelf: 'center',
58
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
58
59
  lineHeight: '14px',
59
60
  font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
60
61
  paddingRight: '0px',
@@ -67,7 +68,7 @@ export const counterStyle = isSelected => css({
67
68
  //Counter component has its own styles overriding them to match designs
68
69
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
69
70
  color: isSelected ? `${`var(--ds-text, ${B400})`}!important` : `2px solid ${`var(--ds-text, ${N500})`}!important`,
70
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
71
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
71
72
  fontWeight: isSelected ? 700 : 400
72
73
  }
73
74
  });
@@ -157,6 +158,7 @@ export const reactionViewStyle = css({
157
158
  textTransform: 'capitalize',
158
159
  font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
159
160
  fontWeight: "var(--ds-font-weight-semibold, 600)",
161
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
160
162
  lineHeight: '20px',
161
163
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
162
164
  '> span': {
@@ -7,6 +7,7 @@ import { Counter } from '../Counter';
7
7
  import { ReactionButton } from '../Reaction';
8
8
  const emojiStyle = xcss({
9
9
  transformOrigin: 'center center 0',
10
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
10
11
  lineHeight: '12px'
11
12
  });
12
13
  const buttonStyle = xcss({
@@ -13,6 +13,7 @@ export const reactionPickerStyle = css({
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
14
  export const seeWhoReactedStyle = css({
15
15
  height: '24px',
16
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
16
17
  lineHeight: '24px',
17
18
  paddingLeft: 0,
18
19
  paddingRight: 0,
@@ -34,6 +34,7 @@ const triggerStyles = xcss({
34
34
  display: 'flex',
35
35
  justifyContent: 'center',
36
36
  alignItems: 'center',
37
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
37
38
  lineHeight: '16px'
38
39
  });
39
40
  const subtleTriggerStyles = xcss({
@@ -5,7 +5,6 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
5
5
  import { Reactions, UfoErrorBoundary } from '../../components';
6
6
  import { ufoExperiences } from '../../store';
7
7
  import { ReactionStatus } from '../../types';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
 
10
9
  /**
11
10
  * State Props required for <Reactions />
@@ -56,8 +55,7 @@ export const mapDispatchToPropsHelper = (actions, containerAri, ari, successCall
56
55
  actions.getReactions(containerAri, ari);
57
56
  },
58
57
  onReactionClick: emojiId => {
59
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
60
- if (fg('platform_reaction_success_callback') && successCallBack) {
58
+ if (successCallBack) {
61
59
  actions.toggleReaction(containerAri, ari, emojiId, successCallBack);
62
60
  return;
63
61
  }
@@ -67,8 +65,7 @@ export const mapDispatchToPropsHelper = (actions, containerAri, ari, successCall
67
65
  actions.getDetailedReaction(containerAri, ari, emojiId);
68
66
  },
69
67
  onSelection: emojiId => {
70
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
71
- if (fg('platform_reaction_success_callback') && successCallBack) {
68
+ if (successCallBack) {
72
69
  actions.addReaction(containerAri, ari, emojiId, successCallBack);
73
70
  return;
74
71
  }
@@ -70,12 +70,17 @@ export const messages = defineMessages({
70
70
  },
71
71
  seeWhoReacted: {
72
72
  id: 'reactions.dialog.viewall',
73
- defaultMessage: 'See who reacted',
73
+ defaultMessage: 'View all',
74
74
  description: 'Link button to show who reacted in a modal'
75
75
  },
76
76
  seeWhoReactedTooltip: {
77
77
  id: 'reactions.dialog.viewall.tooltip',
78
78
  defaultMessage: 'View all user reactions',
79
79
  description: 'Tooltip content of see who reacted link'
80
+ },
81
+ peopleWhoReactedSubheading: {
82
+ id: 'reactions.dialog.people-who-reacted.subheader',
83
+ defaultMessage: 'People who reacted with {emojiShortName}',
84
+ description: 'Subheading that shows the user which emoji tab they are on'
80
85
  }
81
86
  });
@@ -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 = "22.16.13";
7
+ var packageVersion = "23.0.0";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -12,6 +12,7 @@ export var countStyle = css({
12
12
  overflow: 'hidden',
13
13
  position: 'relative',
14
14
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)", " 0"),
15
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
15
16
  lineHeight: '14px'
16
17
  });
17
18
 
@@ -24,6 +24,7 @@ export var containerStyle = css({
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
25
25
  export var emojiStyle = css({
26
26
  transformOrigin: 'center center 0',
27
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
27
28
  lineHeight: '12px',
28
29
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-100, 8px)")
29
30
  });
@@ -58,6 +58,7 @@ export var counterStyle = function counterStyle(isSelected) {
58
58
  return css({
59
59
  display: 'flex',
60
60
  alignSelf: 'center',
61
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
61
62
  lineHeight: '14px',
62
63
  font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
63
64
  paddingRight: '0px',
@@ -70,7 +71,7 @@ export var counterStyle = function counterStyle(isSelected) {
70
71
  //Counter component has its own styles overriding them to match designs
71
72
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
72
73
  color: isSelected ? "".concat("var(--ds-text, ".concat(B400, ")"), "!important") : "2px solid ".concat("var(--ds-text, ".concat(N500, ")"), "!important"),
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
74
75
  fontWeight: isSelected ? 700 : 400
75
76
  }
76
77
  });
@@ -165,6 +166,7 @@ export var reactionViewStyle = css({
165
166
  textTransform: 'capitalize',
166
167
  font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
167
168
  fontWeight: "var(--ds-font-weight-semibold, 600)",
169
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
168
170
  lineHeight: '20px',
169
171
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
170
172
  '> span': {
@@ -8,6 +8,7 @@ import { Counter } from '../Counter';
8
8
  import { ReactionButton } from '../Reaction';
9
9
  var emojiStyle = xcss({
10
10
  transformOrigin: 'center center 0',
11
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
11
12
  lineHeight: '12px'
12
13
  });
13
14
  var buttonStyle = xcss({
@@ -13,6 +13,7 @@ export var reactionPickerStyle = css({
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
14
  export var seeWhoReactedStyle = css({
15
15
  height: '24px',
16
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
16
17
  lineHeight: '24px',
17
18
  paddingLeft: 0,
18
19
  paddingRight: 0,
@@ -34,6 +34,7 @@ var triggerStyles = xcss({
34
34
  display: 'flex',
35
35
  justifyContent: 'center',
36
36
  alignItems: 'center',
37
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
37
38
  lineHeight: '16px'
38
39
  });
39
40
  var subtleTriggerStyles = xcss({
@@ -10,7 +10,6 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import { Reactions, UfoErrorBoundary } from '../../components';
11
11
  import { ufoExperiences } from '../../store';
12
12
  import { ReactionStatus } from '../../types';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
 
15
14
  /**
16
15
  * State Props required for <Reactions />
@@ -61,8 +60,7 @@ export var mapDispatchToPropsHelper = function mapDispatchToPropsHelper(actions,
61
60
  actions.getReactions(containerAri, ari);
62
61
  },
63
62
  onReactionClick: function onReactionClick(emojiId) {
64
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
65
- if (fg('platform_reaction_success_callback') && successCallBack) {
63
+ if (successCallBack) {
66
64
  actions.toggleReaction(containerAri, ari, emojiId, successCallBack);
67
65
  return;
68
66
  }
@@ -72,8 +70,7 @@ export var mapDispatchToPropsHelper = function mapDispatchToPropsHelper(actions,
72
70
  actions.getDetailedReaction(containerAri, ari, emojiId);
73
71
  },
74
72
  onSelection: function onSelection(emojiId) {
75
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
76
- if (fg('platform_reaction_success_callback') && successCallBack) {
73
+ if (successCallBack) {
77
74
  actions.addReaction(containerAri, ari, emojiId, successCallBack);
78
75
  return;
79
76
  }
@@ -67,12 +67,17 @@ export var messages = defineMessages({
67
67
  },
68
68
  seeWhoReacted: {
69
69
  id: 'reactions.dialog.viewall',
70
- defaultMessage: 'See who reacted',
70
+ defaultMessage: 'View all',
71
71
  description: 'Link button to show who reacted in a modal'
72
72
  },
73
73
  seeWhoReactedTooltip: {
74
74
  id: 'reactions.dialog.viewall.tooltip',
75
75
  defaultMessage: 'View all user reactions',
76
76
  description: 'Tooltip content of see who reacted link'
77
+ },
78
+ peopleWhoReactedSubheading: {
79
+ id: 'reactions.dialog.people-who-reacted.subheader',
80
+ defaultMessage: 'People who reacted with {emojiShortName}',
81
+ description: 'Subheading that shows the user which emoji tab they are on'
77
82
  }
78
83
  });
@@ -74,4 +74,9 @@ export declare const messages: {
74
74
  defaultMessage: string;
75
75
  description: string;
76
76
  };
77
+ peopleWhoReactedSubheading: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
77
82
  };
@@ -74,4 +74,9 @@ export declare const messages: {
74
74
  defaultMessage: string;
75
75
  description: string;
76
76
  };
77
+ peopleWhoReactedSubheading: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
77
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "22.16.13",
3
+ "version": "23.0.0",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,19 +37,19 @@
37
37
  "@atlaskit/analytics-next": "^10.2.0",
38
38
  "@atlaskit/avatar": "^21.17.0",
39
39
  "@atlaskit/button": "^20.3.0",
40
- "@atlaskit/emoji": "^67.11.0",
40
+ "@atlaskit/emoji": "^67.12.0",
41
41
  "@atlaskit/heading": "^4.0.0",
42
- "@atlaskit/icon": "^23.1.0",
43
- "@atlaskit/modal-dialog": "^12.18.0",
42
+ "@atlaskit/icon": "^23.3.0",
43
+ "@atlaskit/modal-dialog": "^12.19.0",
44
44
  "@atlaskit/motion": "^1.9.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.3.0",
46
46
  "@atlaskit/popper": "^6.3.0",
47
- "@atlaskit/popup": "1.30.3",
47
+ "@atlaskit/popup": "1.30.4",
48
48
  "@atlaskit/primitives": "^13.3.0",
49
49
  "@atlaskit/spinner": "^16.3.0",
50
50
  "@atlaskit/tabs": "^17.0.0",
51
51
  "@atlaskit/theme": "^14.0.0",
52
- "@atlaskit/tokens": "^2.5.0",
52
+ "@atlaskit/tokens": "^3.0.0",
53
53
  "@atlaskit/tooltip": "^19.0.0",
54
54
  "@atlaskit/ufo": "^0.3.0",
55
55
  "@atlaskit/util-service-support": "^6.2.0",
@@ -114,9 +114,6 @@
114
114
  "platform-component-visual-refresh": {
115
115
  "type": "boolean"
116
116
  },
117
- "platform_reaction_success_callback": {
118
- "type": "boolean"
119
- },
120
117
  "platform_editor_breakout_use_css": {
121
118
  "type": "boolean"
122
119
  }