@atlaskit/editor-plugin-emoji 7.6.4 → 7.6.6

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,21 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 7.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a05464ea42678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a05464ea42678) -
8
+ EDITOR-2791 bump adf-schema
9
+ - Updated dependencies
10
+
11
+ ## 7.6.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [`236fe86fc7b5e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/236fe86fc7b5e) -
16
+ NOISSUE: fix emoji node view error logging
17
+ - Updated dependencies
18
+
3
19
  ## 7.6.4
4
20
 
5
21
  ### Patch Changes
@@ -78,24 +78,22 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
78
78
  _this.renderFallback();
79
79
  return;
80
80
  }
81
- var emojiDescription = payload.data;
82
- if (!emojiDescription) {
83
- EmojiNodeView.logError(new Error('Emoji description is not loaded'));
81
+ var optionalEmojiDescription = payload.data;
82
+ if (!optionalEmojiDescription) {
84
83
  _this.renderFallback();
85
84
  return;
86
85
  }
87
- var emojiRepresentation = emojiDescription === null || emojiDescription === void 0 ? void 0 : emojiDescription.representation;
86
+ var emojiRepresentation = optionalEmojiDescription === null || optionalEmojiDescription === void 0 ? void 0 : optionalEmojiDescription.representation;
88
87
  if (!EmojiNodeView.isEmojiRepresentationSupported(emojiRepresentation)) {
89
- EmojiNodeView.logError(new Error('Emoji representation is not supported'));
90
88
  _this.renderFallback();
91
89
  return;
92
90
  }
93
- if ((0, _isEqual.default)(previousEmojiDescription, emojiDescription)) {
91
+ if ((0, _isEqual.default)(previousEmojiDescription, optionalEmojiDescription)) {
94
92
  // Do not re-render if the emoji description is the same as before
95
93
  return;
96
94
  }
97
- previousEmojiDescription = emojiDescription;
98
- _this.renderEmoji(emojiDescription, emojiRepresentation);
95
+ previousEmojiDescription = optionalEmojiDescription;
96
+ _this.renderEmoji(optionalEmojiDescription, emojiRepresentation);
99
97
  });
100
98
  } else {
101
99
  var _api$emoji, _sharedState$currentS, _api$connectivity;
@@ -72,24 +72,22 @@ export class EmojiNodeView {
72
72
  this.renderFallback();
73
73
  return;
74
74
  }
75
- const emojiDescription = payload.data;
76
- if (!emojiDescription) {
77
- EmojiNodeView.logError(new Error('Emoji description is not loaded'));
75
+ const optionalEmojiDescription = payload.data;
76
+ if (!optionalEmojiDescription) {
78
77
  this.renderFallback();
79
78
  return;
80
79
  }
81
- const emojiRepresentation = emojiDescription === null || emojiDescription === void 0 ? void 0 : emojiDescription.representation;
80
+ const emojiRepresentation = optionalEmojiDescription === null || optionalEmojiDescription === void 0 ? void 0 : optionalEmojiDescription.representation;
82
81
  if (!EmojiNodeView.isEmojiRepresentationSupported(emojiRepresentation)) {
83
- EmojiNodeView.logError(new Error('Emoji representation is not supported'));
84
82
  this.renderFallback();
85
83
  return;
86
84
  }
87
- if (isEqual(previousEmojiDescription, emojiDescription)) {
85
+ if (isEqual(previousEmojiDescription, optionalEmojiDescription)) {
88
86
  // Do not re-render if the emoji description is the same as before
89
87
  return;
90
88
  }
91
- previousEmojiDescription = emojiDescription;
92
- this.renderEmoji(emojiDescription, emojiRepresentation);
89
+ previousEmojiDescription = optionalEmojiDescription;
90
+ this.renderEmoji(optionalEmojiDescription, emojiRepresentation);
93
91
  });
94
92
  } else {
95
93
  var _api$emoji, _sharedState$currentS, _api$connectivity;
@@ -70,24 +70,22 @@ export var EmojiNodeView = /*#__PURE__*/function () {
70
70
  _this.renderFallback();
71
71
  return;
72
72
  }
73
- var emojiDescription = payload.data;
74
- if (!emojiDescription) {
75
- EmojiNodeView.logError(new Error('Emoji description is not loaded'));
73
+ var optionalEmojiDescription = payload.data;
74
+ if (!optionalEmojiDescription) {
76
75
  _this.renderFallback();
77
76
  return;
78
77
  }
79
- var emojiRepresentation = emojiDescription === null || emojiDescription === void 0 ? void 0 : emojiDescription.representation;
78
+ var emojiRepresentation = optionalEmojiDescription === null || optionalEmojiDescription === void 0 ? void 0 : optionalEmojiDescription.representation;
80
79
  if (!EmojiNodeView.isEmojiRepresentationSupported(emojiRepresentation)) {
81
- EmojiNodeView.logError(new Error('Emoji representation is not supported'));
82
80
  _this.renderFallback();
83
81
  return;
84
82
  }
85
- if (isEqual(previousEmojiDescription, emojiDescription)) {
83
+ if (isEqual(previousEmojiDescription, optionalEmojiDescription)) {
86
84
  // Do not re-render if the emoji description is the same as before
87
85
  return;
88
86
  }
89
- previousEmojiDescription = emojiDescription;
90
- _this.renderEmoji(emojiDescription, emojiRepresentation);
87
+ previousEmojiDescription = optionalEmojiDescription;
88
+ _this.renderEmoji(optionalEmojiDescription, emojiRepresentation);
91
89
  });
92
90
  } else {
93
91
  var _api$emoji, _sharedState$currentS, _api$connectivity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "7.6.4",
3
+ "version": "7.6.6",
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": "^51.3.2",
24
+ "@atlaskit/adf-schema": "^51.4.0",
25
25
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
26
26
  "@atlaskit/editor-plugin-annotation": "^6.2.0",
27
27
  "@atlaskit/editor-plugin-base": "^7.2.0",
@@ -29,7 +29,7 @@
29
29
  "@atlaskit/editor-plugin-metrics": "^7.1.0",
30
30
  "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
31
31
  "@atlaskit/editor-prosemirror": "7.0.0",
32
- "@atlaskit/editor-shared-styles": "^3.9.0",
32
+ "@atlaskit/editor-shared-styles": "^3.10.0",
33
33
  "@atlaskit/emoji": "^69.8.0",
34
34
  "@atlaskit/icon": "^29.0.0",
35
35
  "@atlaskit/node-data-provider": "^7.5.0",
@@ -45,7 +45,7 @@
45
45
  "react-loadable": "^5.1.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^110.29.0",
48
+ "@atlaskit/editor-common": "^110.32.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  },