@atlaskit/reactions 33.8.11 → 33.8.13
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 +13 -0
- package/dist/cjs/components/Reaction.js +3 -1
- package/dist/cjs/components/Reactions.compiled.css +19 -2
- package/dist/cjs/components/Reactions.js +22 -2
- package/dist/es2019/components/Reaction.js +3 -1
- package/dist/es2019/components/Reactions.compiled.css +19 -2
- package/dist/es2019/components/Reactions.js +20 -2
- package/dist/esm/components/Reaction.js +3 -1
- package/dist/esm/components/Reactions.compiled.css +19 -2
- package/dist/esm/components/Reactions.js +22 -2
- package/dist/types/components/Reactions.d.ts +1 -0
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
- package/dist/types-ts4.5/components/Reactions.d.ts +1 -0
- package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 33.8.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 33.8.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2fb6fe3d37cd3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2fb6fe3d37cd3) -
|
|
14
|
+
Added appropriate list markup for comment reactions
|
|
15
|
+
|
|
3
16
|
## 33.8.11
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -21,6 +21,7 @@ var _analytics = require("../analytics");
|
|
|
21
21
|
var _Counter = require("./Counter");
|
|
22
22
|
var _ReactionParticleEffect = require("./ReactionParticleEffect");
|
|
23
23
|
var _ReactionTooltip = require("./ReactionTooltip");
|
|
24
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
25
|
var _i18n = require("../shared/i18n");
|
|
25
26
|
var _utils = require("../shared/utils");
|
|
26
27
|
var _constants = require("../shared/constants");
|
|
@@ -155,7 +156,8 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
155
156
|
});
|
|
156
157
|
}
|
|
157
158
|
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
158
|
-
xcss: styles.container
|
|
159
|
+
xcss: styles.container,
|
|
160
|
+
as: (0, _platformFeatureFlags.fg)('jfp_a11y_team_comment_actions_semantic') ? 'li' : undefined
|
|
159
161
|
}, showParticleEffect && /*#__PURE__*/React.createElement(_ReactionParticleEffect.ReactionParticleEffect, {
|
|
160
162
|
emojiId: emojiId,
|
|
161
163
|
emojiProvider: emojiProvider
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._qtt8glyw{list-style:none}._13vtidpf >:first-of-type>:first-of-type{margin-left:0}
|
|
3
|
+
._17s9idpf >li{padding-bottom:0}
|
|
4
|
+
._18u0idpf{margin-left:0}
|
|
5
|
+
._19bvidpf{padding-left:0}
|
|
2
6
|
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
7
|
+
._19pkidpf{margin-top:0}
|
|
3
8
|
._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
|
|
9
|
+
._1b3sidpf >li{padding-left:0}
|
|
4
10
|
._1e0c1o8l{display:inline-block}
|
|
5
11
|
._1e0c1txw{display:flex}
|
|
12
|
+
._1l0sidpf >li{margin-bottom:0}
|
|
6
13
|
._1n261g80{flex-wrap:wrap}
|
|
7
14
|
._1n261q9c{flex-wrap:nowrap}
|
|
15
|
+
._1pyaidpf >li{margin-top:0}
|
|
16
|
+
._2hwxidpf{margin-right:0}
|
|
8
17
|
._4cvr1h6o{align-items:center}
|
|
18
|
+
._694cidpf >li{margin-right:0}
|
|
19
|
+
._9g0pidpf >li{margin-left:0}
|
|
20
|
+
._ahxuidpf >li{padding-top:0}
|
|
21
|
+
._bapwidpf >li{padding-right:0}
|
|
22
|
+
._ca0qidpf{padding-top:0}
|
|
9
23
|
._kqswh2mm{position:relative}
|
|
10
|
-
._kqswpfqs{position:static}
|
|
24
|
+
._kqswpfqs{position:static}
|
|
25
|
+
._n3tdidpf{padding-bottom:0}
|
|
26
|
+
._otyridpf{margin-bottom:0}
|
|
27
|
+
._u5f3idpf{padding-right:0}
|
|
@@ -18,6 +18,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
18
18
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
19
19
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
20
20
|
var _segment = _interopRequireDefault(require("@atlaskit/react-ufo/segment"));
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _analytics = require("../analytics");
|
|
22
23
|
var _constants = require("../shared/constants");
|
|
23
24
|
var _i18n = require("../shared/i18n");
|
|
@@ -32,6 +33,7 @@ var wrapperStyle = null;
|
|
|
32
33
|
var noFlexWrapStyles = null;
|
|
33
34
|
var noContainerPositionStyles = null;
|
|
34
35
|
var reactionPickerStyle = null;
|
|
36
|
+
var listContainerStyles = null;
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* Set of all available UFO experiences relating to Reactions Dialog
|
|
@@ -369,7 +371,9 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
369
371
|
summaryGetOptimisticImageURL: summaryGetOptimisticImageURL,
|
|
370
372
|
summaryButtonIconAfter: summaryButtonIconAfter,
|
|
371
373
|
summaryViewParticleEffectEmojiId: renderParticleEffectOnSummaryView ? summaryViewParticleEffectEmojiId : null
|
|
372
|
-
})) :
|
|
374
|
+
})) : (0, _platformFeatureFlags.fg)('jfp_a11y_team_comment_actions_semantic') ? /*#__PURE__*/_react.default.createElement("ul", {
|
|
375
|
+
className: (0, _runtime.ax)(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm _1pyaidpf _694cidpf _1l0sidpf _9g0pidpf _ahxuidpf _bapwidpf _17s9idpf _1b3sidpf"])
|
|
376
|
+
}, memorizedReactions.map(function (reaction) {
|
|
373
377
|
return /*#__PURE__*/_react.default.createElement(_Reaction.Reaction, {
|
|
374
378
|
key: reaction.emojiId,
|
|
375
379
|
reaction: reaction,
|
|
@@ -385,7 +389,23 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
385
389
|
isViewOnly: isViewOnly,
|
|
386
390
|
showSubtleStyle: showSubtleDefaultReactions && reactions.length === 0
|
|
387
391
|
});
|
|
388
|
-
}))
|
|
392
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, memorizedReactions.map(function (reaction) {
|
|
393
|
+
return /*#__PURE__*/_react.default.createElement(_Reaction.Reaction, {
|
|
394
|
+
key: reaction.emojiId,
|
|
395
|
+
reaction: reaction,
|
|
396
|
+
emojiProvider: emojiProvider,
|
|
397
|
+
onClick: onReactionClick,
|
|
398
|
+
onMouseEnter: handleReactionMouseEnter,
|
|
399
|
+
onFocused: handleReactionFocused,
|
|
400
|
+
flash: flash[reaction.emojiId],
|
|
401
|
+
showParticleEffect: particleEffectByEmoji[reaction.emojiId],
|
|
402
|
+
showOpaqueBackground: showOpaqueBackground,
|
|
403
|
+
allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
|
|
404
|
+
handleOpenReactionsDialog: _handleOpenReactionsDialog,
|
|
405
|
+
isViewOnly: isViewOnly,
|
|
406
|
+
showSubtleStyle: showSubtleDefaultReactions && reactions.length === 0
|
|
407
|
+
});
|
|
408
|
+
}))), isViewOnly || !onlyRenderPicker && shouldShowSummaryView && allowSelectFromSummaryView ? null : /*#__PURE__*/_react.default.createElement(_ReactionPicker.ReactionPicker, {
|
|
389
409
|
emojiProvider: emojiProvider,
|
|
390
410
|
allowAllEmojis: allowAllEmojis,
|
|
391
411
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
@@ -10,6 +10,7 @@ import { createAndFireSafe, createReactionClickedEvent, createReactionFocusedEve
|
|
|
10
10
|
import { Counter } from './Counter';
|
|
11
11
|
import { ReactionParticleEffect } from './ReactionParticleEffect';
|
|
12
12
|
import { ReactionTooltip } from './ReactionTooltip';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { messages } from '../shared/i18n';
|
|
14
15
|
import { isLeftClick } from '../shared/utils';
|
|
15
16
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
@@ -122,7 +123,8 @@ export const Reaction = ({
|
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
125
|
return /*#__PURE__*/React.createElement(Box, {
|
|
125
|
-
xcss: styles.container
|
|
126
|
+
xcss: styles.container,
|
|
127
|
+
as: fg('jfp_a11y_team_comment_actions_semantic') ? 'li' : undefined
|
|
126
128
|
}, showParticleEffect && /*#__PURE__*/React.createElement(ReactionParticleEffect, {
|
|
127
129
|
emojiId: emojiId,
|
|
128
130
|
emojiProvider: emojiProvider
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._qtt8glyw{list-style:none}._13vtidpf >:first-of-type>:first-of-type{margin-left:0}
|
|
3
|
+
._17s9idpf >li{padding-bottom:0}
|
|
4
|
+
._18u0idpf{margin-left:0}
|
|
5
|
+
._19bvidpf{padding-left:0}
|
|
2
6
|
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
7
|
+
._19pkidpf{margin-top:0}
|
|
3
8
|
._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
|
|
9
|
+
._1b3sidpf >li{padding-left:0}
|
|
4
10
|
._1e0c1o8l{display:inline-block}
|
|
5
11
|
._1e0c1txw{display:flex}
|
|
12
|
+
._1l0sidpf >li{margin-bottom:0}
|
|
6
13
|
._1n261g80{flex-wrap:wrap}
|
|
7
14
|
._1n261q9c{flex-wrap:nowrap}
|
|
15
|
+
._1pyaidpf >li{margin-top:0}
|
|
16
|
+
._2hwxidpf{margin-right:0}
|
|
8
17
|
._4cvr1h6o{align-items:center}
|
|
18
|
+
._694cidpf >li{margin-right:0}
|
|
19
|
+
._9g0pidpf >li{margin-left:0}
|
|
20
|
+
._ahxuidpf >li{padding-top:0}
|
|
21
|
+
._bapwidpf >li{padding-right:0}
|
|
22
|
+
._ca0qidpf{padding-top:0}
|
|
9
23
|
._kqswh2mm{position:relative}
|
|
10
|
-
._kqswpfqs{position:static}
|
|
24
|
+
._kqswpfqs{position:static}
|
|
25
|
+
._n3tdidpf{padding-bottom:0}
|
|
26
|
+
._otyridpf{margin-bottom:0}
|
|
27
|
+
._u5f3idpf{padding-right:0}
|
|
@@ -6,6 +6,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
6
6
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
7
|
import { ModalTransition } from '@atlaskit/modal-dialog';
|
|
8
8
|
import UFOSegment from '@atlaskit/react-ufo/segment';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { createAndFireSafe, createPickerButtonClickedEvent, createPickerCancelledEvent, createPickerMoreClickedEvent, createReactionsRenderedEvent, createReactionSelectionEvent, isSampled } from '../analytics';
|
|
10
11
|
import { SAMPLING_RATE_REACTIONS_RENDERED_EXP } from '../shared/constants';
|
|
11
12
|
import { messages } from '../shared/i18n';
|
|
@@ -19,6 +20,7 @@ const wrapperStyle = null;
|
|
|
19
20
|
const noFlexWrapStyles = null;
|
|
20
21
|
const noContainerPositionStyles = null;
|
|
21
22
|
const reactionPickerStyle = null;
|
|
23
|
+
const listContainerStyles = null;
|
|
22
24
|
|
|
23
25
|
/**
|
|
24
26
|
* Set of all available UFO experiences relating to Reactions Dialog
|
|
@@ -313,7 +315,9 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
313
315
|
summaryGetOptimisticImageURL: summaryGetOptimisticImageURL,
|
|
314
316
|
summaryButtonIconAfter: summaryButtonIconAfter,
|
|
315
317
|
summaryViewParticleEffectEmojiId: renderParticleEffectOnSummaryView ? summaryViewParticleEffectEmojiId : null
|
|
316
|
-
})) :
|
|
318
|
+
})) : fg('jfp_a11y_team_comment_actions_semantic') ? /*#__PURE__*/React.createElement("ul", {
|
|
319
|
+
className: ax(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm _1pyaidpf _694cidpf _1l0sidpf _9g0pidpf _ahxuidpf _bapwidpf _17s9idpf _1b3sidpf"])
|
|
320
|
+
}, memorizedReactions.map(reaction => /*#__PURE__*/React.createElement(Reaction, {
|
|
317
321
|
key: reaction.emojiId,
|
|
318
322
|
reaction: reaction,
|
|
319
323
|
emojiProvider: emojiProvider,
|
|
@@ -327,7 +331,21 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
327
331
|
handleOpenReactionsDialog: handleOpenReactionsDialog,
|
|
328
332
|
isViewOnly: isViewOnly,
|
|
329
333
|
showSubtleStyle: showSubtleDefaultReactions && reactions.length === 0
|
|
330
|
-
})))
|
|
334
|
+
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, memorizedReactions.map(reaction => /*#__PURE__*/React.createElement(Reaction, {
|
|
335
|
+
key: reaction.emojiId,
|
|
336
|
+
reaction: reaction,
|
|
337
|
+
emojiProvider: emojiProvider,
|
|
338
|
+
onClick: onReactionClick,
|
|
339
|
+
onMouseEnter: handleReactionMouseEnter,
|
|
340
|
+
onFocused: handleReactionFocused,
|
|
341
|
+
flash: flash[reaction.emojiId],
|
|
342
|
+
showParticleEffect: particleEffectByEmoji[reaction.emojiId],
|
|
343
|
+
showOpaqueBackground: showOpaqueBackground,
|
|
344
|
+
allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
|
|
345
|
+
handleOpenReactionsDialog: handleOpenReactionsDialog,
|
|
346
|
+
isViewOnly: isViewOnly,
|
|
347
|
+
showSubtleStyle: showSubtleDefaultReactions && reactions.length === 0
|
|
348
|
+
})))), isViewOnly || !onlyRenderPicker && shouldShowSummaryView && allowSelectFromSummaryView ? null : /*#__PURE__*/React.createElement(ReactionPicker, {
|
|
331
349
|
emojiProvider: emojiProvider,
|
|
332
350
|
allowAllEmojis: allowAllEmojis,
|
|
333
351
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
@@ -13,6 +13,7 @@ import { createAndFireSafe, createReactionClickedEvent, createReactionFocusedEve
|
|
|
13
13
|
import { Counter } from './Counter';
|
|
14
14
|
import { ReactionParticleEffect } from './ReactionParticleEffect';
|
|
15
15
|
import { ReactionTooltip } from './ReactionTooltip';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import { messages } from '../shared/i18n';
|
|
17
18
|
import { isLeftClick } from '../shared/utils';
|
|
18
19
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
@@ -146,7 +147,8 @@ export var Reaction = function Reaction(_ref) {
|
|
|
146
147
|
});
|
|
147
148
|
}
|
|
148
149
|
return /*#__PURE__*/React.createElement(Box, {
|
|
149
|
-
xcss: styles.container
|
|
150
|
+
xcss: styles.container,
|
|
151
|
+
as: fg('jfp_a11y_team_comment_actions_semantic') ? 'li' : undefined
|
|
150
152
|
}, showParticleEffect && /*#__PURE__*/React.createElement(ReactionParticleEffect, {
|
|
151
153
|
emojiId: emojiId,
|
|
152
154
|
emojiProvider: emojiProvider
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._qtt8glyw{list-style:none}._13vtidpf >:first-of-type>:first-of-type{margin-left:0}
|
|
3
|
+
._17s9idpf >li{padding-bottom:0}
|
|
4
|
+
._18u0idpf{margin-left:0}
|
|
5
|
+
._19bvidpf{padding-left:0}
|
|
2
6
|
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
7
|
+
._19pkidpf{margin-top:0}
|
|
3
8
|
._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
|
|
9
|
+
._1b3sidpf >li{padding-left:0}
|
|
4
10
|
._1e0c1o8l{display:inline-block}
|
|
5
11
|
._1e0c1txw{display:flex}
|
|
12
|
+
._1l0sidpf >li{margin-bottom:0}
|
|
6
13
|
._1n261g80{flex-wrap:wrap}
|
|
7
14
|
._1n261q9c{flex-wrap:nowrap}
|
|
15
|
+
._1pyaidpf >li{margin-top:0}
|
|
16
|
+
._2hwxidpf{margin-right:0}
|
|
8
17
|
._4cvr1h6o{align-items:center}
|
|
18
|
+
._694cidpf >li{margin-right:0}
|
|
19
|
+
._9g0pidpf >li{margin-left:0}
|
|
20
|
+
._ahxuidpf >li{padding-top:0}
|
|
21
|
+
._bapwidpf >li{padding-right:0}
|
|
22
|
+
._ca0qidpf{padding-top:0}
|
|
9
23
|
._kqswh2mm{position:relative}
|
|
10
|
-
._kqswpfqs{position:static}
|
|
24
|
+
._kqswpfqs{position:static}
|
|
25
|
+
._n3tdidpf{padding-bottom:0}
|
|
26
|
+
._otyridpf{margin-bottom:0}
|
|
27
|
+
._u5f3idpf{padding-right:0}
|
|
@@ -8,6 +8,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
8
8
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
9
|
import { ModalTransition } from '@atlaskit/modal-dialog';
|
|
10
10
|
import UFOSegment from '@atlaskit/react-ufo/segment';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { createAndFireSafe, createPickerButtonClickedEvent, createPickerCancelledEvent, createPickerMoreClickedEvent, createReactionsRenderedEvent, createReactionSelectionEvent, isSampled } from '../analytics';
|
|
12
13
|
import { SAMPLING_RATE_REACTIONS_RENDERED_EXP } from '../shared/constants';
|
|
13
14
|
import { messages } from '../shared/i18n';
|
|
@@ -21,6 +22,7 @@ var wrapperStyle = null;
|
|
|
21
22
|
var noFlexWrapStyles = null;
|
|
22
23
|
var noContainerPositionStyles = null;
|
|
23
24
|
var reactionPickerStyle = null;
|
|
25
|
+
var listContainerStyles = null;
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* Set of all available UFO experiences relating to Reactions Dialog
|
|
@@ -358,7 +360,9 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
358
360
|
summaryGetOptimisticImageURL: summaryGetOptimisticImageURL,
|
|
359
361
|
summaryButtonIconAfter: summaryButtonIconAfter,
|
|
360
362
|
summaryViewParticleEffectEmojiId: renderParticleEffectOnSummaryView ? summaryViewParticleEffectEmojiId : null
|
|
361
|
-
})) :
|
|
363
|
+
})) : fg('jfp_a11y_team_comment_actions_semantic') ? /*#__PURE__*/React.createElement("ul", {
|
|
364
|
+
className: ax(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm _1pyaidpf _694cidpf _1l0sidpf _9g0pidpf _ahxuidpf _bapwidpf _17s9idpf _1b3sidpf"])
|
|
365
|
+
}, memorizedReactions.map(function (reaction) {
|
|
362
366
|
return /*#__PURE__*/React.createElement(Reaction, {
|
|
363
367
|
key: reaction.emojiId,
|
|
364
368
|
reaction: reaction,
|
|
@@ -374,7 +378,23 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
374
378
|
isViewOnly: isViewOnly,
|
|
375
379
|
showSubtleStyle: showSubtleDefaultReactions && reactions.length === 0
|
|
376
380
|
});
|
|
377
|
-
}))
|
|
381
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, memorizedReactions.map(function (reaction) {
|
|
382
|
+
return /*#__PURE__*/React.createElement(Reaction, {
|
|
383
|
+
key: reaction.emojiId,
|
|
384
|
+
reaction: reaction,
|
|
385
|
+
emojiProvider: emojiProvider,
|
|
386
|
+
onClick: onReactionClick,
|
|
387
|
+
onMouseEnter: handleReactionMouseEnter,
|
|
388
|
+
onFocused: handleReactionFocused,
|
|
389
|
+
flash: flash[reaction.emojiId],
|
|
390
|
+
showParticleEffect: particleEffectByEmoji[reaction.emojiId],
|
|
391
|
+
showOpaqueBackground: showOpaqueBackground,
|
|
392
|
+
allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
|
|
393
|
+
handleOpenReactionsDialog: _handleOpenReactionsDialog,
|
|
394
|
+
isViewOnly: isViewOnly,
|
|
395
|
+
showSubtleStyle: showSubtleDefaultReactions && reactions.length === 0
|
|
396
|
+
});
|
|
397
|
+
}))), isViewOnly || !onlyRenderPicker && shouldShowSummaryView && allowSelectFromSummaryView ? null : /*#__PURE__*/React.createElement(ReactionPicker, {
|
|
378
398
|
emojiProvider: emojiProvider,
|
|
379
399
|
allowAllEmojis: allowAllEmojis,
|
|
380
400
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
@@ -35,7 +35,7 @@ export declare const mapStateToPropsHelper: (containerAri: string, ari: string,
|
|
|
35
35
|
flash?: undefined;
|
|
36
36
|
particleEffectByEmoji?: undefined;
|
|
37
37
|
} | {
|
|
38
|
-
reactions: import("
|
|
38
|
+
reactions: import("../..").ReactionSummary[];
|
|
39
39
|
status: ReactionStatus.ready;
|
|
40
40
|
flash: {
|
|
41
41
|
[emojiId: string]: boolean;
|
|
@@ -35,7 +35,7 @@ export declare const mapStateToPropsHelper: (containerAri: string, ari: string,
|
|
|
35
35
|
flash?: undefined;
|
|
36
36
|
particleEffectByEmoji?: undefined;
|
|
37
37
|
} | {
|
|
38
|
-
reactions: import("
|
|
38
|
+
reactions: import("../..").ReactionSummary[];
|
|
39
39
|
status: ReactionStatus.ready;
|
|
40
40
|
flash: {
|
|
41
41
|
[emojiId: string]: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "33.8.
|
|
3
|
+
"version": "33.8.13",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@atlaskit/button": "^23.9.0",
|
|
40
40
|
"@atlaskit/css": "^0.19.0",
|
|
41
41
|
"@atlaskit/emoji": "^69.10.0",
|
|
42
|
-
"@atlaskit/heading": "^5.
|
|
43
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/heading": "^5.3.0",
|
|
43
|
+
"@atlaskit/icon": "^31.0.0",
|
|
44
44
|
"@atlaskit/link": "^3.3.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^14.10.0",
|
|
46
46
|
"@atlaskit/motion": "^5.3.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/popup": "^4.13.0",
|
|
50
50
|
"@atlaskit/portal": "^5.2.0",
|
|
51
51
|
"@atlaskit/primitives": "^18.0.0",
|
|
52
|
-
"@atlaskit/react-ufo": "^5.
|
|
52
|
+
"@atlaskit/react-ufo": "^5.2.0",
|
|
53
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
54
54
|
"@atlaskit/tabs": "^18.3.0",
|
|
55
55
|
"@atlaskit/theme": "^21.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
72
72
|
"@atlaskit/elements-test-helpers": "workspace:^",
|
|
73
73
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
74
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
74
|
+
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
75
75
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
76
76
|
"@testing-library/dom": "^10.1.0",
|
|
77
77
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -125,6 +125,9 @@
|
|
|
125
125
|
},
|
|
126
126
|
"platform-a11y-remove-autofocus-prop": {
|
|
127
127
|
"type": "boolean"
|
|
128
|
+
},
|
|
129
|
+
"jfp_a11y_team_comment_actions_semantic": {
|
|
130
|
+
"type": "boolean"
|
|
128
131
|
}
|
|
129
132
|
},
|
|
130
133
|
"sideEffects": [
|