@atlaskit/reactions 22.10.15 → 22.11.0
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 +18 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Reaction/ReactionButton.js +12 -3
- package/dist/cjs/components/Reaction/styles.js +11 -2
- package/dist/cjs/components/Trigger/Trigger.js +5 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Reaction/ReactionButton.js +12 -4
- package/dist/es2019/components/Reaction/styles.js +10 -1
- package/dist/es2019/components/Trigger/Trigger.js +5 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Reaction/ReactionButton.js +12 -4
- package/dist/esm/components/Reaction/styles.js +10 -1
- package/dist/esm/components/Trigger/Trigger.js +5 -1
- package/dist/types/components/Reaction/styles.d.ts +1 -0
- package/dist/types-ts4.5/components/Reaction/styles.d.ts +1 -0
- package/package.json +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 22.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#134822](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134822)
|
|
8
|
+
[`10fb92b357895`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10fb92b357895) -
|
|
9
|
+
[ux] Jira Visual Refresh changes for reactions
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 22.10.16
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 22.10.15
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -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 = "22.
|
|
14
|
+
var packageVersion = "22.11.0";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -12,6 +12,7 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _FlashAnimation = require("../FlashAnimation");
|
|
14
14
|
var _styles = require("./styles");
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
/**
|
|
16
17
|
* @jsxRuntime classic
|
|
17
18
|
* @jsx jsx
|
|
@@ -19,6 +20,8 @@ var _styles = require("./styles");
|
|
|
19
20
|
|
|
20
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
22
|
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
|
+
|
|
22
25
|
var reactionStyles = (0, _primitives.xcss)({
|
|
23
26
|
display: 'flex',
|
|
24
27
|
flexDirection: 'row',
|
|
@@ -42,6 +45,9 @@ var reactionStyles = (0, _primitives.xcss)({
|
|
|
42
45
|
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
43
46
|
}
|
|
44
47
|
});
|
|
48
|
+
var reactionStylesRefresh = (0, _primitives.xcss)({
|
|
49
|
+
borderRadius: 'border.radius'
|
|
50
|
+
});
|
|
45
51
|
var ReactionButton = exports.ReactionButton = function ReactionButton(_ref) {
|
|
46
52
|
var onClick = _ref.onClick,
|
|
47
53
|
_ref$flash = _ref.flash,
|
|
@@ -63,9 +69,12 @@ var ReactionButton = exports.ReactionButton = function ReactionButton(_ref) {
|
|
|
63
69
|
"aria-label": ariaLabel,
|
|
64
70
|
"aria-pressed": ariaPressed,
|
|
65
71
|
testId: testId,
|
|
66
|
-
xcss: [reactionStyles].concat((0, _toConsumableArray2.default)(additionalStyles)
|
|
72
|
+
xcss: [reactionStyles].concat((0, _toConsumableArray2.default)(additionalStyles), [
|
|
73
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
74
|
+
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && reactionStylesRefresh])
|
|
67
75
|
}, dataAttributes), (0, _react2.jsx)(_FlashAnimation.FlashAnimation, {
|
|
68
|
-
flash: flash
|
|
69
|
-
css
|
|
76
|
+
flash: flash
|
|
77
|
+
/* eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */,
|
|
78
|
+
css: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? _styles.flashStyle : _styles.flashStyleOld
|
|
70
79
|
}, children));
|
|
71
80
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.reactionStyle = exports.reactedStyle = exports.flashStyle = exports.flashHeight = exports.emojiStyle = exports.emojiNoReactionStyle = exports.containerStyle = void 0;
|
|
6
|
+
exports.reactionStyle = exports.reactedStyle = exports.flashStyleOld = exports.flashStyle = exports.flashHeight = exports.emojiStyle = exports.emojiNoReactionStyle = exports.containerStyle = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/**
|
|
@@ -75,7 +75,7 @@ var reactedStyle = exports.reactedStyle = (0, _react.css)({
|
|
|
75
75
|
var flashHeight = exports.flashHeight = akHeight - 2; // height without the 1px border
|
|
76
76
|
|
|
77
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
78
|
-
var
|
|
78
|
+
var flashStyleOld = exports.flashStyleOld = (0, _react.css)({
|
|
79
79
|
display: 'flex',
|
|
80
80
|
flexDirection: 'row',
|
|
81
81
|
alignItems: 'center',
|
|
@@ -83,6 +83,15 @@ var flashStyle = exports.flashStyle = (0, _react.css)({
|
|
|
83
83
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
84
84
|
height: "".concat(flashHeight, "px")
|
|
85
85
|
});
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
87
|
+
var flashStyle = exports.flashStyle = (0, _react.css)({
|
|
88
|
+
display: 'flex',
|
|
89
|
+
flexDirection: 'row',
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
borderRadius: "var(--ds-border-radius-050, 2px)",
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
93
|
+
height: "".concat(flashHeight, "px")
|
|
94
|
+
});
|
|
86
95
|
|
|
87
96
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
88
97
|
var emojiNoReactionStyle = exports.emojiNoReactionStyle = (0, _react.css)({
|
|
@@ -11,6 +11,7 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _primitives = require("@atlaskit/primitives");
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
13
|
var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/glyph/emoji-add"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
/**
|
|
15
16
|
* @jsxRuntime classic
|
|
16
17
|
* @jsx jsx
|
|
@@ -35,6 +36,9 @@ var triggerStyles = (0, _primitives.xcss)({
|
|
|
35
36
|
alignItems: 'center',
|
|
36
37
|
lineHeight: '16px'
|
|
37
38
|
});
|
|
39
|
+
var triggerStylesRefresh = (0, _primitives.xcss)({
|
|
40
|
+
borderRadius: 'border.radius'
|
|
41
|
+
});
|
|
38
42
|
var transparentEnabledTriggerStyles = (0, _primitives.xcss)({
|
|
39
43
|
borderColor: 'color.border',
|
|
40
44
|
backgroundColor: 'color.background.neutral.subtle',
|
|
@@ -89,7 +93,7 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
89
93
|
content: tooltipContent
|
|
90
94
|
}, (0, _react2.jsx)(_primitives.Pressable, (0, _extends2.default)({
|
|
91
95
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
92
|
-
xcss: [triggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles],
|
|
96
|
+
xcss: [triggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && triggerStylesRefresh],
|
|
93
97
|
onClick: handleMouseDown,
|
|
94
98
|
isDisabled: disabled,
|
|
95
99
|
ref: ref
|
|
@@ -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 = "22.
|
|
4
|
+
const packageVersion = "22.11.0";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -8,7 +8,9 @@ import { Pressable, xcss } from '@atlaskit/primitives';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { FlashAnimation } from '../FlashAnimation';
|
|
11
|
-
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
12
|
+
import { flashStyle, flashStyleOld } from './styles';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
14
|
const reactionStyles = xcss({
|
|
13
15
|
display: 'flex',
|
|
14
16
|
flexDirection: 'row',
|
|
@@ -32,6 +34,9 @@ const reactionStyles = xcss({
|
|
|
32
34
|
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
33
35
|
}
|
|
34
36
|
});
|
|
37
|
+
const reactionStylesRefresh = xcss({
|
|
38
|
+
borderRadius: 'border.radius'
|
|
39
|
+
});
|
|
35
40
|
export const ReactionButton = ({
|
|
36
41
|
onClick,
|
|
37
42
|
flash = false,
|
|
@@ -51,9 +56,12 @@ export const ReactionButton = ({
|
|
|
51
56
|
"aria-label": ariaLabel,
|
|
52
57
|
"aria-pressed": ariaPressed,
|
|
53
58
|
testId: testId,
|
|
54
|
-
xcss: [reactionStyles, ...additionalStyles
|
|
59
|
+
xcss: [reactionStyles, ...additionalStyles,
|
|
60
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
61
|
+
fg('platform-component-visual-refresh') && reactionStylesRefresh]
|
|
55
62
|
}, dataAttributes), jsx(FlashAnimation, {
|
|
56
|
-
flash: flash
|
|
57
|
-
css
|
|
63
|
+
flash: flash
|
|
64
|
+
/* eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */,
|
|
65
|
+
css: fg('platform-component-visual-refresh') ? flashStyle : flashStyleOld
|
|
58
66
|
}, children));
|
|
59
67
|
};
|
|
@@ -68,7 +68,7 @@ export const reactedStyle = css({
|
|
|
68
68
|
export const flashHeight = akHeight - 2; // height without the 1px border
|
|
69
69
|
|
|
70
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
71
|
-
export const
|
|
71
|
+
export const flashStyleOld = css({
|
|
72
72
|
display: 'flex',
|
|
73
73
|
flexDirection: 'row',
|
|
74
74
|
alignItems: 'center',
|
|
@@ -76,6 +76,15 @@ export const flashStyle = css({
|
|
|
76
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
77
|
height: `${flashHeight}px`
|
|
78
78
|
});
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
|
+
export const flashStyle = css({
|
|
81
|
+
display: 'flex',
|
|
82
|
+
flexDirection: 'row',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
borderRadius: "var(--ds-border-radius-050, 2px)",
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
86
|
+
height: `${flashHeight}px`
|
|
87
|
+
});
|
|
79
88
|
|
|
80
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
81
90
|
export const emojiNoReactionStyle = css({
|
|
@@ -9,6 +9,7 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import EmojiAddIcon from '@atlaskit/icon/glyph/emoji-add';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Test id for the tooltip
|
|
@@ -27,6 +28,9 @@ const triggerStyles = xcss({
|
|
|
27
28
|
alignItems: 'center',
|
|
28
29
|
lineHeight: '16px'
|
|
29
30
|
});
|
|
31
|
+
const triggerStylesRefresh = xcss({
|
|
32
|
+
borderRadius: 'border.radius'
|
|
33
|
+
});
|
|
30
34
|
const transparentEnabledTriggerStyles = xcss({
|
|
31
35
|
borderColor: 'color.border',
|
|
32
36
|
backgroundColor: 'color.background.neutral.subtle',
|
|
@@ -80,7 +84,7 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
80
84
|
content: tooltipContent
|
|
81
85
|
}, jsx(Pressable, _extends({
|
|
82
86
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
83
|
-
xcss: [triggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles],
|
|
87
|
+
xcss: [triggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, fg('platform-component-visual-refresh') && triggerStylesRefresh],
|
|
84
88
|
onClick: handleMouseDown,
|
|
85
89
|
isDisabled: disabled,
|
|
86
90
|
ref: ref
|
|
@@ -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 = "22.
|
|
7
|
+
var packageVersion = "22.11.0";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -9,7 +9,9 @@ import { Pressable, xcss } from '@atlaskit/primitives';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
11
|
import { FlashAnimation } from '../FlashAnimation';
|
|
12
|
-
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
|
+
import { flashStyle, flashStyleOld } from './styles';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
15
|
var reactionStyles = xcss({
|
|
14
16
|
display: 'flex',
|
|
15
17
|
flexDirection: 'row',
|
|
@@ -33,6 +35,9 @@ var reactionStyles = xcss({
|
|
|
33
35
|
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
34
36
|
}
|
|
35
37
|
});
|
|
38
|
+
var reactionStylesRefresh = xcss({
|
|
39
|
+
borderRadius: 'border.radius'
|
|
40
|
+
});
|
|
36
41
|
export var ReactionButton = function ReactionButton(_ref) {
|
|
37
42
|
var onClick = _ref.onClick,
|
|
38
43
|
_ref$flash = _ref.flash,
|
|
@@ -54,9 +59,12 @@ export var ReactionButton = function ReactionButton(_ref) {
|
|
|
54
59
|
"aria-label": ariaLabel,
|
|
55
60
|
"aria-pressed": ariaPressed,
|
|
56
61
|
testId: testId,
|
|
57
|
-
xcss: [reactionStyles].concat(_toConsumableArray(additionalStyles)
|
|
62
|
+
xcss: [reactionStyles].concat(_toConsumableArray(additionalStyles), [
|
|
63
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
64
|
+
fg('platform-component-visual-refresh') && reactionStylesRefresh])
|
|
58
65
|
}, dataAttributes), jsx(FlashAnimation, {
|
|
59
|
-
flash: flash
|
|
60
|
-
css
|
|
66
|
+
flash: flash
|
|
67
|
+
/* eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */,
|
|
68
|
+
css: fg('platform-component-visual-refresh') ? flashStyle : flashStyleOld
|
|
61
69
|
}, children));
|
|
62
70
|
};
|
|
@@ -68,7 +68,7 @@ export var reactedStyle = css({
|
|
|
68
68
|
export var flashHeight = akHeight - 2; // height without the 1px border
|
|
69
69
|
|
|
70
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
71
|
-
export var
|
|
71
|
+
export var flashStyleOld = css({
|
|
72
72
|
display: 'flex',
|
|
73
73
|
flexDirection: 'row',
|
|
74
74
|
alignItems: 'center',
|
|
@@ -76,6 +76,15 @@ export var flashStyle = css({
|
|
|
76
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
77
|
height: "".concat(flashHeight, "px")
|
|
78
78
|
});
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
|
+
export var flashStyle = css({
|
|
81
|
+
display: 'flex',
|
|
82
|
+
flexDirection: 'row',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
borderRadius: "var(--ds-border-radius-050, 2px)",
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
86
|
+
height: "".concat(flashHeight, "px")
|
|
87
|
+
});
|
|
79
88
|
|
|
80
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
81
90
|
export var emojiNoReactionStyle = css({
|
|
@@ -9,6 +9,7 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import EmojiAddIcon from '@atlaskit/icon/glyph/emoji-add';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Test id for the tooltip
|
|
@@ -27,6 +28,9 @@ var triggerStyles = xcss({
|
|
|
27
28
|
alignItems: 'center',
|
|
28
29
|
lineHeight: '16px'
|
|
29
30
|
});
|
|
31
|
+
var triggerStylesRefresh = xcss({
|
|
32
|
+
borderRadius: 'border.radius'
|
|
33
|
+
});
|
|
30
34
|
var transparentEnabledTriggerStyles = xcss({
|
|
31
35
|
borderColor: 'color.border',
|
|
32
36
|
backgroundColor: 'color.background.neutral.subtle',
|
|
@@ -81,7 +85,7 @@ export var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
81
85
|
content: tooltipContent
|
|
82
86
|
}, jsx(Pressable, _extends({
|
|
83
87
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
84
|
-
xcss: [triggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles],
|
|
88
|
+
xcss: [triggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, fg('platform-component-visual-refresh') && triggerStylesRefresh],
|
|
85
89
|
onClick: handleMouseDown,
|
|
86
90
|
isDisabled: disabled,
|
|
87
91
|
ref: ref
|
|
@@ -8,5 +8,6 @@ export declare const emojiStyle: import("@emotion/react").SerializedStyles;
|
|
|
8
8
|
export declare const reactionStyle: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const reactedStyle: import("@emotion/react").SerializedStyles;
|
|
10
10
|
export declare const flashHeight: number;
|
|
11
|
+
export declare const flashStyleOld: import("@emotion/react").SerializedStyles;
|
|
11
12
|
export declare const flashStyle: import("@emotion/react").SerializedStyles;
|
|
12
13
|
export declare const emojiNoReactionStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -8,5 +8,6 @@ export declare const emojiStyle: import("@emotion/react").SerializedStyles;
|
|
|
8
8
|
export declare const reactionStyle: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const reactedStyle: import("@emotion/react").SerializedStyles;
|
|
10
10
|
export declare const flashHeight: number;
|
|
11
|
+
export declare const flashStyleOld: import("@emotion/react").SerializedStyles;
|
|
11
12
|
export declare const flashStyle: import("@emotion/react").SerializedStyles;
|
|
12
13
|
export declare const emojiNoReactionStyle: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.11.0",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"atlaskit:src": "src/index.ts",
|
|
24
24
|
"atlassian": {
|
|
25
25
|
"team": "Editor: Collaboration",
|
|
26
|
-
"releaseModel": "continuous",
|
|
27
26
|
"website": {
|
|
28
27
|
"name": "Reactions"
|
|
29
28
|
},
|
|
@@ -42,9 +41,10 @@
|
|
|
42
41
|
"@atlaskit/icon": "^22.15.0",
|
|
43
42
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
44
43
|
"@atlaskit/motion": "^1.9.0",
|
|
44
|
+
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
45
|
"@atlaskit/popper": "^6.2.0",
|
|
46
|
-
"@atlaskit/popup": "1.
|
|
47
|
-
"@atlaskit/primitives": "^12.
|
|
46
|
+
"@atlaskit/popup": "1.24.0",
|
|
47
|
+
"@atlaskit/primitives": "^12.1.0",
|
|
48
48
|
"@atlaskit/spinner": "^16.3.0",
|
|
49
49
|
"@atlaskit/tabs": "^16.4.0",
|
|
50
50
|
"@atlaskit/theme": "^13.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
79
79
|
"typescript": "~5.4.2",
|
|
80
80
|
"wait-for-expect": "^1.2.0",
|
|
81
|
-
"webpack-dev-server": "^4.
|
|
81
|
+
"webpack-dev-server": "^4.15.2"
|
|
82
82
|
},
|
|
83
83
|
"keywords": [
|
|
84
84
|
"fabric",
|
|
@@ -107,5 +107,10 @@
|
|
|
107
107
|
"typecheck": "cd ../../ && yarn typecheck:package ./packages/elements/reactions",
|
|
108
108
|
"start:dev": "cd ../../ && yarn start reactions --proxy ./packages/elements/reactions/proxy.ts",
|
|
109
109
|
"start:edge": "cd ../../ && PROXY_TARGET_ENV=edge yarn start reactions --proxy ./packages/elements/reactions/proxy.ts"
|
|
110
|
+
},
|
|
111
|
+
"platform-feature-flags": {
|
|
112
|
+
"platform-component-visual-refresh": {
|
|
113
|
+
"type": "boolean"
|
|
114
|
+
}
|
|
110
115
|
}
|
|
111
116
|
}
|