@atlaskit/emoji 71.3.3 → 71.4.1

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-products/tsconfig.json +3 -0
  4. package/dist/cjs/api/EmojiUtils.js +2 -2
  5. package/dist/cjs/components/common/Emoji.js +7 -0
  6. package/dist/cjs/components/common/EmojiActions.js +14 -4
  7. package/dist/cjs/components/common/EmojiPreviewComponent.js +2 -2
  8. package/dist/cjs/components/common/EmojiRadioButton.js +2 -2
  9. package/dist/cjs/components/common/ResourcedEmojiComponent.js +4 -3
  10. package/dist/cjs/components/common/TonePreviewButton.js +2 -2
  11. package/dist/cjs/components/picker/EmojiPickerComponent.js +1 -1
  12. package/dist/cjs/components/picker/EmojiPickerEmojiRow.js +10 -3
  13. package/dist/cjs/components/picker/EmojiPickerList.js +15 -4
  14. package/dist/cjs/util/analytics/analytics.js +1 -1
  15. package/dist/cjs/util/emojiIdToEmoji.js +2 -2
  16. package/dist/es2019/api/EmojiUtils.js +2 -2
  17. package/dist/es2019/components/common/Emoji.js +8 -1
  18. package/dist/es2019/components/common/EmojiActions.js +14 -4
  19. package/dist/es2019/components/common/EmojiPreviewComponent.js +2 -2
  20. package/dist/es2019/components/common/EmojiRadioButton.js +2 -2
  21. package/dist/es2019/components/common/ResourcedEmojiComponent.js +4 -3
  22. package/dist/es2019/components/common/TonePreviewButton.js +2 -2
  23. package/dist/es2019/components/picker/EmojiPickerComponent.js +1 -1
  24. package/dist/es2019/components/picker/EmojiPickerEmojiRow.js +10 -3
  25. package/dist/es2019/components/picker/EmojiPickerList.js +15 -5
  26. package/dist/es2019/util/analytics/analytics.js +1 -1
  27. package/dist/es2019/util/emojiIdToEmoji.js +2 -2
  28. package/dist/esm/api/EmojiUtils.js +2 -2
  29. package/dist/esm/components/common/Emoji.js +8 -1
  30. package/dist/esm/components/common/EmojiActions.js +14 -4
  31. package/dist/esm/components/common/EmojiPreviewComponent.js +2 -2
  32. package/dist/esm/components/common/EmojiRadioButton.js +2 -2
  33. package/dist/esm/components/common/ResourcedEmojiComponent.js +4 -3
  34. package/dist/esm/components/common/TonePreviewButton.js +2 -2
  35. package/dist/esm/components/picker/EmojiPickerComponent.js +1 -1
  36. package/dist/esm/components/picker/EmojiPickerEmojiRow.js +10 -3
  37. package/dist/esm/components/picker/EmojiPickerList.js +15 -4
  38. package/dist/esm/util/analytics/analytics.js +1 -1
  39. package/dist/esm/util/emojiIdToEmoji.js +2 -2
  40. package/dist/types/components/common/Emoji.d.ts +5 -0
  41. package/dist/types/components/common/EmojiActions.d.ts +3 -3
  42. package/dist/types/components/picker/EmojiPickerList.d.ts +1 -1
  43. package/package.json +4 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @atlaskit/emoji
2
2
 
