@atlaskit/emoji 71.11.0 → 71.11.2
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 +21 -0
- package/dist/cjs/components/picker/EmojiPickerCategoryHeading.js +7 -2
- package/dist/cjs/components/picker/EmojiPickerEmojiRow.js +8 -1
- package/dist/cjs/components/picker/VirtualList.js +13 -4
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerCategoryHeading.js +7 -2
- package/dist/es2019/components/picker/EmojiPickerEmojiRow.js +8 -1
- package/dist/es2019/components/picker/VirtualList.js +13 -4
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/picker/EmojiPickerCategoryHeading.js +7 -2
- package/dist/esm/components/picker/EmojiPickerEmojiRow.js +8 -1
- package/dist/esm/components/picker/VirtualList.js +13 -4
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 71.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 71.11.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`79c6e92d799d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79c6e92d799d3) -
|
|
14
|
+
[ux] A11Y-31084: Expose the emoji picker grid as an accessible list
|
|
15
|
+
|
|
16
|
+
Behind the `platform_a11y_fixes_emoji_picker_list` experiment, the emoji picker's scrollable grid
|
|
17
|
+
is exposed to assistive technology as a single list: the scroll container becomes `role="list"`
|
|
18
|
+
and each emoji is a `role="listitem"` (`<li>`), so screen readers announce the list and its items
|
|
19
|
+
instead of a grid. The virtualizer is left intact. Also registers the experiment in the editor
|
|
20
|
+
experiments config so it can be resolved via `expValEqualsNoExposure`.
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 71.11.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -11,6 +11,7 @@ require("./EmojiPickerCategoryHeading.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
14
15
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
16
|
var _reactIntl = require("react-intl");
|
|
16
17
|
var _typeHelpers = require("../../util/type-helpers");
|
|
@@ -32,8 +33,12 @@ var EmojiPickerCategoryHeading = function EmojiPickerCategoryHeading(_ref) {
|
|
|
32
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
34
|
,
|
|
34
35
|
className: className,
|
|
35
|
-
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID
|
|
36
|
-
|
|
36
|
+
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID
|
|
37
|
+
// A11Y-31084: With the list-markup experiment (or the existing reaction-emoji
|
|
38
|
+
// flag) the picker no longer uses grid semantics, so the category heading
|
|
39
|
+
// must not be a "rowheader" (which requires a row parent).
|
|
40
|
+
,
|
|
41
|
+
role: (0, _platformFeatureFlags.fg)('platform_a11y_fixes_reaction_emoji') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true) ? 'presentation' : 'rowheader'
|
|
37
42
|
}, (0, _platformFeatureFlags.fg)('platform_emoji_a11y_category_heading') ? /*#__PURE__*/React.createElement("div", {
|
|
38
43
|
className: (0, _runtime.ax)(["_11c8fhey _19pkidpf _2hwxidpf _otyridpf _18u0idpf _vchhusvi _syazi7uo _ca0q12x7 _n3td12x7 _19bvu2gc _u5f3u2gc _1p1d1qyh _299mangw"])
|
|
39
44
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
@@ -49,7 +49,14 @@ var EmojiPickerEmojiRow = function EmojiPickerEmojiRow(_ref) {
|
|
|
49
49
|
onFocus && onFocus(emojiId, emoji, event);
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
// A11Y-31084: When the emoji picker list experiment is enabled, each row of
|
|
53
|
+
// emojis is exposed as an unordered list (<ul role="list">) with every emoji
|
|
54
|
+
// as a <li role="listitem">, so screen readers announce the list and its
|
|
55
|
+
// items. Each virtualized row is its own list (valid list/listitem ownership,
|
|
56
|
+
// virtualization-safe). This is gated separately from the existing
|
|
57
|
+
// platform_a11y_fixes_reaction_emoji flag.
|
|
58
|
+
var isEmojiPickerListEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true);
|
|
59
|
+
if (isEmojiPickerListEnabled || (0, _platformFeatureFlags.fg)('platform_a11y_fixes_reaction_emoji')) {
|
|
53
60
|
return /*#__PURE__*/React.createElement("ul", {
|
|
54
61
|
role: "list",
|
|
55
62
|
className: (0, _runtime.ax)(["_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19pkidpf _2hwxidpf _otyridpf _18u0idpf _18u0u2gc"])
|
|
@@ -14,6 +14,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _reactVirtual = require("@tanstack/react-virtual");
|
|
16
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
17
18
|
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
18
19
|
var _useEmojiPickerListContext = require("../../hooks/useEmojiPickerListContext");
|
|
19
20
|
var _constants = require("../../util/constants");
|
|
@@ -44,6 +45,14 @@ var VirtualList = exports.VirtualList = /*#__PURE__*/_react.default.forwardRef(f
|
|
|
44
45
|
var _useEmojiPickerListCo = (0, _useEmojiPickerListContext.useEmojiPickerListContext)(),
|
|
45
46
|
currentEmojisFocus = _useEmojiPickerListCo.currentEmojisFocus,
|
|
46
47
|
setEmojisFocus = _useEmojiPickerListCo.setEmojisFocus;
|
|
48
|
+
|
|
49
|
+
// A11Y-31084: When the emoji picker list experiment is enabled, each row is
|
|
50
|
+
// rendered as its own <ul role="list"> (see EmojiPickerEmojiRow). For that
|
|
51
|
+
// list markup to be valid, the surrounding grid semantics must be dropped:
|
|
52
|
+
// the scroll container becomes an application container and each row wrapper
|
|
53
|
+
// becomes presentational, matching the existing a11y reaction-emoji flag.
|
|
54
|
+
var isEmojiPickerListEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true);
|
|
55
|
+
var useListSemantics = isEmojiPickerListEnabled || (0, _platformFeatureFlags.fg)('platform_a11y_fixes_reaction_emoji');
|
|
47
56
|
var getVirtualizerOptions = function getVirtualizerOptions() {
|
|
48
57
|
var rowCount = props.rowCount,
|
|
49
58
|
rowHeight = props.rowHeight,
|
|
@@ -284,8 +293,8 @@ var VirtualList = exports.VirtualList = /*#__PURE__*/_react.default.forwardRef(f
|
|
|
284
293
|
},
|
|
285
294
|
"data-testid": virtualListScrollContainerTestId,
|
|
286
295
|
"aria-labelledby": "emoji-picker-table-description",
|
|
287
|
-
role: (0, _platformFeatureFlags.fg)('platform_emoji_grid_presentation') ? 'presentation' : 'grid',
|
|
288
|
-
tabIndex:
|
|
296
|
+
role: useListSemantics ? 'application' : (0, _platformFeatureFlags.fg)('platform_emoji_grid_presentation') ? 'presentation' : 'grid',
|
|
297
|
+
tabIndex: useListSemantics ? -1 : undefined,
|
|
289
298
|
className: (0, _runtime.ax)(["_1reo15vq _18m91wug _n3tdu2gc _nt751r31 _49pcglyw _1hvw1o36"])
|
|
290
299
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
291
300
|
style: {
|
|
@@ -305,8 +314,8 @@ var VirtualList = exports.VirtualList = /*#__PURE__*/_react.default.forwardRef(f
|
|
|
305
314
|
height: "".concat(virtualRow.size, "px"),
|
|
306
315
|
transform: "translateY(".concat(virtualRow.start, "px)")
|
|
307
316
|
},
|
|
308
|
-
role:
|
|
309
|
-
},
|
|
317
|
+
role: useListSemantics ? 'presentation' : 'row'
|
|
318
|
+
}, useListSemantics ? {} : {
|
|
310
319
|
'aria-rowindex': index + 1
|
|
311
320
|
}, {
|
|
312
321
|
className: (0, _runtime.ax)(["_kqswstnw _154iidpf _1ltvidpf _1bsb1osq"])
|
|
@@ -20,7 +20,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
20
20
|
actionSubjectId: actionSubjectId,
|
|
21
21
|
attributes: _objectSpread({
|
|
22
22
|
packageName: "@atlaskit/emoji",
|
|
23
|
-
packageVersion: "71.
|
|
23
|
+
packageVersion: "71.11.1"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -3,6 +3,7 @@ import "./EmojiPickerCategoryHeading.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
7
|
import Heading from '@atlaskit/heading';
|
|
7
8
|
import { FormattedMessage } from 'react-intl';
|
|
8
9
|
import { isMessagesKey } from '../../util/type-helpers';
|
|
@@ -23,8 +24,12 @@ const EmojiPickerCategoryHeading = ({
|
|
|
23
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
25
|
,
|
|
25
26
|
className: className,
|
|
26
|
-
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID
|
|
27
|
-
|
|
27
|
+
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID
|
|
28
|
+
// A11Y-31084: With the list-markup experiment (or the existing reaction-emoji
|
|
29
|
+
// flag) the picker no longer uses grid semantics, so the category heading
|
|
30
|
+
// must not be a "rowheader" (which requires a row parent).
|
|
31
|
+
,
|
|
32
|
+
role: fg('platform_a11y_fixes_reaction_emoji') || expValEqualsNoExposure('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true) ? 'presentation' : 'rowheader'
|
|
28
33
|
}, fg('platform_emoji_a11y_category_heading') ? /*#__PURE__*/React.createElement("div", {
|
|
29
34
|
className: ax(["_11c8fhey _19pkidpf _2hwxidpf _otyridpf _18u0idpf _vchhusvi _syazi7uo _ca0q12x7 _n3td12x7 _19bvu2gc _u5f3u2gc _1p1d1qyh _299mangw"])
|
|
30
35
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
@@ -41,7 +41,14 @@ const EmojiPickerEmojiRow = ({
|
|
|
41
41
|
});
|
|
42
42
|
onFocus && onFocus(emojiId, emoji, event);
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
// A11Y-31084: When the emoji picker list experiment is enabled, each row of
|
|
45
|
+
// emojis is exposed as an unordered list (<ul role="list">) with every emoji
|
|
46
|
+
// as a <li role="listitem">, so screen readers announce the list and its
|
|
47
|
+
// items. Each virtualized row is its own list (valid list/listitem ownership,
|
|
48
|
+
// virtualization-safe). This is gated separately from the existing
|
|
49
|
+
// platform_a11y_fixes_reaction_emoji flag.
|
|
50
|
+
const isEmojiPickerListEnabled = expValEqualsNoExposure('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true);
|
|
51
|
+
if (isEmojiPickerListEnabled || fg('platform_a11y_fixes_reaction_emoji')) {
|
|
45
52
|
return /*#__PURE__*/React.createElement("ul", {
|
|
46
53
|
role: "list",
|
|
47
54
|
className: ax(["_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19pkidpf _2hwxidpf _otyridpf _18u0idpf _18u0u2gc"])
|
|
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React, { useCallback, useImperativeHandle } from 'react';
|
|
6
6
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
8
9
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
9
10
|
import { useEmojiPickerListContext } from '../../hooks/useEmojiPickerListContext';
|
|
10
11
|
import { EMOJIPICKERLIST_KEYBOARD_KEYS_SUPPORTED, EMOJI_LIST_COLUMNS, EMOJI_LIST_PAGE_COUNT, KeyboardNavigationDirection, KeyboardKeys } from '../../util/constants';
|
|
@@ -35,6 +36,14 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
35
36
|
currentEmojisFocus,
|
|
36
37
|
setEmojisFocus
|
|
37
38
|
} = useEmojiPickerListContext();
|
|
39
|
+
|
|
40
|
+
// A11Y-31084: When the emoji picker list experiment is enabled, each row is
|
|
41
|
+
// rendered as its own <ul role="list"> (see EmojiPickerEmojiRow). For that
|
|
42
|
+
// list markup to be valid, the surrounding grid semantics must be dropped:
|
|
43
|
+
// the scroll container becomes an application container and each row wrapper
|
|
44
|
+
// becomes presentational, matching the existing a11y reaction-emoji flag.
|
|
45
|
+
const isEmojiPickerListEnabled = expValEqualsNoExposure('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true);
|
|
46
|
+
const useListSemantics = isEmojiPickerListEnabled || fg('platform_a11y_fixes_reaction_emoji');
|
|
38
47
|
const getVirtualizerOptions = () => {
|
|
39
48
|
const {
|
|
40
49
|
rowCount,
|
|
@@ -272,8 +281,8 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
272
281
|
},
|
|
273
282
|
"data-testid": virtualListScrollContainerTestId,
|
|
274
283
|
"aria-labelledby": "emoji-picker-table-description",
|
|
275
|
-
role: fg('platform_emoji_grid_presentation') ? 'presentation' : 'grid',
|
|
276
|
-
tabIndex:
|
|
284
|
+
role: useListSemantics ? 'application' : fg('platform_emoji_grid_presentation') ? 'presentation' : 'grid',
|
|
285
|
+
tabIndex: useListSemantics ? -1 : undefined,
|
|
277
286
|
className: ax(["_1reo15vq _18m91wug _n3tdu2gc _nt751r31 _49pcglyw _1hvw1o36"])
|
|
278
287
|
}, /*#__PURE__*/React.createElement("div", {
|
|
279
288
|
style: {
|
|
@@ -292,8 +301,8 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
292
301
|
height: `${virtualRow.size}px`,
|
|
293
302
|
transform: `translateY(${virtualRow.start}px)`
|
|
294
303
|
},
|
|
295
|
-
role:
|
|
296
|
-
},
|
|
304
|
+
role: useListSemantics ? 'presentation' : 'row'
|
|
305
|
+
}, useListSemantics ? {} : {
|
|
297
306
|
'aria-rowindex': index + 1
|
|
298
307
|
}, {
|
|
299
308
|
className: ax(["_kqswstnw _154iidpf _1ltvidpf _1bsb1osq"])
|
|
@@ -3,6 +3,7 @@ import "./EmojiPickerCategoryHeading.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
7
|
import Heading from '@atlaskit/heading';
|
|
7
8
|
import { FormattedMessage } from 'react-intl';
|
|
8
9
|
import { isMessagesKey } from '../../util/type-helpers';
|
|
@@ -23,8 +24,12 @@ var EmojiPickerCategoryHeading = function EmojiPickerCategoryHeading(_ref) {
|
|
|
23
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
25
|
,
|
|
25
26
|
className: className,
|
|
26
|
-
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID
|
|
27
|
-
|
|
27
|
+
"data-testid": RENDER_EMOJI_PICKER_CATEGORY_HEADING_TESTID
|
|
28
|
+
// A11Y-31084: With the list-markup experiment (or the existing reaction-emoji
|
|
29
|
+
// flag) the picker no longer uses grid semantics, so the category heading
|
|
30
|
+
// must not be a "rowheader" (which requires a row parent).
|
|
31
|
+
,
|
|
32
|
+
role: fg('platform_a11y_fixes_reaction_emoji') || expValEqualsNoExposure('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true) ? 'presentation' : 'rowheader'
|
|
28
33
|
}, fg('platform_emoji_a11y_category_heading') ? /*#__PURE__*/React.createElement("div", {
|
|
29
34
|
className: ax(["_11c8fhey _19pkidpf _2hwxidpf _otyridpf _18u0idpf _vchhusvi _syazi7uo _ca0q12x7 _n3td12x7 _19bvu2gc _u5f3u2gc _1p1d1qyh _299mangw"])
|
|
30
35
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
@@ -40,7 +40,14 @@ var EmojiPickerEmojiRow = function EmojiPickerEmojiRow(_ref) {
|
|
|
40
40
|
onFocus && onFocus(emojiId, emoji, event);
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
// A11Y-31084: When the emoji picker list experiment is enabled, each row of
|
|
44
|
+
// emojis is exposed as an unordered list (<ul role="list">) with every emoji
|
|
45
|
+
// as a <li role="listitem">, so screen readers announce the list and its
|
|
46
|
+
// items. Each virtualized row is its own list (valid list/listitem ownership,
|
|
47
|
+
// virtualization-safe). This is gated separately from the existing
|
|
48
|
+
// platform_a11y_fixes_reaction_emoji flag.
|
|
49
|
+
var isEmojiPickerListEnabled = expValEqualsNoExposure('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true);
|
|
50
|
+
if (isEmojiPickerListEnabled || fg('platform_a11y_fixes_reaction_emoji')) {
|
|
44
51
|
return /*#__PURE__*/React.createElement("ul", {
|
|
45
52
|
role: "list",
|
|
46
53
|
className: ax(["_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19pkidpf _2hwxidpf _otyridpf _18u0idpf _18u0u2gc"])
|
|
@@ -8,6 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import React, { useCallback, useImperativeHandle } from 'react';
|
|
9
9
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
11
12
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
12
13
|
import { useEmojiPickerListContext } from '../../hooks/useEmojiPickerListContext';
|
|
13
14
|
import { EMOJIPICKERLIST_KEYBOARD_KEYS_SUPPORTED, EMOJI_LIST_COLUMNS, EMOJI_LIST_PAGE_COUNT, KeyboardNavigationDirection, KeyboardKeys } from '../../util/constants';
|
|
@@ -35,6 +36,14 @@ export var VirtualList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
35
36
|
var _useEmojiPickerListCo = useEmojiPickerListContext(),
|
|
36
37
|
currentEmojisFocus = _useEmojiPickerListCo.currentEmojisFocus,
|
|
37
38
|
setEmojisFocus = _useEmojiPickerListCo.setEmojisFocus;
|
|
39
|
+
|
|
40
|
+
// A11Y-31084: When the emoji picker list experiment is enabled, each row is
|
|
41
|
+
// rendered as its own <ul role="list"> (see EmojiPickerEmojiRow). For that
|
|
42
|
+
// list markup to be valid, the surrounding grid semantics must be dropped:
|
|
43
|
+
// the scroll container becomes an application container and each row wrapper
|
|
44
|
+
// becomes presentational, matching the existing a11y reaction-emoji flag.
|
|
45
|
+
var isEmojiPickerListEnabled = expValEqualsNoExposure('platform_a11y_fixes_emoji_picker_list', 'isEnabled', true);
|
|
46
|
+
var useListSemantics = isEmojiPickerListEnabled || fg('platform_a11y_fixes_reaction_emoji');
|
|
38
47
|
var getVirtualizerOptions = function getVirtualizerOptions() {
|
|
39
48
|
var rowCount = props.rowCount,
|
|
40
49
|
rowHeight = props.rowHeight,
|
|
@@ -275,8 +284,8 @@ export var VirtualList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
275
284
|
},
|
|
276
285
|
"data-testid": virtualListScrollContainerTestId,
|
|
277
286
|
"aria-labelledby": "emoji-picker-table-description",
|
|
278
|
-
role: fg('platform_emoji_grid_presentation') ? 'presentation' : 'grid',
|
|
279
|
-
tabIndex:
|
|
287
|
+
role: useListSemantics ? 'application' : fg('platform_emoji_grid_presentation') ? 'presentation' : 'grid',
|
|
288
|
+
tabIndex: useListSemantics ? -1 : undefined,
|
|
280
289
|
className: ax(["_1reo15vq _18m91wug _n3tdu2gc _nt751r31 _49pcglyw _1hvw1o36"])
|
|
281
290
|
}, /*#__PURE__*/React.createElement("div", {
|
|
282
291
|
style: {
|
|
@@ -296,8 +305,8 @@ export var VirtualList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
296
305
|
height: "".concat(virtualRow.size, "px"),
|
|
297
306
|
transform: "translateY(".concat(virtualRow.start, "px)")
|
|
298
307
|
},
|
|
299
|
-
role:
|
|
300
|
-
},
|
|
308
|
+
role: useListSemantics ? 'presentation' : 'row'
|
|
309
|
+
}, useListSemantics ? {} : {
|
|
301
310
|
'aria-rowindex': index + 1
|
|
302
311
|
}, {
|
|
303
312
|
className: ax(["_kqswstnw _154iidpf _1ltvidpf _1bsb1osq"])
|
|
@@ -14,7 +14,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
14
14
|
actionSubjectId: actionSubjectId,
|
|
15
15
|
attributes: _objectSpread({
|
|
16
16
|
packageName: "@atlaskit/emoji",
|
|
17
|
-
packageVersion: "71.
|
|
17
|
+
packageVersion: "71.11.1"
|
|
18
18
|
}, attributes)
|
|
19
19
|
};
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "71.11.
|
|
3
|
+
"version": "71.11.2",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@atlaskit/spinner": "^20.1.0",
|
|
51
51
|
"@atlaskit/textfield": "^9.1.0",
|
|
52
52
|
"@atlaskit/theme": "^26.1.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^132.0.0",
|
|
54
54
|
"@atlaskit/tokens": "^16.2.0",
|
|
55
55
|
"@atlaskit/tooltip": "^23.1.0",
|
|
56
56
|
"@atlaskit/ufo": "^1.0.0",
|
|
57
57
|
"@atlaskit/util-service-support": "^7.2.0",
|
|
58
58
|
"@atlaskit/visually-hidden": "^4.2.0",
|
|
59
59
|
"@babel/runtime": "^7.0.0",
|
|
60
|
-
"@compiled/react": "^0.
|
|
60
|
+
"@compiled/react": "^1.0.0",
|
|
61
61
|
"@tanstack/react-virtual": "3.0.0-beta.60",
|
|
62
62
|
"js-search": "^2.0.0",
|
|
63
63
|
"lru_map": "^0.4.1",
|