@atlaskit/editor-plugin-emoji 12.0.5 → 12.0.7

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 12.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0f549097540b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f549097540b7) -
8
+ Fix Unicode emoji rendering for standard emoji skin tone variations.
9
+ - Updated dependencies
10
+
11
+ ## 12.0.6
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 12.0.5
4
18
 
5
19
  ### Patch Changes
@@ -240,7 +240,7 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
240
240
  value: function renderEmoji(description, representation) {
241
241
  this.renderingFallback = false;
242
242
  this.cleanUpAndRenderCommonAttributes();
243
- var emojiType = 'sprite' in representation ? 'sprite' : 'image';
243
+ var emojiType = 'unicodeEmoji' in representation ? 'unicode' : 'sprite' in representation ? 'sprite' : 'image';
244
244
  var doc = (0, _browserApis.getDocument)();
245
245
  if (!doc) {
246
246
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
@@ -347,7 +347,7 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
347
347
  }, {
348
348
  key: "isEmojiRepresentationSupported",
349
349
  value: function isEmojiRepresentationSupported(representation) {
350
- return !!representation && ('sprite' in representation || 'imagePath' in representation || 'mediaPath' in representation);
350
+ return !!representation && ('sprite' in representation || 'imagePath' in representation || 'mediaPath' in representation || 'unicodeEmoji' in representation);
351
351
  }
352
352
  }]);
353
353
  }();
@@ -174,7 +174,7 @@ export class EmojiNodeView {
174
174
  }
175
175
  }
176
176
  static isEmojiRepresentationSupported(representation) {
177
- return !!representation && ('sprite' in representation || 'imagePath' in representation || 'mediaPath' in representation);
177
+ return !!representation && ('sprite' in representation || 'imagePath' in representation || 'mediaPath' in representation || 'unicodeEmoji' in representation);
178
178
  }
179
179
 
180
180
  // Pay attention, this method should be called only when the emoji provider returns
@@ -206,7 +206,7 @@ export class EmojiNodeView {
206
206
  renderEmoji(description, representation) {
207
207
  this.renderingFallback = false;
208
208
  this.cleanUpAndRenderCommonAttributes();
209
- const emojiType = 'sprite' in representation ? 'sprite' : 'image';
209
+ const emojiType = 'unicodeEmoji' in representation ? 'unicode' : 'sprite' in representation ? 'sprite' : 'image';
210
210
  let doc = getDocument();
211
211
  if (!doc) {
212
212
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
@@ -232,7 +232,7 @@ export var EmojiNodeView = /*#__PURE__*/function () {
232
232
  value: function renderEmoji(description, representation) {
233
233
  this.renderingFallback = false;
234
234
  this.cleanUpAndRenderCommonAttributes();
235
- var emojiType = 'sprite' in representation ? 'sprite' : 'image';
235
+ var emojiType = 'unicodeEmoji' in representation ? 'unicode' : 'sprite' in representation ? 'sprite' : 'image';
236
236
  var doc = getDocument();
237
237
  if (!doc) {
238
238
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
@@ -339,7 +339,7 @@ export var EmojiNodeView = /*#__PURE__*/function () {
339
339
  }, {
340
340
  key: "isEmojiRepresentationSupported",
341
341
  value: function isEmojiRepresentationSupported(representation) {
342
- return !!representation && ('sprite' in representation || 'imagePath' in representation || 'mediaPath' in representation);
342
+ return !!representation && ('sprite' in representation || 'imagePath' in representation || 'mediaPath' in representation || 'unicodeEmoji' in representation);
343
343
  }
344
344
  }]);
345
345
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "12.0.5",
3
+ "version": "12.0.7",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,7 +21,7 @@
21
21
  "singleton": true
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^52.16.0",
24
+ "@atlaskit/adf-schema": "^53.0.0",
25
25
  "@atlaskit/browser-apis": "^0.0.2",
26
26
  "@atlaskit/editor-plugin-analytics": "^11.0.0",
27
27
  "@atlaskit/editor-plugin-annotation": "^11.0.0",
@@ -29,15 +29,15 @@
29
29
  "@atlaskit/editor-plugin-connectivity": "^11.0.0",
30
30
  "@atlaskit/editor-plugin-editor-viewmode": "^13.0.0",
31
31
  "@atlaskit/editor-plugin-metrics": "^12.0.0",
32
- "@atlaskit/editor-plugin-type-ahead": "^11.1.0",
32
+ "@atlaskit/editor-plugin-type-ahead": "^11.2.0",
33
33
  "@atlaskit/editor-prosemirror": "^7.3.0",
34
34
  "@atlaskit/editor-shared-styles": "^3.11.0",
35
- "@atlaskit/emoji": "^70.16.0",
35
+ "@atlaskit/emoji": "^70.17.0",
36
36
  "@atlaskit/icon": "^35.4.0",
37
37
  "@atlaskit/node-data-provider": "^12.0.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
39
  "@atlaskit/prosemirror-input-rules": "^3.7.0",
40
- "@atlaskit/tmp-editor-statsig": "^93.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^94.0.0",
41
41
  "@atlaskit/tokens": "^13.3.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",
@@ -45,7 +45,7 @@
45
45
  "react-loadable": "^5.1.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^115.7.0",
48
+ "@atlaskit/editor-common": "^115.10.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0",
51
51
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"