@atlaskit/emoji 69.12.2 → 69.12.3
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 +9 -0
- package/dist/cjs/components/common/ResourcedEmojiComponent.js +16 -0
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/ResourcedEmojiComponent.js +16 -0
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/ResourcedEmojiComponent.js +16 -0
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.12.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`dcc5e79fd2f9d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dcc5e79fd2f9d) -
|
|
8
|
+
Add platform_emoji_prevent_img_src_changing_all feature flag to prevent catalogue-arrival image
|
|
9
|
+
swap for all surfaces that provide optimisticImageURL, independently of the existing
|
|
10
|
+
platform_emoji_prevent_img_src_changing flag
|
|
11
|
+
|
|
3
12
|
## 69.12.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -194,6 +194,22 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
|
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
+
// extend prevention to all surfaces
|
|
198
|
+
if (optimisticImageURL && (0, _platformFeatureFlags.fg)('platform_emoji_prevent_img_src_changing_all')) {
|
|
199
|
+
return {
|
|
200
|
+
id: id,
|
|
201
|
+
shortName: shortName,
|
|
202
|
+
fallback: fallback,
|
|
203
|
+
type: '',
|
|
204
|
+
category: '',
|
|
205
|
+
searchable: true,
|
|
206
|
+
representation: {
|
|
207
|
+
height: fitToHeight || _constants.defaultEmojiHeight,
|
|
208
|
+
width: fitToHeight || _constants.defaultEmojiHeight,
|
|
209
|
+
imagePath: optimisticImageURL
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
197
213
|
if (optimisticImageURL) {
|
|
198
214
|
if (emoji && ((0, _typeHelpers.isImageRepresentation)(emoji.representation) || (0, _typeHelpers.isMediaRepresentation)(emoji === null || emoji === void 0 ? void 0 : emoji.representation))) {
|
|
199
215
|
var _emoji$representation = emoji.representation,
|
|
@@ -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: "
|
|
23
|
+
packageVersion: "0.0.0-development"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -146,6 +146,22 @@ export const ResourcedEmojiComponent = ({
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
+
// extend prevention to all surfaces
|
|
150
|
+
if (optimisticImageURL && fg('platform_emoji_prevent_img_src_changing_all')) {
|
|
151
|
+
return {
|
|
152
|
+
id,
|
|
153
|
+
shortName,
|
|
154
|
+
fallback,
|
|
155
|
+
type: '',
|
|
156
|
+
category: '',
|
|
157
|
+
searchable: true,
|
|
158
|
+
representation: {
|
|
159
|
+
height: fitToHeight || defaultEmojiHeight,
|
|
160
|
+
width: fitToHeight || defaultEmojiHeight,
|
|
161
|
+
imagePath: optimisticImageURL
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
149
165
|
if (optimisticImageURL) {
|
|
150
166
|
if (emoji && (isImageRepresentation(emoji.representation) || isMediaRepresentation(emoji === null || emoji === void 0 ? void 0 : emoji.representation))) {
|
|
151
167
|
const {
|
|
@@ -185,6 +185,22 @@ export var ResourcedEmojiComponent = function ResourcedEmojiComponent(_ref) {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
+
// extend prevention to all surfaces
|
|
189
|
+
if (optimisticImageURL && fg('platform_emoji_prevent_img_src_changing_all')) {
|
|
190
|
+
return {
|
|
191
|
+
id: id,
|
|
192
|
+
shortName: shortName,
|
|
193
|
+
fallback: fallback,
|
|
194
|
+
type: '',
|
|
195
|
+
category: '',
|
|
196
|
+
searchable: true,
|
|
197
|
+
representation: {
|
|
198
|
+
height: fitToHeight || defaultEmojiHeight,
|
|
199
|
+
width: fitToHeight || defaultEmojiHeight,
|
|
200
|
+
imagePath: optimisticImageURL
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
}
|
|
188
204
|
if (optimisticImageURL) {
|
|
189
205
|
if (emoji && (isImageRepresentation(emoji.representation) || isMediaRepresentation(emoji === null || emoji === void 0 ? void 0 : emoji.representation))) {
|
|
190
206
|
var _emoji$representation = emoji.representation,
|
|
@@ -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: "
|
|
17
|
+
packageVersion: "0.0.0-development"
|
|
18
18
|
}, attributes)
|
|
19
19
|
};
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.12.
|
|
3
|
+
"version": "69.12.3",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -122,6 +122,9 @@
|
|
|
122
122
|
"platform_emoji_prevent_img_src_changing": {
|
|
123
123
|
"type": "boolean"
|
|
124
124
|
},
|
|
125
|
+
"platform_emoji_prevent_img_src_changing_all": {
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
125
128
|
"platform_suppression_removal_fix_reactions": {
|
|
126
129
|
"type": "boolean"
|
|
127
130
|
},
|