@atlaskit/editor-plugin-block-menu 8.0.0 → 9.0.1

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 (44) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/ui/MenuSection.js +2 -2
  3. package/dist/cjs/ui/block-menu-renderer/fallbacks.js +3 -3
  4. package/dist/cjs/ui/block-menu.js +2 -2
  5. package/dist/cjs/ui/copy-link.js +3 -3
  6. package/dist/cjs/ui/delete-button.js +3 -3
  7. package/dist/cjs/ui/flag.js +2 -2
  8. package/dist/cjs/ui/format-menu-nested.js +2 -2
  9. package/dist/cjs/ui/move-down.js +3 -3
  10. package/dist/cjs/ui/move-up.js +3 -3
  11. package/dist/cjs/ui/suggested-items-menu-section.js +2 -2
  12. package/dist/es2019/ui/MenuSection.js +1 -1
  13. package/dist/es2019/ui/block-menu-renderer/fallbacks.js +1 -1
  14. package/dist/es2019/ui/block-menu.js +1 -1
  15. package/dist/es2019/ui/copy-link.js +1 -1
  16. package/dist/es2019/ui/delete-button.js +1 -1
  17. package/dist/es2019/ui/flag.js +1 -1
  18. package/dist/es2019/ui/format-menu-nested.js +1 -1
  19. package/dist/es2019/ui/move-down.js +1 -1
  20. package/dist/es2019/ui/move-up.js +1 -1
  21. package/dist/es2019/ui/suggested-items-menu-section.js +1 -1
  22. package/dist/esm/ui/MenuSection.js +1 -1
  23. package/dist/esm/ui/block-menu-renderer/fallbacks.js +1 -1
  24. package/dist/esm/ui/block-menu.js +1 -1
  25. package/dist/esm/ui/copy-link.js +1 -1
  26. package/dist/esm/ui/delete-button.js +1 -1
  27. package/dist/esm/ui/flag.js +1 -1
  28. package/dist/esm/ui/format-menu-nested.js +1 -1
  29. package/dist/esm/ui/move-down.js +1 -1
  30. package/dist/esm/ui/move-up.js +1 -1
  31. package/dist/esm/ui/suggested-items-menu-section.js +1 -1
  32. package/dist/types/ui/MenuSection.d.ts +1 -1
  33. package/dist/types/ui/block-menu.d.ts +1 -1
  34. package/dist/types/ui/copy-link.d.ts +1 -1
  35. package/dist/types/ui/delete-button.d.ts +1 -1
  36. package/dist/types/ui/move-down.d.ts +1 -1
  37. package/dist/types/ui/move-up.d.ts +1 -1
  38. package/dist/types-ts4.5/ui/MenuSection.d.ts +1 -1
  39. package/dist/types-ts4.5/ui/block-menu.d.ts +1 -1
  40. package/dist/types-ts4.5/ui/copy-link.d.ts +1 -1
  41. package/dist/types-ts4.5/ui/delete-button.d.ts +1 -1
  42. package/dist/types-ts4.5/ui/move-down.d.ts +1 -1
  43. package/dist/types-ts4.5/ui/move-up.d.ts +1 -1
  44. package/package.json +13 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 9.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
14
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
15
+
16
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
17
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
18
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
19
+
20
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
21
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
22
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 8.0.0
4
29
 
5
30
  ### Patch Changes
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.MenuSection = 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 _editorToolbar = require("@atlaskit/editor-toolbar");
11
11
  var MenuSection = exports.MenuSection = function MenuSection(_ref) {
12
12
  var children = _ref.children,
13
13
  title = _ref.title,
14
14
  hasSeparator = _ref.hasSeparator;
15
- var _useIntl = (0, _reactIntlNext.useIntl)(),
15
+ var _useIntl = (0, _reactIntl.useIntl)(),
16
16
  formatMessage = _useIntl.formatMessage;
17
17
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
18
18
  title: formatMessage(title),
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.BLOCK_MENU_FALLBACKS = 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 _messages = require("@atlaskit/editor-common/messages");
11
11
  var _editorToolbar = require("@atlaskit/editor-toolbar");
12
12
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
13
13
  var FallbackNestedMenu = function FallbackNestedMenu(_ref) {
14
14
  var children = _ref.children;
15
- var _useIntl = (0, _reactIntlNext.useIntl)(),
15
+ var _useIntl = (0, _reactIntl.useIntl)(),
16
16
  formatMessage = _useIntl.formatMessage;
17
17
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarNestedDropdownMenu, {
18
18
  elemBefore: undefined,
@@ -26,7 +26,7 @@ var FallbackNestedMenu = function FallbackNestedMenu(_ref) {
26
26
  }, children);
27
27
  };
28
28
  var FallbackMenuItem = function FallbackMenuItem() {
29
- var _useIntl2 = (0, _reactIntlNext.useIntl)(),
29
+ var _useIntl2 = (0, _reactIntl.useIntl)(),
30
30
  formatMessage = _useIntl2.formatMessage;
31
31
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, null, formatMessage(_messages.blockMenuMessages.fallbackMenuItem));
32
32
  };
