@atlaskit/reactions 33.8.31 → 34.0.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/analytics/index.js +1 -1
  3. package/dist/cjs/components/EmojiButton.js +2 -2
  4. package/dist/cjs/components/Reaction.js +2 -2
  5. package/dist/cjs/components/ReactionPicker.js +3 -3
  6. package/dist/cjs/components/ReactionSummaryButton.js +2 -2
  7. package/dist/cjs/components/ReactionTooltip.js +4 -4
  8. package/dist/cjs/components/Reactions.js +4 -4
  9. package/dist/cjs/components/ReactionsDialogHeader.js +4 -4
  10. package/dist/cjs/components/ReactionsDialogTrigger.js +2 -2
  11. package/dist/cjs/components/ShowMore.js +2 -2
  12. package/dist/cjs/components/Trigger.js +3 -3
  13. package/dist/cjs/shared/i18n.js +2 -2
  14. package/dist/es2019/analytics/index.js +1 -1
  15. package/dist/es2019/components/EmojiButton.js +1 -1
  16. package/dist/es2019/components/Reaction.js +1 -1
  17. package/dist/es2019/components/ReactionPicker.js +1 -1
  18. package/dist/es2019/components/ReactionSummaryButton.js +1 -1
  19. package/dist/es2019/components/ReactionTooltip.js +1 -1
  20. package/dist/es2019/components/Reactions.js +1 -1
  21. package/dist/es2019/components/ReactionsDialogHeader.js +1 -1
  22. package/dist/es2019/components/ReactionsDialogTrigger.js +1 -1
  23. package/dist/es2019/components/ShowMore.js +1 -1
  24. package/dist/es2019/components/Trigger.js +1 -1
  25. package/dist/es2019/shared/i18n.js +1 -1
  26. package/dist/esm/analytics/index.js +1 -1
  27. package/dist/esm/components/EmojiButton.js +1 -1
  28. package/dist/esm/components/Reaction.js +1 -1
  29. package/dist/esm/components/ReactionPicker.js +1 -1
  30. package/dist/esm/components/ReactionSummaryButton.js +1 -1
  31. package/dist/esm/components/ReactionTooltip.js +1 -1
  32. package/dist/esm/components/Reactions.js +1 -1
  33. package/dist/esm/components/ReactionsDialogHeader.js +1 -1
  34. package/dist/esm/components/ReactionsDialogTrigger.js +1 -1
  35. package/dist/esm/components/ShowMore.js +1 -1
  36. package/dist/esm/components/Trigger.js +1 -1
  37. package/dist/esm/shared/i18n.js +1 -1
  38. package/package.json +10 -10
  39. package/report.api.md +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 34.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`deb3d6a6498e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deb3d6a6498e8) -
8
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
9
+
10
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
11
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
12
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
13
+
14
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
15
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
16
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
22
+ ## 33.8.32
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 33.8.31
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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "33.8.30";
14
+ var packageVersion = "0.0.0-development";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -9,7 +9,7 @@ exports.RENDER_BUTTON_TESTID = exports.EmojiButton = void 0;
9
9
  require("./EmojiButton.compiled.css");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
- var _reactIntlNext = require("react-intl-next");
12
+ var _reactIntl = require("react-intl");
13
13
  var _emoji = require("@atlaskit/emoji");
14
14
  var _i18n = require("../shared/i18n");
15
15
  var _utils = require("../shared/utils");
@@ -35,7 +35,7 @@ var EmojiButton = exports.EmojiButton = function EmojiButton(_ref) {
35
35
  onClick(emojiId, undefined, event);
36
36
  }
37
37
  };
38
- var intl = (0, _reactIntlNext.useIntl)();
38
+ var intl = (0, _reactIntl.useIntl)();
39
39
  return /*#__PURE__*/React.createElement(_compiled.Pressable, {
40
40
  testId: RENDER_BUTTON_TESTID,
41
41
  onClick: onButtonClick,
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
15
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
16
16
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
- var _reactIntlNext = require("react-intl-next");
17
+ var _reactIntl = require("react-intl");
18
18
  var _css = require("@atlaskit/css");
19
19
  var _analyticsNext = require("@atlaskit/analytics-next");
20
20
  var _emoji = require("@atlaskit/emoji");
@@ -63,7 +63,7 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
63
63
  _ref$isViewOnly = _ref.isViewOnly,
64
64
  isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
65
65
  showSubtleStyle = _ref.showSubtleStyle;
66
- var intl = (0, _reactIntlNext.useIntl)();
66
+ var intl = (0, _reactIntl.useIntl)();
67
67
  var hoverStart = (0, _react.useRef)();
68
68
  var focusStart = (0, _react.useRef)();
69
69
  var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
@@ -12,7 +12,7 @@ var _runtime = require("@compiled/react/runtime");
12
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
13
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
- var _reactIntlNext = require("react-intl-next");
15
+ var _reactIntl = require("react-intl");
16
16
  var _picker = require("@atlaskit/emoji/picker");
17
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
18
  var _popper = require("@atlaskit/popper");
@@ -69,7 +69,7 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
69
69
  _props$onCancel = props.onCancel,
70
70
  onCancel = _props$onCancel === void 0 ? function () {} : _props$onCancel,
71
71
  _props$tooltipContent = props.tooltipContent,
72
- tooltipContent = _props$tooltipContent === void 0 ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.addReaction) : _props$tooltipContent,
72
+ tooltipContent = _props$tooltipContent === void 0 ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.addReaction) : _props$tooltipContent,
73
73
  emojiPickerSize = props.emojiPickerSize,
74
74
  _props$showOpaqueBack = props.showOpaqueBackground,
75
75
  showOpaqueBackground = _props$showOpaqueBack === void 0 ? false : _props$showOpaqueBack,
@@ -366,7 +366,7 @@ var PopperWrapper = exports.PopperWrapper = function PopperWrapper(props) {
366
366
  _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
367
367
  popupRef = _useState12[0],
368
368
  setPopupRef = _useState12[1];
369
- var _useIntl = (0, _reactIntlNext.useIntl)(),
369
+ var _useIntl = (0, _reactIntl.useIntl)(),
370
370
  formatMessage = _useIntl.formatMessage;
371
371
  /**
372
372
  * add focus lock to popup
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
15
- var _reactIntlNext = require("react-intl-next");
15
+ var _reactIntl = require("react-intl");
16
16
  var _emoji = require("@atlaskit/emoji");
17
17
  var _i18n = require("../shared/i18n");
18
18
  var _constants = require("../shared/constants");
@@ -59,7 +59,7 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
59
59
  summaryGetOptimisticImageURL = _ref.summaryGetOptimisticImageURL,
60
60
  summaryButtonIconAfter = _ref.summaryButtonIconAfter,
61
61
  summaryViewParticleEffectEmojiId = _ref.summaryViewParticleEffectEmojiId;
62
- var intl = (0, _reactIntlNext.useIntl)();
62
+ var intl = (0, _reactIntl.useIntl)();
63
63
 
64
64
  // Helper function to sort reactions by count and return top N
65
65
  var getTopReactions = function getTopReactions(reactions, topN) {
@@ -10,7 +10,7 @@ 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 _reactIntlNext = require("react-intl-next");
13
+ var _reactIntl = require("react-intl");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
16
16
  var _constants = require("../shared/constants");
@@ -59,13 +59,13 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
59
59
  type: "button",
60
60
  onClick: handleClick,
61
61
  className: (0, _runtime.ax)(["_19itglyw _11c8wadc _1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _1bsb1osq _y3gn1e5h _1bto1l2s", "_syaz15cr", "_4bfu1r31 _1hms8stv _ajmmnqa1 _80omtlke _irr31aqn _30l315cr"])
62
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
62
+ }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
63
63
  values: {
64
64
  count: users.length - maxReactions
65
65
  }
66
66
  })))) : /*#__PURE__*/_react.default.createElement("li", {
67
67
  className: (0, _runtime.ax)(["_syaz15cr"])
68
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
68
+ }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
69
69
  values: {
70
70
  count: users.length - maxReactions
71
71
  }
@@ -74,7 +74,7 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
74
74
  onClick: handleClick,
75
75
  onKeyDown: (0, _platformFeatureFlags.fg)('platform_suppression_removal_fix_reactions') ? handleClick : undefined,
76
76
  className: (0, _runtime.ax)(["_syaz15cr", allowUserDialog && "_4bfu1r31 _1hms8stv _ajmmnqa1 _80omtlke _irr31aqn _30l315cr"])
77
- }, users.length > maxReactions && /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
77
+ }, users.length > maxReactions && /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
78
78
  values: {
79
79
  count: users.length - maxReactions
80
80
  }
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
16
  var _react = _interopRequireWildcard(require("react"));
17
- var _reactIntlNext = require("react-intl-next");
17
+ var _reactIntl = require("react-intl");
18
18
  var _analyticsNext = require("@atlaskit/analytics-next");
19
19
  var _modalDialog = require("@atlaskit/modal-dialog");
20
20
  var _segment = _interopRequireDefault(require("@atlaskit/react-ufo/segment"));
@@ -68,15 +68,15 @@ var RENDER_REACTIONS_SUMMARY_TESTID = exports.RENDER_REACTIONS_SUMMARY_TESTID =
68
68
  function getTooltip(status, errorMessage, tooltipContent) {
69
69
  switch (status) {
70
70
  case _types.ReactionStatus.error:
71
- return errorMessage || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.unexpectedError);
71
+ return errorMessage || /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.unexpectedError);
72
72
  // When reaction is not available don't show any tooltip (e.g. Archive page in Confluence)
73
73
  case _types.ReactionStatus.disabled:
74
74
  return null;
75
75
  case _types.ReactionStatus.notLoaded:
76
76
  case _types.ReactionStatus.loading:
77
- return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.loadingReactions);
77
+ return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.loadingReactions);
78
78
  case _types.ReactionStatus.ready:
79
- return !!tooltipContent ? tooltipContent : /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.addReaction);
79
+ return !!tooltipContent ? tooltipContent : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.addReaction);
80
80
  }
81
81
  }
82
82
 
@@ -16,7 +16,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
16
16
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
17
17
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
18
18
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
19
- var _reactIntlNext = require("react-intl-next");
19
+ var _reactIntl = require("react-intl");
20
20
  var _tokens = require("@atlaskit/tokens");
21
21
  var _modalDialog = require("@atlaskit/modal-dialog");
22
22
  var _tabs = require("@atlaskit/tabs");
@@ -51,7 +51,7 @@ var customTabWrapper = {
51
51
  var firstElement = null;
52
52
  var LeftNavigationButton = function LeftNavigationButton(_ref) {
53
53
  var handlePreviousPage = _ref.handlePreviousPage;
54
- var intl = (0, _reactIntlNext.useIntl)();
54
+ var intl = (0, _reactIntl.useIntl)();
55
55
  return /*#__PURE__*/React.createElement(_compiled.Flex, {
56
56
  xcss: styles.leftNavigationStyle
57
57
  }, /*#__PURE__*/React.createElement(_new.IconButton, {
@@ -68,7 +68,7 @@ var LeftNavigationButton = function LeftNavigationButton(_ref) {
68
68
  };
69
69
  var RightNavigationButton = function RightNavigationButton(_ref2) {
70
70
  var handleNextPage = _ref2.handleNextPage;
71
- var intl = (0, _reactIntlNext.useIntl)();
71
+ var intl = (0, _reactIntl.useIntl)();
72
72
  return /*#__PURE__*/React.createElement(_compiled.Flex, {
73
73
  xcss: styles.rightNavigationStyle
74
74
  }, /*#__PURE__*/React.createElement(_new.IconButton, {
@@ -98,7 +98,7 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
98
98
  setCache = _useState2[1];
99
99
  var _useModal = (0, _modalDialog.useModal)(),
100
100
  titleId = _useModal.titleId;
101
- var intl = (0, _reactIntlNext.useIntl)();
101
+ var intl = (0, _reactIntl.useIntl)();
102
102
  var _useThemeObserver = (0, _tokens.useThemeObserver)(),
103
103
  colorMode = _useThemeObserver.colorMode;
104
104
  var isSinglePage = maxPages === 1;
@@ -14,7 +14,7 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
14
14
  var _react2 = require("@compiled/react");
15
15
  var _compiled = require("@atlaskit/primitives/compiled");
16
16
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
17
- var _reactIntlNext = require("react-intl-next");
17
+ var _reactIntl = require("react-intl");
18
18
  var _i18n = require("../shared/i18n");
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var styles = {
@@ -25,7 +25,7 @@ var styles = {
25
25
  // Similar to platform/packages/elements/reactions/src/components/Trigger/Trigger.tsx
26
26
  var ReactionsDialogTrigger = exports.ReactionsDialogTrigger = function ReactionsDialogTrigger(_ref) {
27
27
  var onClick = _ref.onClick;
28
- var intl = (0, _reactIntlNext.useIntl)();
28
+ var intl = (0, _reactIntl.useIntl)();
29
29
  return /*#__PURE__*/React.createElement(_compiled.Pressable, {
30
30
  xcss: (0, _react2.cx)(styles.trigger, styles.transparentEnabledTrigger),
31
31
  onClick: onClick,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.ShowMore = exports.RENDER_SHOWMORE_TESTID = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _reactIntlNext = require("react-intl-next");
9
+ var _reactIntl = require("react-intl");
10
10
  var _new = require("@atlaskit/button/new");
11
11
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
12
12
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
@@ -20,7 +20,7 @@ var RENDER_SHOWMORE_TESTID = exports.RENDER_SHOWMORE_TESTID = 'show-more-button'
20
20
  */
21
21
  var ShowMore = exports.ShowMore = function ShowMore(_ref) {
22
22
  var onClick = _ref.onClick;
23
- return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.moreEmoji, function (message) {
23
+ return /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _i18n.messages.moreEmoji, function (message) {
24
24
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
25
25
  content: message
26
26
  }, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
@@ -9,7 +9,7 @@ exports.Trigger = exports.RENDER_TRIGGER_CONTAINER_TESTID = exports.RENDER_TRIGG
9
9
  require("./Trigger.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
- var _reactIntlNext = require("react-intl-next");
12
+ var _reactIntl = require("react-intl");
13
13
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
14
14
  var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/core/emoji-add"));
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -37,7 +37,7 @@ var RENDER_TOOLTIP_TRIGGER_TESTID = exports.RENDER_TOOLTIP_TRIGGER_TESTID = 'ren
37
37
  var RENDER_TRIGGER_BUTTON_TESTID = exports.RENDER_TRIGGER_BUTTON_TESTID = 'render-trigger-button';
38
38
  var RENDER_TRIGGER_CONTAINER_TESTID = exports.RENDER_TRIGGER_CONTAINER_TESTID = 'render-trigger-container';
39
39
  var RENDER_LIST_ITEM_WRAPPER_TESTID = exports.RENDER_LIST_ITEM_WRAPPER_TESTID = 'render-list-item-wrapper';
40
- var i18n = (0, _reactIntlNext.defineMessages)({
40
+ var i18n = (0, _reactIntl.defineMessages)({
41
41
  addReaction: {
42
42
  id: 'reaction-picker-trigger.add.reaction.message',
43
43
  description: 'Message displayed when there are no page reactions existing on the page.',
@@ -53,7 +53,7 @@ var noMarkerListStyle = null;
53
53
  * Render an emoji button to open the reactions select picker
54
54
  */
55
55
  var Trigger = exports.Trigger = /*#__PURE__*/_react2.default.forwardRef(function (props, ref) {
56
- var _useIntl = (0, _reactIntlNext.useIntl)(),
56
+ var _useIntl = (0, _reactIntl.useIntl)(),
57
57
  formatMessage = _useIntl.formatMessage;
58
58
  var onClick = props.onClick,
59
59
  miniMode = props.miniMode,
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  addReaction: {
10
10
  id: 'fabric.reactions.add',
11
11
  defaultMessage: 'Add reaction',
@@ -2,7 +2,7 @@
2
2
  import { createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
4
4
  const packageName = "@atlaskit/reactions";
5
- const packageVersion = "33.8.30";
5
+ const packageVersion = "0.0.0-development";
6
6
  /**
7
7
  * TODO: move to utility package?
8
8
  * A random sampling function
@@ -2,7 +2,7 @@
2
2
  import "./EmojiButton.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { ResourcedEmoji } from '@atlaskit/emoji';
7
7
  import { messages } from '../shared/i18n';
8
8
  import { isLeftClick } from '../shared/utils';
@@ -3,7 +3,7 @@ import "./Reaction.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useEffect, useRef, useState } from 'react';
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { cx } from '@atlaskit/css';
8
8
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
9
9
  import { ResourcedEmoji } from '@atlaskit/emoji';
@@ -2,7 +2,7 @@
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
- import { FormattedMessage, useIntl } from 'react-intl-next';
5
+ import { FormattedMessage, useIntl } from 'react-intl';
6
6
  import { EmojiPicker } from '@atlaskit/emoji/picker';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { Manager, Popper, Reference } from '@atlaskit/popper';
@@ -3,7 +3,7 @@ import "./ReactionSummaryButton.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef, useMemo } from 'react';
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { ResourcedEmoji } from '@atlaskit/emoji';
8
8
  import { messages } from '../shared/i18n';
9
9
  import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
@@ -3,7 +3,7 @@ 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 { FormattedMessage } from 'react-intl-next';
6
+ import { FormattedMessage } from 'react-intl';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import Tooltip from '@atlaskit/tooltip';
9
9
  import { TOOLTIP_USERS_LIMIT } from '../shared/constants';
@@ -2,7 +2,7 @@
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';
5
- import { FormattedMessage } from 'react-intl-next';
5
+ import { FormattedMessage } from 'react-intl';
6
6
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
7
7
  import { ModalTransition } from '@atlaskit/modal-dialog';
8
8
  import UFOSegment from '@atlaskit/react-ufo/segment';
@@ -4,7 +4,7 @@ import "./ReactionsDialogHeader.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { useState } from 'react';
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  import { useThemeObserver } from '@atlaskit/tokens';
9
9
  import { CloseButton } from '@atlaskit/modal-dialog';
10
10
  import { Tab, TabList } from '@atlaskit/tabs';
@@ -6,7 +6,7 @@ import Tooltip from '@atlaskit/tooltip';
6
6
  import { cx } from '@compiled/react';
7
7
  import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { messages } from '../shared/i18n';
11
11
  const styles = {
12
12
  trigger: "_2rko12b0 _2hwx1b66 _19pk1b66 _1ul9zwfg _4t3i1tcg _1e0c1txw _1bah1h6o _4cvr1h6o _bfhksm61 _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormattedMessage } from 'react-intl-next';
2
+ import { FormattedMessage } from 'react-intl';
3
3
  import { IconButton } from '@atlaskit/button/new';
4
4
  import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
5
5
  import Tooltip from '@atlaskit/tooltip';
@@ -2,7 +2,7 @@
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Trigger.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { defineMessages, useIntl } from 'react-intl-next';
5
+ import { defineMessages, useIntl } from 'react-intl';
6
6
  import Tooltip from '@atlaskit/tooltip';
7
7
  import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  addReaction: {
4
4
  id: 'fabric.reactions.add',
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import { createAndFireEvent } from '@atlaskit/analytics-next';
6
6
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
7
7
  var packageName = "@atlaskit/reactions";
8
- var packageVersion = "33.8.30";
8
+ var packageVersion = "0.0.0-development";
9
9
  /**
10
10
  * TODO: move to utility package?
11
11
  * A random sampling function
@@ -2,7 +2,7 @@
2
2
  import "./EmojiButton.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { ResourcedEmoji } from '@atlaskit/emoji';
7
7
  import { messages } from '../shared/i18n';
8
8
  import { isLeftClick } from '../shared/utils';
@@ -6,7 +6,7 @@ import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
  import { useCallback, useEffect, useRef, useState } from 'react';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { cx } from '@atlaskit/css';
11
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import { ResourcedEmoji } from '@atlaskit/emoji';
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  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; }
7
7
  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) { _defineProperty(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; }
8
8
  import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
9
- import { FormattedMessage, useIntl } from 'react-intl-next';
9
+ import { FormattedMessage, useIntl } from 'react-intl';
10
10
  import { EmojiPicker } from '@atlaskit/emoji/picker';
11
11
  import { fg } from '@atlaskit/platform-feature-flags';
12
12
  import { Manager, Popper, Reference } from '@atlaskit/popper';
@@ -4,7 +4,7 @@ import "./ReactionSummaryButton.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef, useMemo } from 'react';
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  import { ResourcedEmoji } from '@atlaskit/emoji';
9
9
  import { messages } from '../shared/i18n';
10
10
  import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
@@ -3,7 +3,7 @@ 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 { FormattedMessage } from 'react-intl-next';
6
+ import { FormattedMessage } from 'react-intl';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import Tooltip from '@atlaskit/tooltip';
9
9
  import { TOOLTIP_USERS_LIMIT } from '../shared/constants';
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./Reactions.compiled.css";
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
7
- import { FormattedMessage } from 'react-intl-next';
7
+ import { FormattedMessage } from 'react-intl';
8
8
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
9
9
  import { ModalTransition } from '@atlaskit/modal-dialog';
10
10
  import UFOSegment from '@atlaskit/react-ufo/segment';
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  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; }
11
11
  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) { _defineProperty(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; }
12
12
  import { useState } from 'react';
13
- import { useIntl } from 'react-intl-next';
13
+ import { useIntl } from 'react-intl';
14
14
  import { useThemeObserver } from '@atlaskit/tokens';
15
15
  import { CloseButton } from '@atlaskit/modal-dialog';
16
16
  import { Tab, TabList } from '@atlaskit/tabs';
@@ -6,7 +6,7 @@ import Tooltip from '@atlaskit/tooltip';
6
6
  import { cx } from '@compiled/react';
7
7
  import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { messages } from '../shared/i18n';
11
11
  var styles = {
12
12
  trigger: "_2rko12b0 _2hwx1b66 _19pk1b66 _1ul9zwfg _4t3i1tcg _1e0c1txw _1bah1h6o _4cvr1h6o _bfhksm61 _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormattedMessage } from 'react-intl-next';
2
+ import { FormattedMessage } from 'react-intl';
3
3
  import { IconButton } from '@atlaskit/button/new';
4
4
  import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
5
5
  import Tooltip from '@atlaskit/tooltip';
@@ -2,7 +2,7 @@
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Trigger.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { defineMessages, useIntl } from 'react-intl-next';
5
+ import { defineMessages, useIntl } from 'react-intl';
6
6
  import Tooltip from '@atlaskit/tooltip';
7
7
  import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  addReaction: {
4
4
  id: 'fabric.reactions.add',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "33.8.31",
3
+ "version": "34.0.0",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,22 +38,22 @@
38
38
  "@atlaskit/avatar": "^25.11.0",
39
39
  "@atlaskit/button": "^23.11.0",
40
40
  "@atlaskit/css": "^0.19.0",
41
- "@atlaskit/emoji": "^69.11.0",
41
+ "@atlaskit/emoji": "^70.0.0",
42
42
  "@atlaskit/heading": "^5.4.0",
43
- "@atlaskit/icon": "^34.0.0",
43
+ "@atlaskit/icon": "^34.1.0",
44
44
  "@atlaskit/link": "^3.4.0",
45
45
  "@atlaskit/modal-dialog": "^14.15.0",
46
- "@atlaskit/motion": "^5.5.0",
46
+ "@atlaskit/motion": "^5.6.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/popper": "^7.1.0",
48
+ "@atlaskit/popper": "^7.2.0",
49
49
  "@atlaskit/popup": "^4.16.0",
50
50
  "@atlaskit/portal": "^5.4.0",
51
- "@atlaskit/primitives": "^18.1.0",
52
- "@atlaskit/react-ufo": "^5.12.0",
51
+ "@atlaskit/primitives": "^19.0.0",
52
+ "@atlaskit/react-ufo": "^5.13.0",
53
53
  "@atlaskit/spinner": "^19.1.0",
54
54
  "@atlaskit/tabs": "^19.0.0",
55
55
  "@atlaskit/theme": "^23.0.0",
56
- "@atlaskit/tokens": "^12.0.0",
56
+ "@atlaskit/tokens": "^13.0.0",
57
57
  "@atlaskit/tooltip": "^21.1.0",
58
58
  "@atlaskit/ufo": "^0.4.0",
59
59
  "@atlaskit/util-service-support": "^6.3.0",
@@ -64,7 +64,7 @@
64
64
  "peerDependencies": {
65
65
  "react": "^18.2.0",
66
66
  "react-dom": "^18.2.0",
67
- "react-intl-next": "npm:react-intl@^5.18.1"
67
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@af/visual-regression": "workspace:^",
@@ -82,7 +82,7 @@
82
82
  "fetch-mock": "^8.0.0",
83
83
  "raf-stub": "^2.0.1",
84
84
  "react": "^18.2.0",
85
- "react-intl-next": "npm:react-intl@^5.18.1",
85
+ "react-intl": "^6.6.2",
86
86
  "wait-for-expect": "^1.2.0",
87
87
  "webpack-dev-server": "^4.15.2"
88
88
  },
package/report.api.md CHANGED
@@ -455,7 +455,7 @@ interface User {
455
455
  {
456
456
  "react": "^16.8.0",
457
457
  "react-dom": "^16.8.0",
458
- "react-intl-next": "npm:react-intl@^5.18.1"
458
+ "react-intl": "npm:react-intl@^5.18.1"
459
459
  }
460
460
  ```
461
461