@atlaskit/reactions 31.7.0 → 31.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 31.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#152134](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152134)
8
+ [`9d7c343ded23e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9d7c343ded23e) -
9
+ [ux] Adds an optional side picker emoji icon to the reaction summary button
10
+
3
11
  ## 31.7.0
4
12
 
5
13
  ### 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 = "31.7.0";
14
+ var packageVersion = "31.8.0";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -1,6 +1,10 @@
1
1
  ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
2
+ ._1bah1h6o{justify-content:center}
3
+ ._1e0c1txw{display:flex}
4
+ ._4cvr1h6o{align-items:center}
2
5
  ._8hrz1nam{transform-origin:center center 0}
3
6
  ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
4
7
  ._kqswh2mm{position:relative}
5
8
  ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
6
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
9
+ ._u5f31b66{padding-right:var(--ds-space-050,4px)}
10
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
@@ -25,7 +25,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
25
25
  var styles = {
26
26
  emoji: "_8hrz1nam",
27
27
  button: "_ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc",
28
- container: "_kqswh2mm"
28
+ container: "_kqswh2mm",
29
+ summaryButtonIconAfter: "_u5f3u2gc _1e0c1txw _4cvr1h6o _1bah1h6o"
29
30
  };
30
31
  /**
31
32
  * Test id for summary reaction wrapper button
@@ -52,7 +53,8 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
52
53
  _ref$useButtonAlignme = _ref.useButtonAlignmentStyling,
53
54
  useButtonAlignmentStyling = _ref$useButtonAlignme === void 0 ? false : _ref$useButtonAlignme,
54
55
  onMouseEnter = _ref.onMouseEnter,
55
- onMouseLeave = _ref.onMouseLeave;
56
+ onMouseLeave = _ref.onMouseLeave,
57
+ summaryButtonIconAfter = _ref.summaryButtonIconAfter;
56
58
  var intl = (0, _reactIntlNext.useIntl)();
57
59
 
58
60
  // Helper function to sort reactions by count and return top N
@@ -107,5 +109,7 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
107
109
  value: totalReactionsCount,
108
110
  useDarkerFont: useButtonAlignmentStyling,
109
111
  useUpdatedStyles: useButtonAlignmentStyling
110
- })));
112
+ }), summaryButtonIconAfter && /*#__PURE__*/React.createElement(_compiled.Box, {
113
+ xcss: styles.summaryButtonIconAfter
114
+ }, summaryButtonIconAfter)));
111
115
  });
@@ -64,7 +64,8 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
64
64
  _ref$hoverableSummary = _ref.hoverableSummaryView,
65
65
  hoverableSummaryView = _ref$hoverableSummary === void 0 ? false : _ref$hoverableSummary,
66
66
  _ref$hoverableSummary2 = _ref.hoverableSummaryViewDelay,
67
- hoverableSummaryViewDelay = _ref$hoverableSummary2 === void 0 ? 300 : _ref$hoverableSummary2;
67
+ hoverableSummaryViewDelay = _ref$hoverableSummary2 === void 0 ? 300 : _ref$hoverableSummary2,
68
+ summaryButtonIconAfter = _ref.summaryButtonIconAfter;
68
69
  var _useDelayedState = (0, _useDelayedState3.useDelayedState)(false, hoverableSummaryViewDelay),
69
70
  _useDelayedState2 = (0, _slicedToArray2.default)(_useDelayedState, 2),
70
71
  isSummaryPopupOpen = _useDelayedState2[0],
@@ -216,7 +217,8 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
216
217
  onMouseLeave: handleButtonMouseLeave,
217
218
  showOpaqueBackground: showOpaqueBackground,
218
219
  subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
219
- useButtonAlignmentStyling: useButtonAlignmentStyling
220
+ useButtonAlignmentStyling: useButtonAlignmentStyling,
221
+ summaryButtonIconAfter: summaryButtonIconAfter
220
222
  }));
221
223
  }
222
224
  });
@@ -147,7 +147,8 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
147
147
  hoverableSummaryView = _ref$hoverableSummary === void 0 ? false : _ref$hoverableSummary,
148
148
  _ref$isListItem = _ref.isListItem,
149
149
  isListItem = _ref$isListItem === void 0 ? false : _ref$isListItem,
150
- reactionPickerPlacement = _ref.reactionPickerPlacement;
150
+ reactionPickerPlacement = _ref.reactionPickerPlacement,
151
+ summaryButtonIconAfter = _ref.summaryButtonIconAfter;
151
152
  var _useState = (0, _react.useState)(''),
152
153
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
153
154
  selectedEmojiId = _useState2[0],
@@ -330,7 +331,8 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
330
331
  onOpen: handlePickerOpen,
331
332
  useButtonAlignmentStyling: useButtonAlignmentStyling,
332
333
  reactionPickerTriggerText: reactionPickerTriggerText,
333
- hoverableSummaryView: hoverableSummaryView
334
+ hoverableSummaryView: hoverableSummaryView,
335
+ summaryButtonIconAfter: summaryButtonIconAfter
334
336
  })) : memorizedReactions.map(function (reaction) {
335
337
  return /*#__PURE__*/_react.default.createElement(_Reaction.Reaction, {
336
338
  key: reaction.emojiId,
@@ -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.7.0";
4
+ const packageVersion = "31.8.0";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -1,6 +1,10 @@
1
1
  ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
2
+ ._1bah1h6o{justify-content:center}
3
+ ._1e0c1txw{display:flex}
4
+ ._4cvr1h6o{align-items:center}
2
5
  ._8hrz1nam{transform-origin:center center 0}
3
6
  ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
4
7
  ._kqswh2mm{position:relative}
5
8
  ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
6
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
9
+ ._u5f31b66{padding-right:var(--ds-space-050,4px)}
10
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
@@ -14,7 +14,8 @@ import { cx } from '@compiled/react';
14
14
  const styles = {
15
15
  emoji: "_8hrz1nam",
16
16
  button: "_ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc",
17
- container: "_kqswh2mm"
17
+ container: "_kqswh2mm",
18
+ summaryButtonIconAfter: "_u5f3u2gc _1e0c1txw _4cvr1h6o _1bah1h6o"
18
19
  };
19
20
  /**
20
21
  * Test id for summary reaction wrapper button
@@ -36,7 +37,8 @@ export const ReactionSummaryButton = /*#__PURE__*/forwardRef(({
36
37
  subtleReactionsSummaryAndPicker = false,
37
38
  useButtonAlignmentStyling = false,
38
39
  onMouseEnter,
39
- onMouseLeave
40
+ onMouseLeave,
41
+ summaryButtonIconAfter
40
42
  }, ref) => {
41
43
  const intl = useIntl();
42
44
 
@@ -86,5 +88,7 @@ export const ReactionSummaryButton = /*#__PURE__*/forwardRef(({
86
88
  value: totalReactionsCount,
87
89
  useDarkerFont: useButtonAlignmentStyling,
88
90
  useUpdatedStyles: useButtonAlignmentStyling
89
- })));
91
+ }), summaryButtonIconAfter && /*#__PURE__*/React.createElement(Box, {
92
+ xcss: styles.summaryButtonIconAfter
93
+ }, summaryButtonIconAfter)));
90
94
  });
@@ -44,7 +44,8 @@ export const ReactionSummaryView = ({
44
44
  useButtonAlignmentStyling,
45
45
  reactionPickerTriggerText,
46
46
  hoverableSummaryView = false,
47
- hoverableSummaryViewDelay = 300
47
+ hoverableSummaryViewDelay = 300,
48
+ summaryButtonIconAfter
48
49
  }) => {
49
50
  const [isSummaryPopupOpen, setSummaryPopupOpen] = useDelayedState(false, hoverableSummaryViewDelay);
50
51
  const [isHoveringSummaryView, setIsHoveringSummaryView] = useState(false);
@@ -177,7 +178,8 @@ export const ReactionSummaryView = ({
177
178
  onMouseLeave: handleButtonMouseLeave,
178
179
  showOpaqueBackground: showOpaqueBackground,
179
180
  subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
180
- useButtonAlignmentStyling: useButtonAlignmentStyling
181
+ useButtonAlignmentStyling: useButtonAlignmentStyling,
182
+ summaryButtonIconAfter: summaryButtonIconAfter
181
183
  }))
182
184
  });
183
185
  };
@@ -109,7 +109,8 @@ export const Reactions = /*#__PURE__*/React.memo(({
109
109
  reactionPickerTriggerText,
110
110
  hoverableSummaryView = false,
111
111
  isListItem = false,
112
- reactionPickerPlacement
112
+ reactionPickerPlacement,
113
+ summaryButtonIconAfter
113
114
  }) => {
114
115
  const [selectedEmojiId, setSelectedEmojiId] = useState('');
115
116
  const {
@@ -279,7 +280,8 @@ export const Reactions = /*#__PURE__*/React.memo(({
279
280
  onOpen: handlePickerOpen,
280
281
  useButtonAlignmentStyling: useButtonAlignmentStyling,
281
282
  reactionPickerTriggerText: reactionPickerTriggerText,
282
- hoverableSummaryView: hoverableSummaryView
283
+ hoverableSummaryView: hoverableSummaryView,
284
+ summaryButtonIconAfter: summaryButtonIconAfter
283
285
  })) : memorizedReactions.map(reaction => /*#__PURE__*/React.createElement(Reaction, {
284
286
  key: reaction.emojiId,
285
287
  reaction: reaction,
@@ -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.7.0";
7
+ var packageVersion = "31.8.0";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -1,6 +1,10 @@
1
1
  ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
2
+ ._1bah1h6o{justify-content:center}
3
+ ._1e0c1txw{display:flex}
4
+ ._4cvr1h6o{align-items:center}
2
5
  ._8hrz1nam{transform-origin:center center 0}
3
6
  ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
4
7
  ._kqswh2mm{position:relative}
5
8
  ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
6
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
9
+ ._u5f31b66{padding-right:var(--ds-space-050,4px)}
10
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
@@ -15,7 +15,8 @@ import { cx } from '@compiled/react';
15
15
  var styles = {
16
16
  emoji: "_8hrz1nam",
17
17
  button: "_ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc",
18
- container: "_kqswh2mm"
18
+ container: "_kqswh2mm",
19
+ summaryButtonIconAfter: "_u5f3u2gc _1e0c1txw _4cvr1h6o _1bah1h6o"
19
20
  };
20
21
  /**
21
22
  * Test id for summary reaction wrapper button
@@ -42,7 +43,8 @@ export var ReactionSummaryButton = /*#__PURE__*/forwardRef(function (_ref, ref)
42
43
  _ref$useButtonAlignme = _ref.useButtonAlignmentStyling,
43
44
  useButtonAlignmentStyling = _ref$useButtonAlignme === void 0 ? false : _ref$useButtonAlignme,
44
45
  onMouseEnter = _ref.onMouseEnter,
45
- onMouseLeave = _ref.onMouseLeave;
46
+ onMouseLeave = _ref.onMouseLeave,
47
+ summaryButtonIconAfter = _ref.summaryButtonIconAfter;
46
48
  var intl = useIntl();
47
49
 
48
50
  // Helper function to sort reactions by count and return top N
@@ -97,5 +99,7 @@ export var ReactionSummaryButton = /*#__PURE__*/forwardRef(function (_ref, ref)
97
99
  value: totalReactionsCount,
98
100
  useDarkerFont: useButtonAlignmentStyling,
99
101
  useUpdatedStyles: useButtonAlignmentStyling
100
- })));
102
+ }), summaryButtonIconAfter && /*#__PURE__*/React.createElement(Box, {
103
+ xcss: styles.summaryButtonIconAfter
104
+ }, summaryButtonIconAfter)));
101
105
  });
@@ -54,7 +54,8 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
54
54
  _ref$hoverableSummary = _ref.hoverableSummaryView,
55
55
  hoverableSummaryView = _ref$hoverableSummary === void 0 ? false : _ref$hoverableSummary,
56
56
  _ref$hoverableSummary2 = _ref.hoverableSummaryViewDelay,
57
- hoverableSummaryViewDelay = _ref$hoverableSummary2 === void 0 ? 300 : _ref$hoverableSummary2;
57
+ hoverableSummaryViewDelay = _ref$hoverableSummary2 === void 0 ? 300 : _ref$hoverableSummary2,
58
+ summaryButtonIconAfter = _ref.summaryButtonIconAfter;
58
59
  var _useDelayedState = useDelayedState(false, hoverableSummaryViewDelay),
59
60
  _useDelayedState2 = _slicedToArray(_useDelayedState, 2),
60
61
  isSummaryPopupOpen = _useDelayedState2[0],
@@ -206,7 +207,8 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
206
207
  onMouseLeave: handleButtonMouseLeave,
207
208
  showOpaqueBackground: showOpaqueBackground,
208
209
  subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
209
- useButtonAlignmentStyling: useButtonAlignmentStyling
210
+ useButtonAlignmentStyling: useButtonAlignmentStyling,
211
+ summaryButtonIconAfter: summaryButtonIconAfter
210
212
  }));
211
213
  }
212
214
  });
@@ -135,7 +135,8 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
135
135
  hoverableSummaryView = _ref$hoverableSummary === void 0 ? false : _ref$hoverableSummary,
136
136
  _ref$isListItem = _ref.isListItem,
137
137
  isListItem = _ref$isListItem === void 0 ? false : _ref$isListItem,
138
- reactionPickerPlacement = _ref.reactionPickerPlacement;
138
+ reactionPickerPlacement = _ref.reactionPickerPlacement,
139
+ summaryButtonIconAfter = _ref.summaryButtonIconAfter;
139
140
  var _useState = useState(''),
140
141
  _useState2 = _slicedToArray(_useState, 2),
141
142
  selectedEmojiId = _useState2[0],
@@ -318,7 +319,8 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
318
319
  onOpen: handlePickerOpen,
319
320
  useButtonAlignmentStyling: useButtonAlignmentStyling,
320
321
  reactionPickerTriggerText: reactionPickerTriggerText,
321
- hoverableSummaryView: hoverableSummaryView
322
+ hoverableSummaryView: hoverableSummaryView,
323
+ summaryButtonIconAfter: summaryButtonIconAfter
322
324
  })) : memorizedReactions.map(function (reaction) {
323
325
  return /*#__PURE__*/React.createElement(Reaction, {
324
326
  key: reaction.emojiId,
@@ -25,6 +25,10 @@ interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider
25
25
  * Optional event handler when mouse leaves the button
26
26
  */
27
27
  onMouseLeave?: () => void;
28
+ /**
29
+ * Optional prop to add an icon to the end of the summary button
30
+ */
31
+ summaryButtonIconAfter?: React.ReactNode;
28
32
  }
29
33
  /**
30
34
  * Test id for summary reaction wrapper button
@@ -61,6 +61,10 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
61
61
  * Optional prop to set a delay for the summary view when it opens/closes on hover
62
62
  */
63
63
  hoverableSummaryViewDelay?: number;
64
+ /**
65
+ * Optional prop to control if the side picker is shown
66
+ */
67
+ summaryButtonIconAfter?: React.ReactNode;
64
68
  }
65
- export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, allowUserDialog, handleOpenReactionsDialog, isViewOnly, allowSelectFromSummaryView, disabled, emojiPickerSize, onSelection, tooltipContent, reactionPickerTriggerIcon, onOpen, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, hoverableSummaryViewDelay, }: ReactionSummaryViewProps) => JSX.Element;
69
+ export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, allowUserDialog, handleOpenReactionsDialog, isViewOnly, allowSelectFromSummaryView, disabled, emojiPickerSize, onSelection, tooltipContent, reactionPickerTriggerIcon, onOpen, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, hoverableSummaryViewDelay, summaryButtonIconAfter, }: ReactionSummaryViewProps) => JSX.Element;
66
70
  export {};
@@ -173,6 +173,10 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
173
173
  * Optional prop to change the placement of the reaction picker popup
174
174
  */
175
175
  reactionPickerPlacement?: Placement;
176
+ /**
177
+ * Optional prop to add an icon to the end of the summary button
178
+ */
179
+ summaryButtonIconAfter?: React.ReactNode;
176
180
  }
177
181
  export interface OpenReactionsDialogOptions {
178
182
  emojiId?: string;
@@ -185,4 +189,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
185
189
  /**
186
190
  * Renders list of reactions
187
191
  */
188
- export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerTooltipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, isListItem, reactionPickerPlacement, }: ReactionsProps) => JSX.Element>;
192
+ export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerTooltipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, isListItem, reactionPickerPlacement, summaryButtonIconAfter, }: ReactionsProps) => JSX.Element>;
@@ -25,6 +25,10 @@ interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider
25
25
  * Optional event handler when mouse leaves the button
26
26
  */
27
27
  onMouseLeave?: () => void;
28
+ /**
29
+ * Optional prop to add an icon to the end of the summary button
30
+ */
31
+ summaryButtonIconAfter?: React.ReactNode;
28
32
  }
29
33
  /**
30
34
  * Test id for summary reaction wrapper button
@@ -61,6 +61,10 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
61
61
  * Optional prop to set a delay for the summary view when it opens/closes on hover
62
62
  */
63
63
  hoverableSummaryViewDelay?: number;
64
+ /**
65
+ * Optional prop to control if the side picker is shown
66
+ */
67
+ summaryButtonIconAfter?: React.ReactNode;
64
68
  }
65
- export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, allowUserDialog, handleOpenReactionsDialog, isViewOnly, allowSelectFromSummaryView, disabled, emojiPickerSize, onSelection, tooltipContent, reactionPickerTriggerIcon, onOpen, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, hoverableSummaryViewDelay, }: ReactionSummaryViewProps) => JSX.Element;
69
+ export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, allowUserDialog, handleOpenReactionsDialog, isViewOnly, allowSelectFromSummaryView, disabled, emojiPickerSize, onSelection, tooltipContent, reactionPickerTriggerIcon, onOpen, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, hoverableSummaryViewDelay, summaryButtonIconAfter, }: ReactionSummaryViewProps) => JSX.Element;
66
70
  export {};
@@ -173,6 +173,10 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
173
173
  * Optional prop to change the placement of the reaction picker popup
174
174
  */
175
175
  reactionPickerPlacement?: Placement;
176
+ /**
177
+ * Optional prop to add an icon to the end of the summary button
178
+ */
179
+ summaryButtonIconAfter?: React.ReactNode;
176
180
  }
177
181
  export interface OpenReactionsDialogOptions {
178
182
  emojiId?: string;
@@ -185,4 +189,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
185
189
  /**
186
190
  * Renders list of reactions
187
191
  */
188
- export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerTooltipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, isListItem, reactionPickerPlacement, }: ReactionsProps) => JSX.Element>;
192
+ export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerTooltipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, isListItem, reactionPickerPlacement, summaryButtonIconAfter, }: ReactionsProps) => JSX.Element>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "31.7.0",
3
+ "version": "31.8.0",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"