@atlaskit/reactions 36.2.8 → 36.2.10
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 +15 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/ReactionSummaryView.js +3 -6
- package/dist/cjs/components/Selector.js +4 -6
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionSummaryView.js +3 -6
- package/dist/es2019/components/Selector.js +4 -6
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionSummaryView.js +3 -6
- package/dist/esm/components/Selector.js +4 -6
- package/package.json +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 36.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ab8b090b9c640`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab8b090b9c640) -
|
|
8
|
+
Cleanup experiment `platform_a11y_reactions_hover_selector_list`. Hoverable reaction selectors and
|
|
9
|
+
summary reactions now always render with list markup.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 36.2.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 36.2.8
|
|
4
19
|
|
|
5
20
|
### 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.2.
|
|
14
|
+
var packageVersion = "36.2.9";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -15,7 +15,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _popup = require("@atlaskit/popup/popup");
|
|
17
17
|
var _picker = require("@atlaskit/emoji/picker");
|
|
18
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
19
18
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
19
|
var _useDelayedState3 = require("../hooks/useDelayedState");
|
|
21
20
|
var _Reaction = require("./Reaction");
|
|
@@ -25,7 +24,6 @@ var _ufo = require("../ufo");
|
|
|
25
24
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
26
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
27
26
|
var styles = {
|
|
28
|
-
summaryPopup: "_ca0q1b66 _u5f3u2gc _n3tdu2gc _19bvu2gc _p12foiq5",
|
|
29
27
|
summaryList: "_ca0q1b66 _u5f3u2gc _n3tdu2gc _19bvu2gc _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _p12foiq5 _2mzuglyw"
|
|
30
28
|
};
|
|
31
29
|
|
|
@@ -189,7 +187,6 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
189
187
|
setSummaryPopupOpen(false);
|
|
190
188
|
}
|
|
191
189
|
}, [hoverableSummaryView, isSummaryViewButtonHovered, setIsHoveringSummaryView, setSummaryPopupOpen, isSummaryViewButtonClicked]);
|
|
192
|
-
var shouldRenderReactionSummaryList = (0, _isExperimentEnabled.isExperimentEnabled)('platform_a11y_reactions_hover_selector_list');
|
|
193
190
|
return /*#__PURE__*/React.createElement(_popup.Popup, {
|
|
194
191
|
placement: placement,
|
|
195
192
|
content: function content(_ref2) {
|
|
@@ -218,15 +215,15 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
218
215
|
reactionPickerTriggerText: reactionPickerTriggerText,
|
|
219
216
|
fullWidthSummaryViewReactionPickerTrigger: true
|
|
220
217
|
})), /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
221
|
-
as:
|
|
222
|
-
xcss:
|
|
218
|
+
as: "ul",
|
|
219
|
+
xcss: styles.summaryList,
|
|
223
220
|
space: "space.025",
|
|
224
221
|
shouldWrap: true,
|
|
225
222
|
alignBlock: "center"
|
|
226
223
|
}, reactions.map(function (reaction) {
|
|
227
224
|
return /*#__PURE__*/React.createElement(_Reaction.Reaction, {
|
|
228
225
|
key: reaction.emojiId,
|
|
229
|
-
rootElement:
|
|
226
|
+
rootElement: "li",
|
|
230
227
|
reaction: reaction,
|
|
231
228
|
emojiProvider: emojiProvider,
|
|
232
229
|
onClick: onReactionClick,
|
|
@@ -13,7 +13,6 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
17
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
18
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
@@ -68,7 +67,6 @@ var Selector = exports.Selector = function Selector(_ref2) {
|
|
|
68
67
|
setIsTeamojiPickerRefreshEnabled((0, _expValEquals.expValEquals)('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', true) || (0, _fg.fg)('platform_teamoji_26_refresh_emoji_picker_user_id'));
|
|
69
68
|
}, []);
|
|
70
69
|
var quickReactionEmojiIds = pickerQuickReactionEmojiIds !== null && pickerQuickReactionEmojiIds !== void 0 ? pickerQuickReactionEmojiIds : (0, _constants.getDefaultReactions)(isTeamojiPickerRefreshEnabled);
|
|
71
|
-
var shouldRenderHoverableReactionPickerSelectorList = hoverableReactionPickerSelector && (0, _isExperimentEnabled.isExperimentEnabled)('platform_a11y_reactions_hover_selector_list');
|
|
72
70
|
|
|
73
71
|
/**
|
|
74
72
|
* Render the default emoji icon
|
|
@@ -86,11 +84,11 @@ var Selector = exports.Selector = function Selector(_ref2) {
|
|
|
86
84
|
onClick: onSelection,
|
|
87
85
|
hoverableReactionPickerSelectorEmoji: hoverableReactionPickerSelector
|
|
88
86
|
}));
|
|
89
|
-
return hoverableReactionPickerSelector ?
|
|
87
|
+
return hoverableReactionPickerSelector ? /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
90
88
|
as: "li",
|
|
91
89
|
key: (_emoji$id2 = emoji.id) !== null && _emoji$id2 !== void 0 ? _emoji$id2 : emoji.shortName,
|
|
92
90
|
xcss: styles.emojiContainer
|
|
93
|
-
}, emojiButtonAndTooltip) :
|
|
91
|
+
}, emojiButtonAndTooltip) : /*#__PURE__*/React.createElement(Reveal, {
|
|
94
92
|
key: (_emoji$id3 = emoji.id) !== null && _emoji$id3 !== void 0 ? _emoji$id3 : emoji.shortName,
|
|
95
93
|
testId: RENDER_SELECTOR_TESTID
|
|
96
94
|
}, emojiButtonAndTooltip);
|
|
@@ -105,9 +103,9 @@ var Selector = exports.Selector = function Selector(_ref2) {
|
|
|
105
103
|
reactionPickerTriggerText: _i18n.messages.addNewReaction.defaultMessage,
|
|
106
104
|
fullWidthSelectorTrayReactionPickerTrigger: true
|
|
107
105
|
}), /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
108
|
-
as:
|
|
106
|
+
as: "ul",
|
|
109
107
|
alignBlock: "center",
|
|
110
|
-
xcss:
|
|
108
|
+
xcss: styles.hoverableReactionPickerSelectorList
|
|
111
109
|
}, quickReactionEmojiIds.map(renderEmoji)));
|
|
112
110
|
}
|
|
113
111
|
var isSelectorListMarkupFixEnabled = (0, _expValEquals.expValEquals)('platform_a11y_fixes_reactions_selector_list', 'isEnabled', true);
|
|
@@ -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.2.
|
|
5
|
+
const packageVersion = "36.2.9";
|
|
6
6
|
/**
|
|
7
7
|
* TODO: move to utility package?
|
|
8
8
|
* A random sampling function
|
|
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useCallback, useState } from 'react';
|
|
7
7
|
import { Popup } from '@atlaskit/popup/popup';
|
|
8
8
|
import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
9
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { useDelayedState } from '../hooks/useDelayedState';
|
|
12
11
|
import { Reaction } from './Reaction';
|
|
@@ -15,7 +14,6 @@ import { ReactionSummaryButton } from './ReactionSummaryButton';
|
|
|
15
14
|
import { PickerRender } from '../ufo';
|
|
16
15
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
17
16
|
const styles = {
|
|
18
|
-
summaryPopup: "_ca0q1b66 _u5f3u2gc _n3tdu2gc _19bvu2gc _p12foiq5",
|
|
19
17
|
summaryList: "_ca0q1b66 _u5f3u2gc _n3tdu2gc _19bvu2gc _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _p12foiq5 _2mzuglyw"
|
|
20
18
|
};
|
|
21
19
|
|
|
@@ -156,7 +154,6 @@ export const ReactionSummaryView = ({
|
|
|
156
154
|
setSummaryPopupOpen(false);
|
|
157
155
|
}
|
|
158
156
|
}, [hoverableSummaryView, isSummaryViewButtonHovered, setIsHoveringSummaryView, setSummaryPopupOpen, isSummaryViewButtonClicked]);
|
|
159
|
-
const shouldRenderReactionSummaryList = isExperimentEnabled('platform_a11y_reactions_hover_selector_list');
|
|
160
157
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
161
158
|
placement: placement,
|
|
162
159
|
content: ({
|
|
@@ -185,15 +182,15 @@ export const ReactionSummaryView = ({
|
|
|
185
182
|
reactionPickerTriggerText: reactionPickerTriggerText,
|
|
186
183
|
fullWidthSummaryViewReactionPickerTrigger: true
|
|
187
184
|
})), /*#__PURE__*/React.createElement(Inline, {
|
|
188
|
-
as:
|
|
189
|
-
xcss:
|
|
185
|
+
as: "ul",
|
|
186
|
+
xcss: styles.summaryList,
|
|
190
187
|
space: "space.025",
|
|
191
188
|
shouldWrap: true,
|
|
192
189
|
alignBlock: "center"
|
|
193
190
|
}, reactions.map(reaction => {
|
|
194
191
|
return /*#__PURE__*/React.createElement(Reaction, {
|
|
195
192
|
key: reaction.emojiId,
|
|
196
|
-
rootElement:
|
|
193
|
+
rootElement: "li",
|
|
197
194
|
reaction: reaction,
|
|
198
195
|
emojiProvider: emojiProvider,
|
|
199
196
|
onClick: onReactionClick,
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Fragment, useEffect, useState } from 'react';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -56,7 +55,6 @@ export const Selector = ({
|
|
|
56
55
|
setIsTeamojiPickerRefreshEnabled(expValEquals('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', true) || fg('platform_teamoji_26_refresh_emoji_picker_user_id'));
|
|
57
56
|
}, []);
|
|
58
57
|
const quickReactionEmojiIds = pickerQuickReactionEmojiIds !== null && pickerQuickReactionEmojiIds !== void 0 ? pickerQuickReactionEmojiIds : getDefaultReactions(isTeamojiPickerRefreshEnabled);
|
|
59
|
-
const shouldRenderHoverableReactionPickerSelectorList = hoverableReactionPickerSelector && isExperimentEnabled('platform_a11y_reactions_hover_selector_list');
|
|
60
58
|
|
|
61
59
|
/**
|
|
62
60
|
* Render the default emoji icon
|
|
@@ -74,11 +72,11 @@ export const Selector = ({
|
|
|
74
72
|
onClick: onSelection,
|
|
75
73
|
hoverableReactionPickerSelectorEmoji: hoverableReactionPickerSelector
|
|
76
74
|
}));
|
|
77
|
-
return hoverableReactionPickerSelector ?
|
|
75
|
+
return hoverableReactionPickerSelector ? /*#__PURE__*/React.createElement(Box, {
|
|
78
76
|
as: "li",
|
|
79
77
|
key: (_emoji$id2 = emoji.id) !== null && _emoji$id2 !== void 0 ? _emoji$id2 : emoji.shortName,
|
|
80
78
|
xcss: styles.emojiContainer
|
|
81
|
-
}, emojiButtonAndTooltip) :
|
|
79
|
+
}, emojiButtonAndTooltip) : /*#__PURE__*/React.createElement(Reveal, {
|
|
82
80
|
key: (_emoji$id3 = emoji.id) !== null && _emoji$id3 !== void 0 ? _emoji$id3 : emoji.shortName,
|
|
83
81
|
testId: RENDER_SELECTOR_TESTID
|
|
84
82
|
}, emojiButtonAndTooltip);
|
|
@@ -93,9 +91,9 @@ export const Selector = ({
|
|
|
93
91
|
reactionPickerTriggerText: messages.addNewReaction.defaultMessage,
|
|
94
92
|
fullWidthSelectorTrayReactionPickerTrigger: true
|
|
95
93
|
}), /*#__PURE__*/React.createElement(Inline, {
|
|
96
|
-
as:
|
|
94
|
+
as: "ul",
|
|
97
95
|
alignBlock: "center",
|
|
98
|
-
xcss:
|
|
96
|
+
xcss: styles.hoverableReactionPickerSelectorList
|
|
99
97
|
}, quickReactionEmojiIds.map(renderEmoji)));
|
|
100
98
|
}
|
|
101
99
|
const isSelectorListMarkupFixEnabled = expValEquals('platform_a11y_fixes_reactions_selector_list', 'isEnabled', true);
|
|
@@ -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.2.
|
|
8
|
+
var packageVersion = "36.2.9";
|
|
9
9
|
/**
|
|
10
10
|
* TODO: move to utility package?
|
|
11
11
|
* A random sampling function
|
|
@@ -7,7 +7,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
import { useCallback, useState } from 'react';
|
|
8
8
|
import { Popup } from '@atlaskit/popup/popup';
|
|
9
9
|
import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
10
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
11
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
11
|
import { useDelayedState } from '../hooks/useDelayedState';
|
|
13
12
|
import { Reaction } from './Reaction';
|
|
@@ -16,7 +15,6 @@ import { ReactionSummaryButton } from './ReactionSummaryButton';
|
|
|
16
15
|
import { PickerRender } from '../ufo';
|
|
17
16
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
18
17
|
var styles = {
|
|
19
|
-
summaryPopup: "_ca0q1b66 _u5f3u2gc _n3tdu2gc _19bvu2gc _p12foiq5",
|
|
20
18
|
summaryList: "_ca0q1b66 _u5f3u2gc _n3tdu2gc _19bvu2gc _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _p12foiq5 _2mzuglyw"
|
|
21
19
|
};
|
|
22
20
|
|
|
@@ -180,7 +178,6 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
180
178
|
setSummaryPopupOpen(false);
|
|
181
179
|
}
|
|
182
180
|
}, [hoverableSummaryView, isSummaryViewButtonHovered, setIsHoveringSummaryView, setSummaryPopupOpen, isSummaryViewButtonClicked]);
|
|
183
|
-
var shouldRenderReactionSummaryList = isExperimentEnabled('platform_a11y_reactions_hover_selector_list');
|
|
184
181
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
185
182
|
placement: placement,
|
|
186
183
|
content: function content(_ref2) {
|
|
@@ -209,15 +206,15 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
209
206
|
reactionPickerTriggerText: reactionPickerTriggerText,
|
|
210
207
|
fullWidthSummaryViewReactionPickerTrigger: true
|
|
211
208
|
})), /*#__PURE__*/React.createElement(Inline, {
|
|
212
|
-
as:
|
|
213
|
-
xcss:
|
|
209
|
+
as: "ul",
|
|
210
|
+
xcss: styles.summaryList,
|
|
214
211
|
space: "space.025",
|
|
215
212
|
shouldWrap: true,
|
|
216
213
|
alignBlock: "center"
|
|
217
214
|
}, reactions.map(function (reaction) {
|
|
218
215
|
return /*#__PURE__*/React.createElement(Reaction, {
|
|
219
216
|
key: reaction.emojiId,
|
|
220
|
-
rootElement:
|
|
217
|
+
rootElement: "li",
|
|
221
218
|
reaction: reaction,
|
|
222
219
|
emojiProvider: emojiProvider,
|
|
223
220
|
onClick: onReactionClick,
|
|
@@ -5,7 +5,6 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { Fragment, useEffect, useState } from 'react';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
9
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -59,7 +58,6 @@ export var Selector = function Selector(_ref2) {
|
|
|
59
58
|
setIsTeamojiPickerRefreshEnabled(expValEquals('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', true) || fg('platform_teamoji_26_refresh_emoji_picker_user_id'));
|
|
60
59
|
}, []);
|
|
61
60
|
var quickReactionEmojiIds = pickerQuickReactionEmojiIds !== null && pickerQuickReactionEmojiIds !== void 0 ? pickerQuickReactionEmojiIds : getDefaultReactions(isTeamojiPickerRefreshEnabled);
|
|
62
|
-
var shouldRenderHoverableReactionPickerSelectorList = hoverableReactionPickerSelector && isExperimentEnabled('platform_a11y_reactions_hover_selector_list');
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
63
|
* Render the default emoji icon
|
|
@@ -77,11 +75,11 @@ export var Selector = function Selector(_ref2) {
|
|
|
77
75
|
onClick: onSelection,
|
|
78
76
|
hoverableReactionPickerSelectorEmoji: hoverableReactionPickerSelector
|
|
79
77
|
}));
|
|
80
|
-
return hoverableReactionPickerSelector ?
|
|
78
|
+
return hoverableReactionPickerSelector ? /*#__PURE__*/React.createElement(Box, {
|
|
81
79
|
as: "li",
|
|
82
80
|
key: (_emoji$id2 = emoji.id) !== null && _emoji$id2 !== void 0 ? _emoji$id2 : emoji.shortName,
|
|
83
81
|
xcss: styles.emojiContainer
|
|
84
|
-
}, emojiButtonAndTooltip) :
|
|
82
|
+
}, emojiButtonAndTooltip) : /*#__PURE__*/React.createElement(Reveal, {
|
|
85
83
|
key: (_emoji$id3 = emoji.id) !== null && _emoji$id3 !== void 0 ? _emoji$id3 : emoji.shortName,
|
|
86
84
|
testId: RENDER_SELECTOR_TESTID
|
|
87
85
|
}, emojiButtonAndTooltip);
|
|
@@ -96,9 +94,9 @@ export var Selector = function Selector(_ref2) {
|
|
|
96
94
|
reactionPickerTriggerText: messages.addNewReaction.defaultMessage,
|
|
97
95
|
fullWidthSelectorTrayReactionPickerTrigger: true
|
|
98
96
|
}), /*#__PURE__*/React.createElement(Inline, {
|
|
99
|
-
as:
|
|
97
|
+
as: "ul",
|
|
100
98
|
alignBlock: "center",
|
|
101
|
-
xcss:
|
|
99
|
+
xcss: styles.hoverableReactionPickerSelectorList
|
|
102
100
|
}, quickReactionEmojiIds.map(renderEmoji)));
|
|
103
101
|
}
|
|
104
102
|
var isSelectorListMarkupFixEnabled = expValEquals('platform_a11y_fixes_reactions_selector_list', 'isEnabled', true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "36.2.
|
|
3
|
+
"version": "36.2.10",
|
|
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": "^179.0.0",
|
|
59
59
|
"@atlaskit/tokens": "^16.11.0",
|
|
60
60
|
"@atlaskit/tooltip": "^24.3.0",
|
|
61
61
|
"@atlaskit/ufo": "^1.2.0",
|
|
@@ -141,12 +141,6 @@
|
|
|
141
141
|
"type": "boolean"
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
"platform-experiments": {
|
|
145
|
-
"platform_a11y_reactions_hover_selector_list": {
|
|
146
|
-
"param": "isEnabled",
|
|
147
|
-
"defaultValue": false
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
144
|
"sideEffects": [
|
|
151
145
|
"*.compiled.css"
|
|
152
146
|
]
|