@atlaskit/emoji 70.17.0 → 70.17.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 +13 -0
- package/dist/cjs/api/EmojiUtils.js +10 -7
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/api/EmojiUtils.js +10 -7
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/api/EmojiUtils.js +10 -7
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 70.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 70.17.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0f549097540b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f549097540b7) -
|
|
14
|
+
Fix Unicode emoji rendering for standard emoji skin tone variations.
|
|
15
|
+
|
|
3
16
|
## 70.17.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -117,6 +117,13 @@ var denormaliseServiceRepresentation = exports.denormaliseServiceRepresentation
|
|
|
117
117
|
var denormaliseServiceAltRepresentation = exports.denormaliseServiceAltRepresentation = function denormaliseServiceAltRepresentation(altReps, meta) {
|
|
118
118
|
return !altReps || Object.keys(altReps).length === 0 ? undefined : denormaliseServiceRepresentation(getAltRepresentation(altReps), meta);
|
|
119
119
|
};
|
|
120
|
+
var denormaliseStandardRepresentation = function denormaliseStandardRepresentation(emoji, meta) {
|
|
121
|
+
var unicodeEmoji = (0, _emojiIdToEmoji.emojiIdToEmoji)(emoji.id);
|
|
122
|
+
var useUnicodeRepresentation = !!(emoji.id && emoji.type === _types.ProviderTypes.STANDARD && unicodeEmoji && (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis'));
|
|
123
|
+
return useUnicodeRepresentation ? {
|
|
124
|
+
unicodeEmoji: unicodeEmoji
|
|
125
|
+
} : denormaliseServiceRepresentation(emoji.representation, meta);
|
|
126
|
+
};
|
|
120
127
|
var denormaliseSkinEmoji = exports.denormaliseSkinEmoji = function denormaliseSkinEmoji(emoji, meta) {
|
|
121
128
|
if (!emoji.skinVariations) {
|
|
122
129
|
return [];
|
|
@@ -124,12 +131,12 @@ var denormaliseSkinEmoji = exports.denormaliseSkinEmoji = function denormaliseSk
|
|
|
124
131
|
var skinEmoji = emoji.skinVariations;
|
|
125
132
|
var baseId = emoji.id;
|
|
126
133
|
return skinEmoji.map(function (skin) {
|
|
127
|
-
var
|
|
134
|
+
var _representation = skin.representation,
|
|
128
135
|
altRepresentations = skin.altRepresentations,
|
|
129
136
|
other = (0, _objectWithoutProperties2.default)(skin, _excluded3);
|
|
130
137
|
return _objectSpread({
|
|
131
138
|
baseId: baseId,
|
|
132
|
-
representation:
|
|
139
|
+
representation: denormaliseStandardRepresentation(skin, meta),
|
|
133
140
|
altRepresentation: denormaliseServiceAltRepresentation(altRepresentations, meta)
|
|
134
141
|
}, other);
|
|
135
142
|
});
|
|
@@ -141,11 +148,7 @@ var denormaliseSkinEmoji = exports.denormaliseSkinEmoji = function denormaliseSk
|
|
|
141
148
|
*/
|
|
142
149
|
var denormaliseEmojiServiceResponse = exports.denormaliseEmojiServiceResponse = function denormaliseEmojiServiceResponse(emojiData) {
|
|
143
150
|
var emojis = emojiData.emojis.map(function (emoji) {
|
|
144
|
-
var
|
|
145
|
-
var useUnicodeRepresentation = !!(emoji.id && emoji.type === _types.ProviderTypes.STANDARD && unicodeEmoji && (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis'));
|
|
146
|
-
var newRepresentation = useUnicodeRepresentation ? {
|
|
147
|
-
unicodeEmoji: unicodeEmoji
|
|
148
|
-
} : denormaliseServiceRepresentation(emoji.representation, emojiData.meta);
|
|
151
|
+
var newRepresentation = denormaliseStandardRepresentation(emoji, emojiData.meta);
|
|
149
152
|
var altRepresentation = denormaliseServiceAltRepresentation(emoji.altRepresentations, emojiData.meta);
|
|
150
153
|
var newSkinVariations = denormaliseSkinEmoji(emoji, emojiData.meta);
|
|
151
154
|
|
|
@@ -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: "70.
|
|
23
|
+
packageVersion: "70.17.1"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -107,6 +107,13 @@ export const denormaliseServiceRepresentation = (representation, meta) => {
|
|
|
107
107
|
export const denormaliseServiceAltRepresentation = (altReps, meta) => {
|
|
108
108
|
return !altReps || Object.keys(altReps).length === 0 ? undefined : denormaliseServiceRepresentation(getAltRepresentation(altReps), meta);
|
|
109
109
|
};
|
|
110
|
+
const denormaliseStandardRepresentation = (emoji, meta) => {
|
|
111
|
+
const unicodeEmoji = emojiIdToEmoji(emoji.id);
|
|
112
|
+
const useUnicodeRepresentation = !!(emoji.id && emoji.type === ProviderTypes.STANDARD && unicodeEmoji && fg('platform_twemoji_removal_unicode_emojis'));
|
|
113
|
+
return useUnicodeRepresentation ? {
|
|
114
|
+
unicodeEmoji
|
|
115
|
+
} : denormaliseServiceRepresentation(emoji.representation, meta);
|
|
116
|
+
};
|
|
110
117
|
export const denormaliseSkinEmoji = (emoji, meta) => {
|
|
111
118
|
if (!emoji.skinVariations) {
|
|
112
119
|
return [];
|
|
@@ -115,13 +122,13 @@ export const denormaliseSkinEmoji = (emoji, meta) => {
|
|
|
115
122
|
const baseId = emoji.id;
|
|
116
123
|
return skinEmoji.map(skin => {
|
|
117
124
|
const {
|
|
118
|
-
representation,
|
|
125
|
+
representation: _representation,
|
|
119
126
|
altRepresentations,
|
|
120
127
|
...other
|
|
121
128
|
} = skin;
|
|
122
129
|
return {
|
|
123
130
|
baseId: baseId,
|
|
124
|
-
representation:
|
|
131
|
+
representation: denormaliseStandardRepresentation(skin, meta),
|
|
125
132
|
altRepresentation: denormaliseServiceAltRepresentation(altRepresentations, meta),
|
|
126
133
|
...other
|
|
127
134
|
};
|
|
@@ -134,11 +141,7 @@ export const denormaliseSkinEmoji = (emoji, meta) => {
|
|
|
134
141
|
*/
|
|
135
142
|
export const denormaliseEmojiServiceResponse = emojiData => {
|
|
136
143
|
const emojis = emojiData.emojis.map(emoji => {
|
|
137
|
-
const
|
|
138
|
-
const useUnicodeRepresentation = !!(emoji.id && emoji.type === ProviderTypes.STANDARD && unicodeEmoji && fg('platform_twemoji_removal_unicode_emojis'));
|
|
139
|
-
const newRepresentation = useUnicodeRepresentation ? {
|
|
140
|
-
unicodeEmoji
|
|
141
|
-
} : denormaliseServiceRepresentation(emoji.representation, emojiData.meta);
|
|
144
|
+
const newRepresentation = denormaliseStandardRepresentation(emoji, emojiData.meta);
|
|
142
145
|
const altRepresentation = denormaliseServiceAltRepresentation(emoji.altRepresentations, emojiData.meta);
|
|
143
146
|
const newSkinVariations = denormaliseSkinEmoji(emoji, emojiData.meta);
|
|
144
147
|
|
|
@@ -110,6 +110,13 @@ export var denormaliseServiceRepresentation = function denormaliseServiceReprese
|
|
|
110
110
|
export var denormaliseServiceAltRepresentation = function denormaliseServiceAltRepresentation(altReps, meta) {
|
|
111
111
|
return !altReps || Object.keys(altReps).length === 0 ? undefined : denormaliseServiceRepresentation(getAltRepresentation(altReps), meta);
|
|
112
112
|
};
|
|
113
|
+
var denormaliseStandardRepresentation = function denormaliseStandardRepresentation(emoji, meta) {
|
|
114
|
+
var unicodeEmoji = emojiIdToEmoji(emoji.id);
|
|
115
|
+
var useUnicodeRepresentation = !!(emoji.id && emoji.type === ProviderTypes.STANDARD && unicodeEmoji && fg('platform_twemoji_removal_unicode_emojis'));
|
|
116
|
+
return useUnicodeRepresentation ? {
|
|
117
|
+
unicodeEmoji: unicodeEmoji
|
|
118
|
+
} : denormaliseServiceRepresentation(emoji.representation, meta);
|
|
119
|
+
};
|
|
113
120
|
export var denormaliseSkinEmoji = function denormaliseSkinEmoji(emoji, meta) {
|
|
114
121
|
if (!emoji.skinVariations) {
|
|
115
122
|
return [];
|
|
@@ -117,12 +124,12 @@ export var denormaliseSkinEmoji = function denormaliseSkinEmoji(emoji, meta) {
|
|
|
117
124
|
var skinEmoji = emoji.skinVariations;
|
|
118
125
|
var baseId = emoji.id;
|
|
119
126
|
return skinEmoji.map(function (skin) {
|
|
120
|
-
var
|
|
127
|
+
var _representation = skin.representation,
|
|
121
128
|
altRepresentations = skin.altRepresentations,
|
|
122
129
|
other = _objectWithoutProperties(skin, _excluded3);
|
|
123
130
|
return _objectSpread({
|
|
124
131
|
baseId: baseId,
|
|
125
|
-
representation:
|
|
132
|
+
representation: denormaliseStandardRepresentation(skin, meta),
|
|
126
133
|
altRepresentation: denormaliseServiceAltRepresentation(altRepresentations, meta)
|
|
127
134
|
}, other);
|
|
128
135
|
});
|
|
@@ -134,11 +141,7 @@ export var denormaliseSkinEmoji = function denormaliseSkinEmoji(emoji, meta) {
|
|
|
134
141
|
*/
|
|
135
142
|
export var denormaliseEmojiServiceResponse = function denormaliseEmojiServiceResponse(emojiData) {
|
|
136
143
|
var emojis = emojiData.emojis.map(function (emoji) {
|
|
137
|
-
var
|
|
138
|
-
var useUnicodeRepresentation = !!(emoji.id && emoji.type === ProviderTypes.STANDARD && unicodeEmoji && fg('platform_twemoji_removal_unicode_emojis'));
|
|
139
|
-
var newRepresentation = useUnicodeRepresentation ? {
|
|
140
|
-
unicodeEmoji: unicodeEmoji
|
|
141
|
-
} : denormaliseServiceRepresentation(emoji.representation, emojiData.meta);
|
|
144
|
+
var newRepresentation = denormaliseStandardRepresentation(emoji, emojiData.meta);
|
|
142
145
|
var altRepresentation = denormaliseServiceAltRepresentation(emoji.altRepresentations, emojiData.meta);
|
|
143
146
|
var newSkinVariations = denormaliseSkinEmoji(emoji, emojiData.meta);
|
|
144
147
|
|
|
@@ -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: "70.
|
|
17
|
+
packageVersion: "70.17.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": "70.17.
|
|
3
|
+
"version": "70.17.2",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/primitives": "^19.0.0",
|
|
56
56
|
"@atlaskit/spinner": "^19.1.0",
|
|
57
57
|
"@atlaskit/textfield": "^8.3.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^95.0.0",
|
|
59
59
|
"@atlaskit/tokens": "^13.3.0",
|
|
60
60
|
"@atlaskit/tooltip": "^22.6.0",
|
|
61
61
|
"@atlaskit/ufo": "^0.5.0",
|