@@ -11,7 +11,7 @@ require("./block-menu.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
  var _react = _interopRequireWildcard(require("react"));
14
- var _reactIntlNext = require("react-intl-next");
14
+ var _reactIntl = require("react-intl");
15
15
  var _css = require("@atlaskit/css");
16
16
  var _analytics = require("@atlaskit/editor-common/analytics");
17
17
  var _blockMenu = require("@atlaskit/editor-common/block-menu");
@@ -273,5 +273,5 @@ var BlockMenu = function BlockMenu(_ref3) {
273
273
  };
274
274
 
275
275
  // eslint-disable-next-line @typescript-eslint/ban-types
276
- var _default_1 = (0, _reactIntlNext.injectIntl)(BlockMenu);
276
+ var _default_1 = (0, _reactIntl.injectIntl)(BlockMenu);
277
277
  var _default = exports.default = _default_1;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.CopyLinkDropdownItem = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _blockMenu = require("@atlaskit/editor-common/block-menu");
13
13
  var _hooks = require("@atlaskit/editor-common/hooks");
@@ -25,7 +25,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
25
25
  var CopyLinkDropdownItemContent = function CopyLinkDropdownItemContent(_ref) {
26
26
  var api = _ref.api,
27
27
  config = _ref.config;
28
- var _useIntl = (0, _reactIntlNext.useIntl)(),
28
+ var _useIntl = (0, _reactIntl.useIntl)(),
29
29
  formatMessage = _useIntl.formatMessage;
30
30
  var _useBlockMenu = (0, _blockMenuProvider.useBlockMenu)(),
31
31
  onDropdownOpenChanged = _useBlockMenu.onDropdownOpenChanged;
@@ -104,4 +104,4 @@ var CopyLinkDropdownItemContent = function CopyLinkDropdownItemContent(_ref) {
104
104
  };
105
105
 
106
106
  // eslint-disable-next-line @typescript-eslint/ban-types
107
- var CopyLinkDropdownItem = exports.CopyLinkDropdownItem = (0, _reactIntlNext.injectIntl)(CopyLinkDropdownItemContent);
107
+ var CopyLinkDropdownItem = exports.CopyLinkDropdownItem = (0, _reactIntl.injectIntl)(CopyLinkDropdownItemContent);
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.DeleteDropdownItem = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _blockMenu = require("@atlaskit/editor-common/block-menu");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
@@ -21,7 +21,7 @@ var _consts = require("./consts");
21
21
  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); }
22
22
  var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
23
23
  var api = _ref.api;
24
- var _useIntl = (0, _reactIntlNext.useIntl)(),
24
+ var _useIntl = (0, _reactIntl.useIntl)(),
25
25
  formatMessage = _useIntl.formatMessage;
26
26
  var onClick = function onClick() {
27
27
  api === null || api === void 0 || api.core.actions.execute(function (_ref2) {
@@ -130,4 +130,4 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
130
130
  };
131
131
 
132
132
  // eslint-disable-next-line @typescript-eslint/ban-types
133
- var DeleteDropdownItem = exports.DeleteDropdownItem = (0, _reactIntlNext.injectIntl)(DeleteDropdownItemContent);
133
+ var DeleteDropdownItem = exports.DeleteDropdownItem = (0, _reactIntl.injectIntl)(DeleteDropdownItemContent);
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.Flag = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _hooks = require("@atlaskit/editor-common/hooks");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _flag = _interopRequireWildcard(require("@atlaskit/flag"));
@@ -29,7 +29,7 @@ var Flag = exports.Flag = function Flag(_ref) {
29
29
  };
30
30
  }),
31
31
  showFlag = _useSharedPluginState.showFlag;
