@atlaskit/editor-plugin-block-type 12.1.33 → 14.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 (33) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +2 -2
  3. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +2 -2
  4. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +2 -2
  5. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +2 -2
  6. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/index.js +2 -2
  7. package/dist/cjs/ui/HeadingBlockMenuItem.js +2 -2
  8. package/dist/cjs/ui/ParagraphBlockMenuItem.js +2 -2
  9. package/dist/cjs/ui/QuoteBlockMenuItem.js +2 -2
  10. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +1 -1
  11. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +1 -1
  12. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +1 -1
  13. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +1 -1
  14. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/index.js +1 -1
  15. package/dist/es2019/ui/HeadingBlockMenuItem.js +1 -1
  16. package/dist/es2019/ui/ParagraphBlockMenuItem.js +1 -1
  17. package/dist/es2019/ui/QuoteBlockMenuItem.js +1 -1
  18. package/dist/esm/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +1 -1
  19. package/dist/esm/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +1 -1
  20. package/dist/esm/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +1 -1
  21. package/dist/esm/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +1 -1
  22. package/dist/esm/pm-plugins/ui/ToolbarBlockType/index.js +1 -1
  23. package/dist/esm/ui/HeadingBlockMenuItem.js +1 -1
  24. package/dist/esm/ui/ParagraphBlockMenuItem.js +1 -1
  25. package/dist/esm/ui/QuoteBlockMenuItem.js +1 -1
  26. package/dist/types/pm-plugins/types.d.ts +1 -1
  27. package/dist/types/pm-plugins/ui/ToolbarBlockType/blocktype-button.d.ts +1 -1
  28. package/dist/types/pm-plugins/ui/ToolbarBlockType/index.d.ts +1 -1
  29. package/dist/types-ts4.5/pm-plugins/types.d.ts +1 -1
  30. package/dist/types-ts4.5/pm-plugins/ui/ToolbarBlockType/blocktype-button.d.ts +1 -1
  31. package/dist/types-ts4.5/pm-plugins/ui/ToolbarBlockType/index.d.ts +1 -1
  32. package/package.json +15 -14
  33. package/report.api.md +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 14.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
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
+ ## 13.0.0
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 12.1.33
4
29
 
5
30
  ### Patch Changes
@@ -11,7 +11,7 @@ exports.HeadingButton = void 0;
11
11
  require("./HeadingButton.compiled.css");
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _runtime = require("@compiled/react/runtime");
14
- var _reactIntlNext = require("react-intl-next");
14
+ var _reactIntl = require("react-intl");
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
16
  var _keymaps = require("@atlaskit/editor-common/keymaps");
17
17
  var _toolbar = require("@atlaskit/editor-common/toolbar");
@@ -122,7 +122,7 @@ var shouldDisableHeadingButton = function shouldDisableHeadingButton(state, bloc
122
122
  var HeadingButton = exports.HeadingButton = function HeadingButton(_ref2) {
123
123
  var blockType = _ref2.blockType,
124
124
  api = _ref2.api;
125
- var _useIntl = (0, _reactIntlNext.useIntl)(),
125
+ var _useIntl = (0, _reactIntl.useIntl)(),
126
126
  formatMessage = _useIntl.formatMessage;
127
127
  var currentBlockType = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'blockType.currentBlockType');
128
128
  var availableBlockTypesInDropdown = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'blockType.availableBlockTypesInDropdown');
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.QuoteButton = 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 _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _toolbar = require("@atlaskit/editor-common/toolbar");
@@ -23,7 +23,7 @@ var shouldDisableQuoteButton = function shouldDisableQuoteButton(state) {
23
23
  var QuoteButton = exports.QuoteButton = function QuoteButton(_ref) {
24
24
  var blockType = _ref.blockType,
25
25
  api = _ref.api;
26
- var _useIntl = (0, _reactIntlNext.useIntl)(),
26
+ var _useIntl = (0, _reactIntl.useIntl)(),
27
27
  formatMessage = _useIntl.formatMessage;
28
28
  var availableBlockTypesInDropdown = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'blockType.availableBlockTypesInDropdown');
29
29
  var currentBlockType = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'blockType.currentBlockType');
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.TextStylesMenuButton = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
- var _reactIntlNext = require("react-intl-next");
9
+ var _reactIntl = require("react-intl");
10
10
  var _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _toolbar = require("@atlaskit/editor-common/toolbar");
@@ -27,7 +27,7 @@ var TextStylesMenuButton = exports.TextStylesMenuButton = function TextStylesMen
27
27
  var allowFontSize = _ref.allowFontSize,
28
28
  api = _ref.api,
29
29
  children = _ref.children;
30
- var _useIntl = (0, _reactIntlNext.useIntl)(),
30
+ var _useIntl = (0, _reactIntl.useIntl)(),
31
31
  formatMessage = _useIntl.formatMessage;
32
32
  var _usePluginState = usePluginState(api),
