@atlaskit/editor-plugin-toolbar 6.0.0 → 7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 7.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
+
3
22
  ## 6.0.0
4
23
 
5
24
  ### Patch Changes
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.OverflowMenu = 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 OverflowMenu = exports.OverflowMenu = function OverflowMenu(_ref) {
13
13
  var children = _ref.children;
14
- var intl = (0, _reactIntlNext.useIntl)();
14
+ var intl = (0, _reactIntl.useIntl)();
15
15
  var tooltipContent = intl.formatMessage(_messages.toolbarMessages.selectionToolbarOverflowMenuTooltip);
16
16
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
17
17
  label: tooltipContent,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.SelectionToolbarWithErrorBoundary = exports.SelectionToolbar = 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 _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
12
12
  var _errorBoundary = require("@atlaskit/editor-common/error-boundary");
@@ -77,7 +77,7 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
77
77
  editorViewMode = _usePluginState.editorViewMode;
78
78
  var contextualFormattingEnabled = (_api$toolbar$actions$ = api === null || api === void 0 || (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 ? void 0 : _api$toolbar.actions.contextualFormattingMode()) !== null && _api$toolbar$actions$ !== void 0 ? _api$toolbar$actions$ : 'always-pinned';
79
79
  var selectionToolbarConfigEnabled = (0, _toolbar.shouldShowSelectionToolbar)(contextualFormattingEnabled, editorToolbarDockingPreference);
80
- var intl = (0, _reactIntlNext.useIntl)();
80
+ var intl = (0, _reactIntl.useIntl)();
81
81
  var components = api === null || api === void 0 || (_api$toolbar2 = api.toolbar) === null || _api$toolbar2 === void 0 ? void 0 : _api$toolbar2.actions.getComponents();
82
82
  var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
83
83
  return isToolbarComponent(component);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.TextCollapsedMenu = 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
  /**
@@ -15,7 +15,7 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
15
15
  */
16
16
  var TextCollapsedMenu = exports.TextCollapsedMenu = function TextCollapsedMenu(_ref) {
17
17
  var children = _ref.children;
18
- var _useIntl = (0, _reactIntlNext.useIntl)(),
18
+ var _useIntl = (0, _reactIntl.useIntl)(),
19
19
  formatMessage = _useIntl.formatMessage;
20
20
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
21
21
  iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.TextIcon, {
@@ -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 { toolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ShowMoreHorizontalIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
5
5
  export const OverflowMenu = ({
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
4
4
  import { isSSR } from '@atlaskit/editor-common/core-utils';
5
5
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
@@ -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 { toolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ToolbarDropdownMenu, ToolbarTooltip, TextIcon } from '@atlaskit/editor-toolbar';
5
5
  /**
@@ -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 { toolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ShowMoreHorizontalIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
5
5
  export var OverflowMenu = function OverflowMenu(_ref) {
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
4
4
  import { isSSR } from '@atlaskit/editor-common/core-utils';
5
5
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
@@ -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 { toolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { ToolbarDropdownMenu, ToolbarTooltip, TextIcon } from '@atlaskit/editor-toolbar';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ToolbarKeyboardNavigationProviderConfig } from '@atlaskit/editor-toolbar';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ToolbarKeyboardNavigationProviderConfig } from '@atlaskit/editor-toolbar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "6.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,25 +29,25 @@
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
31
  "@atlaskit/browser-apis": "^0.0.1",
32
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
33
- "@atlaskit/editor-plugin-connectivity": "^9.0.0",
34
- "@atlaskit/editor-plugin-editor-viewmode": "^11.0.0",
35
- "@atlaskit/editor-plugin-selection": "^9.0.0",
36
- "@atlaskit/editor-plugin-user-intent": "^7.0.0",
37
- "@atlaskit/editor-plugin-user-preferences": "^7.0.0",
32
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
33
+ "@atlaskit/editor-plugin-connectivity": "^10.0.0",
34
+ "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
35
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
36
+ "@atlaskit/editor-plugin-user-intent": "^8.0.0",
37
+ "@atlaskit/editor-plugin-user-preferences": "^8.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.10.0",
40
- "@atlaskit/editor-toolbar": "^0.20.0",
40
+ "@atlaskit/editor-toolbar": "^1.0.0",
41
41
  "@atlaskit/editor-toolbar-model": "^0.4.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
43
  "@atlaskit/tmp-editor-statsig": "^62.4.0",
44
44
  "@babel/runtime": "^7.0.0",
45
- "bind-event-listener": "^3.0.0",
46
- "react-intl-next": "npm:react-intl@^5.18.1"
45
+ "bind-event-listener": "^3.0.0"
47
46
  },
48
47
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^113.0.0",
50
- "react": "^18.2.0"
48
+ "@atlaskit/editor-common": "^114.0.0",
49
+ "react": "^18.2.0",
50
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
51
51
  },
52
52
  "platform-feature-flags": {
53
53
  "platform_editor_fix_toolbar_on_first_highlight": {
@@ -98,5 +98,8 @@
98
98
  "import-no-extraneous-disable-for-examples-and-docs"
99
99
  ]
100
100
  }
101
+ },
102
+ "devDependencies": {
103
+ "react-intl": "^6.6.2"
101
104
  }
102
105
  }