@atlaskit/reactions 30.0.4 → 30.0.6
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 +14 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/ReactionDialog/ReactionsDialogHeader.js +6 -3
- package/dist/cjs/components/compiled/ReactionsDialogHeader.js +6 -3
- package/dist/cjs/index.js +2 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionDialog/ReactionsDialogHeader.js +6 -2
- package/dist/es2019/components/compiled/ReactionsDialogHeader.js +6 -2
- package/dist/es2019/index.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionDialog/ReactionsDialogHeader.js +6 -2
- package/dist/esm/components/compiled/ReactionsDialogHeader.js +6 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 30.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#137066](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137066)
|
|
8
|
+
[`9090c9149afb4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9090c9149afb4) -
|
|
9
|
+
correctly import compiled css version of reaction picker
|
|
10
|
+
|
|
11
|
+
## 30.0.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 30.0.4
|
|
4
18
|
|
|
5
19
|
### 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 = "30.0.
|
|
14
|
+
var packageVersion = "30.0.6";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -13,16 +13,17 @@ var _react = require("react");
|
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
var _tokens = require("@atlaskit/tokens");
|
|
16
|
+
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
16
17
|
var _tabs = require("@atlaskit/tabs");
|
|
17
18
|
var _primitives = require("@atlaskit/primitives");
|
|
18
19
|
var _new = require("@atlaskit/button/new");
|
|
19
20
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
20
|
-
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
21
21
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
22
22
|
var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-left"));
|
|
23
23
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-right"));
|
|
24
24
|
var _close = _interopRequireDefault(require("@atlaskit/icon/core/close"));
|
|
25
25
|
var _element = require("@atlaskit/emoji/element");
|
|
26
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
27
|
var _i18n = require("../../shared/i18n");
|
|
27
28
|
var _Counter = require("../Counter");
|
|
28
29
|
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; }
|
|
@@ -127,7 +128,7 @@ var emojiStyles = (0, _primitives.xcss)({
|
|
|
127
128
|
var counterStyle = (0, _primitives.xcss)({
|
|
128
129
|
marginTop: 'space.025'
|
|
129
130
|
});
|
|
130
|
-
var
|
|
131
|
+
var CloseButtonCustom = function CloseButtonCustom(_ref) {
|
|
131
132
|
var handleCloseReactionsDialog = _ref.handleCloseReactionsDialog;
|
|
132
133
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
133
134
|
return (0, _react2.jsx)(_new.IconButton, {
|
|
@@ -232,7 +233,9 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
|
|
|
232
233
|
id: titleId
|
|
233
234
|
}, intl.formatMessage(_i18n.messages.reactionsCount, {
|
|
234
235
|
count: totalReactionsCount
|
|
235
|
-
})), (0, _react2.jsx)(CloseButton, {
|
|
236
|
+
})), (0, _platformFeatureFlags.fg)('platform-make-accessible-close-button') ? (0, _react2.jsx)(_modalDialog.CloseButton, {
|
|
237
|
+
onClick: handleCloseReactionsDialog
|
|
238
|
+
}) : (0, _react2.jsx)(CloseButtonCustom, {
|
|
236
239
|
handleCloseReactionsDialog: handleCloseReactionsDialog
|
|
237
240
|
})), (0, _react2.jsx)(_primitives.Inline, null, (0, _react2.jsx)("div", {
|
|
238
241
|
css: customTabListStyles,
|
|
@@ -17,16 +17,17 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
17
17
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
18
18
|
var _reactIntlNext = require("react-intl-next");
|
|
19
19
|
var _tokens = require("@atlaskit/tokens");
|
|
20
|
+
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
20
21
|
var _tabs = require("@atlaskit/tabs");
|
|
21
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
23
|
var _new = require("@atlaskit/button/new");
|
|
23
24
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
24
|
-
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
25
25
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
26
26
|
var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-left"));
|
|
27
27
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-right"));
|
|
28
28
|
var _close = _interopRequireDefault(require("@atlaskit/icon/core/close"));
|
|
29
29
|
var _element = require("@atlaskit/emoji/element");
|
|
30
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
30
31
|
var _i18n = require("../../shared/i18n");
|
|
31
32
|
var _Counter = require("./Counter");
|
|
32
33
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -48,7 +49,7 @@ var customTabWrapper = {
|
|
|
48
49
|
darkTheme: "_nhkt1ts8 _j5n7hco4"
|
|
49
50
|
};
|
|
50
51
|
var firstElement = null;
|
|
51
|
-
var
|
|
52
|
+
var CloseButtonCustom = function CloseButtonCustom(_ref) {
|
|
52
53
|
var handleCloseReactionsDialog = _ref.handleCloseReactionsDialog;
|
|
53
54
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
54
55
|
return /*#__PURE__*/React.createElement(_new.IconButton, {
|
|
@@ -153,7 +154,9 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
|
|
|
153
154
|
id: titleId
|
|
154
155
|
}, intl.formatMessage(_i18n.messages.reactionsCount, {
|
|
155
156
|
count: totalReactionsCount
|
|
156
|
-
})), /*#__PURE__*/React.createElement(CloseButton, {
|
|
157
|
+
})), (0, _platformFeatureFlags.fg)('platform-make-accessible-close-button') ? /*#__PURE__*/React.createElement(_modalDialog.CloseButton, {
|
|
158
|
+
onClick: handleCloseReactionsDialog
|
|
159
|
+
}) : /*#__PURE__*/React.createElement(CloseButtonCustom, {
|
|
157
160
|
handleCloseReactionsDialog: handleCloseReactionsDialog
|
|
158
161
|
})), /*#__PURE__*/React.createElement(_compiled.Inline, null, /*#__PURE__*/React.createElement("div", {
|
|
159
162
|
id: "reactions-dialog-tabs-list",
|
package/dist/cjs/index.js
CHANGED
|
@@ -61,6 +61,7 @@ var _Reaction2 = require("./components/compiled/Reaction");
|
|
|
61
61
|
var _Reactions = require("./components/Reactions");
|
|
62
62
|
var _Reactions2 = require("./components/compiled/Reactions");
|
|
63
63
|
var _ReactionPicker = require("./components/ReactionPicker/ReactionPicker");
|
|
64
|
+
var _ReactionPicker2 = require("./components/compiled/ReactionPicker");
|
|
64
65
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
65
66
|
var _client = require("./client");
|
|
66
67
|
var _useCloseManager = require("./hooks/useCloseManager");
|
|
@@ -69,7 +70,7 @@ var _store = require("./store");
|
|
|
69
70
|
var _types = require("./types");
|
|
70
71
|
var Reaction = exports.Reaction = (0, _platformFeatureFlagsReact.componentWithFG)('platform_editor_css_migrate_reactions', _Reaction2.Reaction, _Reaction.Reaction);
|
|
71
72
|
var Reactions = exports.Reactions = (0, _platformFeatureFlagsReact.componentWithFG)('platform_editor_css_migrate_reactions', _Reactions2.Reactions, _Reactions.Reactions);
|
|
72
|
-
var ReactionPicker = exports.ReactionPicker = (0, _platformFeatureFlagsReact.componentWithFG)('platform_editor_css_migrate_reactions',
|
|
73
|
+
var ReactionPicker = exports.ReactionPicker = (0, _platformFeatureFlagsReact.componentWithFG)('platform_editor_css_migrate_reactions', _ReactionPicker2.ReactionPicker, _ReactionPicker.ReactionPicker);
|
|
73
74
|
|
|
74
75
|
// TODO: Convert all calls for ReactionRequest to Request, RequestClient to Client and ReactionsStore to Store
|
|
75
76
|
|
|
@@ -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 = "30.0.
|
|
4
|
+
const packageVersion = "30.0.6";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -7,6 +7,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx, css } from '@emotion/react';
|
|
9
9
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
10
|
+
import { CloseButton } from '@atlaskit/modal-dialog';
|
|
10
11
|
import { Tab, TabList } from '@atlaskit/tabs';
|
|
11
12
|
import { Box, Flex, xcss, Stack, Inline } from '@atlaskit/primitives';
|
|
12
13
|
import { IconButton } from '@atlaskit/button/new';
|
|
@@ -17,6 +18,7 @@ import ChevronLeftIcon from '@atlaskit/icon/utility/chevron-left';
|
|
|
17
18
|
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
18
19
|
import CloseIcon from '@atlaskit/icon/core/close';
|
|
19
20
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
21
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
22
|
import { messages } from '../../shared/i18n';
|
|
21
23
|
import { Counter } from '../Counter';
|
|
22
24
|
const REACTIONS_CONTAINER_WIDTH = 56;
|
|
@@ -112,7 +114,7 @@ const emojiStyles = xcss({
|
|
|
112
114
|
const counterStyle = xcss({
|
|
113
115
|
marginTop: 'space.025'
|
|
114
116
|
});
|
|
115
|
-
const
|
|
117
|
+
const CloseButtonCustom = ({
|
|
116
118
|
handleCloseReactionsDialog
|
|
117
119
|
}) => {
|
|
118
120
|
const intl = useIntl();
|
|
@@ -207,7 +209,9 @@ export const ReactionsDialogHeader = ({
|
|
|
207
209
|
id: titleId
|
|
208
210
|
}, intl.formatMessage(messages.reactionsCount, {
|
|
209
211
|
count: totalReactionsCount
|
|
210
|
-
})), jsx(CloseButton, {
|
|
212
|
+
})), fg('platform-make-accessible-close-button') ? jsx(CloseButton, {
|
|
213
|
+
onClick: handleCloseReactionsDialog
|
|
214
|
+
}) : jsx(CloseButtonCustom, {
|
|
211
215
|
handleCloseReactionsDialog: handleCloseReactionsDialog
|
|
212
216
|
})), jsx(Inline, null, jsx("div", {
|
|
213
217
|
css: customTabListStyles,
|
|
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl-next';
|
|
7
7
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
8
|
+
import { CloseButton } from '@atlaskit/modal-dialog';
|
|
8
9
|
import { Tab, TabList } from '@atlaskit/tabs';
|
|
9
10
|
import { Box, Flex, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
10
11
|
import { IconButton } from '@atlaskit/button/new';
|
|
@@ -15,6 +16,7 @@ import ChevronLeftIcon from '@atlaskit/icon/utility/chevron-left';
|
|
|
15
16
|
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
16
17
|
import CloseIcon from '@atlaskit/icon/core/close';
|
|
17
18
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
20
|
import { messages } from '../../shared/i18n';
|
|
19
21
|
import { Counter } from './Counter';
|
|
20
22
|
const styles = {
|
|
@@ -32,7 +34,7 @@ const customTabWrapper = {
|
|
|
32
34
|
darkTheme: "_nhkt1ts8 _j5n7hco4"
|
|
33
35
|
};
|
|
34
36
|
const firstElement = null;
|
|
35
|
-
const
|
|
37
|
+
const CloseButtonCustom = ({
|
|
36
38
|
handleCloseReactionsDialog
|
|
37
39
|
}) => {
|
|
38
40
|
const intl = useIntl();
|
|
@@ -127,7 +129,9 @@ export const ReactionsDialogHeader = ({
|
|
|
127
129
|
id: titleId
|
|
128
130
|
}, intl.formatMessage(messages.reactionsCount, {
|
|
129
131
|
count: totalReactionsCount
|
|
130
|
-
})), /*#__PURE__*/React.createElement(CloseButton, {
|
|
132
|
+
})), fg('platform-make-accessible-close-button') ? /*#__PURE__*/React.createElement(CloseButton, {
|
|
133
|
+
onClick: handleCloseReactionsDialog
|
|
134
|
+
}) : /*#__PURE__*/React.createElement(CloseButtonCustom, {
|
|
131
135
|
handleCloseReactionsDialog: handleCloseReactionsDialog
|
|
132
136
|
})), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
|
|
133
137
|
id: "reactions-dialog-tabs-list",
|
package/dist/es2019/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Reaction as CompiledReaction } from './components/compiled/Reaction';
|
|
|
5
5
|
import { Reactions as EmotionReactions } from './components/Reactions';
|
|
6
6
|
import { Reactions as CompiledReactions } from './components/compiled/Reactions';
|
|
7
7
|
import { ReactionPicker as EmotionReactionPicker } from './components/ReactionPicker/ReactionPicker';
|
|
8
|
-
import { ReactionPicker as CompiledReactionPicker } from './components/
|
|
8
|
+
import { ReactionPicker as CompiledReactionPicker } from './components/compiled/ReactionPicker';
|
|
9
9
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
10
10
|
const Reaction = componentWithFG('platform_editor_css_migrate_reactions', CompiledReaction, EmotionReaction);
|
|
11
11
|
const Reactions = componentWithFG('platform_editor_css_migrate_reactions', CompiledReactions, EmotionReactions);
|
|
@@ -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 = "30.0.
|
|
7
|
+
var packageVersion = "30.0.6";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -13,6 +13,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
14
|
import { jsx, css } from '@emotion/react';
|
|
15
15
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
16
|
+
import { CloseButton } from '@atlaskit/modal-dialog';
|
|
16
17
|
import { Tab, TabList } from '@atlaskit/tabs';
|
|
17
18
|
import { Box, Flex, xcss, Stack, Inline } from '@atlaskit/primitives';
|
|
18
19
|
import { IconButton } from '@atlaskit/button/new';
|
|
@@ -23,6 +24,7 @@ import ChevronLeftIcon from '@atlaskit/icon/utility/chevron-left';
|
|
|
23
24
|
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
24
25
|
import CloseIcon from '@atlaskit/icon/core/close';
|
|
25
26
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
27
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
28
|
import { messages } from '../../shared/i18n';
|
|
27
29
|
import { Counter } from '../Counter';
|
|
28
30
|
var REACTIONS_CONTAINER_WIDTH = 56;
|
|
@@ -122,7 +124,7 @@ var emojiStyles = xcss({
|
|
|
122
124
|
var counterStyle = xcss({
|
|
123
125
|
marginTop: 'space.025'
|
|
124
126
|
});
|
|
125
|
-
var
|
|
127
|
+
var CloseButtonCustom = function CloseButtonCustom(_ref) {
|
|
126
128
|
var handleCloseReactionsDialog = _ref.handleCloseReactionsDialog;
|
|
127
129
|
var intl = useIntl();
|
|
128
130
|
return jsx(IconButton, {
|
|
@@ -227,7 +229,9 @@ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref4) {
|
|
|
227
229
|
id: titleId
|
|
228
230
|
}, intl.formatMessage(messages.reactionsCount, {
|
|
229
231
|
count: totalReactionsCount
|
|
230
|
-
})), jsx(CloseButton, {
|
|
232
|
+
})), fg('platform-make-accessible-close-button') ? jsx(CloseButton, {
|
|
233
|
+
onClick: handleCloseReactionsDialog
|
|
234
|
+
}) : jsx(CloseButtonCustom, {
|
|
231
235
|
handleCloseReactionsDialog: handleCloseReactionsDialog
|
|
232
236
|
})), jsx(Inline, null, jsx("div", {
|
|
233
237
|
css: customTabListStyles,
|
|
@@ -11,6 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
import { useState } from 'react';
|
|
12
12
|
import { useIntl } from 'react-intl-next';
|
|
13
13
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
14
|
+
import { CloseButton } from '@atlaskit/modal-dialog';
|
|
14
15
|
import { Tab, TabList } from '@atlaskit/tabs';
|
|
15
16
|
import { Box, Flex, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
16
17
|
import { IconButton } from '@atlaskit/button/new';
|
|
@@ -21,6 +22,7 @@ import ChevronLeftIcon from '@atlaskit/icon/utility/chevron-left';
|
|
|
21
22
|
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
22
23
|
import CloseIcon from '@atlaskit/icon/core/close';
|
|
23
24
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
25
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
26
|
import { messages } from '../../shared/i18n';
|
|
25
27
|
import { Counter } from './Counter';
|
|
26
28
|
var styles = {
|
|
@@ -38,7 +40,7 @@ var customTabWrapper = {
|
|
|
38
40
|
darkTheme: "_nhkt1ts8 _j5n7hco4"
|
|
39
41
|
};
|
|
40
42
|
var firstElement = null;
|
|
41
|
-
var
|
|
43
|
+
var CloseButtonCustom = function CloseButtonCustom(_ref) {
|
|
42
44
|
var handleCloseReactionsDialog = _ref.handleCloseReactionsDialog;
|
|
43
45
|
var intl = useIntl();
|
|
44
46
|
return /*#__PURE__*/React.createElement(IconButton, {
|
|
@@ -143,7 +145,9 @@ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref4) {
|
|
|
143
145
|
id: titleId
|
|
144
146
|
}, intl.formatMessage(messages.reactionsCount, {
|
|
145
147
|
count: totalReactionsCount
|
|
146
|
-
})), /*#__PURE__*/React.createElement(CloseButton, {
|
|
148
|
+
})), fg('platform-make-accessible-close-button') ? /*#__PURE__*/React.createElement(CloseButton, {
|
|
149
|
+
onClick: handleCloseReactionsDialog
|
|
150
|
+
}) : /*#__PURE__*/React.createElement(CloseButtonCustom, {
|
|
147
151
|
handleCloseReactionsDialog: handleCloseReactionsDialog
|
|
148
152
|
})), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
|
|
149
153
|
id: "reactions-dialog-tabs-list",
|
package/dist/esm/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Reaction as CompiledReaction } from './components/compiled/Reaction';
|
|
|
5
5
|
import { Reactions as EmotionReactions } from './components/Reactions';
|
|
6
6
|
import { Reactions as CompiledReactions } from './components/compiled/Reactions';
|
|
7
7
|
import { ReactionPicker as EmotionReactionPicker } from './components/ReactionPicker/ReactionPicker';
|
|
8
|
-
import { ReactionPicker as CompiledReactionPicker } from './components/
|
|
8
|
+
import { ReactionPicker as CompiledReactionPicker } from './components/compiled/ReactionPicker';
|
|
9
9
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
10
10
|
var Reaction = componentWithFG('platform_editor_css_migrate_reactions', CompiledReaction, EmotionReaction);
|
|
11
11
|
var Reactions = componentWithFG('platform_editor_css_migrate_reactions', CompiledReactions, EmotionReactions);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ComponentName, ExperienceName } from './ufo';
|
|
3
3
|
declare const Reaction: import("react").FC<import("./components/compiled/Reaction").ReactionProps & import("./components/Reaction").ReactionProps>;
|
|
4
4
|
declare const Reactions: import("react").FC<import("./components/compiled/Reactions").ReactionsProps & import("./components/Reactions").ReactionsProps>;
|
|
5
|
-
declare const ReactionPicker: import("react").FC<import("./components/ReactionPicker/ReactionPicker").ReactionPickerProps>;
|
|
5
|
+
declare const ReactionPicker: import("react").FC<import("./components/compiled/ReactionPicker").ReactionPickerProps & import("./components/ReactionPicker/ReactionPicker").ReactionPickerProps>;
|
|
6
6
|
export { ReactionServiceClient } from './client';
|
|
7
7
|
export { Reaction };
|
|
8
8
|
export { Reactions };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ComponentName, ExperienceName } from './ufo';
|
|
3
3
|
declare const Reaction: import("react").FC<import("./components/compiled/Reaction").ReactionProps & import("./components/Reaction").ReactionProps>;
|
|
4
4
|
declare const Reactions: import("react").FC<import("./components/compiled/Reactions").ReactionsProps & import("./components/Reactions").ReactionsProps>;
|
|
5
|
-
declare const ReactionPicker: import("react").FC<import("./components/ReactionPicker/ReactionPicker").ReactionPickerProps>;
|
|
5
|
+
declare const ReactionPicker: import("react").FC<import("./components/compiled/ReactionPicker").ReactionPickerProps & import("./components/ReactionPicker/ReactionPicker").ReactionPickerProps>;
|
|
6
6
|
export { ReactionServiceClient } from './client';
|
|
7
7
|
export { Reaction };
|
|
8
8
|
export { Reactions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.6",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
38
|
"@atlaskit/avatar": "^25.0.0",
|
|
39
|
-
"@atlaskit/button": "^
|
|
39
|
+
"@atlaskit/button": "^23.0.0",
|
|
40
40
|
"@atlaskit/css": "^0.10.0",
|
|
41
41
|
"@atlaskit/emoji": "^69.0.0",
|
|
42
42
|
"@atlaskit/heading": "^5.1.0",
|
|
43
|
-
"@atlaskit/icon": "^25.
|
|
44
|
-
"@atlaskit/modal-dialog": "^14.
|
|
43
|
+
"@atlaskit/icon": "^25.5.0",
|
|
44
|
+
"@atlaskit/modal-dialog": "^14.1.0",
|
|
45
45
|
"@atlaskit/motion": "^5.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|
|
48
48
|
"@atlaskit/popper": "^7.0.0",
|
|
49
49
|
"@atlaskit/popup": "^3.0.0",
|
|
50
|
-
"@atlaskit/primitives": "^14.
|
|
50
|
+
"@atlaskit/primitives": "^14.3.0",
|
|
51
51
|
"@atlaskit/react-ufo": "^3.4.0",
|
|
52
52
|
"@atlaskit/spinner": "^18.0.0",
|
|
53
53
|
"@atlaskit/tabs": "^18.0.0",
|
|
54
54
|
"@atlaskit/theme": "^18.0.0",
|
|
55
|
-
"@atlaskit/tokens": "^4.
|
|
55
|
+
"@atlaskit/tokens": "^4.6.0",
|
|
56
56
|
"@atlaskit/tooltip": "^20.0.0",
|
|
57
57
|
"@atlaskit/ufo": "^0.4.0",
|
|
58
58
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
@@ -129,6 +129,9 @@
|
|
|
129
129
|
},
|
|
130
130
|
"platform_editor_css_migrate_reactions": {
|
|
131
131
|
"type": "boolean"
|
|
132
|
+
},
|
|
133
|
+
"platform-make-accessible-close-button": {
|
|
134
|
+
"type": "boolean"
|
|
132
135
|
}
|
|
133
136
|
},
|
|
134
137
|
"sideEffects": [
|