@atlaskit/editor-plugin-paste-options-toolbar 10.0.0 → 11.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-paste-options-toolbar
2
2
 
3
+ ## 11.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
  ## 10.0.0
4
23
 
5
24
  ### Patch Changes
@@ -11,7 +11,7 @@ require("./PasteMenuComponents.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@compiled/react");
14
- var _reactIntlNext = require("react-intl-next");
14
+ var _reactIntl = require("react-intl");
15
15
  var _hooks = require("@atlaskit/editor-common/hooks");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _toolbar = require("@atlaskit/editor-common/toolbar");
@@ -44,7 +44,7 @@ var PasteMenuItem = function PasteMenuItem(_ref) {
44
44
  var _api$analytics;
45
45
  var api = _ref.api,
46
46
  pasteType = _ref.pasteType;
47
- var intl = (0, _reactIntlNext.useIntl)();
47
+ var intl = (0, _reactIntl.useIntl)();
48
48
  var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
49
49
  editorView = _useEditorToolbar.editorView;
50
50
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
@@ -104,7 +104,7 @@ var PasteMenuItem = function PasteMenuItem(_ref) {
104
104
  var PasteOptionsNestedMenu = function PasteOptionsNestedMenu(_ref2) {
105
105
  var children = _ref2.children,
106
106
  hasVisibleAiActions = _ref2.hasVisibleAiActions;
107
- var intl = (0, _reactIntlNext.useIntl)();
107
+ var intl = (0, _reactIntl.useIntl)();
108
108
  var label = intl.formatMessage(_messages.pasteOptionsToolbarMessages.pasteMenuActionsPasteAs);
109
109
  if (!hasVisibleAiActions) {
110
110
  return /*#__PURE__*/_react.default.createElement(_PasteOptionsDropdownButton.PasteOptionsDropdownButton, {
@@ -3,7 +3,7 @@ import "./PasteMenuComponents.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
5
  import { cx } from '@compiled/react';
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import { useEditorToolbar, PASTE_MENU, PASTE_MENU_SECTION, PASTE_NESTED_MENU, PASTE_MENU_NESTED_SECTION, PASTE_RICH_TEXT_MENU_ITEM, PASTE_MARKDOWN_MENU_ITEM, PASTE_PLAIN_TEXT_MENU_ITEM, PASTE_MENU_RANK, PASTE_MENU_SECTION_RANK, PASTE_NESTED_MENU_RANK, PASTE_MENU_NESTED_SECTION_RANK, AI_PASTE_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
@@ -3,7 +3,7 @@ import "./PasteMenuComponents.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
5
  import { cx } from '@compiled/react';
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import { useEditorToolbar, PASTE_MENU, PASTE_MENU_SECTION, PASTE_NESTED_MENU, PASTE_MENU_NESTED_SECTION, PASTE_RICH_TEXT_MENU_ITEM, PASTE_MARKDOWN_MENU_ITEM, PASTE_PLAIN_TEXT_MENU_ITEM, PASTE_MENU_RANK, PASTE_MENU_SECTION_RANK, PASTE_NESTED_MENU_RANK, PASTE_MENU_NESTED_SECTION_RANK, AI_PASTE_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command, FloatingToolbarConfig, FloatingToolbarDropdown } from '@atlaskit/editor-common/types';
4
4
  import type { LastContentPasted } from '@atlaskit/editor-plugin-paste';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command, FloatingToolbarConfig, FloatingToolbarDropdown } from '@atlaskit/editor-common/types';
4
4
  import type { LastContentPasted } from '@atlaskit/editor-plugin-paste';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,12 +32,12 @@
32
32
  "@atlaskit/css": "^0.19.0",
33
33
  "@atlaskit/dropdown-menu": "^16.8.0",
34
34
  "@atlaskit/editor-markdown-transformer": "^5.20.0",
35
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
36
- "@atlaskit/editor-plugin-paste": "^10.0.0",
37
- "@atlaskit/editor-plugin-ui-control-registry": "^3.0.0",
35
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
36
+ "@atlaskit/editor-plugin-paste": "^11.0.0",
37
+ "@atlaskit/editor-plugin-ui-control-registry": "^4.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-ui-control-model": "^1.1.0",
42
42
  "@atlaskit/icon": "^34.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -46,16 +46,17 @@
46
46
  "@atlaskit/tokens": "^13.0.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@compiled/react": "^0.20.0",
49
- "@emotion/react": "^11.7.1",
50
- "react-intl-next": "npm:react-intl@^5.18.1"
49
+ "@emotion/react": "^11.7.1"
51
50
  },
52
51
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^113.0.0",
52
+ "@atlaskit/editor-common": "^114.0.0",
54
53
  "react": "^18.2.0",
55
- "react-dom": "^18.2.0"
54
+ "react-dom": "^18.2.0",
55
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@testing-library/react": "^16.3.0",
59
+ "react-intl": "^6.6.2",
59
60
  "wait-for-expect": "^1.2.0"
60
61
  },
61
62
  "platform-feature-flags": {