@atlaskit/reactions 33.8.16 → 33.8.19
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 +25 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Counter.js +1 -1
- package/dist/cjs/components/EmojiButton.js +1 -1
- package/dist/cjs/components/FlashAnimation.js +1 -1
- package/dist/cjs/components/Reaction.js +1 -1
- package/dist/cjs/components/ReactionButton.js +1 -1
- package/dist/cjs/components/ReactionParticleEffect.js +1 -1
- package/dist/cjs/components/ReactionPicker.js +3 -2
- package/dist/cjs/components/ReactionSummaryButton.js +1 -1
- package/dist/cjs/components/ReactionSummaryView.js +1 -1
- package/dist/cjs/components/ReactionTooltip.js +5 -4
- package/dist/cjs/components/ReactionView.js +1 -1
- package/dist/cjs/components/Reactions.js +1 -1
- package/dist/cjs/components/ReactionsDialog.js +1 -1
- package/dist/cjs/components/ReactionsDialogHeader.js +7 -5
- package/dist/cjs/components/ReactionsDialogTrigger.js +1 -1
- package/dist/cjs/components/Selector.js +1 -1
- package/dist/cjs/components/StaticReaction.js +1 -1
- package/dist/cjs/components/Trigger.js +1 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Counter.js +1 -1
- package/dist/es2019/components/EmojiButton.js +1 -1
- package/dist/es2019/components/FlashAnimation.js +1 -1
- package/dist/es2019/components/Reaction.js +1 -1
- package/dist/es2019/components/ReactionButton.js +1 -1
- package/dist/es2019/components/ReactionParticleEffect.js +1 -1
- package/dist/es2019/components/ReactionPicker.js +3 -2
- package/dist/es2019/components/ReactionSummaryButton.js +1 -1
- package/dist/es2019/components/ReactionSummaryView.js +1 -1
- package/dist/es2019/components/ReactionTooltip.js +5 -4
- package/dist/es2019/components/ReactionView.js +1 -1
- package/dist/es2019/components/Reactions.js +1 -1
- package/dist/es2019/components/ReactionsDialog.js +1 -1
- package/dist/es2019/components/ReactionsDialogHeader.js +7 -5
- package/dist/es2019/components/ReactionsDialogTrigger.js +1 -1
- package/dist/es2019/components/Selector.js +1 -1
- package/dist/es2019/components/StaticReaction.js +1 -1
- package/dist/es2019/components/Trigger.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Counter.js +1 -1
- package/dist/esm/components/EmojiButton.js +1 -1
- package/dist/esm/components/FlashAnimation.js +1 -1
- package/dist/esm/components/Reaction.js +1 -1
- package/dist/esm/components/ReactionButton.js +1 -1
- package/dist/esm/components/ReactionParticleEffect.js +1 -1
- package/dist/esm/components/ReactionPicker.js +3 -2
- package/dist/esm/components/ReactionSummaryButton.js +1 -1
- package/dist/esm/components/ReactionSummaryView.js +1 -1
- package/dist/esm/components/ReactionTooltip.js +5 -4
- package/dist/esm/components/ReactionView.js +1 -1
- package/dist/esm/components/Reactions.js +1 -1
- package/dist/esm/components/ReactionsDialog.js +1 -1
- package/dist/esm/components/ReactionsDialogHeader.js +7 -5
- package/dist/esm/components/ReactionsDialogTrigger.js +1 -1
- package/dist/esm/components/Selector.js +1 -1
- package/dist/esm/components/StaticReaction.js +1 -1
- package/dist/esm/components/Trigger.js +1 -1
- package/docs/0-intro.tsx +1 -2
- package/docs/3-reactions-store.tsx +1 -2
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 33.8.19
|
|
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
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 33.8.18
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`e16fa4dbfb0d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e16fa4dbfb0d6) -
|
|
16
|
+
Remove missing content from anchor a11y suppression from docs
|
|
17
|
+
- [`368204368d995`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/368204368d995) -
|
|
18
|
+
Remove redundant inaccessible tabIndex
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 33.8.17
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [`1d0fcc9c19260`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1d0fcc9c19260) -
|
|
26
|
+
Clean up flag to make links more accessible.
|
|
27
|
+
|
|
3
28
|
## 33.8.16
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
|
|
|
11
11
|
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; }
|
|
12
12
|
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; }
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "
|
|
14
|
+
var packageVersion = "33.8.18";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -14,6 +14,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _reactIntlNext = require("react-intl-next");
|
|
16
16
|
var _picker = require("@atlaskit/emoji/picker");
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _popper = require("@atlaskit/popper");
|
|
18
19
|
var _constants = require("@atlaskit/theme/constants");
|
|
19
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -413,7 +414,7 @@ var PopperWrapper = exports.PopperWrapper = function PopperWrapper(props) {
|
|
|
413
414
|
}
|
|
414
415
|
},
|
|
415
416
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
416
|
-
tabIndex: 0,
|
|
417
|
+
tabIndex: (0, _platformFeatureFlags.fg)('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
417
418
|
className: (0, _runtime.ax)(["_nt751r31 _49pcglyw _1hvw1o36"])
|
|
418
419
|
}, /*#__PURE__*/_react.default.createElement(_RepositionOnUpdate.RepositionOnUpdate, {
|
|
419
420
|
update: update,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -10,11 +10,12 @@ require("./ReactionTooltip.compiled.css");
|
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
14
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
16
|
+
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
15
17
|
var _constants = require("../shared/constants");
|
|
16
18
|
var _i18n = require("../shared/i18n");
|
|
17
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
18
19
|
var verticalMargin = exports.verticalMargin = 5;
|
|
19
20
|
var tooltipStyle = null;
|
|
20
21
|
var emojiNameStyle = null;
|
|
@@ -44,7 +45,7 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
|
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
var content = !users || users.length === 0 || !isEnabled ? null : /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
-
tabIndex: 0,
|
|
48
|
+
tabIndex: (0, _platformFeatureFlags.fg)('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
48
49
|
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2"])
|
|
49
50
|
}, /*#__PURE__*/_react.default.createElement("ul", null, emojiName ? /*#__PURE__*/_react.default.createElement("li", {
|
|
50
51
|
className: (0, _runtime.ax)(["_1p1d1dk0 _syaz1lqe _k48p1pd9"]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -23,6 +23,7 @@ var _tabs = require("@atlaskit/tabs");
|
|
|
23
23
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
24
24
|
var _new = require("@atlaskit/button/new");
|
|
25
25
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
26
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
27
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
27
28
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
28
29
|
var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
|
|
@@ -166,12 +167,13 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
|
|
|
166
167
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
167
168
|
className: (0, _runtime.ax)([customTabWrapper.base, colorMode === 'dark' && customTabWrapper.darkTheme, index === 0 && "_19bvpxbi", "reaction-elements"]),
|
|
168
169
|
key: reaction.emojiId,
|
|
169
|
-
"data-testid": emojiId === null || emojiId === void 0 ? void 0 : emojiId.id
|
|
170
|
-
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
171
|
-
,
|
|
170
|
+
"data-testid": emojiId === null || emojiId === void 0 ? void 0 : emojiId.id,
|
|
172
171
|
onMouseEnter: function onMouseEnter() {
|
|
173
172
|
handleMouseEnter(reaction);
|
|
174
|
-
}
|
|
173
|
+
},
|
|
174
|
+
onFocus: (0, _platformFeatureFlags.fg)('platform_suppression_removal_fix_reactions') ? function () {
|
|
175
|
+
handleMouseEnter(reaction);
|
|
176
|
+
} : undefined
|
|
175
177
|
}, /*#__PURE__*/React.createElement(_tabs.Tab, null, /*#__PURE__*/React.createElement(_tooltip.default, {
|
|
176
178
|
content: cache[reaction.emojiId],
|
|
177
179
|
canAppear: function canAppear() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
3
3
|
const packageName = "@atlaskit/reactions";
|
|
4
|
-
const packageVersion = "
|
|
4
|
+
const packageVersion = "33.8.18";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionButton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionButton.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionButton.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionParticleEffect.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionParticleEffect.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./ReactionParticleEffect.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./ReactionPicker.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
6
6
|
import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
8
9
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -369,7 +370,7 @@ export const PopperWrapper = props => {
|
|
|
369
370
|
}
|
|
370
371
|
},
|
|
371
372
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
372
|
-
tabIndex: 0,
|
|
373
|
+
tabIndex: fg('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
373
374
|
className: ax(["_nt751r31 _49pcglyw _1hvw1o36"])
|
|
374
375
|
}, /*#__PURE__*/React.createElement(RepositionOnUpdate, {
|
|
375
376
|
update: update,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionSummaryButton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionSummaryButton.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./ReactionSummaryButton.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionSummaryView.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionSummaryView.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionSummaryView.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionTooltip.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
7
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { N90, N800, N0 } from '@atlaskit/theme/colors';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
8
10
|
import { TOOLTIP_USERS_LIMIT } from '../shared/constants';
|
|
9
11
|
import { messages } from '../shared/i18n';
|
|
10
|
-
import { N90, N800, N0 } from '@atlaskit/theme/colors';
|
|
11
12
|
export const verticalMargin = 5;
|
|
12
13
|
const tooltipStyle = null;
|
|
13
14
|
const emojiNameStyle = null;
|
|
@@ -37,7 +38,7 @@ export const ReactionTooltip = ({
|
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
const content = !users || users.length === 0 || !isEnabled ? null : /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
tabIndex: 0,
|
|
41
|
+
tabIndex: fg('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
41
42
|
className: ax(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2"])
|
|
42
43
|
}, /*#__PURE__*/React.createElement("ul", null, emojiName ? /*#__PURE__*/React.createElement("li", {
|
|
43
44
|
className: ax(["_1p1d1dk0 _syaz6r0x _k48p1pd9"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Reactions.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Reactions.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./Reactions.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionsDialogHeader.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -12,6 +12,7 @@ import { Box, Flex, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
|
12
12
|
import { IconButton } from '@atlaskit/button/new';
|
|
13
13
|
import Heading from '@atlaskit/heading';
|
|
14
14
|
import { useModal } from '@atlaskit/modal-dialog';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
17
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
17
18
|
import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
|
|
@@ -137,12 +138,13 @@ export const ReactionsDialogHeader = ({
|
|
|
137
138
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
138
139
|
className: ax([customTabWrapper.base, colorMode === 'dark' && customTabWrapper.darkTheme, index === 0 && "_19bvpxbi", "reaction-elements"]),
|
|
139
140
|
key: reaction.emojiId,
|
|
140
|
-
"data-testid": emojiId === null || emojiId === void 0 ? void 0 : emojiId.id
|
|
141
|
-
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
142
|
-
,
|
|
141
|
+
"data-testid": emojiId === null || emojiId === void 0 ? void 0 : emojiId.id,
|
|
143
142
|
onMouseEnter: () => {
|
|
144
143
|
handleMouseEnter(reaction);
|
|
145
|
-
}
|
|
144
|
+
},
|
|
145
|
+
onFocus: fg('platform_suppression_removal_fix_reactions') ? () => {
|
|
146
|
+
handleMouseEnter(reaction);
|
|
147
|
+
} : undefined
|
|
146
148
|
}, /*#__PURE__*/React.createElement(Tab, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
147
149
|
content: cache[reaction.emojiId],
|
|
148
150
|
canAppear: () => !!cache[reaction.emojiId]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialogTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialogTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./ReactionsDialogTrigger.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* StaticReaction.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* StaticReaction.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./StaticReaction.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
6
6
|
var packageName = "@atlaskit/reactions";
|
|
7
|
-
var packageVersion = "
|
|
7
|
+
var packageVersion = "33.8.18";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Reaction.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Reaction.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./Reaction.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionButton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionButton.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionButton.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionParticleEffect.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionParticleEffect.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import "./ReactionParticleEffect.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./ReactionPicker.compiled.css";
|
|
@@ -8,6 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
9
9
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
10
10
|
import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
12
13
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
14
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -404,7 +405,7 @@ export var PopperWrapper = function PopperWrapper(props) {
|
|
|
404
405
|
}
|
|
405
406
|
},
|
|
406
407
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
407
|
-
tabIndex: 0,
|
|
408
|
+
tabIndex: fg('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
408
409
|
className: ax(["_nt751r31 _49pcglyw _1hvw1o36"])
|
|
409
410
|
}, /*#__PURE__*/React.createElement(RepositionOnUpdate, {
|
|
410
411
|
update: update,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionSummaryButton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionSummaryButton.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import "./ReactionSummaryButton.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionSummaryView.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionSummaryView.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./ReactionSummaryView.compiled.css";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionTooltip.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
7
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { N90, N800, N0 } from '@atlaskit/theme/colors';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
8
10
|
import { TOOLTIP_USERS_LIMIT } from '../shared/constants';
|
|
9
11
|
import { messages } from '../shared/i18n';
|
|
10
|
-
import { N90, N800, N0 } from '@atlaskit/theme/colors';
|
|
11
12
|
export var verticalMargin = 5;
|
|
12
13
|
var tooltipStyle = null;
|
|
13
14
|
var emojiNameStyle = null;
|
|
@@ -37,7 +38,7 @@ export var ReactionTooltip = function ReactionTooltip(_ref) {
|
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
var content = !users || users.length === 0 || !isEnabled ? null : /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
tabIndex: 0,
|
|
41
|
+
tabIndex: fg('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
41
42
|
className: ax(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2"])
|
|
42
43
|
}, /*#__PURE__*/React.createElement("ul", null, emojiName ? /*#__PURE__*/React.createElement("li", {
|
|
43
44
|
className: ax(["_1p1d1dk0 _syaz1lqe _k48p1pd9"]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Reactions.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Reactions.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./Reactions.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialog.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./ReactionsDialog.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -18,6 +18,7 @@ import { Box, Flex, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
|
18
18
|
import { IconButton } from '@atlaskit/button/new';
|
|
19
19
|
import Heading from '@atlaskit/heading';
|
|
20
20
|
import { useModal } from '@atlaskit/modal-dialog';
|
|
21
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
22
|
import Tooltip from '@atlaskit/tooltip';
|
|
22
23
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
23
24
|
import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
|
|
@@ -158,12 +159,13 @@ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref3) {
|
|
|
158
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
159
160
|
className: ax([customTabWrapper.base, colorMode === 'dark' && customTabWrapper.darkTheme, index === 0 && "_19bvpxbi", "reaction-elements"]),
|
|
160
161
|
key: reaction.emojiId,
|
|
161
|
-
"data-testid": emojiId === null || emojiId === void 0 ? void 0 : emojiId.id
|
|
162
|
-
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
163
|
-
,
|
|
162
|
+
"data-testid": emojiId === null || emojiId === void 0 ? void 0 : emojiId.id,
|
|
164
163
|
onMouseEnter: function onMouseEnter() {
|
|
165
164
|
handleMouseEnter(reaction);
|
|
166
|
-
}
|
|
165
|
+
},
|
|
166
|
+
onFocus: fg('platform_suppression_removal_fix_reactions') ? function () {
|
|
167
|
+
handleMouseEnter(reaction);
|
|
168
|
+
} : undefined
|
|
167
169
|
}, /*#__PURE__*/React.createElement(Tab, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
168
170
|
content: cache[reaction.emojiId],
|
|
169
171
|
canAppear: function canAppear() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialogTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialogTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./ReactionsDialogTrigger.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* StaticReaction.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* StaticReaction.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./StaticReaction.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/docs/0-intro.tsx
CHANGED
|
@@ -6,8 +6,7 @@ import { Text } from '@atlaskit/primitives/compiled';
|
|
|
6
6
|
|
|
7
7
|
import ReactionsExample from '../examples/01-connected-reactions-view';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
const LinkComponent = (props: any) => <Link {...props} />;
|
|
9
|
+
const LinkComponent = (props: any) => <Link {...props}>{props.children}</Link>;
|
|
11
10
|
|
|
12
11
|
const _default_1: any = md`
|
|
13
12
|
${(<AtlassianInternalWarning />)}
|
|
@@ -4,8 +4,7 @@ import { md, code, Props } from '@atlaskit/docs';
|
|
|
4
4
|
import SectionMessage from '@atlaskit/section-message';
|
|
5
5
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
const LinkComponent = (props: any) => <Link {...props} />;
|
|
7
|
+
const LinkComponent = (props: any) => <Link {...props}>{props.children}</Link>;
|
|
9
8
|
|
|
10
9
|
const _default_1: any = md`
|
|
11
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "33.8.
|
|
3
|
+
"version": "33.8.19",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/icon": "^32.0.0",
|
|
44
44
|
"@atlaskit/link": "^3.3.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
46
|
-
"@atlaskit/motion": "^5.
|
|
46
|
+
"@atlaskit/motion": "^5.4.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/popper": "^7.1.0",
|
|
49
49
|
"@atlaskit/popup": "^4.13.0",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
54
54
|
"@atlaskit/tabs": "^18.3.0",
|
|
55
55
|
"@atlaskit/theme": "^22.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^11.
|
|
56
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
57
57
|
"@atlaskit/tooltip": "^20.14.0",
|
|
58
58
|
"@atlaskit/ufo": "^0.4.0",
|
|
59
59
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
|
-
"@compiled/react": "^0.
|
|
61
|
+
"@compiled/react": "^0.20.0",
|
|
62
62
|
"focus-trap": "^2.4.5"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
72
72
|
"@atlaskit/elements-test-helpers": "workspace:^",
|
|
73
73
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
74
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
74
|
+
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
75
75
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
76
76
|
"@testing-library/dom": "^10.1.0",
|
|
77
77
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -128,6 +128,9 @@
|
|
|
128
128
|
},
|
|
129
129
|
"platform-a11y-add-reactions-button-ul-item": {
|
|
130
130
|
"type": "boolean"
|
|
131
|
+
},
|
|
132
|
+
"platform_suppression_removal_fix_reactions": {
|
|
133
|
+
"type": "boolean"
|
|
131
134
|
}
|
|
132
135
|
},
|
|
133
136
|
"sideEffects": [
|