@atlaskit/emoji 73.4.11 → 73.5.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.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/components/common/EmojiActions.js +2 -2
- package/dist/cjs/components/common/TonePreviewButton.js +3 -1
- package/dist/cjs/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/cjs/util/analytics/createEvent.js +1 -1
- package/dist/es2019/components/common/EmojiActions.js +2 -2
- package/dist/es2019/components/common/TonePreviewButton.js +3 -1
- package/dist/es2019/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/es2019/util/analytics/createEvent.js +1 -1
- package/dist/esm/components/common/EmojiActions.js +2 -2
- package/dist/esm/components/common/TonePreviewButton.js +3 -1
- package/dist/esm/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/esm/util/analytics/createEvent.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 73.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b077233b28755`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b077233b28755) -
|
|
8
|
+
Restore Tab focus and Enter activation for the skin tone picker in Safari behind
|
|
9
|
+
`platform_ally_emoji_fixes_various`.
|
|
10
|
+
- [`d6fd42be3082d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d6fd42be3082d) -
|
|
11
|
+
Update feature gate for focus fix to platform_ally_emoji_fixes_various
|
|
12
|
+
|
|
13
|
+
## 73.5.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`77aeba2398de1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/77aeba2398de1) -
|
|
18
|
+
Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
|
|
19
|
+
(Group 3)
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 73.4.11
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -66,7 +66,7 @@ var ProductivityColorPopupContent = function ProductivityColorPopupContent(_ref)
|
|
|
66
66
|
event.stopPropagation();
|
|
67
67
|
};
|
|
68
68
|
var handleEscape = function handleEscape(event) {
|
|
69
|
-
if ((0, _fg.fg)('
|
|
69
|
+
if ((0, _fg.fg)('platform_ally_emoji_fixes_various') && (event.key === 'Escape' || event.key === 'Esc')) {
|
|
70
70
|
event.preventDefault();
|
|
71
71
|
event.stopPropagation();
|
|
72
72
|
onEscape();
|
|
@@ -161,7 +161,7 @@ var TonesWrapper = function TonesWrapper(props) {
|
|
|
161
161
|
onToneToggle();
|
|
162
162
|
}, [onToneToggle, showToneSelector]);
|
|
163
163
|
var onProductivityColorPreviewKeyDown = (0, _react.useCallback)(function (event) {
|
|
164
|
-
if (showToneSelector && (0, _fg.fg)('
|
|
164
|
+
if (showToneSelector && (0, _fg.fg)('platform_ally_emoji_fixes_various') && (event.key === 'Escape' || event.key === 'Esc')) {
|
|
165
165
|
event.preventDefault();
|
|
166
166
|
event.stopPropagation();
|
|
167
167
|
onProductivityColorEscape();
|
|
@@ -11,6 +11,7 @@ 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 _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
15
|
var _Emoji = _interopRequireDefault(require("./Emoji"));
|
|
15
16
|
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
17
|
var tonePreviewTestId = exports.tonePreviewTestId = 'tone-preview';
|
|
@@ -35,7 +36,8 @@ var TonePreviewButton = exports.TonePreviewButton = /*#__PURE__*/(0, _react.forw
|
|
|
35
36
|
onKeyDown: onKeyDown,
|
|
36
37
|
"aria-label": ariaLabelText,
|
|
37
38
|
"aria-expanded": ariaExpanded,
|
|
38
|
-
"aria-controls": ariaControls
|
|
39
|
+
"aria-controls": ariaControls,
|
|
40
|
+
tabIndex: (0, _fg.fg)('platform_ally_emoji_fixes_various') ? 0 : undefined
|
|
39
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
40
42
|
,
|
|
41
43
|
style: {
|
|
@@ -631,7 +631,7 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
631
631
|
// since products like Bitbucket might have parent forms
|
|
632
632
|
// that listen for keydown events to trigger form submission
|
|
633
633
|
// https://product-fabric.atlassian.net/browse/ED-19532
|
|
634
|
-
if (e.key === _constants.KeyboardKeys.Enter) {
|
|
634
|
+
if (e.key === _constants.KeyboardKeys.Enter && !((0, _fg.fg)('platform_ally_emoji_fixes_various') && e.target instanceof HTMLButtonElement && e.target.type === 'button')) {
|
|
635
635
|
e.preventDefault();
|
|
636
636
|
}
|
|
637
637
|
};
|
|
@@ -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.
|
|
20
|
+
packageVersion: "73.5.0"
|
|
21
21
|
}, attributes)
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -55,7 +55,7 @@ const ProductivityColorPopupContent = ({
|
|
|
55
55
|
event.stopPropagation();
|
|
56
56
|
};
|
|
57
57
|
const handleEscape = event => {
|
|
58
|
-
if (fg('
|
|
58
|
+
if (fg('platform_ally_emoji_fixes_various') && (event.key === 'Escape' || event.key === 'Esc')) {
|
|
59
59
|
event.preventDefault();
|
|
60
60
|
event.stopPropagation();
|
|
61
61
|
onEscape();
|
|
@@ -151,7 +151,7 @@ const TonesWrapper = props => {
|
|
|
151
151
|
onToneToggle();
|
|
152
152
|
}, [onToneToggle, showToneSelector]);
|
|
153
153
|
const onProductivityColorPreviewKeyDown = useCallback(event => {
|
|
154
|
-
if (showToneSelector && fg('
|
|
154
|
+
if (showToneSelector && fg('platform_ally_emoji_fixes_various') && (event.key === 'Escape' || event.key === 'Esc')) {
|
|
155
155
|
event.preventDefault();
|
|
156
156
|
event.stopPropagation();
|
|
157
157
|
onProductivityColorEscape();
|
|
@@ -3,6 +3,7 @@ import "./TonePreviewButton.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { forwardRef, memo } from 'react';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
7
|
import Emoji from './Emoji';
|
|
7
8
|
export const tonePreviewTestId = 'tone-preview';
|
|
8
9
|
const emojiButton = null;
|
|
@@ -26,7 +27,8 @@ export const TonePreviewButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
26
27
|
onKeyDown: onKeyDown,
|
|
27
28
|
"aria-label": ariaLabelText,
|
|
28
29
|
"aria-expanded": ariaExpanded,
|
|
29
|
-
"aria-controls": ariaControls
|
|
30
|
+
"aria-controls": ariaControls,
|
|
31
|
+
tabIndex: fg('platform_ally_emoji_fixes_various') ? 0 : undefined
|
|
30
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
31
33
|
,
|
|
32
34
|
style: {
|
|
@@ -535,7 +535,7 @@ const EmojiPickerComponent = ({
|
|
|
535
535
|
// since products like Bitbucket might have parent forms
|
|
536
536
|
// that listen for keydown events to trigger form submission
|
|
537
537
|
// https://product-fabric.atlassian.net/browse/ED-19532
|
|
538
|
-
if (e.key === KeyboardKeys.Enter) {
|
|
538
|
+
if (e.key === KeyboardKeys.Enter && !(fg('platform_ally_emoji_fixes_various') && e.target instanceof HTMLButtonElement && e.target.type === 'button')) {
|
|
539
539
|
e.preventDefault();
|
|
540
540
|
}
|
|
541
541
|
};
|
|
@@ -57,7 +57,7 @@ var ProductivityColorPopupContent = function ProductivityColorPopupContent(_ref)
|
|
|
57
57
|
event.stopPropagation();
|
|
58
58
|
};
|
|
59
59
|
var handleEscape = function handleEscape(event) {
|
|
60
|
-
if (fg('
|
|
60
|
+
if (fg('platform_ally_emoji_fixes_various') && (event.key === 'Escape' || event.key === 'Esc')) {
|
|
61
61
|
event.preventDefault();
|
|
62
62
|
event.stopPropagation();
|
|
63
63
|
onEscape();
|
|
@@ -152,7 +152,7 @@ var TonesWrapper = function TonesWrapper(props) {
|
|
|
152
152
|
onToneToggle();
|
|
153
153
|
}, [onToneToggle, showToneSelector]);
|
|
154
154
|
var onProductivityColorPreviewKeyDown = useCallback(function (event) {
|
|
155
|
-
if (showToneSelector && fg('
|
|
155
|
+
if (showToneSelector && fg('platform_ally_emoji_fixes_various') && (event.key === 'Escape' || event.key === 'Esc')) {
|
|
156
156
|
event.preventDefault();
|
|
157
157
|
event.stopPropagation();
|
|
158
158
|
onProductivityColorEscape();
|
|
@@ -3,6 +3,7 @@ import "./TonePreviewButton.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { forwardRef, memo } from 'react';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
7
|
import Emoji from './Emoji';
|
|
7
8
|
export var tonePreviewTestId = 'tone-preview';
|
|
8
9
|
var emojiButton = null;
|
|
@@ -26,7 +27,8 @@ export var TonePreviewButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
26
27
|
onKeyDown: onKeyDown,
|
|
27
28
|
"aria-label": ariaLabelText,
|
|
28
29
|
"aria-expanded": ariaExpanded,
|
|
29
|
-
"aria-controls": ariaControls
|
|
30
|
+
"aria-controls": ariaControls,
|
|
31
|
+
tabIndex: fg('platform_ally_emoji_fixes_various') ? 0 : undefined
|
|
30
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
31
33
|
,
|
|
32
34
|
style: {
|
|
@@ -622,7 +622,7 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
622
622
|
// since products like Bitbucket might have parent forms
|
|
623
623
|
// that listen for keydown events to trigger form submission
|
|
624
624
|
// https://product-fabric.atlassian.net/browse/ED-19532
|
|
625
|
-
if (e.key === KeyboardKeys.Enter) {
|
|
625
|
+
if (e.key === KeyboardKeys.Enter && !(fg('platform_ally_emoji_fixes_various') && e.target instanceof HTMLButtonElement && e.target.type === 'button')) {
|
|
626
626
|
e.preventDefault();
|
|
627
627
|
}
|
|
628
628
|
};
|
|
@@ -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.
|
|
13
|
+
packageVersion: "73.5.0"
|
|
14
14
|
}, attributes)
|
|
15
15
|
};
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "73.
|
|
3
|
+
"version": "73.5.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/afm-i18n-platform-elements-emoji": "2.
|
|
35
|
+
"@atlaskit/afm-i18n-platform-elements-emoji": "2.305.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^12.6.0",
|
|
37
37
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
38
38
|
"@atlaskit/button": "^25.7.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/tokens": "^20.10.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.4.0",
|
|
60
60
|
"@atlaskit/ufo": "^2.0.0",
|
|
61
|
-
"@atlaskit/user-picker": "^14.
|
|
61
|
+
"@atlaskit/user-picker": "^14.6.0",
|
|
62
62
|
"@atlaskit/util-service-support": "^7.4.0",
|
|
63
63
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|