@atlaskit/emoji 67.5.3 → 67.5.4
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 +6 -0
- package/dist/cjs/components/picker/EmojiPickerComponent.js +4 -2
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerComponent.js +4 -2
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/picker/EmojiPickerComponent.js +4 -2
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 67.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`eb2a6ac5031`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eb2a6ac5031) - fix regression issue in emoji picker search after react-virtual deps bump
|
|
8
|
+
|
|
3
9
|
## 67.5.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -315,11 +315,13 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
315
315
|
};
|
|
316
316
|
if (searchQuery !== query) {
|
|
317
317
|
setQuery(searchQuery);
|
|
318
|
+
}
|
|
319
|
+
updateEmojis(searchQuery, options);
|
|
320
|
+
if (filteredEmojis.length > 0) {
|
|
318
321
|
// scroll to top when search, which is search results section
|
|
319
322
|
scrollToTopOfList();
|
|
320
323
|
}
|
|
321
|
-
|
|
322
|
-
}, [query, selectedTone, updateEmojis, scrollToTopOfList]);
|
|
324
|
+
}, [query, filteredEmojis, selectedTone, updateEmojis, scrollToTopOfList]);
|
|
323
325
|
var onOpenUpload = (0, _react.useCallback)(function () {
|
|
324
326
|
// Prime upload token so it's ready when the user adds
|
|
325
327
|
if ((0, _EmojiResource.supportsUploadFeature)(emojiProvider)) {
|
|
@@ -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: "67.5.
|
|
23
|
+
packageVersion: "67.5.4"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -258,11 +258,13 @@ const EmojiPickerComponent = ({
|
|
|
258
258
|
};
|
|
259
259
|
if (searchQuery !== query) {
|
|
260
260
|
setQuery(searchQuery);
|
|
261
|
+
}
|
|
262
|
+
updateEmojis(searchQuery, options);
|
|
263
|
+
if (filteredEmojis.length > 0) {
|
|
261
264
|
// scroll to top when search, which is search results section
|
|
262
265
|
scrollToTopOfList();
|
|
263
266
|
}
|
|
264
|
-
|
|
265
|
-
}, [query, selectedTone, updateEmojis, scrollToTopOfList]);
|
|
267
|
+
}, [query, filteredEmojis, selectedTone, updateEmojis, scrollToTopOfList]);
|
|
266
268
|
const onOpenUpload = useCallback(() => {
|
|
267
269
|
// Prime upload token so it's ready when the user adds
|
|
268
270
|
if (supportsUploadFeature(emojiProvider)) {
|
|
@@ -309,11 +309,13 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
309
309
|
};
|
|
310
310
|
if (searchQuery !== query) {
|
|
311
311
|
setQuery(searchQuery);
|
|
312
|
+
}
|
|
313
|
+
updateEmojis(searchQuery, options);
|
|
314
|
+
if (filteredEmojis.length > 0) {
|
|
312
315
|
// scroll to top when search, which is search results section
|
|
313
316
|
scrollToTopOfList();
|
|
314
317
|
}
|
|
315
|
-
|
|
316
|
-
}, [query, selectedTone, updateEmojis, scrollToTopOfList]);
|
|
318
|
+
}, [query, filteredEmojis, selectedTone, updateEmojis, scrollToTopOfList]);
|
|
317
319
|
var onOpenUpload = useCallback(function () {
|
|
318
320
|
// Prime upload token so it's ready when the user adds
|
|
319
321
|
if (supportsUploadFeature(emojiProvider)) {
|
|
@@ -12,7 +12,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
12
12
|
actionSubjectId: actionSubjectId,
|
|
13
13
|
attributes: _objectSpread({
|
|
14
14
|
packageName: "@atlaskit/emoji",
|
|
15
|
-
packageVersion: "67.5.
|
|
15
|
+
packageVersion: "67.5.4"
|
|
16
16
|
}, attributes)
|
|
17
17
|
};
|
|
18
18
|
};
|