@atlaskit/editor-plugin-emoji 8.1.6 → 8.1.8

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,20 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 8.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`508384bef9a9b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/508384bef9a9b) -
8
+ [ux] [EDITOR-4774] add title attribute to emoji container element so that tooltips appear on hover
9
+ in the editor
10
+ - Updated dependencies
11
+
12
+ ## 8.1.7
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 8.1.6
4
19
 
5
20
  ### Patch Changes
@@ -239,6 +239,9 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
239
239
  // Add wrapper for the emoji
240
240
  var containerElement = document.createElement('span');
241
241
  containerElement.setAttribute('role', 'img');
242
+ if ((0, _expValEquals.expValEquals)('platform_editor_emoji_tooltips_on_hover', 'isEnabled', true)) {
243
+ containerElement.setAttribute('title', description.shortName);
244
+ }
242
245
  containerElement.classList.add(_emoji.EmojiSharedCssClassName.EMOJI_CONTAINER);
243
246
  containerElement.setAttribute('data-testid', "".concat(emojiType, "-emoji-").concat(description.shortName));
244
247
  containerElement.setAttribute('data-emoji-type', emojiType);
@@ -205,6 +205,9 @@ export class EmojiNodeView {
205
205
  // Add wrapper for the emoji
206
206
  const containerElement = document.createElement('span');
207
207
  containerElement.setAttribute('role', 'img');
208
+ if (expValEquals('platform_editor_emoji_tooltips_on_hover', 'isEnabled', true)) {
209
+ containerElement.setAttribute('title', description.shortName);
210
+ }
208
211
  containerElement.classList.add(EmojiSharedCssClassName.EMOJI_CONTAINER);
209
212
  containerElement.setAttribute('data-testid', `${emojiType}-emoji-${description.shortName}`);
210
213
  containerElement.setAttribute('data-emoji-type', emojiType);
@@ -231,6 +231,9 @@ export var EmojiNodeView = /*#__PURE__*/function () {
231
231
  // Add wrapper for the emoji
232
232
  var containerElement = document.createElement('span');
233
233
  containerElement.setAttribute('role', 'img');
234
+ if (expValEquals('platform_editor_emoji_tooltips_on_hover', 'isEnabled', true)) {
235
+ containerElement.setAttribute('title', description.shortName);
236
+ }
234
237
  containerElement.classList.add(EmojiSharedCssClassName.EMOJI_CONTAINER);
235
238
  containerElement.setAttribute('data-testid', "".concat(emojiType, "-emoji-").concat(description.shortName));
236
239
  containerElement.setAttribute('data-emoji-type', emojiType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "8.1.6",
3
+ "version": "8.1.8",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,10 +33,10 @@
33
33
  "@atlaskit/editor-shared-styles": "^3.10.0",
34
34
  "@atlaskit/emoji": "^69.10.0",
35
35
  "@atlaskit/icon": "^30.0.0",
36
- "@atlaskit/node-data-provider": "^8.1.0",
36
+ "@atlaskit/node-data-provider": "^8.2.0",
37
37
  "@atlaskit/platform-feature-flags": "^1.1.0",
38
38
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
39
- "@atlaskit/tmp-editor-statsig": "^19.0.0",
39
+ "@atlaskit/tmp-editor-statsig": "^20.2.0",
40
40
  "@atlaskit/tokens": "^11.0.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1",