3
+ ## 71.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9a7ca4cefe634`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9a7ca4cefe634) -
8
+ Use the platform_use_unicode_emojis experiment for native Unicode emoji rendering.
9
+ - [`2a3076a890d07`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2a3076a890d07) -
10
+ Fix unicode emoji image rendering so generated unicode images do not fall back to alt image
11
+ representations at large sizes.
12
+ - Updated dependencies
13
+
14
+ ## 71.4.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`404be770a2ccf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/404be770a2ccf) -
19
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
20
+ (Group 3)
21
+
22
+ ### Patch Changes
23
+
24
+ - [`9e5de3ca1a915`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e5de3ca1a915) -
25
+ Increase z-index of the popup for color picker
26
+ - [`2690a770de7bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2690a770de7bf) -
27
+ Do not focus the added emoji after uploading new emoji
28
+ - Updated dependencies
29
+
3
30
  ## 71.3.3
4
31
 
5
32
  ### Patch Changes
@@ -76,6 +76,9 @@
76
76
  {
77
77
  "path": "../../../design-system/textfield/afm-cc/tsconfig.json"
78
78
  },
79
+ {
80
+ "path": "../../../design-system/theme/afm-cc/tsconfig.json"
81
+ },
79
82
  {
80
83
  "path": "../../../editor/tmp-editor-statsig/afm-cc/tsconfig.json"
81
84
  },
@@ -76,6 +76,9 @@
76
76
  {
77
77
  "path": "../../../design-system/textfield/afm-products/tsconfig.json"
78
78
  },
79
+ {
80
+ "path": "../../../design-system/theme/afm-products/tsconfig.json"
81
+ },
79
82
  {
80
83
  "path": "../../../editor/tmp-editor-statsig/afm-products/tsconfig.json"
81
84
  },
@@ -9,10 +9,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _utilServiceSupport = require("@atlaskit/util-service-support");
11
11
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
12
13
  var _types = require("../types");
13
14
  var _typeHelpers = require("../util/type-helpers");
14
15
  var _logger = _interopRequireDefault(require("../util/logger"));
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
16
  var _emojiIdToEmoji = require("../util/emojiIdToEmoji");
17
17
  var _excluded = ["getRatio"],
18
18
  _excluded2 = ["queryParams"],
@@ -119,7 +119,7 @@ var denormaliseServiceAltRepresentation = exports.denormaliseServiceAltRepresent
119
119
  };
120
120
  var denormaliseStandardRepresentation = function denormaliseStandardRepresentation(emoji, meta) {
121
121
  var unicodeEmoji = (0, _emojiIdToEmoji.emojiIdToEmoji)(emoji.id);
122
- var useUnicodeRepresentation = !!(emoji.id && emoji.type === _types.ProviderTypes.STANDARD && unicodeEmoji && (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis'));
122
+ var useUnicodeRepresentation = !!(emoji.id && emoji.type === _types.ProviderTypes.STANDARD && unicodeEmoji && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true));
123
123
  return useUnicodeRepresentation ? {
124
124
  unicodeEmoji: unicodeEmoji
125
125
  } : denormaliseServiceRepresentation(emoji.representation, meta);
@@ -54,6 +54,9 @@ var handleMouseDown = function handleMouseDown(props, event) {
54
54
  var emoji = props.emoji,
55
55
  onSelected = props.onSelected;
56
56
  if (onSelected && (0, _mouse.leftClick)(event)) {
57
+ if (props.preventFocusOnMouseDown) {
58
+ event.preventDefault();
59
+ }
57
60
  onSelected((0, _typeHelpers.toEmojiId)(emoji), emoji, event);
58
61
  }
59
62
  };
@@ -266,6 +269,7 @@ var UnicodeEmojiImage = function UnicodeEmojiImage(props) {
266
269
  if (unicodeEmojiImage.status === 'ready') {
267
270
  return /*#__PURE__*/_react.default.createElement(ImageEmoji, (0, _extends2.default)({}, props, {
268
271
  emoji: _objectSpread(_objectSpread({}, emoji), {}, {
272
+ altRepresentation: undefined,
269
273
  representation: {
270
274
  imagePath: unicodeEmojiImage.imagePath,
271
275
  width: unicodeEmojiCanvasSize,
@@ -536,6 +540,9 @@ var Emoji = exports.Emoji = function Emoji(props) {
536
540
  if (!(0, _ufoExperiences.hasUfoMarked)(ufoExp, _types.UfoEmojiTimings.MOUNTED_END)) {
537
541
  ufoExp.mark(_types.UfoEmojiTimings.MOUNTED_END);
538
542
  }
543
+ if (emoji.type === _types.ProviderTypes.STANDARD || (0, _typeHelpers.isUnicodeRepresentation)(emoji.representation)) {
544
+ (0, _expValEquals.expValEquals)('platform_use_unicode_emojis', 'isEnabled', true);
545
+ }
539
546
  // eslint-disable-next-line react-hooks/exhaustive-deps
540
547
  }, []);
541
548
  if ((0, _typeHelpers.isUnicodeRepresentation)(emoji.representation)) {
@@ -30,6 +30,7 @@ var _styles = require("./styles");
30
30
  var _constants = require("../../util/constants");
31
31
  var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
32
32
  var _compiled = require("@atlaskit/primitives/compiled");
33
+ var _constants2 = require("@atlaskit/theme/constants");
33
34
  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); }
34
35
  var styles = {
35
36
  icon: "_18u0r5cr _2hwx1i6y"
@@ -70,9 +71,10 @@ var AddOwnEmoji = exports.AddOwnEmoji = function AddOwnEmoji(props) {
70
71
  })),
71
72
  appearance: "subtle"
72
73
  // TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
74
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
73
75
  ,
74
76
 
75
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
77
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
76
78
  className: (0, _runtime.ax)(["_p12f3sup", _styles.emojiPickerAddEmoji]),
77
79
  tabIndex: 0,
78
80
  id: "add-custom-emoji"
@@ -138,7 +140,9 @@ var TonesWrapper = function TonesWrapper(props) {
138
140
  openProductivityColorSelectorWithKeyboard.current = true;
139
141
  }
140
142
  }, []);
141
- var shouldShowProductivityColorSelector = !!(activeCategoryId === 'ATLASSIAN' && productivityColorPreviewEmojis && selectedProductivityColor && onProductivityColorSelected && _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
143
+ var shouldShowProductivityColorSelector = !!(activeCategoryId === 'ATLASSIAN' && productivityColorPreviewEmojis && selectedProductivityColor && onProductivityColorSelected &&
144
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
145
+ _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
142
146
  if (shouldShowProductivityColorSelector) {
143
147
  var previewEmoji = (productivityColorPreviewEmojis === null || productivityColorPreviewEmojis === void 0 ? void 0 : productivityColorPreviewEmojis[selectedProductivityColor]) || Object.values(productivityColorPreviewEmojis || {})[0];
144
148
  if (!previewEmoji) {
@@ -151,7 +155,7 @@ var TonesWrapper = function TonesWrapper(props) {
151
155
  relativePosition: "below",
152
156
  horizontalAlign: "end-to-start",
153
157
  offsetY: 4,
154
- zIndex: 510
158
+ zIndex: _constants2.layers.tooltip()
155
159
  }, /*#__PURE__*/React.createElement("div", {
156
160
  className: (0, _runtime.ax)(["_19itia51 _2rkofajl _bfhk1bhr _16qs130s _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7"])
157
161
  }, /*#__PURE__*/React.createElement(_ProductivityColorSelector.default, {
@@ -219,7 +223,9 @@ var EmojiActions = exports.EmojiActions = function EmojiActions(props) {
219
223
  showToneSelector = _useState6[0],
220
224
  setShowToneSelector = _useState6[1];
221
225
  var wasProductivityColorSelectorOpen = (0, _react.useRef)(false);
222
- var shouldUseProductivityColorControl = !!(props.activeCategoryId === 'ATLASSIAN' && props.productivityColorPreviewEmojis && props.selectedProductivityColor && props.onProductivityColorSelected && _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
226
+ var shouldUseProductivityColorControl = !!(props.activeCategoryId === 'ATLASSIAN' && props.productivityColorPreviewEmojis && props.selectedProductivityColor && props.onProductivityColorSelected &&
227
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
228
+ _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
223
229
  var onToneOpenHandler = (0, _react.useCallback)(function () {
224
230
  return setShowToneSelector(true);
225
231
  }, []);
@@ -257,6 +263,7 @@ var EmojiActions = exports.EmojiActions = function EmojiActions(props) {
257
263
  }
258
264
  }, [shouldUseProductivityColorControl, showToneSelector]);
259
265
  if (uploading) {
266
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
260
267
  return _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false) ? /*#__PURE__*/React.createElement("div", {
261
268
  className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug"])
262
269
  }, /*#__PURE__*/React.createElement(_EmojiUploadPicker.default, {
@@ -276,6 +283,7 @@ var EmojiActions = exports.EmojiActions = function EmojiActions(props) {
276
283
  }));
277
284
  }
278
285
  if (emojiToDelete) {
286
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
279
287
  return _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false) ? /*#__PURE__*/React.createElement("div", {
280
288
  className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug"])
281
289
  }, /*#__PURE__*/React.createElement(_EmojiDeletePreview.default, {
@@ -290,6 +298,8 @@ var EmojiActions = exports.EmojiActions = function EmojiActions(props) {
290
298
  onCloseDelete: onCloseDelete
291
299
  }));
292
300
  }
301
+
302
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
293
303
  return _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false) ? /*#__PURE__*/React.createElement("div", {
294
304
  "data-testid": emojiActionsTestId,
295
305
  onMouseLeave: onMouseLeaveHandler,
@@ -10,8 +10,8 @@ exports.EmojiPreviewComponent = void 0;
10
10
  require("./EmojiPreviewComponent.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _CachingEmoji = _interopRequireDefault(require("./CachingEmoji"));
14
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
15
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); }
16
16
  var emojiName = null;
17
17
  var emojiShortName = null;
@@ -20,7 +20,7 @@ var previewImg = null;
20
20
  var previewText = null;
21
21
  var EmojiPreviewComponent = exports.EmojiPreviewComponent = function EmojiPreviewComponent(_ref) {
22
22
  var emoji = _ref.emoji;
23
- var fitToHeight = (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis') ? 32 : undefined;
23
+ var fitToHeight = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true) ? 32 : undefined;
24
24
  return /*#__PURE__*/React.createElement("div", {
25
25
  className: (0, _runtime.ax)(["_ca0q19bv _u5f319bv _n3td19bv _19bv19bv _1e0c1txw _2lx2vrvc _1n261q9c _4t3izwfg _4cvr1h6o"])
26
26
  }, /*#__PURE__*/React.createElement("span", {
@@ -10,11 +10,11 @@ exports.default = exports.EmojiRadioButton = void 0;
10
10
  require("./EmojiRadioButton.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireWildcard(require("react"));
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
15
14
  var _Emoji = _interopRequireDefault(require("./Emoji"));
16
15
  var _constants = require("../../util/constants");
17
16
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
17
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
18
18
  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); }
19
19
  var emojiButton = null;
20
20
  var emojiRadio = {
@@ -42,7 +42,7 @@ var EmojiRadioButton = exports.EmojiRadioButton = /*#__PURE__*/(0, _react.forwar
42
42
  selectOnHover = props.selectOnHover,
43
43
  ariaLabelText = props.ariaLabelText,
44
44
  defaultChecked = props.defaultChecked;
45
- var fitToHeight = (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis') ? 24 : undefined;
45
+ var fitToHeight = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true) ? 24 : undefined;
46
46
  return /*#__PURE__*/_react.default.createElement("label", {
47
47
  className: (0, _runtime.ax)(["_19itidpf _2rkofajl _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _bfhk1j28 _80omtlke _kqswh2mm _1e0c1o8l _lev4idpf _1cx6idpf _tyukidpf _2ewlidpf _11bcidpf _dqozglyw _1at812x7 _1cjo12x7 _1yg612x7 _hjaq12x7 _hlt21tcg _1s3c1tcg _1i911tcg _1ye71tcg"])
48
48
  }, /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, null, ariaLabelText), /*#__PURE__*/_react.default.createElement("input", {
@@ -21,6 +21,7 @@ var _EmojiCommonProvider = require("../../context/EmojiCommonProvider");
21
21
  var _ufoExperiences = require("../../util/analytics/ufoExperiences");
22
22
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
23
  var _emojiIdToEmoji = require("../../util/emojiIdToEmoji");
24
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
24
25
  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); }
25
26
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26
27
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -94,7 +95,7 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
94
95
 
95
96
  // When id is absent/empty, fetchByEmojiId won't retry if the catalogue isn't loaded yet.
96
97
  // findByEmojiId has retryIfLoading built in — use it for shortName-only lookups.
97
- foundEmoji = !emojiId.id && (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis') ? _emojiProvider.findByEmojiId(emojiId) : _emojiProvider.fetchByEmojiId(emojiId, optimisticFetch);
98
+ foundEmoji = !emojiId.id && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true) ? _emojiProvider.findByEmojiId(emojiId) : _emojiProvider.fetchByEmojiId(emojiId, optimisticFetch);
98
99
  (0, _analytics.sampledUfoRenderedEmoji)(emojiId).mark(_types.UfoEmojiTimings.METADATA_START);
99
100
  if ((0, _typeHelpers.isPromise)(foundEmoji)) {
100
101
  setLoaded(false);
@@ -176,7 +177,7 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
176
177
  });
177
178
  }, [emojiProvider]);
178
179
  var emojiRenderState = (0, _react.useMemo)(function () {
179
- if (!emoji && !loaded && !optimisticImageURL || optimisticImageURL && !emoji && !id && (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis')) {
180
+ if (!emoji && !loaded && !optimisticImageURL || optimisticImageURL && !emoji && !id && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true)) {
180
181
  return ResourcedEmojiComponentRenderStatesEnum.INITIAL;
181
182
  } else if (!emoji && loaded || imageLoadError) {
182
183
  return ResourcedEmojiComponentRenderStatesEnum.FALLBACK;
@@ -185,7 +186,7 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
185
186
  }, [emoji, loaded, optimisticImageURL, imageLoadError, id]);
186
187
  var optimisticEmojiDescription = (0, _react.useMemo)(function () {
187
188
  // For STANDARD emojis, use native unicode character instead of optimistic image.
188
- if ((0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis')) {
189
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true)) {
189
190
  var resolvedId = id || (emoji === null || emoji === void 0 ? void 0 : emoji.id);
190
191
  if (!resolvedId) return undefined;
191
192
  var unicodeEmoji = (0, _emojiIdToEmoji.emojiIdToEmoji)(resolvedId);
@@ -11,9 +11,9 @@ require("./TonePreviewButton.compiled.css");
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
16
15
  var _Emoji = _interopRequireDefault(require("./Emoji"));
16
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
17
17
  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); }
18
18
  var tonePreviewTestId = exports.tonePreviewTestId = 'tone-preview';
19
19
  var emojiButton = null;
@@ -31,7 +31,7 @@ var TonePreviewButton = exports.TonePreviewButton = /*#__PURE__*/(0, _react.forw
31
31
  onSelected = props.onSelected,
32
32
  _props$isVisible = props.isVisible,
33
33
  isVisible = _props$isVisible === void 0 ? true : _props$isVisible;
34
- var fitToHeight = (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis') ? 24 : undefined;
34
+ var fitToHeight = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true) ? 24 : undefined;
35
35
  return _featureGateJsClient.default.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false) ? /*#__PURE__*/React.createElement("button", {
36
36
  ref: ref,
37
37
  onClick: onSelected,
@@ -494,7 +494,7 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
494
494
  // Wait a tick to ensure repaint and updated height for picker list
495
495
  window.setTimeout(function () {
496
496
  var _emojiPickerList$curr2;
497
- (_emojiPickerList$curr2 = emojiPickerList.current) === null || _emojiPickerList$curr2 === void 0 || _emojiPickerList$curr2.scrollToRecentlyUploaded(emojiDescription);
497
+ (_emojiPickerList$curr2 = emojiPickerList.current) === null || _emojiPickerList$curr2 === void 0 || _emojiPickerList$curr2.scrollToRecentlyUploaded(emojiDescription, false);
498
498
  }, 0);
499
499
  }
500
500
  }, [emojiPickerList]);
@@ -13,14 +13,17 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
16
17
  var _reactIntl = require("react-intl");
17
18
  var _CachingEmoji = _interopRequireDefault(require("../common/CachingEmoji"));
18
19
  var _useEmojiPickerListContext = require("../../hooks/useEmojiPickerListContext");
20
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
19
21
  var _i18n = require("../i18n");
20
22
  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); }
21
23
  var emojiItem = null;
22
24
  var emojiPickerRow = null;
23
25
  var emojiPickerRowList = null;
26
+ var teamojiRefreshExperimentName = 'platform_teamoji_26_refresh_emoji_picker';
24
27
  var EmojiPickerEmojiRow = function EmojiPickerEmojiRow(_ref) {
25
28
  var emojis = _ref.emojis,
26
29
  onSelected = _ref.onSelected,
@@ -37,7 +40,8 @@ var EmojiPickerEmojiRow = function EmojiPickerEmojiRow(_ref) {
37
40
  var rowIndex = (virtualItemContext === null || virtualItemContext === void 0 ? void 0 : virtualItemContext.index) || 0;
38
41
  var _useIntl = (0, _reactIntl.useIntl)(),
39
42
  formatMessage = _useIntl.formatMessage;
40
- var fitToHeight = (0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis') ? 24 : undefined;
43
+ var fitToHeight = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true) ? 24 : undefined;
44
+ var preventFocusOnMouseDown = _featureGateJsClient.default.getExperimentValue(teamojiRefreshExperimentName, 'isEnabled', false);
41
45
  var handleFocus = function handleFocus(index) {
42
46
  return function (emojiId, emoji, event) {
43
47
  setEmojisFocus({
@@ -71,7 +75,9 @@ var EmojiPickerEmojiRow = function EmojiPickerEmojiRow(_ref) {
71
75
  "data-focus-index": "".concat(rowIndex, "-").concat(index),
72
76
  tabIndex: focus ? 0 : -1,
73
77
  "aria-roledescription": formatMessage(_i18n.messages.emojiButtonRoleDescription),
74
- shouldBeInteractive: true
78
+ shouldBeInteractive: true,
79
+ fitToHeight: fitToHeight,
80
+ preventFocusOnMouseDown: preventFocusOnMouseDown
75
81
  }));
76
82
  }));
77
83
  }
@@ -105,7 +111,8 @@ var EmojiPickerEmojiRow = function EmojiPickerEmojiRow(_ref) {
105
111
  tabIndex: focus ? 0 : -1,
106
112
  "aria-roledescription": formatMessage(_i18n.messages.emojiButtonRoleDescription),
107
113
  shouldBeInteractive: true,
108
- fitToHeight: fitToHeight
114
+ fitToHeight: fitToHeight,
115
+ preventFocusOnMouseDown: preventFocusOnMouseDown
109
116
  }));
110
117
  }));
111
118
  };
@@ -395,21 +395,32 @@ var EmojiPickerVirtualListInternal = exports.EmojiPickerVirtualListInternal = /*
395
395
  (0, _utils.scrollToRow)(listRef, index);
396
396
  },
397
397
  scrollToRecentlyUploaded: function scrollToRecentlyUploaded(uploadedEmoji) {
398
+ var shouldFocus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
398
399
  // when search results is shown
399
400
  if (query) {
400
401
  var _findEmojiRowAndColum = findEmojiRowAndColumnById(uploadedEmoji.id),
401
402
  rowIndex = _findEmojiRowAndColum.rowIndex,
402
403
  columnIndex = _findEmojiRowAndColum.columnIndex;
403
404
  if (rowIndex !== -1) {
404
- var _listRef$current;
405
- (_listRef$current = listRef.current) === null || _listRef$current === void 0 || _listRef$current.scrollToEmojiAndFocus(rowIndex, columnIndex);
405
+ if (shouldFocus) {
406
+ var _listRef$current;
407
+ (_listRef$current = listRef.current) === null || _listRef$current === void 0 || _listRef$current.scrollToEmojiAndFocus(rowIndex, columnIndex);
408
+ } else {
409
+ var _listRef$current2;
410
+ (_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 || _listRef$current2.scrollToRow(rowIndex);
411
+ }
406
412
  }
407
413
  } else {
408
414
  // when seeing all emojis
409
415
  var row = lastYourUploadsRow;
410
416
  if (row > 0) {
411
- var _listRef$current2;
412
- (_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 || _listRef$current2.scrollToRowAndFocusLastEmoji(lastYourUploadsRow);
417
+ if (shouldFocus) {
418
+ var _listRef$current3;
419
+ (_listRef$current3 = listRef.current) === null || _listRef$current3 === void 0 || _listRef$current3.scrollToRowAndFocusLastEmoji(lastYourUploadsRow);
420
+ } else {
421
+ var _listRef$current4;
422
+ (_listRef$current4 = listRef.current) === null || _listRef$current4 === void 0 || _listRef$current4.scrollToRow(lastYourUploadsRow);
423
+ }
413
424
  }
414
425
  }
415
426
  }
@@ -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: "71.3.2"
23
+ packageVersion: "71.4.0"
24
24
  }, attributes)
25
25
  };
26
26
  };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.emojiIdToEmoji = emojiIdToEmoji;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
7
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
8
8
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
9
9
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
10
10
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -82,7 +82,7 @@ function emojiIdToEmoji(id) {
82
82
  // Text-presentation-default emoji: characters that are valid emoji but whose
83
83
  // default rendering is text (e.g. ☪ ☺ ☢ etc.) must be followed by
84
84
  // U+FE0F (VARIATION SELECTOR-16) to force emoji presentation.
85
- if ((0, _platformFeatureFlags.fg)('platform_twemoji_removal_unicode_emojis')) {
85
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_use_unicode_emojis', 'isEnabled', true)) {
86
86
  var lastCodePoint = processedCodePoints[processedCodePoints.length - 1];
87
87
  var alreadyHasVariationSelector = lastCodePoint === VARIATION_SELECTOR_16 || lastCodePoint === VARIATION_SELECTOR_15 ||
88
88
  // Keycap sequences end with U+20E3 — they already have U+FE0F inserted inline
@@ -1,9 +1,9 @@
1
1
  import { utils as serviceUtils } from '@atlaskit/util-service-support';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
4
  import { ProviderTypes } from '../types';
4
5
  import { isImageRepresentation, isSpriteServiceRepresentation, convertImageToMediaRepresentation, buildEmojiDescriptionWithAltRepresentation } from '../util/type-helpers';
5
6
  import debug from '../util/logger';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { emojiIdToEmoji } from '../util/emojiIdToEmoji';
8
8
  export const emojiRequest = (provider, options) => {
9
9
  const {
@@ -109,7 +109,7 @@ export const denormaliseServiceAltRepresentation = (altReps, meta) => {
109
109
  };
110
110
  const denormaliseStandardRepresentation = (emoji, meta) => {
111
111
  const unicodeEmoji = emojiIdToEmoji(emoji.id);
112
- const useUnicodeRepresentation = !!(emoji.id && emoji.type === ProviderTypes.STANDARD && unicodeEmoji && fg('platform_twemoji_removal_unicode_emojis'));
112
+ const useUnicodeRepresentation = !!(emoji.id && emoji.type === ProviderTypes.STANDARD && unicodeEmoji && expValEqualsNoExposure('platform_use_unicode_emojis', 'isEnabled', true));
113
113
  return useUnicodeRepresentation ? {
114
114
  unicodeEmoji
115
115
  } : denormaliseServiceRepresentation(emoji.representation, meta);
@@ -8,7 +8,7 @@ import Tooltip from '@atlaskit/tooltip';
8
8
  import { shouldUseAltRepresentation } from '../../api/EmojiUtils';
9
9
  import { defaultEmojiHeight, deleteEmojiLabel, EMOJI_KEYBOARD_KEYS_SUPPORTED, KeyboardKeys, SAMPLING_RATE_EMOJI_RENDERED_EXP } from '../../util/constants';
10
10
  import { isImageRepresentation, isMediaRepresentation, isSpriteRepresentation, isUnicodeRepresentation, toEmojiId } from '../../util/type-helpers';
11
- import { UfoEmojiTimings } from '../../types';
11
+ import { ProviderTypes, UfoEmojiTimings } from '../../types';
12
12
  import { leftClick } from '../../util/mouse';
13
13
  import DeleteButton from './DeleteButton';
14
14
  import { emojiNodeStyles, commonSelectedStyles, selectOnHoverStyles, emojiSprite, emojiMainStyle, emojiImage, deletableEmoji } from './styles';
@@ -39,6 +39,9 @@ const handleMouseDown = (props, event) => {
39
39
  onSelected
40
40
  } = props;
41
41
  if (onSelected && leftClick(event)) {
42
+ if (props.preventFocusOnMouseDown) {
43
+ event.preventDefault();
44
+ }
42
45
  onSelected(toEmojiId(emoji), emoji, event);
43
46
  }
44
47
  };
@@ -241,6 +244,7 @@ const UnicodeEmojiImage = props => {
241
244
  return /*#__PURE__*/React.createElement(ImageEmoji, _extends({}, props, {
242
245
  emoji: {
243
246
  ...emoji,
247
+ altRepresentation: undefined,
244
248
  representation: {
245
249
  imagePath: unicodeEmojiImage.imagePath,
246
250
  width: unicodeEmojiCanvasSize,
@@ -504,6 +508,9 @@ export const Emoji = props => {
504
508
  if (!hasUfoMarked(ufoExp, UfoEmojiTimings.MOUNTED_END)) {
505
509
  ufoExp.mark(UfoEmojiTimings.MOUNTED_END);
506
510
  }
511
+ if (emoji.type === ProviderTypes.STANDARD || isUnicodeRepresentation(emoji.representation)) {
512
+ expValEquals('platform_use_unicode_emojis', 'isEnabled', true);
513
+ }
507
514
  // eslint-disable-next-line react-hooks/exhaustive-deps
508
515
  }, []);
509
516
  if (isUnicodeRepresentation(emoji.representation)) {
@@ -21,6 +21,7 @@ import { emojiPickerAddEmoji } from './styles';
21
21
  import { DEFAULT_TONE } from '../../util/constants';
22
22
  import FeatureGates from '@atlaskit/feature-gate-js-client';
23
23
  import { Box } from '@atlaskit/primitives/compiled';
24
+ import { layers } from '@atlaskit/theme/constants';
24
25
  const styles = {
25
26
  icon: "_18u0r5cr _2hwx1i6y"
26
27
  };
@@ -61,9 +62,10 @@ export const AddOwnEmoji = props => {
61
62
  })),
62
63
  appearance: "subtle"
63
64
  // TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
65
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
64
66
  ,
65
67
 
66
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
67
69
  className: ax(["_p12f3sup", emojiPickerAddEmoji]),
68
70
  tabIndex: 0,
69
71
  id: "add-custom-emoji"
@@ -129,7 +131,9 @@ const TonesWrapper = props => {
129
131
  openProductivityColorSelectorWithKeyboard.current = true;
130
132
  }
131
133
  }, []);
132
- const shouldShowProductivityColorSelector = !!(activeCategoryId === 'ATLASSIAN' && productivityColorPreviewEmojis && selectedProductivityColor && onProductivityColorSelected && FeatureGates.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
134
+ const shouldShowProductivityColorSelector = !!(activeCategoryId === 'ATLASSIAN' && productivityColorPreviewEmojis && selectedProductivityColor && onProductivityColorSelected &&
135
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
136
+ FeatureGates.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
133
137
  if (shouldShowProductivityColorSelector) {
134
138
  const previewEmoji = (productivityColorPreviewEmojis === null || productivityColorPreviewEmojis === void 0 ? void 0 : productivityColorPreviewEmojis[selectedProductivityColor]) || Object.values(productivityColorPreviewEmojis || {})[0];
135
139
  if (!previewEmoji) {
@@ -142,7 +146,7 @@ const TonesWrapper = props => {
142
146
  relativePosition: "below",
143
147
  horizontalAlign: "end-to-start",
144
148
  offsetY: 4,
145
- zIndex: 510
149
+ zIndex: layers.tooltip()
146
150
  }, /*#__PURE__*/React.createElement("div", {
147
151
  className: ax(["_19itia51 _2rkofajl _bfhk1bhr _16qs130s _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7"])
148
152
  }, /*#__PURE__*/React.createElement(ProductivityColorSelector, {
@@ -208,7 +212,9 @@ export const EmojiActions = props => {
208
212
  } = props;
209
213
  const [showToneSelector, setShowToneSelector] = useState(false);
210
214
  const wasProductivityColorSelectorOpen = useRef(false);
211
- const shouldUseProductivityColorControl = !!(props.activeCategoryId === 'ATLASSIAN' && props.productivityColorPreviewEmojis && props.selectedProductivityColor && props.onProductivityColorSelected && FeatureGates.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
215
+ const shouldUseProductivityColorControl = !!(props.activeCategoryId === 'ATLASSIAN' && props.productivityColorPreviewEmojis && props.selectedProductivityColor && props.onProductivityColorSelected &&
216
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
217
+ FeatureGates.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false));
212
218
  const onToneOpenHandler = useCallback(() => setShowToneSelector(true), []);
213
219
  const onToneCloseHandler = useCallback(() => setShowToneSelector(false), []);
214
220
  const onToneToggleHandler = useCallback(() => {
@@ -240,6 +246,7 @@ export const EmojiActions = props => {
240
246
  }
241
247
  }, [shouldUseProductivityColorControl, showToneSelector]);
242
248
  if (uploading) {
249
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
243
250
  return FeatureGates.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false) ? /*#__PURE__*/React.createElement("div", {
244
251
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug"])
245
252
  }, /*#__PURE__*/React.createElement(EmojiUploadPicker, {
@@ -259,6 +266,7 @@ export const EmojiActions = props => {
259
266
  }));
260
267
  }
261
268
  if (emojiToDelete) {
269
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
262
270
  return FeatureGates.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false) ? /*#__PURE__*/React.createElement("div", {
263
271
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug"])
264
272
  }, /*#__PURE__*/React.createElement(EmojiDeletePreview, {
@@ -273,6 +281,8 @@ export const EmojiActions = props => {
273
281
  onCloseDelete: onCloseDelete
274
282
  }));
275
283
  }
284
+
285
+ // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
276
286
  return FeatureGates.getExperimentValue('platform_teamoji_26_refresh_emoji_picker', 'isEnabled', false) ? /*#__PURE__*/React.createElement("div", {
277
287
  "data-testid": emojiActionsTestId,
278
288
  onMouseLeave: onMouseLeaveHandler,
@@ -2,8 +2,8 @@
2
2
  import "./EmojiPreviewComponent.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import CachingEmoji from './CachingEmoji';
6
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
7
7
  const emojiName = null;
8
8
  const emojiShortName = null;
9
9
  const preview = null;
@@ -12,7 +12,7 @@ const previewText = null;
12
12
  export const EmojiPreviewComponent = ({
13
13
  emoji
14
14
  }) => {
15
- const fitToHeight = fg('platform_twemoji_removal_unicode_emojis') ? 32 : undefined;
15
+ const fitToHeight = expValEqualsNoExposure('platform_use_unicode_emojis', 'isEnabled', true) ? 32 : undefined;
16
16
  return /*#__PURE__*/React.createElement("div", {
17
17
  className: ax(["_ca0q19bv _u5f319bv _n3td19bv _19bv19bv _1e0c1txw _2lx2vrvc _1n261q9c _4t3izwfg _4cvr1h6o"])
18
18
  }, /*#__PURE__*/React.createElement("span", {
@@ -2,11 +2,11 @@
2
2
  import "./EmojiRadioButton.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { memo, forwardRef } from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import FeatureGates from '@atlaskit/feature-gate-js-client';
7
6
  import Emoji from './Emoji';
8
7
  import { TONESELECTOR_KEYBOARD_KEYS_SUPPORTED } from '../../util/constants';
9
8
  import VisuallyHidden from '@atlaskit/visually-hidden';
9
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
10
10
  const emojiButton = null;
11
11
  const emojiRadio = {
12
12
  default: "_tzy4idpf _kqswstnw _154i14id _1ltv14id _3y8mfajl _157z1r31 _1dzmglyw _1sqm1o36 _fh6w1y54 _1i1213zc"
@@ -37,7 +37,7 @@ export const EmojiRadioButton = /*#__PURE__*/forwardRef((props, ref) => {
37
37
  ariaLabelText,
38
38
  defaultChecked
39
39
  } = props;
40
- const fitToHeight = fg('platform_twemoji_removal_unicode_emojis') ? 24 : undefined;
40
+ const fitToHeight = expValEqualsNoExposure('platform_use_unicode_emojis', 'isEnabled', true) ? 24 : undefined;
41
41
  return /*#__PURE__*/React.createElement("label", {
42
42
  className: ax(["_19itidpf _2rkofajl _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _bfhk1j28 _80omtlke _kqswh2mm _1e0c1o8l _lev4idpf _1cx6idpf _tyukidpf _2ewlidpf _11bcidpf _dqozglyw _1at812x7 _1cjo12x7 _1yg612x7 _hjaq12x7 _hlt21tcg _1s3c1tcg _1i911tcg _1ye71tcg"])
43
43
  }, /*#__PURE__*/React.createElement(VisuallyHidden, null, ariaLabelText), /*#__PURE__*/React.createElement("input", {