@atlaskit/editor-plugin-emoji 7.6.2 → 7.6.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 7.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a8137975c5ecb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8137975c5ecb) -
8
+ [ux] [EDITOR-2459] css behind an experiment gate to scale emoji sizes with text styles
9
+ - Updated dependencies
10
+
3
11
  ## 7.6.2
4
12
 
5
13
  ### Patch Changes
@@ -263,10 +263,12 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
263
263
  spriteElement.style.backgroundImage = "url(".concat(sprite.url, ")");
264
264
  spriteElement.style.backgroundPosition = "".concat(xPositionInPercent, "% ").concat(yPositionInPercent, "%");
265
265
  spriteElement.style.backgroundSize = "".concat(sprite.column * 100, "% ").concat(sprite.row * 100, "%");
266
- spriteElement.style.width = "".concat(_emoji.defaultEmojiHeight, "px");
267
266
  spriteElement.style.minWidth = "".concat(_emoji.defaultEmojiHeight, "px");
268
- spriteElement.style.height = "".concat(_emoji.defaultEmojiHeight, "px");
269
267
  spriteElement.style.minHeight = "".concat(_emoji.defaultEmojiHeight, "px");
268
+ if (!(0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true)) {
269
+ spriteElement.style.width = "".concat(_emoji.defaultEmojiHeight, "px");
270
+ spriteElement.style.height = "".concat(_emoji.defaultEmojiHeight, "px");
271
+ }
270
272
  return spriteElement;
271
273
  }
272
274
  }, {
@@ -227,10 +227,12 @@ export class EmojiNodeView {
227
227
  spriteElement.style.backgroundImage = `url(${sprite.url})`;
228
228
  spriteElement.style.backgroundPosition = `${xPositionInPercent}% ${yPositionInPercent}%`;
229
229
  spriteElement.style.backgroundSize = `${sprite.column * 100}% ${sprite.row * 100}%`;
230
- spriteElement.style.width = `${defaultEmojiHeight}px`;
231
230
  spriteElement.style.minWidth = `${defaultEmojiHeight}px`;
232
- spriteElement.style.height = `${defaultEmojiHeight}px`;
233
231
  spriteElement.style.minHeight = `${defaultEmojiHeight}px`;
232
+ if (!expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true)) {
233
+ spriteElement.style.width = `${defaultEmojiHeight}px`;
234
+ spriteElement.style.height = `${defaultEmojiHeight}px`;
235
+ }
234
236
  return spriteElement;
235
237
  }
236
238
  createImageEmojiElement(emojiDescription, representation) {
@@ -255,10 +255,12 @@ export var EmojiNodeView = /*#__PURE__*/function () {
255
255
  spriteElement.style.backgroundImage = "url(".concat(sprite.url, ")");
256
256
  spriteElement.style.backgroundPosition = "".concat(xPositionInPercent, "% ").concat(yPositionInPercent, "%");
257
257
  spriteElement.style.backgroundSize = "".concat(sprite.column * 100, "% ").concat(sprite.row * 100, "%");
258
- spriteElement.style.width = "".concat(defaultEmojiHeight, "px");
259
258
  spriteElement.style.minWidth = "".concat(defaultEmojiHeight, "px");
260
- spriteElement.style.height = "".concat(defaultEmojiHeight, "px");
261
259
  spriteElement.style.minHeight = "".concat(defaultEmojiHeight, "px");
260
+ if (!expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true)) {
261
+ spriteElement.style.width = "".concat(defaultEmojiHeight, "px");
262
+ spriteElement.style.height = "".concat(defaultEmojiHeight, "px");
263
+ }
262
264
  return spriteElement;
263
265
  }
264
266
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "7.6.2",
3
+ "version": "7.6.3",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,13 +30,13 @@
30
30
  "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
31
31
  "@atlaskit/editor-prosemirror": "7.0.0",
32
32
  "@atlaskit/editor-shared-styles": "^3.9.0",
33
- "@atlaskit/emoji": "^69.7.0",
33
+ "@atlaskit/emoji": "^69.8.0",
34
34
  "@atlaskit/icon": "^29.0.0",
35
35
  "@atlaskit/node-data-provider": "^7.5.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
37
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
38
38
  "@atlaskit/theme": "^21.0.0",
39
- "@atlaskit/tmp-editor-statsig": "^13.35.0",
39
+ "@atlaskit/tmp-editor-statsig": "^13.37.0",
40
40
  "@atlaskit/tokens": "^8.0.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@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": "^110.27.0",
48
+ "@atlaskit/editor-common": "^110.28.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  },