33
33
  blockTypesDisabled = _usePluginState.blockTypesDisabled,
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.BlockTypeButton = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _styles = require("@atlaskit/editor-common/styles");
13
13
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
@@ -78,7 +78,7 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
78
78
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
79
79
  , {
80
80
  xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
81
- }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage
81
+ }, (0, _react2.jsx)(_reactIntl.FormattedMessage
82
82
  // Ignored via go/ees005
83
83
  // eslint-disable-next-line react/jsx-props-no-spreading
84
84
  , props.title || _blockTypes.NORMAL_TEXT.title)));
@@ -13,7 +13,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _react2 = require("@emotion/react");
16
- var _reactIntlNext = require("react-intl-next");
16
+ var _reactIntl = require("react-intl");
17
17
  var _keymaps = require("@atlaskit/editor-common/keymaps");
18
18
  var _messages = require("@atlaskit/editor-common/messages");
19
19
  var _styles = require("@atlaskit/editor-common/styles");
@@ -303,5 +303,5 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
303
303
  }
304
304
  }]);
305
305
  }(_react.default.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
306
- var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarBlockType);
306
+ var _default_1 = (0, _reactIntl.injectIntl)(ToolbarBlockType);
307
307
  var _default = exports.default = _default_1;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.createHeadingBlockMenuItem = 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 _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
