@atlaskit/emoji 69.10.30 → 69.10.31
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 +7 -0
- package/dist/cjs/components/common/EmojiActions.js +2 -0
- package/dist/cjs/components/common/Scrollable.js +2 -1
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/EmojiActions.js +2 -0
- package/dist/es2019/components/common/Scrollable.js +2 -1
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/EmojiActions.js +2 -0
- package/dist/esm/components/common/Scrollable.js +2 -1
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/types/components/common/Scrollable.d.ts +4 -0
- package/dist/types-ts4.5/components/common/Scrollable.d.ts +4 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.10.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5e648de49f54d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e648de49f54d) -
|
|
8
|
+
All mouse events must also have key events for accessibility
|
|
9
|
+
|
|
3
10
|
## 69.10.30
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -13,6 +13,7 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
18
|
var _reactIntlNext = require("react-intl-next");
|
|
18
19
|
var _EmojiDeletePreview = _interopRequireDefault(require("./EmojiDeletePreview"));
|
|
@@ -193,6 +194,7 @@ var EmojiActions = exports.EmojiActions = function EmojiActions(props) {
|
|
|
193
194
|
return /*#__PURE__*/React.createElement("div", {
|
|
194
195
|
"data-testid": emojiActionsTestId,
|
|
195
196
|
onMouseLeave: onMouseLeaveHandler,
|
|
197
|
+
onBlur: (0, _platformFeatureFlags.fg)('platform_suppression_removal_fix_reactions') ? onMouseLeaveHandler : undefined,
|
|
196
198
|
className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug _n7zl1syp _16qs1ueq"]),
|
|
197
199
|
style: {
|
|
198
200
|
"--_10k8kuu": (0, _runtime.ix)("var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N30A, ")")))
|
|
@@ -17,6 +17,7 @@ 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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
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
22
|
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)); }
|
|
22
23
|
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
|
|
@@ -81,7 +82,7 @@ var Scrollable = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
81
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
83
|
className: (0, _runtime.ax)(["_19itbvkq _2rkofajl _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1ule _1reo15vq _18m91wug", "emoji-scrollable ".concat(className)]),
|
|
83
84
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
84
|
-
onMouseLeave: onMouseLeave,
|
|
85
|
+
onMouseLeave: (0, _platformFeatureFlags.fg)('platform_suppression_removal_fix_reactions') ? undefined : onMouseLeave,
|
|
85
86
|
onScroll: this.handleScroll,
|
|
86
87
|
ref: this.handleRef
|
|
87
88
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -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: "
|
|
23
|
+
packageVersion: "0.0.0-development"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -4,6 +4,7 @@ import "./EmojiActions.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { Fragment, useState, useRef, memo, useLayoutEffect, useCallback } from 'react';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { N30A } from '@atlaskit/theme/colors';
|
|
8
9
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
9
10
|
import EmojiDeletePreview from './EmojiDeletePreview';
|
|
@@ -175,6 +176,7 @@ export const EmojiActions = props => {
|
|
|
175
176
|
return /*#__PURE__*/React.createElement("div", {
|
|
176
177
|
"data-testid": emojiActionsTestId,
|
|
177
178
|
onMouseLeave: onMouseLeaveHandler,
|
|
179
|
+
onBlur: fg('platform_suppression_removal_fix_reactions') ? onMouseLeaveHandler : undefined,
|
|
178
180
|
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _n7zl1dd9 _16qs1ueq"])
|
|
179
181
|
}, /*#__PURE__*/React.createElement("div", {
|
|
180
182
|
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o"])
|
|
@@ -6,6 +6,7 @@ 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';
|
|
9
10
|
const emojiScrollable = null;
|
|
10
11
|
export default class Scrollable extends PureComponent {
|
|
11
12
|
constructor(...args) {
|
|
@@ -59,7 +60,7 @@ export default class Scrollable extends PureComponent {
|
|
|
59
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
61
|
className: ax(["_19itbvkq _2rkofajl _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1ule _1reo15vq _18m91wug", `emoji-scrollable ${className}`]),
|
|
61
62
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
62
|
-
onMouseLeave: onMouseLeave,
|
|
63
|
+
onMouseLeave: fg('platform_suppression_removal_fix_reactions') ? undefined : onMouseLeave,
|
|
63
64
|
onScroll: this.handleScroll,
|
|
64
65
|
ref: this.handleRef
|
|
65
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -5,6 +5,7 @@ import "./EmojiActions.compiled.css";
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { Fragment, useState, useRef, memo, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { N30A } from '@atlaskit/theme/colors';
|
|
9
10
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
10
11
|
import EmojiDeletePreview from './EmojiDeletePreview';
|
|
@@ -184,6 +185,7 @@ export var EmojiActions = function EmojiActions(props) {
|
|
|
184
185
|
return /*#__PURE__*/React.createElement("div", {
|
|
185
186
|
"data-testid": emojiActionsTestId,
|
|
186
187
|
onMouseLeave: onMouseLeaveHandler,
|
|
188
|
+
onBlur: fg('platform_suppression_removal_fix_reactions') ? onMouseLeaveHandler : undefined,
|
|
187
189
|
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _n7zl1syp _16qs1ueq"]),
|
|
188
190
|
style: {
|
|
189
191
|
"--_10k8kuu": ix("var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border, ".concat(N30A, ")")))
|
|
@@ -13,6 +13,7 @@ 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';
|
|
16
17
|
var emojiScrollable = null;
|
|
17
18
|
var Scrollable = /*#__PURE__*/function (_PureComponent) {
|
|
18
19
|
function Scrollable() {
|
|
@@ -74,7 +75,7 @@ var Scrollable = /*#__PURE__*/function (_PureComponent) {
|
|
|
74
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
76
|
className: ax(["_19itbvkq _2rkofajl _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1ule _1reo15vq _18m91wug", "emoji-scrollable ".concat(className)]),
|
|
76
77
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
77
|
-
onMouseLeave: onMouseLeave,
|
|
78
|
+
onMouseLeave: fg('platform_suppression_removal_fix_reactions') ? undefined : onMouseLeave,
|
|
78
79
|
onScroll: this.handleScroll,
|
|
79
80
|
ref: this.handleRef
|
|
80
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -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: "
|
|
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.10.
|
|
3
|
+
"version": "69.10.31",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@atlaskit/spinner": "^19.0.0",
|
|
51
51
|
"@atlaskit/textfield": "^8.2.0",
|
|
52
52
|
"@atlaskit/theme": "^22.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
54
|
-
"@atlaskit/tokens": "^11.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^35.5.0",
|
|
54
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
55
55
|
"@atlaskit/tooltip": "^20.14.0",
|
|
56
56
|
"@atlaskit/ufo": "^0.4.0",
|
|
57
57
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
@@ -124,6 +124,9 @@
|
|
|
124
124
|
},
|
|
125
125
|
"platform_emoji_prevent_img_src_changing": {
|
|
126
126
|
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"platform_suppression_removal_fix_reactions": {
|
|
129
|
+
"type": "boolean"
|
|
127
130
|
}
|
|
128
131
|
},
|
|
129
132
|
"scripts": {
|