@atlaskit/reactions 36.1.3 → 36.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/ReactionPicker.js +2 -0
- package/dist/cjs/components/ReactionSummaryView.js +2 -0
- package/dist/cjs/components/Reactions.js +3 -0
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionPicker.js +2 -0
- package/dist/es2019/components/ReactionSummaryView.js +2 -0
- package/dist/es2019/components/Reactions.js +3 -0
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionPicker.js +2 -0
- package/dist/esm/components/ReactionSummaryView.js +2 -0
- package/dist/esm/components/Reactions.js +3 -0
- package/dist/types/components/ReactionPicker.d.ts +4 -0
- package/dist/types/components/ReactionSummaryView.d.ts +2 -2
- package/dist/types/components/Reactions.d.ts +2 -2
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
- package/package.json +2 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 36.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 36.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`9a225a6cfe56f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9a225a6cfe56f) -
|
|
14
|
+
Add an optional content context to reaction emoji pickers so Confluence page reactions can expose
|
|
15
|
+
AI emoji generation under the `confluence_ai_generated_emojis` experiment.
|
|
16
|
+
|
|
3
17
|
## 36.1.3
|
|
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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "36.
|
|
14
|
+
var packageVersion = "36.2.0";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -63,6 +63,7 @@ var PICKER_LABEL_ID = 'emoji-picker-label';
|
|
|
63
63
|
var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(function (props) {
|
|
64
64
|
var miniMode = props.miniMode,
|
|
65
65
|
className = props.className,
|
|
66
|
+
contentId = props.contentId,
|
|
66
67
|
emojiProvider = props.emojiProvider,
|
|
67
68
|
onSelection = props.onSelection,
|
|
68
69
|
allowAllEmojis = props.allowAllEmojis,
|
|
@@ -305,6 +306,7 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
305
306
|
onMouseEnter: handlePopupMouseEnter,
|
|
306
307
|
onMouseLeave: handlePopupMouseLeave
|
|
307
308
|
}, /*#__PURE__*/_react.default.createElement(_picker.EmojiPicker, {
|
|
309
|
+
contentId: contentId,
|
|
308
310
|
emojiProvider: emojiProvider,
|
|
309
311
|
onSelection: onEmojiSelected,
|
|
310
312
|
size: emojiPickerSize
|
|
@@ -55,6 +55,7 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
55
55
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
56
56
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
57
57
|
allowSelectFromSummaryView = _ref.allowSelectFromSummaryView,
|
|
58
|
+
contentId = _ref.contentId,
|
|
58
59
|
disabled = _ref.disabled,
|
|
59
60
|
emojiPickerSize = _ref.emojiPickerSize,
|
|
60
61
|
onSelection = _ref.onSelection,
|
|
@@ -194,6 +195,7 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
194
195
|
content: function content(_ref2) {
|
|
195
196
|
var recalculatePopupPosition = _ref2.update;
|
|
196
197
|
return isEmojiPickerOpen ? /*#__PURE__*/React.createElement(_picker.EmojiPicker, {
|
|
198
|
+
contentId: contentId,
|
|
197
199
|
emojiProvider: emojiProvider,
|
|
198
200
|
onSelection: onEmojiSelected,
|
|
199
201
|
size: emojiPickerSize
|
|
@@ -100,6 +100,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
100
100
|
reactions = _ref$reactions === void 0 ? [] : _ref$reactions,
|
|
101
101
|
emojiProvider = _ref.emojiProvider,
|
|
102
102
|
allowAllEmojis = _ref.allowAllEmojis,
|
|
103
|
+
contentId = _ref.contentId,
|
|
103
104
|
onReactionClick = _ref.onReactionClick,
|
|
104
105
|
allowUserDialog = _ref.allowUserDialog,
|
|
105
106
|
_ref$onDialogOpenCall = _ref.onDialogOpenCallback,
|
|
@@ -396,6 +397,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
396
397
|
allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
|
|
397
398
|
isViewOnly: isViewOnly,
|
|
398
399
|
allowSelectFromSummaryView: allowSelectFromSummaryView,
|
|
400
|
+
contentId: contentId,
|
|
399
401
|
disabled: status !== _types.ReactionStatus.ready,
|
|
400
402
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
401
403
|
tooltipContent: getTooltip(status, errorMessage, reactionPickerTriggerTooltipContent),
|
|
@@ -414,6 +416,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
414
416
|
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, memorizedReactions.map(function (reaction) {
|
|
415
417
|
return renderReactionItem(reaction);
|
|
416
418
|
}))), shouldShowPicker && /*#__PURE__*/_react.default.createElement(_ReactionPicker.ReactionPicker, {
|
|
419
|
+
contentId: contentId,
|
|
417
420
|
emojiProvider: emojiProvider,
|
|
418
421
|
allowAllEmojis: allowAllEmojis,
|
|
419
422
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
3
3
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
4
4
|
const packageName = "@atlaskit/reactions";
|
|
5
|
-
const packageVersion = "36.
|
|
5
|
+
const packageVersion = "36.2.0";
|
|
6
6
|
/**
|
|
7
7
|
* TODO: move to utility package?
|
|
8
8
|
* A random sampling function
|
|
@@ -51,6 +51,7 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
51
51
|
const {
|
|
52
52
|
miniMode,
|
|
53
53
|
className,
|
|
54
|
+
contentId,
|
|
54
55
|
emojiProvider,
|
|
55
56
|
onSelection,
|
|
56
57
|
allowAllEmojis,
|
|
@@ -262,6 +263,7 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
262
263
|
onMouseEnter: handlePopupMouseEnter,
|
|
263
264
|
onMouseLeave: handlePopupMouseLeave
|
|
264
265
|
}, /*#__PURE__*/React.createElement(EmojiPicker, {
|
|
266
|
+
contentId: contentId,
|
|
265
267
|
emojiProvider: emojiProvider,
|
|
266
268
|
onSelection: onEmojiSelected,
|
|
267
269
|
size: emojiPickerSize
|
|
@@ -38,6 +38,7 @@ export const ReactionSummaryView = ({
|
|
|
38
38
|
handleOpenReactionsDialog,
|
|
39
39
|
isViewOnly = false,
|
|
40
40
|
allowSelectFromSummaryView,
|
|
41
|
+
contentId,
|
|
41
42
|
disabled,
|
|
42
43
|
emojiPickerSize,
|
|
43
44
|
onSelection,
|
|
@@ -161,6 +162,7 @@ export const ReactionSummaryView = ({
|
|
|
161
162
|
content: ({
|
|
162
163
|
update: recalculatePopupPosition
|
|
163
164
|
}) => isEmojiPickerOpen ? /*#__PURE__*/React.createElement(EmojiPicker, {
|
|
165
|
+
contentId: contentId,
|
|
164
166
|
emojiProvider: emojiProvider,
|
|
165
167
|
onSelection: onEmojiSelected,
|
|
166
168
|
size: emojiPickerSize
|
|
@@ -83,6 +83,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
83
83
|
reactions = [],
|
|
84
84
|
emojiProvider,
|
|
85
85
|
allowAllEmojis,
|
|
86
|
+
contentId,
|
|
86
87
|
onReactionClick,
|
|
87
88
|
allowUserDialog,
|
|
88
89
|
onDialogOpenCallback = () => {},
|
|
@@ -334,6 +335,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
334
335
|
allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
|
|
335
336
|
isViewOnly: isViewOnly,
|
|
336
337
|
allowSelectFromSummaryView: allowSelectFromSummaryView,
|
|
338
|
+
contentId: contentId,
|
|
337
339
|
disabled: status !== ReactionStatus.ready,
|
|
338
340
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
339
341
|
tooltipContent: getTooltip(status, errorMessage, reactionPickerTriggerTooltipContent),
|
|
@@ -348,6 +350,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
348
350
|
})) : reactions.length > 0 && fg('platform_reactions_a11y_group_added_reactions') ? renderReactionGroup() : fg('jfp_a11y_team_comment_actions_semantic') ? /*#__PURE__*/React.createElement("ul", {
|
|
349
351
|
className: ax(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm"])
|
|
350
352
|
}, memorizedReactions.map(reaction => renderReactionItem(reaction, 'li'))) : /*#__PURE__*/React.createElement(React.Fragment, null, memorizedReactions.map(reaction => renderReactionItem(reaction)))), shouldShowPicker && /*#__PURE__*/React.createElement(ReactionPicker, {
|
|
353
|
+
contentId: contentId,
|
|
351
354
|
emojiProvider: emojiProvider,
|
|
352
355
|
allowAllEmojis: allowAllEmojis,
|
|
353
356
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
6
6
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
7
7
|
var packageName = "@atlaskit/reactions";
|
|
8
|
-
var packageVersion = "36.
|
|
8
|
+
var packageVersion = "36.2.0";
|
|
9
9
|
/**
|
|
10
10
|
* TODO: move to utility package?
|
|
11
11
|
* A random sampling function
|
|
@@ -54,6 +54,7 @@ var PICKER_LABEL_ID = 'emoji-picker-label';
|
|
|
54
54
|
export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
55
55
|
var miniMode = props.miniMode,
|
|
56
56
|
className = props.className,
|
|
57
|
+
contentId = props.contentId,
|
|
57
58
|
emojiProvider = props.emojiProvider,
|
|
58
59
|
onSelection = props.onSelection,
|
|
59
60
|
allowAllEmojis = props.allowAllEmojis,
|
|
@@ -296,6 +297,7 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
296
297
|
onMouseEnter: handlePopupMouseEnter,
|
|
297
298
|
onMouseLeave: handlePopupMouseLeave
|
|
298
299
|
}, /*#__PURE__*/React.createElement(EmojiPicker, {
|
|
300
|
+
contentId: contentId,
|
|
299
301
|
emojiProvider: emojiProvider,
|
|
300
302
|
onSelection: onEmojiSelected,
|
|
301
303
|
size: emojiPickerSize
|
|
@@ -46,6 +46,7 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
46
46
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
47
47
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
48
48
|
allowSelectFromSummaryView = _ref.allowSelectFromSummaryView,
|
|
49
|
+
contentId = _ref.contentId,
|
|
49
50
|
disabled = _ref.disabled,
|
|
50
51
|
emojiPickerSize = _ref.emojiPickerSize,
|
|
51
52
|
onSelection = _ref.onSelection,
|
|
@@ -185,6 +186,7 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
185
186
|
content: function content(_ref2) {
|
|
186
187
|
var recalculatePopupPosition = _ref2.update;
|
|
187
188
|
return isEmojiPickerOpen ? /*#__PURE__*/React.createElement(EmojiPicker, {
|
|
189
|
+
contentId: contentId,
|
|
188
190
|
emojiProvider: emojiProvider,
|
|
189
191
|
onSelection: onEmojiSelected,
|
|
190
192
|
size: emojiPickerSize
|
|
@@ -89,6 +89,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
89
89
|
reactions = _ref$reactions === void 0 ? [] : _ref$reactions,
|
|
90
90
|
emojiProvider = _ref.emojiProvider,
|
|
91
91
|
allowAllEmojis = _ref.allowAllEmojis,
|
|
92
|
+
contentId = _ref.contentId,
|
|
92
93
|
onReactionClick = _ref.onReactionClick,
|
|
93
94
|
allowUserDialog = _ref.allowUserDialog,
|
|
94
95
|
_ref$onDialogOpenCall = _ref.onDialogOpenCallback,
|
|
@@ -385,6 +386,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
385
386
|
allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
|
|
386
387
|
isViewOnly: isViewOnly,
|
|
387
388
|
allowSelectFromSummaryView: allowSelectFromSummaryView,
|
|
389
|
+
contentId: contentId,
|
|
388
390
|
disabled: status !== ReactionStatus.ready,
|
|
389
391
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
390
392
|
tooltipContent: getTooltip(status, errorMessage, reactionPickerTriggerTooltipContent),
|
|
@@ -403,6 +405,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
403
405
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, memorizedReactions.map(function (reaction) {
|
|
404
406
|
return renderReactionItem(reaction);
|
|
405
407
|
}))), shouldShowPicker && /*#__PURE__*/React.createElement(ReactionPicker, {
|
|
408
|
+
contentId: contentId,
|
|
406
409
|
emojiProvider: emojiProvider,
|
|
407
410
|
allowAllEmojis: allowAllEmojis,
|
|
408
411
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
@@ -26,6 +26,10 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
|
|
|
26
26
|
* Optional class name
|
|
27
27
|
*/
|
|
28
28
|
className?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional content identifier forwarded to content-aware emoji picker experiences
|
|
31
|
+
*/
|
|
32
|
+
contentId?: string;
|
|
29
33
|
/**
|
|
30
34
|
* Enable/Disable the button to be clickable (defaults to false)
|
|
31
35
|
*/
|
|
@@ -6,7 +6,7 @@ import { type TriggerProps } from './Trigger';
|
|
|
6
6
|
* Test id for the Reactions summary view popup
|
|
7
7
|
*/
|
|
8
8
|
export declare const RENDER_SUMMARY_VIEW_POPUP_TESTID = "render-summary-view-popup";
|
|
9
|
-
interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji' | 'allowUserDialog' | 'allowSelectFromSummaryView' | 'emojiPickerSize' | 'useButtonAlignmentStyling' | 'reactionPickerTriggerText'>, Pick<TriggerProps, 'tooltipContent' | 'reactionPickerTriggerIcon' | 'disabled'> {
|
|
9
|
+
interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji' | 'allowUserDialog' | 'allowSelectFromSummaryView' | 'contentId' | 'emojiPickerSize' | 'useButtonAlignmentStyling' | 'reactionPickerTriggerText'>, Pick<TriggerProps, 'tooltipContent' | 'reactionPickerTriggerIcon' | 'disabled'> {
|
|
10
10
|
/**
|
|
11
11
|
* Optional prop for enabling the Reactions Dialog
|
|
12
12
|
*/
|
|
@@ -77,5 +77,5 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
|
|
|
77
77
|
shortName: string;
|
|
78
78
|
} | null;
|
|
79
79
|
}
|
|
80
|
-
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, summaryGetOptimisticImageURL, summaryButtonIconAfter, summaryViewParticleEffectEmojiId, }: ReactionSummaryViewProps) => JSX.Element;
|
|
80
|
+
export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, allowUserDialog, handleOpenReactionsDialog, isViewOnly, allowSelectFromSummaryView, contentId, disabled, emojiPickerSize, onSelection, tooltipContent, reactionPickerTriggerIcon, onOpen, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, hoverableSummaryViewDelay, summaryGetOptimisticImageURL, summaryButtonIconAfter, summaryViewParticleEffectEmojiId, }: ReactionSummaryViewProps) => JSX.Element;
|
|
81
81
|
export {};
|
|
@@ -35,7 +35,7 @@ export declare const RENDER_VIEWALL_REACTED_USERS_DIALOG = "viewall-reacted-user
|
|
|
35
35
|
* Test id for summary view of reactions
|
|
36
36
|
*/
|
|
37
37
|
export declare const RENDER_REACTIONS_SUMMARY_TESTID = "reaction-summary-view";
|
|
38
|
-
export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'reactionPickerTriggerIcon' | 'reactionPickerPlacement' | 'reactionPickerPopperZIndex'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'> {
|
|
38
|
+
export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'contentId' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'reactionPickerTriggerIcon' | 'reactionPickerPlacement' | 'reactionPickerPopperZIndex'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'> {
|
|
39
39
|
/**
|
|
40
40
|
* Optional prop for controlling if we can select emojis and display UI via summary view picker
|
|
41
41
|
*/
|
|
@@ -203,4 +203,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
|
|
|
203
203
|
/**
|
|
204
204
|
* Renders list of reactions
|
|
205
205
|
*/
|
|
206
|
-
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, summaryGetOptimisticImageURL, getOptimisticImageURL, reactionPickerPlacement, summaryButtonIconAfter, renderParticleEffectOnSummaryView, reactionPickerPopperZIndex, }: ReactionsProps) => JSX.Element>;
|
|
206
|
+
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, contentId, 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, summaryGetOptimisticImageURL, getOptimisticImageURL, reactionPickerPlacement, summaryButtonIconAfter, renderParticleEffectOnSummaryView, reactionPickerPopperZIndex, }: ReactionsProps) => JSX.Element>;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type ReactionsProps, type ReactionPickerProps } from '../../components';
|
|
3
3
|
import { ReactionStatus, type Actions, type State, type StorePropInput } from '../../types';
|
|
4
4
|
import { type ReactionSummary, type ReactionUpdateSuccess, type ReactionUpdateFailure } from '../../types/reaction';
|
|
5
|
-
export interface ConnectedReactionsViewProps extends Pick<ReactionsProps, 'quickReactionEmojis' | 'onDialogOpenCallback' | 'onDialogCloseCallback' | 'onDialogSelectReactionCallback' | 'allowUserDialog' | 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'summaryViewEnabled' | 'subtleReactionsSummaryAndPicker' | 'onlyRenderPicker' | 'isViewOnly' | 'allowSelectFromSummaryView' | 'reactionPickerPopperZIndex'>, Pick<ReactionPickerProps, 'pickerQuickReactionEmojiIds'> {
|
|
5
|
+
export interface ConnectedReactionsViewProps extends Pick<ReactionsProps, 'quickReactionEmojis' | 'onDialogOpenCallback' | 'onDialogCloseCallback' | 'onDialogSelectReactionCallback' | 'allowUserDialog' | 'allowAllEmojis' | 'contentId' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'summaryViewEnabled' | 'subtleReactionsSummaryAndPicker' | 'onlyRenderPicker' | 'isViewOnly' | 'allowSelectFromSummaryView' | 'reactionPickerPopperZIndex'>, Pick<ReactionPickerProps, 'pickerQuickReactionEmojiIds'> {
|
|
6
6
|
/**
|
|
7
7
|
* Individual id for a reaction
|
|
8
8
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "36.1
|
|
3
|
+
"version": "36.2.1",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/spinner": "^20.4.0",
|
|
56
56
|
"@atlaskit/tabs": "^21.2.0",
|
|
57
57
|
"@atlaskit/theme": "^28.2.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^172.0.0",
|
|
59
59
|
"@atlaskit/tokens": "^16.11.0",
|
|
60
60
|
"@atlaskit/tooltip": "^24.3.0",
|
|
61
61
|
"@atlaskit/ufo": "^1.2.0",
|
|
@@ -95,19 +95,6 @@
|
|
|
95
95
|
"fabric",
|
|
96
96
|
"ui"
|
|
97
97
|
],
|
|
98
|
-
"techstack": {
|
|
99
|
-
"@repo/internal": {
|
|
100
|
-
"design-tokens": [
|
|
101
|
-
"color"
|
|
102
|
-
],
|
|
103
|
-
"styling": [
|
|
104
|
-
"compiled"
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
"@atlassian/frontend": {
|
|
108
|
-
"tree-shaking": []
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
98
|
"scripts": {
|
|
112
99
|
"setup-first-time": "yarn run setup-local-config; yarn run setup-env",
|
|
113
100
|
"setup-local-config": "cp -nv local-config-template.ts local-config.ts",
|