@atlaskit/emoji 71.2.0 → 71.2.1
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 +8 -0
- package/dist/cjs/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/cjs/components/picker/EmojiPickerList.js +3 -1
- package/dist/es2019/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerList.js +3 -2
- package/dist/esm/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/esm/components/picker/EmojiPickerList.js +3 -1
- package/dist/types/components/picker/EmojiPickerList.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 71.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6fbfacbeddc94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fbfacbeddc94) -
|
|
8
|
+
Ensure scroll to Your uploads on clicking uploads category
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 71.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -390,7 +390,7 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
390
390
|
if (isTeamojiExperimentEnabled) {
|
|
391
391
|
isProgrammaticScroll.current = true;
|
|
392
392
|
}
|
|
393
|
-
emojiPickerList.current.reveal(categoryId);
|
|
393
|
+
emojiPickerList.current.reveal(categoryId, isTeamojiExperimentEnabled);
|
|
394
394
|
if (isTeamojiExperimentEnabled) {
|
|
395
395
|
// Clear the flag after the scroll animation has settled.
|
|
396
396
|
setTimeout(function () {
|
|
@@ -380,7 +380,9 @@ var EmojiPickerVirtualListInternal = exports.EmojiPickerVirtualListInternal = /*
|
|
|
380
380
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
381
381
|
return {
|
|
382
382
|
reveal: function reveal(category) {
|
|
383
|
-
var
|
|
383
|
+
var _categoryTracker$getR;
|
|
384
|
+
var preferYourUploads = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
385
|
+
var row = preferYourUploads && category === _constants.customCategory ? (_categoryTracker$getR = categoryTracker.getRow(_constants.yourUploadsCategory)) !== null && _categoryTracker$getR !== void 0 ? _categoryTracker$getR : categoryTracker.getRow(category) : categoryTracker.getRow(category);
|
|
384
386
|
(0, _utils.scrollToRow)(listRef, row);
|
|
385
387
|
},
|
|
386
388
|
scrollToBottom: function scrollToBottom() {
|
|
@@ -331,7 +331,7 @@ const EmojiPickerComponent = ({
|
|
|
331
331
|
if (isTeamojiExperimentEnabled) {
|
|
332
332
|
isProgrammaticScroll.current = true;
|
|
333
333
|
}
|
|
334
|
-
emojiPickerList.current.reveal(categoryId);
|
|
334
|
+
emojiPickerList.current.reveal(categoryId, isTeamojiExperimentEnabled);
|
|
335
335
|
if (isTeamojiExperimentEnabled) {
|
|
336
336
|
// Clear the flag after the scroll animation has settled.
|
|
337
337
|
setTimeout(() => {
|
|
@@ -340,8 +340,9 @@ export const EmojiPickerVirtualListInternal = /*#__PURE__*/React.forwardRef((pro
|
|
|
340
340
|
*/
|
|
341
341
|
useImperativeHandle(ref, () => {
|
|
342
342
|
return {
|
|
343
|
-
reveal(category) {
|
|
344
|
-
|
|
343
|
+
reveal(category, preferYourUploads = false) {
|
|
344
|
+
var _categoryTracker$getR;
|
|
345
|
+
const row = preferYourUploads && category === customCategory ? (_categoryTracker$getR = categoryTracker.getRow(yourUploadsCategory)) !== null && _categoryTracker$getR !== void 0 ? _categoryTracker$getR : categoryTracker.getRow(category) : categoryTracker.getRow(category);
|
|
345
346
|
scrollToRow(listRef, row);
|
|
346
347
|
},
|
|
347
348
|
scrollToBottom() {
|
|
@@ -381,7 +381,7 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
381
381
|
if (isTeamojiExperimentEnabled) {
|
|
382
382
|
isProgrammaticScroll.current = true;
|
|
383
383
|
}
|
|
384
|
-
emojiPickerList.current.reveal(categoryId);
|
|
384
|
+
emojiPickerList.current.reveal(categoryId, isTeamojiExperimentEnabled);
|
|
385
385
|
if (isTeamojiExperimentEnabled) {
|
|
386
386
|
// Clear the flag after the scroll animation has settled.
|
|
387
387
|
setTimeout(function () {
|
|
@@ -372,7 +372,9 @@ export var EmojiPickerVirtualListInternal = /*#__PURE__*/React.forwardRef(functi
|
|
|
372
372
|
useImperativeHandle(ref, function () {
|
|
373
373
|
return {
|
|
374
374
|
reveal: function reveal(category) {
|
|
375
|
-
var
|
|
375
|
+
var _categoryTracker$getR;
|
|
376
|
+
var preferYourUploads = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
377
|
+
var row = preferYourUploads && category === customCategory ? (_categoryTracker$getR = categoryTracker.getRow(yourUploadsCategory)) !== null && _categoryTracker$getR !== void 0 ? _categoryTracker$getR : categoryTracker.getRow(category) : categoryTracker.getRow(category);
|
|
376
378
|
_scrollToRow(listRef, row);
|
|
377
379
|
},
|
|
378
380
|
scrollToBottom: function scrollToBottom() {
|
|
@@ -45,7 +45,7 @@ export interface Props {
|
|
|
45
45
|
export interface State {
|
|
46
46
|
}
|
|
47
47
|
export type PickerListRef = {
|
|
48
|
-
reveal: (category: CategoryId) => void;
|
|
48
|
+
reveal: (category: CategoryId, preferYourUploads?: boolean) => void;
|
|
49
49
|
scrollToBottom: () => void;
|
|
50
50
|
scrollToRecentlyUploaded: (uploadedEmoji: EmojiDescription) => void;
|
|
51
51
|
scrollToRow: (index?: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "71.2.
|
|
3
|
+
"version": "71.2.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/radio": "^9.0.0",
|
|
49
49
|
"@atlaskit/spinner": "^20.0.0",
|
|
50
50
|
"@atlaskit/textfield": "^9.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^108.0.0",
|
|
52
52
|
"@atlaskit/tokens": "^14.0.0",
|
|
53
53
|
"@atlaskit/tooltip": "^23.0.0",
|
|
54
54
|
"@atlaskit/ufo": "^1.0.0",
|