@atlaskit/emoji 73.4.9 → 73.4.11
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 +14 -0
- package/dist/cjs/components/i18n.js +35 -0
- package/dist/cjs/components/picker/EmojiPickerList.js +17 -1
- package/dist/cjs/util/analytics/createEvent.js +1 -1
- package/dist/es2019/components/i18n.js +35 -0
- package/dist/es2019/components/picker/EmojiPickerList.js +17 -1
- package/dist/es2019/util/analytics/createEvent.js +1 -1
- package/dist/esm/components/i18n.js +35 -0
- package/dist/esm/components/picker/EmojiPickerList.js +17 -1
- package/dist/esm/util/analytics/createEvent.js +1 -1
- package/dist/types/components/i18n.d.ts +35 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 73.4.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f11baec59d920`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f11baec59d920) -
|
|
8
|
+
Translate Atlassian emoji subcategory headings behind platform_ally_emoji_fixes_various.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 73.4.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 73.4.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,6 +6,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.messages = void 0;
|
|
7
7
|
var _reactIntl = require("react-intl");
|
|
8
8
|
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
|
+
atlassianFacesSubcategory: {
|
|
10
|
+
id: 'fabric.emoji.subcategory.atlassian.faces',
|
|
11
|
+
defaultMessage: 'Faces',
|
|
12
|
+
description: 'Heading for the Faces subcategory in the Atlassian section of the emoji picker.'
|
|
13
|
+
},
|
|
14
|
+
atlassianHandsSubcategory: {
|
|
15
|
+
id: 'fabric.emoji.subcategory.atlassian.hands',
|
|
16
|
+
defaultMessage: 'Hands',
|
|
17
|
+
description: 'Heading for the Hands subcategory in the Atlassian section of the emoji picker.'
|
|
18
|
+
},
|
|
19
|
+
atlassianLogosSubcategory: {
|
|
20
|
+
id: 'fabric.emoji.subcategory.atlassian.logos',
|
|
21
|
+
defaultMessage: 'Logos',
|
|
22
|
+
description: 'Heading for the Logos subcategory in the Atlassian section of the emoji picker.'
|
|
23
|
+
},
|
|
24
|
+
atlassianObjectsSubcategory: {
|
|
25
|
+
id: 'fabric.emoji.subcategory.atlassian.objects',
|
|
26
|
+
defaultMessage: 'Objects',
|
|
27
|
+
description: 'Heading for the Objects subcategory in the Atlassian section of the emoji picker.'
|
|
28
|
+
},
|
|
29
|
+
atlassianOtherSubcategory: {
|
|
30
|
+
id: 'fabric.emoji.subcategory.atlassian.other',
|
|
31
|
+
defaultMessage: 'Other',
|
|
32
|
+
description: 'Heading for uncategorized emoji in the Atlassian section of the emoji picker.'
|
|
33
|
+
},
|
|
34
|
+
atlassianProductivitySubcategory: {
|
|
35
|
+
id: 'fabric.emoji.subcategory.atlassian.productivity',
|
|
36
|
+
defaultMessage: 'Productivity',
|
|
37
|
+
description: 'Heading for the Productivity subcategory in the Atlassian section of the emoji picker.'
|
|
38
|
+
},
|
|
39
|
+
atlassianReactionsSubcategory: {
|
|
40
|
+
id: 'fabric.emoji.subcategory.atlassian.reactions',
|
|
41
|
+
defaultMessage: 'Reactions',
|
|
42
|
+
description: 'Heading for the Reactions subcategory in the Atlassian section of the emoji picker.'
|
|
43
|
+
},
|
|
9
44
|
deleteEmojiTooltip: {
|
|
10
45
|
id: 'fabric.emoji.delete.tooltip',
|
|
11
46
|
defaultMessage: 'Delete',
|
|
@@ -10,6 +10,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
14
|
var _EmojiPickerListContext = require("../../context/EmojiPickerListContext");
|
|
14
15
|
var _constants = require("../../util/constants");
|
|
15
16
|
var _filterHiddenEmojis = require("../../util/filter-hidden-emojis");
|
|
@@ -37,6 +38,21 @@ var categoryClassname = 'emoji-category';
|
|
|
37
38
|
var atlassianCategory = 'ATLASSIAN';
|
|
38
39
|
var productivityAtlassianSubcategory = 'Productivity';
|
|
39
40
|
var atlassianSubcategoryOrder = ['Faces', 'Hands', 'Reactions', 'Objects', productivityAtlassianSubcategory, 'Logos'];
|
|
41
|
+
var atlassianSubcategoryMessageKeys = {
|
|
42
|
+
Faces: 'atlassianFacesSubcategory',
|
|
43
|
+
Hands: 'atlassianHandsSubcategory',
|
|
44
|
+
Reactions: 'atlassianReactionsSubcategory',
|
|
45
|
+
Objects: 'atlassianObjectsSubcategory',
|
|
46
|
+
Productivity: 'atlassianProductivitySubcategory',
|
|
47
|
+
Logos: 'atlassianLogosSubcategory',
|
|
48
|
+
Other: 'atlassianOtherSubcategory'
|
|
49
|
+
};
|
|
50
|
+
var getAtlassianSubcategoryHeadingTitle = function getAtlassianSubcategoryHeadingTitle(title) {
|
|
51
|
+
if (!(0, _fg.fg)('platform_ally_emoji_fixes_various')) {
|
|
52
|
+
return title;
|
|
53
|
+
}
|
|
54
|
+
return atlassianSubcategoryMessageKeys[title] || title;
|
|
55
|
+
};
|
|
40
56
|
|
|
41
57
|
/**
|
|
42
58
|
* Emoji grouped by a category title ie. Frequent, Your Uploads, All Uploads
|
|
@@ -289,7 +305,7 @@ var EmojiPickerVirtualListInternal = exports.EmojiPickerVirtualListInternal = /*
|
|
|
289
305
|
sortedSubcategories.forEach(function (subcategory) {
|
|
290
306
|
items.push(new _CategoryHeadingItem.CategoryHeadingItem({
|
|
291
307
|
id: group.category,
|
|
292
|
-
title: subcategory.title,
|
|
308
|
+
title: getAtlassianSubcategoryHeadingTitle(subcategory.title),
|
|
293
309
|
className: categoryClassname
|
|
294
310
|
}));
|
|
295
311
|
buildEmojiRows(items, group.category, subcategory.title, subcategory.emojis, false);
|
|
@@ -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.10"
|
|
21
21
|
}, attributes)
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl';
|
|
2
2
|
export const messages = defineMessages({
|
|
3
|
+
atlassianFacesSubcategory: {
|
|
4
|
+
id: 'fabric.emoji.subcategory.atlassian.faces',
|
|
5
|
+
defaultMessage: 'Faces',
|
|
6
|
+
description: 'Heading for the Faces subcategory in the Atlassian section of the emoji picker.'
|
|
7
|
+
},
|
|
8
|
+
atlassianHandsSubcategory: {
|
|
9
|
+
id: 'fabric.emoji.subcategory.atlassian.hands',
|
|
10
|
+
defaultMessage: 'Hands',
|
|
11
|
+
description: 'Heading for the Hands subcategory in the Atlassian section of the emoji picker.'
|
|
12
|
+
},
|
|
13
|
+
atlassianLogosSubcategory: {
|
|
14
|
+
id: 'fabric.emoji.subcategory.atlassian.logos',
|
|
15
|
+
defaultMessage: 'Logos',
|
|
16
|
+
description: 'Heading for the Logos subcategory in the Atlassian section of the emoji picker.'
|
|
17
|
+
},
|
|
18
|
+
atlassianObjectsSubcategory: {
|
|
19
|
+
id: 'fabric.emoji.subcategory.atlassian.objects',
|
|
20
|
+
defaultMessage: 'Objects',
|
|
21
|
+
description: 'Heading for the Objects subcategory in the Atlassian section of the emoji picker.'
|
|
22
|
+
},
|
|
23
|
+
atlassianOtherSubcategory: {
|
|
24
|
+
id: 'fabric.emoji.subcategory.atlassian.other',
|
|
25
|
+
defaultMessage: 'Other',
|
|
26
|
+
description: 'Heading for uncategorized emoji in the Atlassian section of the emoji picker.'
|
|
27
|
+
},
|
|
28
|
+
atlassianProductivitySubcategory: {
|
|
29
|
+
id: 'fabric.emoji.subcategory.atlassian.productivity',
|
|
30
|
+
defaultMessage: 'Productivity',
|
|
31
|
+
description: 'Heading for the Productivity subcategory in the Atlassian section of the emoji picker.'
|
|
32
|
+
},
|
|
33
|
+
atlassianReactionsSubcategory: {
|
|
34
|
+
id: 'fabric.emoji.subcategory.atlassian.reactions',
|
|
35
|
+
defaultMessage: 'Reactions',
|
|
36
|
+
description: 'Heading for the Reactions subcategory in the Atlassian section of the emoji picker.'
|
|
37
|
+
},
|
|
3
38
|
deleteEmojiTooltip: {
|
|
4
39
|
id: 'fabric.emoji.delete.tooltip',
|
|
5
40
|
defaultMessage: 'Delete',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
4
|
import { EmojiPickerListContextProvider } from '../../context/EmojiPickerListContext';
|
|
4
5
|
import { customCategory, defaultEmojiPickerSize, emojiPickerPreviewHeight, frequentCategory, searchCategory, userCustomTitle, yourUploadsCategory } from '../../util/constants';
|
|
5
6
|
import { filterHiddenEmojis } from '../../util/filter-hidden-emojis';
|
|
@@ -27,6 +28,21 @@ const categoryClassname = 'emoji-category';
|
|
|
27
28
|
const atlassianCategory = 'ATLASSIAN';
|
|
28
29
|
const productivityAtlassianSubcategory = 'Productivity';
|
|
29
30
|
const atlassianSubcategoryOrder = ['Faces', 'Hands', 'Reactions', 'Objects', productivityAtlassianSubcategory, 'Logos'];
|
|
31
|
+
const atlassianSubcategoryMessageKeys = {
|
|
32
|
+
Faces: 'atlassianFacesSubcategory',
|
|
33
|
+
Hands: 'atlassianHandsSubcategory',
|
|
34
|
+
Reactions: 'atlassianReactionsSubcategory',
|
|
35
|
+
Objects: 'atlassianObjectsSubcategory',
|
|
36
|
+
Productivity: 'atlassianProductivitySubcategory',
|
|
37
|
+
Logos: 'atlassianLogosSubcategory',
|
|
38
|
+
Other: 'atlassianOtherSubcategory'
|
|
39
|
+
};
|
|
40
|
+
const getAtlassianSubcategoryHeadingTitle = title => {
|
|
41
|
+
if (!fg('platform_ally_emoji_fixes_various')) {
|
|
42
|
+
return title;
|
|
43
|
+
}
|
|
44
|
+
return atlassianSubcategoryMessageKeys[title] || title;
|
|
45
|
+
};
|
|
30
46
|
|
|
31
47
|
/**
|
|
32
48
|
* Emoji grouped by a category title ie. Frequent, Your Uploads, All Uploads
|
|
@@ -247,7 +263,7 @@ export const EmojiPickerVirtualListInternal = /*#__PURE__*/React.forwardRef((pro
|
|
|
247
263
|
sortedSubcategories.forEach(subcategory => {
|
|
248
264
|
items.push(new CategoryHeadingItem({
|
|
249
265
|
id: group.category,
|
|
250
|
-
title: subcategory.title,
|
|
266
|
+
title: getAtlassianSubcategoryHeadingTitle(subcategory.title),
|
|
251
267
|
className: categoryClassname
|
|
252
268
|
}));
|
|
253
269
|
buildEmojiRows(items, group.category, subcategory.title, subcategory.emojis, false);
|
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl';
|
|
2
2
|
export var messages = defineMessages({
|
|
3
|
+
atlassianFacesSubcategory: {
|
|
4
|
+
id: 'fabric.emoji.subcategory.atlassian.faces',
|
|
5
|
+
defaultMessage: 'Faces',
|
|
6
|
+
description: 'Heading for the Faces subcategory in the Atlassian section of the emoji picker.'
|
|
7
|
+
},
|
|
8
|
+
atlassianHandsSubcategory: {
|
|
9
|
+
id: 'fabric.emoji.subcategory.atlassian.hands',
|
|
10
|
+
defaultMessage: 'Hands',
|
|
11
|
+
description: 'Heading for the Hands subcategory in the Atlassian section of the emoji picker.'
|
|
12
|
+
},
|
|
13
|
+
atlassianLogosSubcategory: {
|
|
14
|
+
id: 'fabric.emoji.subcategory.atlassian.logos',
|
|
15
|
+
defaultMessage: 'Logos',
|
|
16
|
+
description: 'Heading for the Logos subcategory in the Atlassian section of the emoji picker.'
|
|
17
|
+
},
|
|
18
|
+
atlassianObjectsSubcategory: {
|
|
19
|
+
id: 'fabric.emoji.subcategory.atlassian.objects',
|
|
20
|
+
defaultMessage: 'Objects',
|
|
21
|
+
description: 'Heading for the Objects subcategory in the Atlassian section of the emoji picker.'
|
|
22
|
+
},
|
|
23
|
+
atlassianOtherSubcategory: {
|
|
24
|
+
id: 'fabric.emoji.subcategory.atlassian.other',
|
|
25
|
+
defaultMessage: 'Other',
|
|
26
|
+
description: 'Heading for uncategorized emoji in the Atlassian section of the emoji picker.'
|
|
27
|
+
},
|
|
28
|
+
atlassianProductivitySubcategory: {
|
|
29
|
+
id: 'fabric.emoji.subcategory.atlassian.productivity',
|
|
30
|
+
defaultMessage: 'Productivity',
|
|
31
|
+
description: 'Heading for the Productivity subcategory in the Atlassian section of the emoji picker.'
|
|
32
|
+
},
|
|
33
|
+
atlassianReactionsSubcategory: {
|
|
34
|
+
id: 'fabric.emoji.subcategory.atlassian.reactions',
|
|
35
|
+
defaultMessage: 'Reactions',
|
|
36
|
+
description: 'Heading for the Reactions subcategory in the Atlassian section of the emoji picker.'
|
|
37
|
+
},
|
|
3
38
|
deleteEmojiTooltip: {
|
|
4
39
|
id: 'fabric.emoji.delete.tooltip',
|
|
5
40
|
defaultMessage: 'Delete',
|
|
@@ -2,6 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
6
|
import { EmojiPickerListContextProvider } from '../../context/EmojiPickerListContext';
|
|
6
7
|
import { customCategory, defaultEmojiPickerSize, emojiPickerPreviewHeight, frequentCategory, searchCategory, userCustomTitle, yourUploadsCategory } from '../../util/constants';
|
|
7
8
|
import { filterHiddenEmojis } from '../../util/filter-hidden-emojis';
|
|
@@ -29,6 +30,21 @@ var categoryClassname = 'emoji-category';
|
|
|
29
30
|
var atlassianCategory = 'ATLASSIAN';
|
|
30
31
|
var productivityAtlassianSubcategory = 'Productivity';
|
|
31
32
|
var atlassianSubcategoryOrder = ['Faces', 'Hands', 'Reactions', 'Objects', productivityAtlassianSubcategory, 'Logos'];
|
|
33
|
+
var atlassianSubcategoryMessageKeys = {
|
|
34
|
+
Faces: 'atlassianFacesSubcategory',
|
|
35
|
+
Hands: 'atlassianHandsSubcategory',
|
|
36
|
+
Reactions: 'atlassianReactionsSubcategory',
|
|
37
|
+
Objects: 'atlassianObjectsSubcategory',
|
|
38
|
+
Productivity: 'atlassianProductivitySubcategory',
|
|
39
|
+
Logos: 'atlassianLogosSubcategory',
|
|
40
|
+
Other: 'atlassianOtherSubcategory'
|
|
41
|
+
};
|
|
42
|
+
var getAtlassianSubcategoryHeadingTitle = function getAtlassianSubcategoryHeadingTitle(title) {
|
|
43
|
+
if (!fg('platform_ally_emoji_fixes_various')) {
|
|
44
|
+
return title;
|
|
45
|
+
}
|
|
46
|
+
return atlassianSubcategoryMessageKeys[title] || title;
|
|
47
|
+
};
|
|
32
48
|
|
|
33
49
|
/**
|
|
34
50
|
* Emoji grouped by a category title ie. Frequent, Your Uploads, All Uploads
|
|
@@ -281,7 +297,7 @@ export var EmojiPickerVirtualListInternal = /*#__PURE__*/React.forwardRef(functi
|
|
|
281
297
|
sortedSubcategories.forEach(function (subcategory) {
|
|
282
298
|
items.push(new CategoryHeadingItem({
|
|
283
299
|
id: group.category,
|
|
284
|
-
title: subcategory.title,
|
|
300
|
+
title: getAtlassianSubcategoryHeadingTitle(subcategory.title),
|
|
285
301
|
className: categoryClassname
|
|
286
302
|
}));
|
|
287
303
|
buildEmojiRows(items, group.category, subcategory.title, subcategory.emojis, false);
|
|
@@ -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.10"
|
|
14
14
|
}, attributes)
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -19,6 +19,41 @@ export declare const messages: {
|
|
|
19
19
|
description: string;
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
|
+
atlassianFacesSubcategory: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
atlassianHandsSubcategory: {
|
|
28
|
+
defaultMessage: string;
|
|
29
|
+
description: string;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
atlassianLogosSubcategory: {
|
|
33
|
+
defaultMessage: string;
|
|
34
|
+
description: string;
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
atlassianObjectsSubcategory: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
atlassianOtherSubcategory: {
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
atlassianProductivitySubcategory: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
atlassianReactionsSubcategory: {
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
22
57
|
cancelLabel: {
|
|
23
58
|
defaultMessage: string;
|
|
24
59
|
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.11",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
45
45
|
"@atlaskit/image": "^5.2.0",
|
|
46
46
|
"@atlaskit/logo": "^23.3.0",
|
|
47
|
-
"@atlaskit/media-client": "^39.
|
|
47
|
+
"@atlaskit/media-client": "^39.4.0",
|
|
48
48
|
"@atlaskit/media-client-react": "^7.0.0",
|
|
49
49
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|
|
52
|
-
"@atlaskit/primitives": "^22.
|
|
52
|
+
"@atlaskit/primitives": "^22.7.0",
|
|
53
53
|
"@atlaskit/radio": "^10.2.0",
|
|
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": "^
|
|
58
|
-
"@atlaskit/tokens": "^20.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^260.0.0",
|
|
58
|
+
"@atlaskit/tokens": "^20.10.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.4.0",
|
|
60
60
|
"@atlaskit/ufo": "^2.0.0",
|
|
61
61
|
"@atlaskit/user-picker": "^14.5.0",
|