32
- var _useIntl = (0, _reactIntlNext.useIntl)(),
32
+ var _useIntl = (0, _reactIntl.useIntl)(),
33
33
  formatMessage = _useIntl.formatMessage;
34
34
  if (!showFlag) {
35
35
  return;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.FormatMenuComponent = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _editorToolbar = require("@atlaskit/editor-toolbar");
@@ -18,7 +18,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
18
18
  var FormatMenuComponent = exports.FormatMenuComponent = function FormatMenuComponent(_ref) {
19
19
  var api = _ref.api,
20
20
  children = _ref.children;
21
- var _useIntl = (0, _reactIntlNext.useIntl)(),
21
+ var _useIntl = (0, _reactIntl.useIntl)(),
22
22
  formatMessage = _useIntl.formatMessage;
23
23
  var handleClick = (0, _react.useCallback)(function () {
24
24
  api === null || api === void 0 || api.core.actions.execute(function (_ref2) {
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.MoveDownDropdownItem = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _browserApis = require("@atlaskit/browser-apis");
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _blockMenu = require("@atlaskit/editor-common/block-menu");
@@ -22,7 +22,7 @@ var _fixBlockMenuPositionAndScroll = require("./utils/fixBlockMenuPositionAndScr
22
22
  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); }
23
23
  var MoveDownDropdownItemContent = function MoveDownDropdownItemContent(_ref) {
24
24
  var api = _ref.api;
25
- var _useIntl = (0, _reactIntlNext.useIntl)(),
25
+ var _useIntl = (0, _reactIntl.useIntl)(),
26
26
  formatMessage = _useIntl.formatMessage;
27
27
  var _useBlockMenu = (0, _blockMenuProvider.useBlockMenu)(),
28
28
  moveUpRef = _useBlockMenu.moveUpRef,
@@ -80,4 +80,4 @@ var MoveDownDropdownItemContent = function MoveDownDropdownItemContent(_ref) {
80
80
  };
81
81
 
82
82
  // eslint-disable-next-line @typescript-eslint/ban-types
83
- var MoveDownDropdownItem = exports.MoveDownDropdownItem = (0, _reactIntlNext.injectIntl)(MoveDownDropdownItemContent);
83
+ var MoveDownDropdownItem = exports.MoveDownDropdownItem = (0, _reactIntl.injectIntl)(MoveDownDropdownItemContent);
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.MoveUpDropdownItem = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _browserApis = require("@atlaskit/browser-apis");
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _blockMenu = require("@atlaskit/editor-common/block-menu");
@@ -22,7 +22,7 @@ var _fixBlockMenuPositionAndScroll = require("./utils/fixBlockMenuPositionAndScr
22
22
  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); }
23
23
  var MoveUpDropdownItemContent = function MoveUpDropdownItemContent(_ref) {
24
24
  var api = _ref.api;
25
- var _useIntl = (0, _reactIntlNext.useIntl)(),
25
+ var _useIntl = (0, _reactIntl.useIntl)(),
26
26
  formatMessage = _useIntl.formatMessage;
27
27
  var _useBlockMenu = (0, _blockMenuProvider.useBlockMenu)(),
28
28
  moveUpRef = _useBlockMenu.moveUpRef,
@@ -78,4 +78,4 @@ var MoveUpDropdownItemContent = function MoveUpDropdownItemContent(_ref) {
78
78
  };
79
79
 
80
80
  // eslint-disable-next-line @typescript-eslint/ban-types
81
- var MoveUpDropdownItem = exports.MoveUpDropdownItem = (0, _reactIntlNext.injectIntl)(MoveUpDropdownItemContent);
81
+ var MoveUpDropdownItem = exports.MoveUpDropdownItem = (0, _reactIntl.injectIntl)(MoveUpDropdownItemContent);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.SuggestedItemsMenuSection = 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 _messages = require("@atlaskit/editor-common/messages");
11
11
  var _editorToolbar = require("@atlaskit/editor-toolbar");
12
12
  var _useSuggestedItems = require("./hooks/useSuggestedItems");
@@ -15,7 +15,7 @@ var SuggestedItemsMenuSection = exports.SuggestedItemsMenuSection = /*#__PURE__*
15
15
  var api = _ref.api,
16
16
  children = _ref.children;
17
17
  var suggestedItems = (0, _useSuggestedItems.useSuggestedItems)(api);
18
- var _useIntl = (0, _reactIntlNext.useIntl)(),
18
+ var _useIntl = (0, _reactIntl.useIntl)(),
19
19
  formatMessage = _useIntl.formatMessage;
20
20
  if (suggestedItems.length === 0) {
21
21
  return null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
4
4
  export const MenuSection = ({
5
5
  children,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ToolbarDropdownItem, ToolbarDropdownItemSection, ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
5
5
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
@@ -2,7 +2,7 @@
2
2
  import "./block-menu.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useContext, useEffect, useRef } from 'react';
5
- import { injectIntl } from 'react-intl-next';
5
+ import { injectIntl } from 'react-intl';
6
6
  import { cx } from '@atlaskit/css';
7
7
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  import { BLOCK_MENU_TEST_ID } from '@atlaskit/editor-common/block-menu';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
4
4
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
5
5
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useEffect } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
5
5
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { blockMenuMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import AkFlag, { FlagGroup, AutoDismissFlag } from '@atlaskit/flag';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
4
4
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { getDocument } from '@atlaskit/browser-apis';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
5
5
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { getDocument } from '@atlaskit/browser-apis';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
5
5
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
5
5
  import { useSuggestedItems } from './hooks/useSuggestedItems';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
4
4
  export var MenuSection = function MenuSection(_ref) {
5
5
  var children = _ref.children,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ToolbarDropdownItem, ToolbarDropdownItemSection, ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
5
5
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import "./block-menu.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useContext, useEffect, useRef } from 'react';
6
- import { injectIntl } from 'react-intl-next';
6
+ import { injectIntl } from 'react-intl';
7
7
  import { cx } from '@atlaskit/css';
8
8
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  import { BLOCK_MENU_TEST_ID } from '@atlaskit/editor-common/block-menu';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
4
4
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
5
5
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useEffect } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
5
5
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
5
5
  import { blockMenuMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import AkFlag, { FlagGroup, AutoDismissFlag } from '@atlaskit/flag';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
4
4
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { getDocument } from '@atlaskit/browser-apis';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
5
5
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { injectIntl, useIntl } from 'react-intl-next';
2
+ import { injectIntl, useIntl } from 'react-intl';
3
3
  import { getDocument } from '@atlaskit/browser-apis';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
5
5
  import { BLOCK_MENU_ACTION_TEST_ID } from '@atlaskit/editor-common/block-menu';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
5
5
  import { useSuggestedItems } from './hooks/useSuggestedItems';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl';
3
3
  type MenuSectionProps = {
4
4
  children?: React.ReactNode;
5
5
  hasSeparator?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin, BlockMenuPluginOptions } from '../blockMenuPluginType';
5
5
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl';
3
3
  type MenuSectionProps = {
4
4
  children?: React.ReactNode;
5
5
  hasSeparator?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin, BlockMenuPluginOptions } from '../blockMenuPluginType';
5
5
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
5
  type Props = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "8.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,29 +30,29 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/browser-apis": "^0.0.1",
32
32
  "@atlaskit/css": "^0.19.0",
33
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
34
- "@atlaskit/editor-plugin-block-controls": "^10.0.0",
35
- "@atlaskit/editor-plugin-decorations": "^9.0.0",
36
- "@atlaskit/editor-plugin-selection": "^9.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^7.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
34
+ "@atlaskit/editor-plugin-block-controls": "^11.0.0",
35
+ "@atlaskit/editor-plugin-decorations": "^10.0.0",
36
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^8.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.10.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
41
- "@atlaskit/editor-toolbar": "^0.20.0",
41
+ "@atlaskit/editor-toolbar": "^1.0.0",
42
42
  "@atlaskit/flag": "^17.9.0",
43
43
  "@atlaskit/icon": "^34.2.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^19.0.0",
46
46
  "@atlaskit/prosemirror-history": "^0.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^62.4.0",
47
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
48
48
  "@atlaskit/tokens": "^13.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "bind-event-listener": "^3.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^113.0.0",
53
+ "@atlaskit/editor-common": "^114.2.0",
54
54
  "react": "^18.2.0",
55
- "react-intl-next": "npm:react-intl@^5.18.1"
55
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },
57
57
  "techstack": {
58
58
  "@atlassian/frontend": {
@@ -106,5 +106,8 @@
106
106
  "platform_editor_block_menu_divider_patch": {
107
107
  "type": "boolean"
108
108
  }
109
+ },
110
+ "devDependencies": {
111
+ "react-intl": "^6.6.2"
109
112
  }
110
113
  }