@atlaskit/emoji 69.8.3 → 69.8.5

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/emoji
2
2
 
3
+ ## 69.8.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`89f064b9cae39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/89f064b9cae39) -
8
+ [ux] [EDITOR-2917] scale emoji placeholders in the renderer
9
+ - Updated dependencies
10
+
11
+ ## 69.8.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 69.8.3
4
18
 
5
19
  ### Patch Changes
@@ -9,6 +9,7 @@ exports.emojiPlaceholderTestId = exports.default = void 0;
9
9
  require("./EmojiPlaceholder.compiled.css");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
13
  var _constants = require("../../util/constants");
13
14
  var _styles = require("./styles");
14
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -37,7 +38,11 @@ var EmojiPlaceholder = function EmojiPlaceholder(props) {
37
38
  }
38
39
  var width = scaledWidth || size;
39
40
  var height = scaledHeight || size;
40
- var style = {
41
+ var style = (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? {
42
+ fill: 'f7f7f7',
43
+ minWidth: "".concat(_constants.defaultDenseEmojiHeight, "px"),
44
+ minHeight: "".concat(_constants.defaultDenseEmojiHeight, "px")
45
+ } : {
41
46
  fill: 'f7f7f7',
42
47
  minWidth: "".concat(width, "px"),
43
48
  width: "".concat(width, "px"),
@@ -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: "69.8.2"
23
+ packageVersion: "0.0.0-development"
24
24
  }, attributes)
25
25
  };
26
26
  };
@@ -2,7 +2,8 @@
2
2
  import "./EmojiPlaceholder.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { defaultEmojiHeight } from '../../util/constants';
5
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
+ import { defaultEmojiHeight, defaultDenseEmojiHeight } from '../../util/constants';
6
7
  import { placeholder } from './styles';
7
8
  const placeholderContainer = null;
8
9
  export const emojiPlaceholderTestId = shortName => `emoji-placeholder-${shortName}`;
@@ -27,7 +28,11 @@ const EmojiPlaceholder = props => {
27
28
  }
28
29
  const width = scaledWidth || size;
29
30
  const height = scaledHeight || size;
30
- const style = {
31
+ const style = expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? {
32
+ fill: 'f7f7f7',
33
+ minWidth: `${defaultDenseEmojiHeight}px`,
34
+ minHeight: `${defaultDenseEmojiHeight}px`
35
+ } : {
31
36
  fill: 'f7f7f7',
32
37
  minWidth: `${width}px`,
33
38
  width: `${width}px`,
@@ -8,7 +8,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
8
8
  actionSubjectId,
9
9
  attributes: {
10
10
  packageName: "@atlaskit/emoji",
11
- packageVersion: "69.8.2",
11
+ packageVersion: "0.0.0-development",
12
12
  ...attributes
13
13
  }
14
14
  });
@@ -2,7 +2,8 @@
2
2
  import "./EmojiPlaceholder.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { defaultEmojiHeight } from '../../util/constants';
5
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
+ import { defaultEmojiHeight, defaultDenseEmojiHeight } from '../../util/constants';
6
7
  import { placeholder } from './styles';
7
8
  var placeholderContainer = null;
8
9
  export var emojiPlaceholderTestId = function emojiPlaceholderTestId(shortName) {
@@ -29,7 +30,11 @@ var EmojiPlaceholder = function EmojiPlaceholder(props) {
29
30
  }
30
31
  var width = scaledWidth || size;
31
32
  var height = scaledHeight || size;
32
- var style = {
33
+ var style = expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? {
34
+ fill: 'f7f7f7',
35
+ minWidth: "".concat(defaultDenseEmojiHeight, "px"),
36
+ minHeight: "".concat(defaultDenseEmojiHeight, "px")
37
+ } : {
33
38
  fill: 'f7f7f7',
34
39
  minWidth: "".concat(width, "px"),
35
40
  width: "".concat(width, "px"),
@@ -13,7 +13,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
13
13
  actionSubjectId: actionSubjectId,
14
14
  attributes: _objectSpread({
15
15
  packageName: "@atlaskit/emoji",
16
- packageVersion: "69.8.2"
16
+ packageVersion: "0.0.0-development"
17
17
  }, attributes)
18
18
  };
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/emoji",
3
- "version": "69.8.3",
3
+ "version": "69.8.5",
4
4
  "description": "Fabric emoji React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/media-client-react": "^4.1.0",
45
45
  "@atlaskit/platform-feature-flags": "^1.1.0",
46
46
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
47
- "@atlaskit/primitives": "^16.3.0",
47
+ "@atlaskit/primitives": "^16.4.0",
48
48
  "@atlaskit/react-ufo": "^4.15.0",
49
49
  "@atlaskit/spinner": "^19.0.0",
50
50
  "@atlaskit/textfield": "^8.1.0",
51
51
  "@atlaskit/theme": "^21.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^13.42.0",
53
- "@atlaskit/tokens": "^8.3.0",
52
+ "@atlaskit/tmp-editor-statsig": "^14.1.0",
53
+ "@atlaskit/tokens": "^8.4.0",
54
54
  "@atlaskit/tooltip": "^20.10.0",
55
55
  "@atlaskit/ufo": "^0.4.0",
56
56
  "@atlaskit/util-service-support": "^6.3.0",