@atlaskit/reactions 35.11.6 → 35.11.7
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 +9 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Selector.compiled.css +3 -0
- package/dist/cjs/components/Selector.js +12 -4
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Selector.compiled.css +3 -0
- package/dist/es2019/components/Selector.js +12 -4
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Selector.compiled.css +3 -0
- package/dist/esm/components/Selector.js +12 -4
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 35.11.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bc98a973e0455`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc98a973e0455) -
|
|
8
|
+
[ux] A11Y-31804: Add semantic list markup to the hoverable reaction selector gated by experiment
|
|
9
|
+
`platform_a11y_reactions_hover_selector_list`
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 35.11.6
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -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 = "35.11.
|
|
14
|
+
var packageVersion = "35.11.6";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
._zulp1b66{gap:var(--ds-space-050,4px)}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
|
|
2
|
+
._18u0ze3t{margin-left:var(--ds-space-0,0)}
|
|
2
3
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
4
|
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
4
5
|
._1e0c1o8l{display:inline-block}
|
|
5
6
|
._1o51q7pw{animation-fill-mode:forwards}
|
|
6
7
|
._1p3lnqa1{border-left-style:solid}
|
|
7
8
|
._1pgl1ytf{animation-timing-function:ease-in-out}
|
|
9
|
+
._2hwxze3t{margin-right:var(--ds-space-0,0)}
|
|
8
10
|
._2mzuglyw{list-style-type:none}
|
|
9
11
|
._4t3i1tcg{height:24px}
|
|
10
12
|
._5sag6ebc{animation-duration:.15s}
|
|
@@ -13,6 +15,7 @@
|
|
|
13
15
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
14
16
|
._j7hqordv{animation-name:k12q5x3s}
|
|
15
17
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
18
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
16
19
|
._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
|
|
17
20
|
._tzy4idpf{opacity:0}
|
|
18
21
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
@@ -13,6 +13,7 @@ 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");
|
|
16
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
18
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
18
19
|
var _i18n = require("../shared/i18n");
|
|
@@ -25,7 +26,8 @@ var styles = {
|
|
|
25
26
|
container: "_ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
26
27
|
emojiContainer: "_2mzuglyw _19pkze3t",
|
|
27
28
|
separator: "_t6vde4h9 _5wra1l7x _1p3lnqa1 _ahbq1b66 _12l2u2gc _4t3i1tcg _1e0c1o8l",
|
|
28
|
-
hoverableReactionPickerSelectorContainer: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"
|
|
29
|
+
hoverableReactionPickerSelectorContainer: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
30
|
+
hoverableReactionPickerSelectorList: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _2mzuglyw"
|
|
29
31
|
};
|
|
30
32
|
var revealAnimation = null;
|
|
31
33
|
var revealStyle = null;
|
|
@@ -65,6 +67,7 @@ var Selector = exports.Selector = function Selector(_ref2) {
|
|
|
65
67
|
setIsTeamojiPickerRefreshEnabled((0, _expValEquals.expValEquals)('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', true));
|
|
66
68
|
}, []);
|
|
67
69
|
var quickReactionEmojiIds = pickerQuickReactionEmojiIds !== null && pickerQuickReactionEmojiIds !== void 0 ? pickerQuickReactionEmojiIds : (0, _constants.getDefaultReactions)(isTeamojiPickerRefreshEnabled);
|
|
70
|
+
var shouldRenderHoverableReactionPickerSelectorList = hoverableReactionPickerSelector && (0, _isExperimentEnabled.isExperimentEnabled)('platform_a11y_reactions_hover_selector_list');
|
|
68
71
|
|
|
69
72
|
/**
|
|
70
73
|
* Render the default emoji icon
|
|
@@ -72,7 +75,7 @@ var Selector = exports.Selector = function Selector(_ref2) {
|
|
|
72
75
|
* @param index location of the emoji in the array
|
|
73
76
|
*/
|
|
74
77
|
var renderEmoji = function renderEmoji(emoji, index) {
|
|
75
|
-
var _emoji$id, _emoji$id2;
|
|
78
|
+
var _emoji$id, _emoji$id2, _emoji$id3;
|
|
76
79
|
var emojiButtonAndTooltip = /*#__PURE__*/React.createElement(_tooltip.default, {
|
|
77
80
|
key: (_emoji$id = emoji.id) !== null && _emoji$id !== void 0 ? _emoji$id : emoji.shortName,
|
|
78
81
|
content: emoji.shortName
|
|
@@ -82,8 +85,12 @@ var Selector = exports.Selector = function Selector(_ref2) {
|
|
|
82
85
|
onClick: onSelection,
|
|
83
86
|
hoverableReactionPickerSelectorEmoji: hoverableReactionPickerSelector
|
|
84
87
|
}));
|
|
85
|
-
return hoverableReactionPickerSelector ?
|
|
88
|
+
return hoverableReactionPickerSelector ? shouldRenderHoverableReactionPickerSelectorList ? /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
89
|
+
as: "li",
|
|
86
90
|
key: (_emoji$id2 = emoji.id) !== null && _emoji$id2 !== void 0 ? _emoji$id2 : emoji.shortName,
|
|
91
|
+
xcss: styles.emojiContainer
|
|
92
|
+
}, emojiButtonAndTooltip) : emojiButtonAndTooltip : /*#__PURE__*/React.createElement(Reveal, {
|
|
93
|
+
key: (_emoji$id3 = emoji.id) !== null && _emoji$id3 !== void 0 ? _emoji$id3 : emoji.shortName,
|
|
87
94
|
testId: RENDER_SELECTOR_TESTID
|
|
88
95
|
}, emojiButtonAndTooltip);
|
|
89
96
|
};
|
|
@@ -97,8 +104,9 @@ var Selector = exports.Selector = function Selector(_ref2) {
|
|
|
97
104
|
reactionPickerTriggerText: _i18n.messages.addNewReaction.defaultMessage,
|
|
98
105
|
fullWidthSelectorTrayReactionPickerTrigger: true
|
|
99
106
|
}), /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
107
|
+
as: shouldRenderHoverableReactionPickerSelectorList ? 'ul' : undefined,
|
|
100
108
|
alignBlock: "center",
|
|
101
|
-
xcss:
|
|
109
|
+
xcss: shouldRenderHoverableReactionPickerSelectorList ? styles.hoverableReactionPickerSelectorList : styles.hoverableReactionPickerSelectorContainer
|
|
102
110
|
}, quickReactionEmojiIds.map(renderEmoji)));
|
|
103
111
|
}
|
|
104
112
|
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';
|
|
3
3
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
4
4
|
const packageName = "@atlaskit/reactions";
|
|
5
|
-
const packageVersion = "35.11.
|
|
5
|
+
const packageVersion = "35.11.6";
|
|
6
6
|
/**
|
|
7
7
|
* TODO: move to utility package?
|
|
8
8
|
* A random sampling function
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
._zulp1b66{gap:var(--ds-space-050,4px)}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
|
|
2
|
+
._18u0ze3t{margin-left:var(--ds-space-0,0)}
|
|
2
3
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
4
|
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
4
5
|
._1e0c1o8l{display:inline-block}
|
|
5
6
|
._1o51q7pw{animation-fill-mode:forwards}
|
|
6
7
|
._1p3lnqa1{border-left-style:solid}
|
|
7
8
|
._1pgl1ytf{animation-timing-function:ease-in-out}
|
|
9
|
+
._2hwxze3t{margin-right:var(--ds-space-0,0)}
|
|
8
10
|
._2mzuglyw{list-style-type:none}
|
|
9
11
|
._4t3i1tcg{height:24px}
|
|
10
12
|
._5sag6ebc{animation-duration:.15s}
|
|
@@ -13,6 +15,7 @@
|
|
|
13
15
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
14
16
|
._j7hqordv{animation-name:k12q5x3s}
|
|
15
17
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
18
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
16
19
|
._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
|
|
17
20
|
._tzy4idpf{opacity:0}
|
|
18
21
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
@@ -4,6 +4,7 @@ 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';
|
|
7
8
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
8
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
10
|
import { messages } from '../shared/i18n';
|
|
@@ -15,7 +16,8 @@ const styles = {
|
|
|
15
16
|
container: "_ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
16
17
|
emojiContainer: "_2mzuglyw _19pkze3t",
|
|
17
18
|
separator: "_t6vde4h9 _5wra1l7x _1p3lnqa1 _ahbq1b66 _12l2u2gc _4t3i1tcg _1e0c1o8l",
|
|
18
|
-
hoverableReactionPickerSelectorContainer: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"
|
|
19
|
+
hoverableReactionPickerSelectorContainer: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
20
|
+
hoverableReactionPickerSelectorList: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _2mzuglyw"
|
|
19
21
|
};
|
|
20
22
|
const revealAnimation = null;
|
|
21
23
|
const revealStyle = null;
|
|
@@ -53,6 +55,7 @@ export const Selector = ({
|
|
|
53
55
|
setIsTeamojiPickerRefreshEnabled(expValEquals('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', true));
|
|
54
56
|
}, []);
|
|
55
57
|
const quickReactionEmojiIds = pickerQuickReactionEmojiIds !== null && pickerQuickReactionEmojiIds !== void 0 ? pickerQuickReactionEmojiIds : getDefaultReactions(isTeamojiPickerRefreshEnabled);
|
|
58
|
+
const shouldRenderHoverableReactionPickerSelectorList = hoverableReactionPickerSelector && isExperimentEnabled('platform_a11y_reactions_hover_selector_list');
|
|
56
59
|
|
|
57
60
|
/**
|
|
58
61
|
* Render the default emoji icon
|
|
@@ -60,7 +63,7 @@ export const Selector = ({
|
|
|
60
63
|
* @param index location of the emoji in the array
|
|
61
64
|
*/
|
|
62
65
|
const renderEmoji = (emoji, index) => {
|
|
63
|
-
var _emoji$id, _emoji$id2;
|
|
66
|
+
var _emoji$id, _emoji$id2, _emoji$id3;
|
|
64
67
|
const emojiButtonAndTooltip = /*#__PURE__*/React.createElement(Tooltip, {
|
|
65
68
|
key: (_emoji$id = emoji.id) !== null && _emoji$id !== void 0 ? _emoji$id : emoji.shortName,
|
|
66
69
|
content: emoji.shortName
|
|
@@ -70,8 +73,12 @@ export const Selector = ({
|
|
|
70
73
|
onClick: onSelection,
|
|
71
74
|
hoverableReactionPickerSelectorEmoji: hoverableReactionPickerSelector
|
|
72
75
|
}));
|
|
73
|
-
return hoverableReactionPickerSelector ?
|
|
76
|
+
return hoverableReactionPickerSelector ? shouldRenderHoverableReactionPickerSelectorList ? /*#__PURE__*/React.createElement(Box, {
|
|
77
|
+
as: "li",
|
|
74
78
|
key: (_emoji$id2 = emoji.id) !== null && _emoji$id2 !== void 0 ? _emoji$id2 : emoji.shortName,
|
|
79
|
+
xcss: styles.emojiContainer
|
|
80
|
+
}, emojiButtonAndTooltip) : emojiButtonAndTooltip : /*#__PURE__*/React.createElement(Reveal, {
|
|
81
|
+
key: (_emoji$id3 = emoji.id) !== null && _emoji$id3 !== void 0 ? _emoji$id3 : emoji.shortName,
|
|
75
82
|
testId: RENDER_SELECTOR_TESTID
|
|
76
83
|
}, emojiButtonAndTooltip);
|
|
77
84
|
};
|
|
@@ -85,8 +92,9 @@ export const Selector = ({
|
|
|
85
92
|
reactionPickerTriggerText: messages.addNewReaction.defaultMessage,
|
|
86
93
|
fullWidthSelectorTrayReactionPickerTrigger: true
|
|
87
94
|
}), /*#__PURE__*/React.createElement(Inline, {
|
|
95
|
+
as: shouldRenderHoverableReactionPickerSelectorList ? 'ul' : undefined,
|
|
88
96
|
alignBlock: "center",
|
|
89
|
-
xcss:
|
|
97
|
+
xcss: shouldRenderHoverableReactionPickerSelectorList ? styles.hoverableReactionPickerSelectorList : styles.hoverableReactionPickerSelectorContainer
|
|
90
98
|
}, quickReactionEmojiIds.map(renderEmoji)));
|
|
91
99
|
}
|
|
92
100
|
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';
|
|
6
6
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
7
7
|
var packageName = "@atlaskit/reactions";
|
|
8
|
-
var packageVersion = "35.11.
|
|
8
|
+
var packageVersion = "35.11.6";
|
|
9
9
|
/**
|
|
10
10
|
* TODO: move to utility package?
|
|
11
11
|
* A random sampling function
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
._zulp1b66{gap:var(--ds-space-050,4px)}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
|
|
2
|
+
._18u0ze3t{margin-left:var(--ds-space-0,0)}
|
|
2
3
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
4
|
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
4
5
|
._1e0c1o8l{display:inline-block}
|
|
5
6
|
._1o51q7pw{animation-fill-mode:forwards}
|
|
6
7
|
._1p3lnqa1{border-left-style:solid}
|
|
7
8
|
._1pgl1ytf{animation-timing-function:ease-in-out}
|
|
9
|
+
._2hwxze3t{margin-right:var(--ds-space-0,0)}
|
|
8
10
|
._2mzuglyw{list-style-type:none}
|
|
9
11
|
._4t3i1tcg{height:24px}
|
|
10
12
|
._5sag6ebc{animation-duration:.15s}
|
|
@@ -13,6 +15,7 @@
|
|
|
13
15
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
14
16
|
._j7hqordv{animation-name:k12q5x3s}
|
|
15
17
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
18
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
16
19
|
._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
|
|
17
20
|
._tzy4idpf{opacity:0}
|
|
18
21
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
9
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
11
|
import { messages } from '../shared/i18n';
|
|
@@ -16,7 +17,8 @@ var styles = {
|
|
|
16
17
|
container: "_ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
17
18
|
emojiContainer: "_2mzuglyw _19pkze3t",
|
|
18
19
|
separator: "_t6vde4h9 _5wra1l7x _1p3lnqa1 _ahbq1b66 _12l2u2gc _4t3i1tcg _1e0c1o8l",
|
|
19
|
-
hoverableReactionPickerSelectorContainer: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"
|
|
20
|
+
hoverableReactionPickerSelectorContainer: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
21
|
+
hoverableReactionPickerSelectorList: "_zulp1b66 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _2mzuglyw"
|
|
20
22
|
};
|
|
21
23
|
var revealAnimation = null;
|
|
22
24
|
var revealStyle = null;
|
|
@@ -56,6 +58,7 @@ export var Selector = function Selector(_ref2) {
|
|
|
56
58
|
setIsTeamojiPickerRefreshEnabled(expValEquals('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', true));
|
|
57
59
|
}, []);
|
|
58
60
|
var quickReactionEmojiIds = pickerQuickReactionEmojiIds !== null && pickerQuickReactionEmojiIds !== void 0 ? pickerQuickReactionEmojiIds : getDefaultReactions(isTeamojiPickerRefreshEnabled);
|
|
61
|
+
var shouldRenderHoverableReactionPickerSelectorList = hoverableReactionPickerSelector && isExperimentEnabled('platform_a11y_reactions_hover_selector_list');
|
|
59
62
|
|
|
60
63
|
/**
|
|
61
64
|
* Render the default emoji icon
|
|
@@ -63,7 +66,7 @@ export var Selector = function Selector(_ref2) {
|
|
|
63
66
|
* @param index location of the emoji in the array
|
|
64
67
|
*/
|
|
65
68
|
var renderEmoji = function renderEmoji(emoji, index) {
|
|
66
|
-
var _emoji$id, _emoji$id2;
|
|
69
|
+
var _emoji$id, _emoji$id2, _emoji$id3;
|
|
67
70
|
var emojiButtonAndTooltip = /*#__PURE__*/React.createElement(Tooltip, {
|
|
68
71
|
key: (_emoji$id = emoji.id) !== null && _emoji$id !== void 0 ? _emoji$id : emoji.shortName,
|
|
69
72
|
content: emoji.shortName
|
|
@@ -73,8 +76,12 @@ export var Selector = function Selector(_ref2) {
|
|
|
73
76
|
onClick: onSelection,
|
|
74
77
|
hoverableReactionPickerSelectorEmoji: hoverableReactionPickerSelector
|
|
75
78
|
}));
|
|
76
|
-
return hoverableReactionPickerSelector ?
|
|
79
|
+
return hoverableReactionPickerSelector ? shouldRenderHoverableReactionPickerSelectorList ? /*#__PURE__*/React.createElement(Box, {
|
|
80
|
+
as: "li",
|
|
77
81
|
key: (_emoji$id2 = emoji.id) !== null && _emoji$id2 !== void 0 ? _emoji$id2 : emoji.shortName,
|
|
82
|
+
xcss: styles.emojiContainer
|
|
83
|
+
}, emojiButtonAndTooltip) : emojiButtonAndTooltip : /*#__PURE__*/React.createElement(Reveal, {
|
|
84
|
+
key: (_emoji$id3 = emoji.id) !== null && _emoji$id3 !== void 0 ? _emoji$id3 : emoji.shortName,
|
|
78
85
|
testId: RENDER_SELECTOR_TESTID
|
|
79
86
|
}, emojiButtonAndTooltip);
|
|
80
87
|
};
|
|
@@ -88,8 +95,9 @@ export var Selector = function Selector(_ref2) {
|
|
|
88
95
|
reactionPickerTriggerText: messages.addNewReaction.defaultMessage,
|
|
89
96
|
fullWidthSelectorTrayReactionPickerTrigger: true
|
|
90
97
|
}), /*#__PURE__*/React.createElement(Inline, {
|
|
98
|
+
as: shouldRenderHoverableReactionPickerSelectorList ? 'ul' : undefined,
|
|
91
99
|
alignBlock: "center",
|
|
92
|
-
xcss:
|
|
100
|
+
xcss: shouldRenderHoverableReactionPickerSelectorList ? styles.hoverableReactionPickerSelectorList : styles.hoverableReactionPickerSelectorContainer
|
|
93
101
|
}, quickReactionEmojiIds.map(renderEmoji)));
|
|
94
102
|
}
|
|
95
103
|
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": "35.11.
|
|
3
|
+
"version": "35.11.7",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,9 +44,10 @@
|
|
|
44
44
|
"@atlaskit/link": "^5.0.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^16.2.0",
|
|
46
46
|
"@atlaskit/motion": "^8.0.0",
|
|
47
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
47
48
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
48
|
-
"@atlaskit/popper": "^
|
|
49
|
-
"@atlaskit/popup": "^
|
|
49
|
+
"@atlaskit/popper": "^9.0.0",
|
|
50
|
+
"@atlaskit/popup": "^6.0.0",
|
|
50
51
|
"@atlaskit/portal": "^6.1.0",
|
|
51
52
|
"@atlaskit/primitives": "^22.2.0",
|
|
52
53
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"@atlaskit/spinner": "^20.1.0",
|
|
55
56
|
"@atlaskit/tabs": "^20.1.0",
|
|
56
57
|
"@atlaskit/theme": "^26.1.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^139.0.0",
|
|
58
59
|
"@atlaskit/tokens": "^16.3.0",
|
|
59
60
|
"@atlaskit/tooltip": "^24.0.0",
|
|
60
61
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
74
75
|
"@atlaskit/util-data-test": "^19.1.0",
|
|
75
76
|
"@atlassian/a11y-jest-testing": "^0.14.0",
|
|
77
|
+
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
76
78
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
77
79
|
"@testing-library/dom": "^10.1.0",
|
|
78
80
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -141,6 +143,12 @@
|
|
|
141
143
|
"type": "boolean"
|
|
142
144
|
}
|
|
143
145
|
},
|
|
146
|
+
"platform-experiments": {
|
|
147
|
+
"platform_a11y_reactions_hover_selector_list": {
|
|
148
|
+
"param": "isEnabled",
|
|
149
|
+
"defaultValue": false
|
|
150
|
+
}
|
|
151
|
+
},
|
|
144
152
|
"sideEffects": [
|
|
145
153
|
"*.compiled.css"
|
|
146
154
|
]
|