@atlaskit/emoji 73.6.6 → 73.6.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,22 @@
1
1
  # @atlaskit/emoji
2
2
 
3
+ ## 73.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 73.6.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`2832efe885646`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2832efe885646) -
14
+ Cleanup `feature_gate` `platform_suppression_removal_fix_reactions`. The accessibility fixes for
15
+ reactions and emoji (no tab stops on non-interactive tooltip/picker wrappers, focus support on
16
+ reaction dialog tabs, blur dismissal for emoji actions, button role on typeahead items) are now
17
+ permanent.
18
+ - Updated dependencies
19
+
3
20
  ## 73.6.6
4
21
 
5
22
  ### Patch Changes
@@ -327,7 +327,7 @@ var EmojiActions = exports.EmojiActions = function EmojiActions(props) {
327
327
  return /*#__PURE__*/React.createElement("div", {
328
328
  "data-testid": emojiActionsTestId,
329
329
  onMouseLeave: onMouseLeaveHandler,
330
- onBlur: (0, _fg.fg)('platform_suppression_removal_fix_reactions') ? onBlurHandler : undefined,
330
+ onBlur: onBlurHandler,
331
331
  className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug"])
332
332
  }, /*#__PURE__*/React.createElement("div", {
333
333
  className: (0, _runtime.ax)(["_1e0c1txw _1bahesu3 _4cvr1h6o", (0, _fg.fg)('platform_emoji_skin_tone_blur_fix') && styles.stableSearchRow])
@@ -17,7 +17,6 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
17
17
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
18
18
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
19
19
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
- var _fg = require("@atlaskit/platform-feature-flags/fg");
21
20
  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); }
22
21
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
23
22
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // FIXME - FAB-1732 looking at making a shared component for this
@@ -73,16 +72,13 @@ var Scrollable = exports.default = /*#__PURE__*/function (_PureComponent) {
73
72
  var _this$props = this.props,
74
73
  children = _this$props.children,
75
74
  className = _this$props.className,
76
- maxHeight = _this$props.maxHeight,
77
- onMouseLeave = _this$props.onMouseLeave;
75
+ maxHeight = _this$props.maxHeight;
78
76
  var style = maxHeight ? {
79
77
  maxHeight: maxHeight
80
78
  } : {};
81
79
  return /*#__PURE__*/React.createElement("div", {
82
80
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
83
81
  className: (0, _runtime.ax)(["_19itia51 _2rkofajl _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1ule _1reo15vq _18m91wug", "emoji-scrollable ".concat(className)]),
84
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
85
- onMouseLeave: (0, _fg.fg)('platform_suppression_removal_fix_reactions') ? undefined : onMouseLeave,
86
82
  onScroll: this.handleScroll,
87
83
  ref: this.handleRef
88
84
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -9,7 +9,6 @@ exports.EmojiTypeAheadItemInternal = EmojiTypeAheadItemInternal;
9
9
  require("./EmojiTypeAheadItemInternal.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _fg = require("@atlaskit/platform-feature-flags/fg");
13
12
  var _EmojiCommonProvider = require("../../context/EmojiCommonProvider");
14
13
  var _leftClick = require("../../util/left-click");
15
14
  var _toEmojiId = require("../../util/to-emoji-id");
@@ -46,7 +45,7 @@ function EmojiTypeAheadItemInternal(props) {
46
45
  onMouseMove: onEmojiMenuItemMouseMove,
47
46
  "data-emoji-id": emoji.shortName,
48
47
  ref: forwardedRef,
49
- role: (0, _fg.fg)('platform_suppression_removal_fix_reactions') ? 'button' : undefined,
48
+ role: "presentation",
50
49
  style: {
51
50
  "--_n55fzx": (0, _runtime.ix)("".concat(_EmojiTypeAheadItem.typeAheadWidth, "px"))
52
51
  }
@@ -17,7 +17,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
17
17
  actionSubjectId: actionSubjectId,
18
18
  attributes: _objectSpread({
19
19
  packageName: "@atlaskit/emoji",
20
- packageVersion: "73.6.5"
20
+ packageVersion: "73.6.7"
21
21
  }, attributes)
22
22
  };
23
23
  };
@@ -309,7 +309,7 @@ export const EmojiActions = props => {
309
309
  return /*#__PURE__*/React.createElement("div", {
310
310
  "data-testid": emojiActionsTestId,
311
311
  onMouseLeave: onMouseLeaveHandler,
312
- onBlur: fg('platform_suppression_removal_fix_reactions') ? onBlurHandler : undefined,
312
+ onBlur: onBlurHandler,
313
313
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug"])
314
314
  }, /*#__PURE__*/React.createElement("div", {
315
315
  className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o", fg('platform_emoji_skin_tone_blur_fix') && styles.stableSearchRow])
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  // FIXME - FAB-1732 looking at making a shared component for this
7
7
 
8
8
  import { PureComponent } from 'react';
9
- import { fg } from '@atlaskit/platform-feature-flags/fg';
10
9
  const emojiScrollable = null;
11
10
  export default class Scrollable extends PureComponent {
12
11
  constructor(...args) {
@@ -50,8 +49,7 @@ export default class Scrollable extends PureComponent {
50
49
  const {
51
50
  children,
52
51
  className,
53
- maxHeight,
54
- onMouseLeave
52
+ maxHeight
55
53
  } = this.props;
56
54
  const style = maxHeight ? {
57
55
  maxHeight
@@ -59,8 +57,6 @@ export default class Scrollable extends PureComponent {
59
57
  return /*#__PURE__*/React.createElement("div", {
60
58
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
61
59
  className: ax(["_19itia51 _2rkofajl _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1ule _1reo15vq _18m91wug", `emoji-scrollable ${className}`]),
62
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
63
- onMouseLeave: fg('platform_suppression_removal_fix_reactions') ? undefined : onMouseLeave,
64
60
  onScroll: this.handleScroll,
65
61
  ref: this.handleRef
66
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -2,7 +2,6 @@
2
2
  import "./EmojiTypeAheadItemInternal.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags/fg';
6
5
  import { EmojiCommonProvider } from '../../context/EmojiCommonProvider';
7
6
  import { leftClick } from '../../util/left-click';
8
7
  import { toEmojiId } from '../../util/to-emoji-id';
@@ -41,7 +40,7 @@ export function EmojiTypeAheadItemInternal(props) {
41
40
  onMouseMove: onEmojiMenuItemMouseMove,
42
41
  "data-emoji-id": emoji.shortName,
43
42
  ref: forwardedRef,
44
- role: fg('platform_suppression_removal_fix_reactions') ? 'button' : undefined
43
+ role: "presentation"
45
44
  }, /*#__PURE__*/React.createElement("div", {
46
45
  className: ax(["_1e0c1txw _2lx2vrvc _1n261g80 _s7n4nkob"])
47
46
  }, emoji && /*#__PURE__*/React.createElement(EmojiPreviewComponent, {
@@ -5,7 +5,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
5
5
  actionSubjectId,
6
6
  attributes: {
7
7
  packageName: "@atlaskit/emoji",
8
- packageVersion: "73.6.5",
8
+ packageVersion: "73.6.7",
9
9
  ...attributes
10
10
  }
11
11
  });
@@ -318,7 +318,7 @@ export var EmojiActions = function EmojiActions(props) {
318
318
  return /*#__PURE__*/React.createElement("div", {
319
319
  "data-testid": emojiActionsTestId,
320
320
  onMouseLeave: onMouseLeaveHandler,
321
- onBlur: fg('platform_suppression_removal_fix_reactions') ? onBlurHandler : undefined,
321
+ onBlur: onBlurHandler,
322
322
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug"])
323
323
  }, /*#__PURE__*/React.createElement("div", {
324
324
  className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o", fg('platform_emoji_skin_tone_blur_fix') && styles.stableSearchRow])
@@ -13,7 +13,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
13
13
  // FIXME - FAB-1732 looking at making a shared component for this
14
14
 
15
15
  import { PureComponent } from 'react';
16
- import { fg } from '@atlaskit/platform-feature-flags/fg';
17
16
  var emojiScrollable = null;
18
17
  var Scrollable = /*#__PURE__*/function (_PureComponent) {
19
18
  function Scrollable() {
@@ -66,16 +65,13 @@ var Scrollable = /*#__PURE__*/function (_PureComponent) {
66
65
  var _this$props = this.props,
67
66
  children = _this$props.children,
68
67
  className = _this$props.className,
69
- maxHeight = _this$props.maxHeight,
70
- onMouseLeave = _this$props.onMouseLeave;
68
+ maxHeight = _this$props.maxHeight;
71
69
  var style = maxHeight ? {
72
70
  maxHeight: maxHeight
73
71
  } : {};
74
72
  return /*#__PURE__*/React.createElement("div", {
75
73
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
76
74
  className: ax(["_19itia51 _2rkofajl _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1ule _1reo15vq _18m91wug", "emoji-scrollable ".concat(className)]),
77
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
78
- onMouseLeave: fg('platform_suppression_removal_fix_reactions') ? undefined : onMouseLeave,
79
75
  onScroll: this.handleScroll,
80
76
  ref: this.handleRef
81
77
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -2,7 +2,6 @@
2
2
  import "./EmojiTypeAheadItemInternal.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags/fg';
6
5
  import { EmojiCommonProvider } from '../../context/EmojiCommonProvider';
7
6
  import { leftClick } from '../../util/left-click';
8
7
  import { toEmojiId } from '../../util/to-emoji-id';
@@ -39,7 +38,7 @@ export function EmojiTypeAheadItemInternal(props) {
39
38
  onMouseMove: onEmojiMenuItemMouseMove,
40
39
  "data-emoji-id": emoji.shortName,
41
40
  ref: forwardedRef,
42
- role: fg('platform_suppression_removal_fix_reactions') ? 'button' : undefined,
41
+ role: "presentation",
43
42
  style: {
44
43
  "--_n55fzx": ix("".concat(typeAheadWidth, "px"))
45
44
  }
@@ -10,7 +10,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
10
10
  actionSubjectId: actionSubjectId,
11
11
  attributes: _objectSpread({
12
12
  packageName: "@atlaskit/emoji",
13
- packageVersion: "73.6.5"
13
+ packageVersion: "73.6.7"
14
14
  }, attributes)
15
15
  };
16
16
  };
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type MouseEventHandler, PureComponent, type ReactNode, type UIEvent } from 'react';
5
+ import { PureComponent, type ReactNode, type UIEvent } from 'react';
6
6
  export interface OnScroll {
7
7
  (element: Element, event: UIEvent<any>): void;
8
8
  }
@@ -10,7 +10,6 @@ export interface Props {
10
10
  children?: ReactNode;
11
11
  className?: string;
12
12
  maxHeight?: string;
13
- onMouseLeave?: MouseEventHandler<any>;
14
13
  onScroll?: OnScroll;
15
14
  }
16
15
  export default class Scrollable extends PureComponent<Props, {}> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/emoji",
3
- "version": "73.6.6",
3
+ "version": "73.6.8",
4
4
  "description": "Fabric emoji React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/spinner": "^20.4.0",
55
55
  "@atlaskit/textfield": "^10.3.0",
56
56
  "@atlaskit/theme": "^28.2.0",
57
- "@atlaskit/tmp-editor-statsig": "^261.0.0",
57
+ "@atlaskit/tmp-editor-statsig": "^262.0.0",
58
58
  "@atlaskit/tokens": "^20.11.0",
59
59
  "@atlaskit/tooltip": "^24.4.0",
60
60
  "@atlaskit/ufo": "^2.0.0",
@@ -126,9 +126,6 @@
126
126
  "nike_r19_render_unmount": {
127
127
  "type": "boolean"
128
128
  },
129
- "platform_suppression_removal_fix_reactions": {
130
- "type": "boolean"
131
- },
132
129
  "platform_emoji_skin_tone_blur_fix": {
133
130
  "type": "boolean"
134
131
  },