@atlaskit/reactions 33.2.2 → 33.2.3

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 33.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#187672](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187672)
8
+ [`e01d743f3c06b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e01d743f3c06b) -
9
+ use formatted message rather than default message for show more button label
10
+
3
11
  ## 33.2.2
4
12
 
5
13
  ### 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 = "33.2.1";
14
+ var packageVersion = "33.2.3";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -26,9 +26,7 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
26
26
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
27
27
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
28
28
  var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
29
- var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
30
29
  var _element = require("@atlaskit/emoji/element");
31
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
32
30
  var _i18n = require("../shared/i18n");
33
31
  var _Counter = require("./Counter");
34
32
  var _constants = require("../shared/constants");
@@ -50,19 +48,8 @@ var customTabWrapper = {
50
48
  darkTheme: "_nhkt1ts8 _j5n7hco4"
51
49
  };
52
50
  var firstElement = null;
53
- var CloseButtonCustom = function CloseButtonCustom(_ref) {
54
- var handleCloseReactionsDialog = _ref.handleCloseReactionsDialog;
55
- var intl = (0, _reactIntlNext.useIntl)();
56
- return /*#__PURE__*/React.createElement(_new.IconButton, {
57
- onClick: handleCloseReactionsDialog,
58
- icon: _cross.default,
59
- label: intl.formatMessage(_i18n.messages.closeReactionsDialog),
60
- appearance: "subtle",
61
- isTooltipDisabled: false
62
- });
63
- };
64
- var LeftNavigationButton = function LeftNavigationButton(_ref2) {
65
- var handlePreviousPage = _ref2.handlePreviousPage;
51
+ var LeftNavigationButton = function LeftNavigationButton(_ref) {
52
+ var handlePreviousPage = _ref.handlePreviousPage;
66
53
  var intl = (0, _reactIntlNext.useIntl)();
67
54
  return /*#__PURE__*/React.createElement(_compiled.Flex, {
68
55
  xcss: styles.leftNavigationStyle
@@ -78,8 +65,8 @@ var LeftNavigationButton = function LeftNavigationButton(_ref2) {
78
65
  isTooltipDisabled: false
79
66
  }));
80
67
  };
81
- var RightNavigationButton = function RightNavigationButton(_ref3) {
82
- var handleNextPage = _ref3.handleNextPage;
68
+ var RightNavigationButton = function RightNavigationButton(_ref2) {
69
+ var handleNextPage = _ref2.handleNextPage;
83
70
  var intl = (0, _reactIntlNext.useIntl)();
84
71
  return /*#__PURE__*/React.createElement(_compiled.Flex, {
85
72
  xcss: styles.rightNavigationStyle
@@ -95,15 +82,15 @@ var RightNavigationButton = function RightNavigationButton(_ref3) {
95
82
  isTooltipDisabled: false
96
83
  }));
97
84
  };
98
- var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDialogHeader(_ref4) {
99
- var totalReactionsCount = _ref4.totalReactionsCount,
100
- handlePreviousPage = _ref4.handlePreviousPage,
101
- handleNextPage = _ref4.handleNextPage,
102
- currentPage = _ref4.currentPage,
103
- maxPages = _ref4.maxPages,
104
- currentReactions = _ref4.currentReactions,
105
- emojiProvider = _ref4.emojiProvider,
106
- handleCloseReactionsDialog = _ref4.handleCloseReactionsDialog;
85
+ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDialogHeader(_ref3) {
86
+ var totalReactionsCount = _ref3.totalReactionsCount,
87
+ handlePreviousPage = _ref3.handlePreviousPage,
88
+ handleNextPage = _ref3.handleNextPage,
89
+ currentPage = _ref3.currentPage,
90
+ maxPages = _ref3.maxPages,
91
+ currentReactions = _ref3.currentReactions,
92
+ emojiProvider = _ref3.emojiProvider,
93
+ handleCloseReactionsDialog = _ref3.handleCloseReactionsDialog;
107
94
  var _useState = (0, _react.useState)({}),
108
95
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
109
96
  cache = _useState2[0],
@@ -163,10 +150,8 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
163
150
  id: titleId
164
151
  }, intl.formatMessage(_i18n.messages.reactionsCount, {
165
152
  count: totalReactionsCount
166
- })), (0, _platformFeatureFlags.fg)('platform-make-accessible-close-button') ? /*#__PURE__*/React.createElement(_modalDialog.CloseButton, {
153
+ })), /*#__PURE__*/React.createElement(_modalDialog.CloseButton, {
167
154
  onClick: handleCloseReactionsDialog
168
- }) : /*#__PURE__*/React.createElement(CloseButtonCustom, {
169
- handleCloseReactionsDialog: handleCloseReactionsDialog
170
155
  })), /*#__PURE__*/React.createElement(_compiled.Inline, null, /*#__PURE__*/React.createElement("div", {
171
156
  id: "reactions-dialog-tabs-list",
172
157
  className: (0, _runtime.ax)(["_1reo1wug _18m91wug _n7zlfl6d _1e0c1txw _1bsb1osq _4cvr1y6m _80wau2gc _s2c4kb7n _141m1j28"]),
@@ -24,7 +24,7 @@ var ShowMore = exports.ShowMore = function ShowMore(_ref) {
24
24
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
25
25
  content: message
26
26
  }, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
27
- label: _i18n.messages.moreEmoji.defaultMessage,
27
+ label: message,
28
28
  onClick: onClick,
29
29
  testId: RENDER_SHOWMORE_TESTID,
30
30
  icon: _showMoreHorizontalEditorMore.default,
@@ -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 = "33.2.1";
4
+ const packageVersion = "33.2.3";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -15,9 +15,7 @@ import { useModal } from '@atlaskit/modal-dialog';
15
15
  import Tooltip from '@atlaskit/tooltip';
16
16
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
17
17
  import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
18
- import CrossIcon from '@atlaskit/icon/core/cross';
19
18
  import { ResourcedEmoji } from '@atlaskit/emoji/element';
20
- import { fg } from '@atlaskit/platform-feature-flags';
21
19
  import { messages } from '../shared/i18n';
22
20
  import { Counter } from './Counter';
23
21
  import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
@@ -36,18 +34,6 @@ const customTabWrapper = {
36
34
  darkTheme: "_nhkt1ts8 _j5n7hco4"
37
35
  };
38
36
  const firstElement = null;
39
- const CloseButtonCustom = ({
40
- handleCloseReactionsDialog
41
- }) => {
42
- const intl = useIntl();
43
- return /*#__PURE__*/React.createElement(IconButton, {
44
- onClick: handleCloseReactionsDialog,
45
- icon: CrossIcon,
46
- label: intl.formatMessage(messages.closeReactionsDialog),
47
- appearance: "subtle",
48
- isTooltipDisabled: false
49
- });
50
- };
51
37
  const LeftNavigationButton = ({
52
38
  handlePreviousPage
53
39
  }) => {
@@ -135,10 +121,8 @@ export const ReactionsDialogHeader = ({
135
121
  id: titleId
136
122
  }, intl.formatMessage(messages.reactionsCount, {
137
123
  count: totalReactionsCount
138
- })), fg('platform-make-accessible-close-button') ? /*#__PURE__*/React.createElement(CloseButton, {
124
+ })), /*#__PURE__*/React.createElement(CloseButton, {
139
125
  onClick: handleCloseReactionsDialog
140
- }) : /*#__PURE__*/React.createElement(CloseButtonCustom, {
141
- handleCloseReactionsDialog: handleCloseReactionsDialog
142
126
  })), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
143
127
  id: "reactions-dialog-tabs-list",
144
128
  className: ax(["_1reo1wug _18m91wug _n7zl1l7n _1e0c1txw _1bsb1osq _4cvr1y6m _80wau2gc _s2c4kb7n _141m1j28"])
@@ -18,7 +18,7 @@ export const ShowMore = ({
18
18
  return /*#__PURE__*/React.createElement(FormattedMessage, messages.moreEmoji, message => /*#__PURE__*/React.createElement(Tooltip, {
19
19
  content: message
20
20
  }, /*#__PURE__*/React.createElement(IconButton, {
21
- label: messages.moreEmoji.defaultMessage,
21
+ label: message,
22
22
  onClick: onClick,
23
23
  testId: RENDER_SHOWMORE_TESTID,
24
24
  icon: EditorMoreIcon,
@@ -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 = "33.2.1";
7
+ var packageVersion = "33.2.3";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -21,9 +21,7 @@ import { useModal } from '@atlaskit/modal-dialog';
21
21
  import Tooltip from '@atlaskit/tooltip';
22
22
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
23
23
  import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
24
- import CrossIcon from '@atlaskit/icon/core/cross';
25
24
  import { ResourcedEmoji } from '@atlaskit/emoji/element';
26
- import { fg } from '@atlaskit/platform-feature-flags';
27
25
  import { messages } from '../shared/i18n';
28
26
  import { Counter } from './Counter';
29
27
  import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
@@ -42,19 +40,8 @@ var customTabWrapper = {
42
40
  darkTheme: "_nhkt1ts8 _j5n7hco4"
43
41
  };
44
42
  var firstElement = null;
45
- var CloseButtonCustom = function CloseButtonCustom(_ref) {
46
- var handleCloseReactionsDialog = _ref.handleCloseReactionsDialog;
47
- var intl = useIntl();
48
- return /*#__PURE__*/React.createElement(IconButton, {
49
- onClick: handleCloseReactionsDialog,
50
- icon: CrossIcon,
51
- label: intl.formatMessage(messages.closeReactionsDialog),
52
- appearance: "subtle",
53
- isTooltipDisabled: false
54
- });
55
- };
56
- var LeftNavigationButton = function LeftNavigationButton(_ref2) {
57
- var handlePreviousPage = _ref2.handlePreviousPage;
43
+ var LeftNavigationButton = function LeftNavigationButton(_ref) {
44
+ var handlePreviousPage = _ref.handlePreviousPage;
58
45
  var intl = useIntl();
59
46
  return /*#__PURE__*/React.createElement(Flex, {
60
47
  xcss: styles.leftNavigationStyle
@@ -70,8 +57,8 @@ var LeftNavigationButton = function LeftNavigationButton(_ref2) {
70
57
  isTooltipDisabled: false
71
58
  }));
72
59
  };
73
- var RightNavigationButton = function RightNavigationButton(_ref3) {
74
- var handleNextPage = _ref3.handleNextPage;
60
+ var RightNavigationButton = function RightNavigationButton(_ref2) {
61
+ var handleNextPage = _ref2.handleNextPage;
75
62
  var intl = useIntl();
76
63
  return /*#__PURE__*/React.createElement(Flex, {
77
64
  xcss: styles.rightNavigationStyle
@@ -87,15 +74,15 @@ var RightNavigationButton = function RightNavigationButton(_ref3) {
87
74
  isTooltipDisabled: false
88
75
  }));
89
76
  };
90
- export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref4) {
91
- var totalReactionsCount = _ref4.totalReactionsCount,
92
- handlePreviousPage = _ref4.handlePreviousPage,
93
- handleNextPage = _ref4.handleNextPage,
94
- currentPage = _ref4.currentPage,
95
- maxPages = _ref4.maxPages,
96
- currentReactions = _ref4.currentReactions,
97
- emojiProvider = _ref4.emojiProvider,
98
- handleCloseReactionsDialog = _ref4.handleCloseReactionsDialog;
77
+ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref3) {
78
+ var totalReactionsCount = _ref3.totalReactionsCount,
79
+ handlePreviousPage = _ref3.handlePreviousPage,
80
+ handleNextPage = _ref3.handleNextPage,
81
+ currentPage = _ref3.currentPage,
82
+ maxPages = _ref3.maxPages,
83
+ currentReactions = _ref3.currentReactions,
84
+ emojiProvider = _ref3.emojiProvider,
85
+ handleCloseReactionsDialog = _ref3.handleCloseReactionsDialog;
99
86
  var _useState = useState({}),
100
87
  _useState2 = _slicedToArray(_useState, 2),
101
88
  cache = _useState2[0],
@@ -155,10 +142,8 @@ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref4) {
155
142
  id: titleId
156
143
  }, intl.formatMessage(messages.reactionsCount, {
157
144
  count: totalReactionsCount
158
- })), fg('platform-make-accessible-close-button') ? /*#__PURE__*/React.createElement(CloseButton, {
145
+ })), /*#__PURE__*/React.createElement(CloseButton, {
159
146
  onClick: handleCloseReactionsDialog
160
- }) : /*#__PURE__*/React.createElement(CloseButtonCustom, {
161
- handleCloseReactionsDialog: handleCloseReactionsDialog
162
147
  })), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
163
148
  id: "reactions-dialog-tabs-list",
164
149
  className: ax(["_1reo1wug _18m91wug _n7zlfl6d _1e0c1txw _1bsb1osq _4cvr1y6m _80wau2gc _s2c4kb7n _141m1j28"]),
@@ -18,7 +18,7 @@ export var ShowMore = function ShowMore(_ref) {
18
18
  return /*#__PURE__*/React.createElement(Tooltip, {
19
19
  content: message
20
20
  }, /*#__PURE__*/React.createElement(IconButton, {
21
- label: messages.moreEmoji.defaultMessage,
21
+ label: message,
22
22
  onClick: onClick,
23
23
  testId: RENDER_SHOWMORE_TESTID,
24
24
  icon: EditorMoreIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "33.2.2",
3
+ "version": "33.2.3",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -122,9 +122,6 @@
122
122
  "platform-component-visual-refresh": {
123
123
  "type": "boolean"
124
124
  },
125
- "platform-make-accessible-close-button": {
126
- "type": "boolean"
127
- },
128
125
  "platform-reactions-offset-based-popper": {
129
126
  "type": "boolean"
130
127
  },