@atlaskit/emoji 73.4.4 → 73.4.6
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 +19 -0
- package/dist/cjs/components/common/EmojiUploadPicker.js +21 -3
- package/dist/cjs/components/i18n.js +5 -0
- package/dist/cjs/components/picker/EmojiPickerListSearch.js +2 -1
- package/dist/cjs/util/analytics/createEvent.js +1 -1
- package/dist/es2019/components/common/EmojiUploadPicker.js +21 -3
- package/dist/es2019/components/i18n.js +5 -0
- package/dist/es2019/components/picker/EmojiPickerListSearch.js +2 -1
- package/dist/es2019/util/analytics/createEvent.js +1 -1
- package/dist/esm/components/common/EmojiUploadPicker.js +21 -3
- package/dist/esm/components/i18n.js +5 -0
- package/dist/esm/components/picker/EmojiPickerListSearch.js +2 -1
- package/dist/esm/util/analytics/createEvent.js +1 -1
- package/dist/types/components/i18n.d.ts +20 -15
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 73.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`af710251cf46e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/af710251cf46e) -
|
|
8
|
+
Match the custom emoji name input's accessible name to its visible label behind the
|
|
9
|
+
`platform_ally_emoji_fixes_various` feature gate.
|
|
10
|
+
- [`2c7cd60cc134e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c7cd60cc134e) -
|
|
11
|
+
Update the emoji picker search label under platform_ally_emoji_fixes_various
|
|
12
|
+
|
|
13
|
+
## 73.4.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`ec809235e06d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec809235e06d2) -
|
|
18
|
+
Announce duplicate emoji name errors and focus the name field behind
|
|
19
|
+
platform_ally_emoji_fixes_various.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 73.4.4
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _reactIntl = require("react-intl");
|
|
|
18
18
|
var _browserApis = require("@atlaskit/browser-apis");
|
|
19
19
|
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
20
20
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
21
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
22
|
var _box = require("@atlaskit/primitives/compiled/box");
|
|
22
23
|
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
23
24
|
var ImageUtil = _interopRequireWildcard(require("../../util/image"));
|
|
@@ -82,7 +83,10 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
82
83
|
intl = props.intl;
|
|
83
84
|
var formatMessage = intl.formatMessage;
|
|
84
85
|
var fileChooserButtonDescriptionId = 'choose.emoji.file.button.screen.reader.description.id';
|
|
86
|
+
var emojiNameErrorId = 'new-emoji-name-error';
|
|
85
87
|
var inputRef = (0, _react.useRef)(null);
|
|
88
|
+
var isA11yFixEnabled = (0, _fg.fg)('platform_ally_emoji_fixes_various');
|
|
89
|
+
var shouldFocusNameOnError = !!nameErrorMessage && isA11yFixEnabled;
|
|
86
90
|
var onKeyDownHandler = (0, _react.useCallback)(function (event) {
|
|
87
91
|
if (event.key === 'Escape') {
|
|
88
92
|
onUploadCancelled();
|
|
@@ -94,6 +98,12 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
94
98
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
95
99
|
});
|
|
96
100
|
}, []);
|
|
101
|
+
(0, _react.useEffect)(function () {
|
|
102
|
+
if (shouldFocusNameOnError) {
|
|
103
|
+
var _inputRef$current2;
|
|
104
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
|
|
105
|
+
}
|
|
106
|
+
}, [shouldFocusNameOnError]);
|
|
97
107
|
var emojiPlaceholder = formatMessage(_i18n.messages.emojiPlaceholder);
|
|
98
108
|
var emojiNameAriaLabel = formatMessage(_i18n.messages.emojiNameAriaLabel);
|
|
99
109
|
var emojiChooseFileTitleNew = formatMessage(_i18n.messages.emojiChooseFileDndTitle);
|
|
@@ -129,7 +139,7 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
129
139
|
className: (0, _runtime.ax)(["_1w90azsu", "_11c8wadc _k48p1pd9"])
|
|
130
140
|
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages.emojiNameLabel)), /*#__PURE__*/React.createElement(_textField.default, {
|
|
131
141
|
placeholder: emojiPlaceholder,
|
|
132
|
-
"aria-label": emojiNameAriaLabel,
|
|
142
|
+
"aria-label": isA11yFixEnabled ? formatMessage(_i18n.messages.emojiNameLabel) : emojiNameAriaLabel,
|
|
133
143
|
maxLength: maxNameLength,
|
|
134
144
|
onChange: onNameChange,
|
|
135
145
|
onKeyDown: onKeyDownHandler,
|
|
@@ -137,14 +147,22 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
137
147
|
isCompact: true,
|
|
138
148
|
autoFocus: true,
|
|
139
149
|
isInvalid: !!nameErrorMessage,
|
|
150
|
+
"aria-describedby": isA11yFixEnabled ? emojiNameErrorId : undefined,
|
|
140
151
|
testId: uploadEmojiNameInputTestId,
|
|
141
152
|
ref: inputRef,
|
|
142
153
|
id: "new-emoji-name-input",
|
|
143
154
|
"aria-required": true
|
|
144
|
-
}), nameErrorMessage && /*#__PURE__*/React.createElement(
|
|
155
|
+
}), nameErrorMessage && (isA11yFixEnabled ? /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
id: emojiNameErrorId,
|
|
157
|
+
role: "alert",
|
|
158
|
+
"aria-atomic": "true"
|
|
159
|
+
}, /*#__PURE__*/React.createElement(_EmojiErrorMessage.default, {
|
|
160
|
+
errorStyle: "chooseFile",
|
|
161
|
+
message: nameErrorMessage
|
|
162
|
+
})) : /*#__PURE__*/React.createElement(_EmojiErrorMessage.default, {
|
|
145
163
|
errorStyle: "chooseFile",
|
|
146
164
|
message: nameErrorMessage
|
|
147
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
165
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
148
166
|
className: (0, _runtime.ax)(["_zulpu2gc _1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc _n3tdutpp"])
|
|
149
167
|
}, /*#__PURE__*/React.createElement(_button.default, {
|
|
150
168
|
onClick: onUploadCancelled,
|
|
@@ -151,6 +151,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
151
151
|
defaultMessage: 'Emoji name',
|
|
152
152
|
description: 'Accessible label for the emoji name search input field in the emoji picker, used by screen readers.'
|
|
153
153
|
},
|
|
154
|
+
searchLabelUpdated: {
|
|
155
|
+
id: 'emoji.i18n.searchLabelUpdated',
|
|
156
|
+
defaultMessage: 'Search emoji by name',
|
|
157
|
+
description: 'Accessible label for the emoji name search input field in the emoji picker, used by screen readers.'
|
|
158
|
+
},
|
|
154
159
|
searchResultsStatus: {
|
|
155
160
|
id: 'fabric.emoji.search.status.count',
|
|
156
161
|
defaultMessage: 'Found {count} emojis',
|
|
@@ -14,6 +14,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _useDebounce = require("use-debounce");
|
|
16
16
|
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
17
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
18
|
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
18
19
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
19
20
|
var _constants = require("../../util/constants");
|
|
@@ -64,7 +65,7 @@ var EmojiPickerListSearch = exports.EmojiPickerListSearch = function EmojiPicker
|
|
|
64
65
|
className: (0, _runtime.ax)(["_n6341l7x _18z11b66"])
|
|
65
66
|
}, /*#__PURE__*/_react.default.createElement(_textField.default, {
|
|
66
67
|
role: "searchbox",
|
|
67
|
-
"aria-label": formatMessage(_i18n.messages.searchLabel),
|
|
68
|
+
"aria-label": formatMessage((0, _fg.fg)('platform_ally_emoji_fixes_various') ? _i18n.messages.searchLabelUpdated : _i18n.messages.searchLabel),
|
|
68
69
|
autoComplete: "off",
|
|
69
70
|
name: "search",
|
|
70
71
|
placeholder: "".concat(formatMessage(_i18n.messages.searchPlaceholder), "..."),
|
|
@@ -17,7 +17,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
|
|
|
17
17
|
actionSubjectId: actionSubjectId,
|
|
18
18
|
attributes: _objectSpread({
|
|
19
19
|
packageName: "@atlaskit/emoji",
|
|
20
|
-
packageVersion: "73.4.
|
|
20
|
+
packageVersion: "73.4.5"
|
|
21
21
|
}, attributes)
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -7,6 +7,7 @@ import { FormattedMessage, injectIntl } from 'react-intl';
|
|
|
7
7
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
8
8
|
import Button from '@atlaskit/button/default/button';
|
|
9
9
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
11
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
11
12
|
import TextField from '@atlaskit/textfield/text-field';
|
|
12
13
|
import * as ImageUtil from '../../util/image';
|
|
@@ -71,7 +72,10 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
71
72
|
formatMessage
|
|
72
73
|
} = intl;
|
|
73
74
|
const fileChooserButtonDescriptionId = 'choose.emoji.file.button.screen.reader.description.id';
|
|
75
|
+
const emojiNameErrorId = 'new-emoji-name-error';
|
|
74
76
|
const inputRef = useRef(null);
|
|
77
|
+
const isA11yFixEnabled = fg('platform_ally_emoji_fixes_various');
|
|
78
|
+
const shouldFocusNameOnError = !!nameErrorMessage && isA11yFixEnabled;
|
|
75
79
|
const onKeyDownHandler = useCallback(event => {
|
|
76
80
|
if (event.key === 'Escape') {
|
|
77
81
|
onUploadCancelled();
|
|
@@ -83,6 +87,12 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
83
87
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
84
88
|
});
|
|
85
89
|
}, []);
|
|
90
|
+
useEffect(() => {
|
|
91
|
+
if (shouldFocusNameOnError) {
|
|
92
|
+
var _inputRef$current2;
|
|
93
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
|
|
94
|
+
}
|
|
95
|
+
}, [shouldFocusNameOnError]);
|
|
86
96
|
const emojiPlaceholder = formatMessage(messages.emojiPlaceholder);
|
|
87
97
|
const emojiNameAriaLabel = formatMessage(messages.emojiNameAriaLabel);
|
|
88
98
|
const emojiChooseFileTitleNew = formatMessage(messages.emojiChooseFileDndTitle);
|
|
@@ -116,7 +126,7 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
116
126
|
className: ax(["_1w90azsu", "_11c8wadc _k48p1pd9"])
|
|
117
127
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.emojiNameLabel)), /*#__PURE__*/React.createElement(TextField, {
|
|
118
128
|
placeholder: emojiPlaceholder,
|
|
119
|
-
"aria-label": emojiNameAriaLabel,
|
|
129
|
+
"aria-label": isA11yFixEnabled ? formatMessage(messages.emojiNameLabel) : emojiNameAriaLabel,
|
|
120
130
|
maxLength: maxNameLength,
|
|
121
131
|
onChange: onNameChange,
|
|
122
132
|
onKeyDown: onKeyDownHandler,
|
|
@@ -124,14 +134,22 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
124
134
|
isCompact: true,
|
|
125
135
|
autoFocus: true,
|
|
126
136
|
isInvalid: !!nameErrorMessage,
|
|
137
|
+
"aria-describedby": isA11yFixEnabled ? emojiNameErrorId : undefined,
|
|
127
138
|
testId: uploadEmojiNameInputTestId,
|
|
128
139
|
ref: inputRef,
|
|
129
140
|
id: "new-emoji-name-input",
|
|
130
141
|
"aria-required": true
|
|
131
|
-
}), nameErrorMessage && /*#__PURE__*/React.createElement(
|
|
142
|
+
}), nameErrorMessage && (isA11yFixEnabled ? /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
id: emojiNameErrorId,
|
|
144
|
+
role: "alert",
|
|
145
|
+
"aria-atomic": "true"
|
|
146
|
+
}, /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
147
|
+
errorStyle: "chooseFile",
|
|
148
|
+
message: nameErrorMessage
|
|
149
|
+
})) : /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
132
150
|
errorStyle: "chooseFile",
|
|
133
151
|
message: nameErrorMessage
|
|
134
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
135
153
|
className: ax(["_zulpu2gc _1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc _n3tdutpp"])
|
|
136
154
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
137
155
|
onClick: onUploadCancelled,
|
|
@@ -145,6 +145,11 @@ export const messages = defineMessages({
|
|
|
145
145
|
defaultMessage: 'Emoji name',
|
|
146
146
|
description: 'Accessible label for the emoji name search input field in the emoji picker, used by screen readers.'
|
|
147
147
|
},
|
|
148
|
+
searchLabelUpdated: {
|
|
149
|
+
id: 'emoji.i18n.searchLabelUpdated',
|
|
150
|
+
defaultMessage: 'Search emoji by name',
|
|
151
|
+
description: 'Accessible label for the emoji name search input field in the emoji picker, used by screen readers.'
|
|
152
|
+
},
|
|
148
153
|
searchResultsStatus: {
|
|
149
154
|
id: 'fabric.emoji.search.status.count',
|
|
150
155
|
defaultMessage: 'Found {count} emojis',
|
|
@@ -5,6 +5,7 @@ import React, { useRef, useState } from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { useDebouncedCallback } from 'use-debounce';
|
|
7
7
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
9
|
import TextField from '@atlaskit/textfield/text-field';
|
|
9
10
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
10
11
|
import { EMOJI_SEARCH_DEBOUNCE } from '../../util/constants';
|
|
@@ -51,7 +52,7 @@ export const EmojiPickerListSearch = props => {
|
|
|
51
52
|
className: ax(["_n6341l7x _18z11b66"])
|
|
52
53
|
}, /*#__PURE__*/React.createElement(TextField, {
|
|
53
54
|
role: "searchbox",
|
|
54
|
-
"aria-label": formatMessage(messages.searchLabel),
|
|
55
|
+
"aria-label": formatMessage(fg('platform_ally_emoji_fixes_various') ? messages.searchLabelUpdated : messages.searchLabel),
|
|
55
56
|
autoComplete: "off",
|
|
56
57
|
name: "search",
|
|
57
58
|
placeholder: `${formatMessage(messages.searchPlaceholder)}...`,
|
|
@@ -10,6 +10,7 @@ import { FormattedMessage, injectIntl } from 'react-intl';
|
|
|
10
10
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
11
11
|
import Button from '@atlaskit/button/default/button';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
14
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
15
|
import TextField from '@atlaskit/textfield/text-field';
|
|
15
16
|
import * as ImageUtil from '../../util/image';
|
|
@@ -73,7 +74,10 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
73
74
|
intl = props.intl;
|
|
74
75
|
var formatMessage = intl.formatMessage;
|
|
75
76
|
var fileChooserButtonDescriptionId = 'choose.emoji.file.button.screen.reader.description.id';
|
|
77
|
+
var emojiNameErrorId = 'new-emoji-name-error';
|
|
76
78
|
var inputRef = useRef(null);
|
|
79
|
+
var isA11yFixEnabled = fg('platform_ally_emoji_fixes_various');
|
|
80
|
+
var shouldFocusNameOnError = !!nameErrorMessage && isA11yFixEnabled;
|
|
77
81
|
var onKeyDownHandler = useCallback(function (event) {
|
|
78
82
|
if (event.key === 'Escape') {
|
|
79
83
|
onUploadCancelled();
|
|
@@ -85,6 +89,12 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
85
89
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
86
90
|
});
|
|
87
91
|
}, []);
|
|
92
|
+
useEffect(function () {
|
|
93
|
+
if (shouldFocusNameOnError) {
|
|
94
|
+
var _inputRef$current2;
|
|
95
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
|
|
96
|
+
}
|
|
97
|
+
}, [shouldFocusNameOnError]);
|
|
88
98
|
var emojiPlaceholder = formatMessage(messages.emojiPlaceholder);
|
|
89
99
|
var emojiNameAriaLabel = formatMessage(messages.emojiNameAriaLabel);
|
|
90
100
|
var emojiChooseFileTitleNew = formatMessage(messages.emojiChooseFileDndTitle);
|
|
@@ -120,7 +130,7 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
120
130
|
className: ax(["_1w90azsu", "_11c8wadc _k48p1pd9"])
|
|
121
131
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.emojiNameLabel)), /*#__PURE__*/React.createElement(TextField, {
|
|
122
132
|
placeholder: emojiPlaceholder,
|
|
123
|
-
"aria-label": emojiNameAriaLabel,
|
|
133
|
+
"aria-label": isA11yFixEnabled ? formatMessage(messages.emojiNameLabel) : emojiNameAriaLabel,
|
|
124
134
|
maxLength: maxNameLength,
|
|
125
135
|
onChange: onNameChange,
|
|
126
136
|
onKeyDown: onKeyDownHandler,
|
|
@@ -128,14 +138,22 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
128
138
|
isCompact: true,
|
|
129
139
|
autoFocus: true,
|
|
130
140
|
isInvalid: !!nameErrorMessage,
|
|
141
|
+
"aria-describedby": isA11yFixEnabled ? emojiNameErrorId : undefined,
|
|
131
142
|
testId: uploadEmojiNameInputTestId,
|
|
132
143
|
ref: inputRef,
|
|
133
144
|
id: "new-emoji-name-input",
|
|
134
145
|
"aria-required": true
|
|
135
|
-
}), nameErrorMessage && /*#__PURE__*/React.createElement(
|
|
146
|
+
}), nameErrorMessage && (isA11yFixEnabled ? /*#__PURE__*/React.createElement("div", {
|
|
147
|
+
id: emojiNameErrorId,
|
|
148
|
+
role: "alert",
|
|
149
|
+
"aria-atomic": "true"
|
|
150
|
+
}, /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
151
|
+
errorStyle: "chooseFile",
|
|
152
|
+
message: nameErrorMessage
|
|
153
|
+
})) : /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
136
154
|
errorStyle: "chooseFile",
|
|
137
155
|
message: nameErrorMessage
|
|
138
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
139
157
|
className: ax(["_zulpu2gc _1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc _n3tdutpp"])
|
|
140
158
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
141
159
|
onClick: onUploadCancelled,
|
|
@@ -145,6 +145,11 @@ export var messages = defineMessages({
|
|
|
145
145
|
defaultMessage: 'Emoji name',
|
|
146
146
|
description: 'Accessible label for the emoji name search input field in the emoji picker, used by screen readers.'
|
|
147
147
|
},
|
|
148
|
+
searchLabelUpdated: {
|
|
149
|
+
id: 'emoji.i18n.searchLabelUpdated',
|
|
150
|
+
defaultMessage: 'Search emoji by name',
|
|
151
|
+
description: 'Accessible label for the emoji name search input field in the emoji picker, used by screen readers.'
|
|
152
|
+
},
|
|
148
153
|
searchResultsStatus: {
|
|
149
154
|
id: 'fabric.emoji.search.status.count',
|
|
150
155
|
defaultMessage: 'Found {count} emojis',
|
|
@@ -6,6 +6,7 @@ import React, { useRef, useState } from 'react';
|
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { useDebouncedCallback } from 'use-debounce';
|
|
8
8
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
10
|
import TextField from '@atlaskit/textfield/text-field';
|
|
10
11
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
11
12
|
import { EMOJI_SEARCH_DEBOUNCE } from '../../util/constants';
|
|
@@ -55,7 +56,7 @@ export var EmojiPickerListSearch = function EmojiPickerListSearch(props) {
|
|
|
55
56
|
className: ax(["_n6341l7x _18z11b66"])
|
|
56
57
|
}, /*#__PURE__*/React.createElement(TextField, {
|
|
57
58
|
role: "searchbox",
|
|
58
|
-
"aria-label": formatMessage(messages.searchLabel),
|
|
59
|
+
"aria-label": formatMessage(fg('platform_ally_emoji_fixes_various') ? messages.searchLabelUpdated : messages.searchLabel),
|
|
59
60
|
autoComplete: "off",
|
|
60
61
|
name: "search",
|
|
61
62
|
placeholder: "".concat(formatMessage(messages.searchPlaceholder), "..."),
|
|
@@ -10,7 +10,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
|
|
|
10
10
|
actionSubjectId: actionSubjectId,
|
|
11
11
|
attributes: _objectSpread({
|
|
12
12
|
packageName: "@atlaskit/emoji",
|
|
13
|
-
packageVersion: "73.4.
|
|
13
|
+
packageVersion: "73.4.5"
|
|
14
14
|
}, attributes)
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -14,52 +14,52 @@ export declare const messages: {
|
|
|
14
14
|
description: string;
|
|
15
15
|
id: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
allUploadsCustomCategory: {
|
|
18
18
|
defaultMessage: string;
|
|
19
19
|
description: string;
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
cancelLabel: {
|
|
23
23
|
defaultMessage: string;
|
|
24
24
|
description: string;
|
|
25
25
|
id: string;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
categoriesSearchResults: {
|
|
28
28
|
defaultMessage: string;
|
|
29
29
|
description: string;
|
|
30
30
|
id: string;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
categoriesSelectorLabel: {
|
|
33
33
|
defaultMessage: string;
|
|
34
34
|
description: string;
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
changeEmojiShortnameButtonLabel: {
|
|
38
38
|
defaultMessage: string;
|
|
39
39
|
description: string;
|
|
40
40
|
id: string;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
createEmojiWithRovoError: {
|
|
43
43
|
defaultMessage: string;
|
|
44
44
|
description: string;
|
|
45
45
|
id: string;
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
createEmojiWithRovoGenerateLabel: {
|
|
48
48
|
defaultMessage: string;
|
|
49
49
|
description: string;
|
|
50
50
|
id: string;
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
createEmojiWithRovoPromptAriaLabel: {
|
|
53
53
|
defaultMessage: string;
|
|
54
54
|
description: string;
|
|
55
55
|
id: string;
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
createEmojiWithRovoPromptPlaceholder: {
|
|
58
58
|
defaultMessage: string;
|
|
59
59
|
description: string;
|
|
60
60
|
id: string;
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
createEmojiWithRovoTitle: {
|
|
63
63
|
defaultMessage: string;
|
|
64
64
|
description: string;
|
|
65
65
|
id: string;
|
|
@@ -154,12 +154,12 @@ export declare const messages: {
|
|
|
154
154
|
description: string;
|
|
155
155
|
id: string;
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
emojiPickerListPanel: {
|
|
158
158
|
defaultMessage: string;
|
|
159
159
|
description: string;
|
|
160
160
|
id: string;
|
|
161
161
|
};
|
|
162
|
-
|
|
162
|
+
emojiPickerNoResults: {
|
|
163
163
|
defaultMessage: string;
|
|
164
164
|
description: string;
|
|
165
165
|
id: string;
|
|
@@ -184,17 +184,17 @@ export declare const messages: {
|
|
|
184
184
|
description: string;
|
|
185
185
|
id: string;
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
emojiSelectColorButtonAriaLabelText: {
|
|
188
188
|
defaultMessage: string;
|
|
189
189
|
description: string;
|
|
190
190
|
id: string;
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
emojiSelectColorListAriaLabelText: {
|
|
193
193
|
defaultMessage: string;
|
|
194
194
|
description: string;
|
|
195
195
|
id: string;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
emojiSelectSkinToneButtonAriaLabelText: {
|
|
198
198
|
defaultMessage: string;
|
|
199
199
|
description: string;
|
|
200
200
|
id: string;
|
|
@@ -274,6 +274,11 @@ export declare const messages: {
|
|
|
274
274
|
description: string;
|
|
275
275
|
id: string;
|
|
276
276
|
};
|
|
277
|
+
searchLabelUpdated: {
|
|
278
|
+
defaultMessage: string;
|
|
279
|
+
description: string;
|
|
280
|
+
id: string;
|
|
281
|
+
};
|
|
277
282
|
searchPlaceholder: {
|
|
278
283
|
defaultMessage: string;
|
|
279
284
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "73.4.
|
|
3
|
+
"version": "73.4.6",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/spinner": "^20.4.0",
|
|
55
55
|
"@atlaskit/textfield": "^10.3.0",
|
|
56
56
|
"@atlaskit/theme": "^28.2.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^257.0.0",
|
|
58
58
|
"@atlaskit/tokens": "^20.9.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.4.0",
|
|
60
60
|
"@atlaskit/ufo": "^2.0.0",
|
|
@@ -119,6 +119,10 @@
|
|
|
119
119
|
"ui"
|
|
120
120
|
],
|
|
121
121
|
"platform-feature-flags": {
|
|
122
|
+
"platform_ally_emoji_fixes_various": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"referenceOnly": true
|
|
125
|
+
},
|
|
122
126
|
"nike_r19_render_unmount": {
|
|
123
127
|
"type": "boolean"
|
|
124
128
|
},
|