@@ -22,7 +22,7 @@ var NODE_NAME = 'heading';
22
22
  var HeadingBlockMenuItem = function HeadingBlockMenuItem(_ref) {
23
23
  var level = _ref.level,
24
24
  api = _ref.api;
25
- var _useIntl = (0, _reactIntlNext.useIntl)(),
25
+ var _useIntl = (0, _reactIntl.useIntl)(),
26
26
  formatMessage = _useIntl.formatMessage;
27
27
  var Icon = headingIcons[level - 1];
28
28
  var message = headingMessages[level - 1];
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.createParagraphBlockMenuItem = 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 _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
@@ -14,7 +14,7 @@ var _textParagraph = _interopRequireDefault(require("@atlaskit/icon-lab/core/tex
14
14
  var NODE_NAME = 'paragraph';
15
15
  var ParagraphBlockMenuItem = function ParagraphBlockMenuItem(_ref) {
16
16
  var api = _ref.api;
17
- var _useIntl = (0, _reactIntlNext.useIntl)(),
17
+ var _useIntl = (0, _reactIntl.useIntl)(),
18
18
  formatMessage = _useIntl.formatMessage;
19
19
  var handleClick = function handleClick(event) {
20
20
  var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
@@ -9,7 +9,7 @@ exports.createQuoteBlockMenuItem = void 0;
9
9
  require("./QuoteBlockMenuItem.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _reactIntlNext = require("react-intl-next");
12
+ var _reactIntl = require("react-intl");
13
13
  var _analytics = require("@atlaskit/editor-common/analytics");
14
14
  var _messages = require("@atlaskit/editor-common/messages");
15
15
  var _editorToolbar = require("@atlaskit/editor-toolbar");
@@ -20,7 +20,7 @@ var styles = {
20
20
  var NODE_NAME = 'blockquote';
21
21
  var QuoteBlockMenuItem = function QuoteBlockMenuItem(_ref) {
22
22
  var api = _ref.api;
23
- var _useIntl = (0, _reactIntlNext.useIntl)(),
23
+ var _useIntl = (0, _reactIntl.useIntl)(),
24
24
  formatMessage = _useIntl.formatMessage;
25
25
  var handleClick = function handleClick(event) {
26
26
  var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
@@ -4,7 +4,7 @@
4
4
  import "./HeadingButton.compiled.css";
5
5
  import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  import { formatShortcut, setNormalText, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleSmallText } from '@atlaskit/editor-common/keymaps';
10
10
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { formatShortcut, toggleBlockQuote } from '@atlaskit/editor-common/keymaps';
5
5
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } 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 { toolbarMessages } from '@atlaskit/editor-common/messages';
5
5
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
7
7
  import { jsx } from '@emotion/react';
8
- import { FormattedMessage } from 'react-intl-next';
8
+ import { FormattedMessage } from 'react-intl';
9
9
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
10
10
  import { expandIconContainerStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
11
11
  import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
@@ -7,7 +7,7 @@ import React from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { jsx } from '@emotion/react';
10
- import { injectIntl } from 'react-intl-next';
10
+ import { injectIntl } from 'react-intl';
11
11
  import { clearFormatting, findKeymapByDescription, tooltip } from '@atlaskit/editor-common/keymaps';
12
12
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
13
13
  import { separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -2,7 +2,7 @@
2
2
  import "./QuoteBlockMenuItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
8
8
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -4,7 +4,7 @@
4
4
  import "./HeadingButton.compiled.css";
5
5
  import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  import { formatShortcut, setNormalText, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleSmallText } from '@atlaskit/editor-common/keymaps';
10
10
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { formatShortcut, toggleBlockQuote } from '@atlaskit/editor-common/keymaps';
5
5
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } 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 { toolbarMessages } from '@atlaskit/editor-common/messages';
5
5
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
7
7
  import { jsx } from '@emotion/react';
8
- import { FormattedMessage } from 'react-intl-next';
8
+ import { FormattedMessage } from 'react-intl';
9
9
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
10
10
  import { expandIconContainerStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
11
11
  import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
@@ -16,7 +16,7 @@ import React from 'react';
16
16
 
17
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
18
  import { jsx } from '@emotion/react';
19
- import { injectIntl } from 'react-intl-next';
19
+ import { injectIntl } from 'react-intl';
20
20
  import { clearFormatting, findKeymapByDescription, tooltip } from '@atlaskit/editor-common/keymaps';
21
21
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
22
22
  import { separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -2,7 +2,7 @@
2
2
  import "./QuoteBlockMenuItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
8
8
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import type { MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl';
3
3
  import type { AllowedBlockTypes, HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
4
4
  import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
5
5
  export type BlockTypeName = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'blockquote' | 'codeblock' | 'panel' | 'notePanel' | 'successPanel' | 'warningPanel' | 'errorPanel' | 'other';
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { ReactElement } from 'react';
7
7
  import { jsx } from '@emotion/react';
8
- import type { MessageDescriptor, WrappedComponentProps } from 'react-intl-next';
8
+ import type { MessageDescriptor, WrappedComponentProps } from 'react-intl';
9
9
  export interface BlockTypeButtonProps {
10
10
  'aria-expanded': React.AriaAttributes['aria-expanded'];
11
11
  blockTypeIcon?: ReactElement;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
8
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import type { MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl';
3
3
  import type { AllowedBlockTypes, HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
4
4
  import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
5
5
  export type BlockTypeName = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'blockquote' | 'codeblock' | 'panel' | 'notePanel' | 'successPanel' | 'warningPanel' | 'errorPanel' | 'other';
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { ReactElement } from 'react';
7
7
  import { jsx } from '@emotion/react';
8
- import type { MessageDescriptor, WrappedComponentProps } from 'react-intl-next';
8
+ import type { MessageDescriptor, WrappedComponentProps } from 'react-intl';
9
9
  export interface BlockTypeButtonProps {
10
10
  'aria-expanded': React.AriaAttributes['aria-expanded'];
11
11
  blockTypeIcon?: ReactElement;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
8
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "12.1.33",
3
+ "version": "14.0.0",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,41 +29,42 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.4.0",
32
+ "@atlaskit/adf-schema": "^52.5.0",
33
33
  "@atlaskit/css": "^0.19.0",
34
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
35
- "@atlaskit/editor-plugin-block-menu": "^7.0.0",
36
- "@atlaskit/editor-plugin-list": "^10.2.0",
37
- "@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
38
- "@atlaskit/editor-plugin-selection": "^8.0.0",
39
- "@atlaskit/editor-plugin-selection-toolbar": "^9.1.0",
40
- "@atlaskit/editor-plugin-toolbar": "^5.1.0",
34
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
35
+ "@atlaskit/editor-plugin-block-menu": "^9.0.0",
36
+ "@atlaskit/editor-plugin-list": "^12.0.0",
37
+ "@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
38
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
39
+ "@atlaskit/editor-plugin-selection-toolbar": "^11.0.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^7.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.3.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.10.0",
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
- "@atlaskit/editor-toolbar": "^0.20.0",
44
+ "@atlaskit/editor-toolbar": "^1.0.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.4.0",
46
- "@atlaskit/icon": "^34.1.0",
46
+ "@atlaskit/icon": "^34.2.0",
47
47
  "@atlaskit/icon-lab": "^6.5.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/primitives": "^19.0.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
51
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
52
- "@atlaskit/tmp-editor-statsig": "^62.2.0",
52
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.20.0",
56
56
  "@emotion/react": "^11.7.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^112.21.0",
59
+ "@atlaskit/editor-common": "^114.0.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
- "react-intl-next": "npm:react-intl@^5.18.1"
62
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@testing-library/react": "^16.3.0",
66
66
  "@testing-library/user-event": "^14.4.3",
67
+ "react-intl": "^6.6.2",
67
68
  "wait-for-expect": "^1.2.0"
68
69
  },
69
70
  "techstack": {
package/report.api.md CHANGED
@@ -23,7 +23,7 @@ import type { EditorCommand } from '@atlaskit/editor-common/types';
23
23
  import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
24
24
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
25
25
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
26
- import type { MessageDescriptor } from 'react-intl-next';
26
+ import type { MessageDescriptor } from 'react-intl';
27
27
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
28
28
  import type { OptionalPlugin } from '@atlaskit/editor-common/types';
29
29
 
@@ -115,7 +115,7 @@ export type TextBlockTypes =
115
115
  ```json
116
116
  {
117
117
  "react": "^16.8.0",
118
- "react-intl-next": "npm:react-intl@^5.18.1"
118
+ "react-intl": "npm:react-intl@^5.18.1"
119
119
  }
120
120
  ```
121
121