@atlaskit/editor-plugin-undo-redo 9.0.0 → 10.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @atlaskit/editor-plugin-undo-redo
2
2
 
3
+ ## 10.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.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
  ## 9.0.0
4
29
 
5
30
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.RedoButton = 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 _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
@@ -16,7 +16,7 @@ var _commands = require("../../pm-plugins/commands");
16
16
  var _utils = require("../../pm-plugins/utils");
17
17
  var RedoButton = exports.RedoButton = function RedoButton(_ref) {
18
18
  var api = _ref.api;
19
- var _useIntl = (0, _reactIntlNext.useIntl)(),
19
+ var _useIntl = (0, _reactIntl.useIntl)(),
20
20
  formatMessage = _useIntl.formatMessage;
21
21
  var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
22
22
  editorView = _useEditorToolbar.editorView;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.UndoButton = 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 _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
@@ -16,7 +16,7 @@ var _commands = require("../../pm-plugins/commands");
16
16
  var _utils = require("../../pm-plugins/utils");
17
17
  var UndoButton = exports.UndoButton = function UndoButton(_ref) {
18
18
  var api = _ref.api;
19
- var _useIntl = (0, _reactIntlNext.useIntl)(),
19
+ var _useIntl = (0, _reactIntl.useIntl)(),
20
20
  formatMessage = _useIntl.formatMessage;
21
21
  var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
22
22
  editorView = _useEditorToolbar.editorView;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.ToolbarUndoRedo = void 0;
8
8
  var _react = require("@emotion/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 _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
@@ -97,5 +97,5 @@ var ToolbarUndoRedo = exports.ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
97
97
  };
98
98
 
99
99
  // eslint-disable-next-line @typescript-eslint/ban-types
100
- var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarUndoRedo);
100
+ var _default_1 = (0, _reactIntl.injectIntl)(ToolbarUndoRedo);
101
101
  var _default = exports.default = _default_1;
@@ -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 { getAriaKeyshortcuts, redo as redoKeymap, ToolTipContent } from '@atlaskit/editor-common/keymaps';
5
5
  import { undoRedoMessages } 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 { getAriaKeyshortcuts, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
5
5
  import { undoRedoMessages } from '@atlaskit/editor-common/messages';
@@ -5,7 +5,7 @@
5
5
 
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 { injectIntl } from 'react-intl-next';
8
+ import { injectIntl } from 'react-intl';
9
9
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
10
10
  import { getAriaKeyshortcuts, redoAlt, tooltip, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
11
11
  import { undoRedoMessages } 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 { getAriaKeyshortcuts, redo as redoKeymap, ToolTipContent } from '@atlaskit/editor-common/keymaps';
5
5
  import { undoRedoMessages } 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 { getAriaKeyshortcuts, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
5
5
  import { undoRedoMessages } from '@atlaskit/editor-common/messages';
@@ -5,7 +5,7 @@
5
5
 
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 { injectIntl } from 'react-intl-next';
8
+ import { injectIntl } from 'react-intl';
9
9
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
10
10
  import { getAriaKeyshortcuts, redoAlt, tooltip, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
11
11
  import { undoRedoMessages } from '@atlaskit/editor-common/messages';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { ComponentType, FC } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
8
8
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import type { UndoRedoPlugin } from '../../undoRedoPluginType';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { ComponentType, FC } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
8
8
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import type { UndoRedoPlugin } from '../../undoRedoPluginType';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-undo-redo",
3
- "version": "9.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Undo redo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,24 +29,24 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/editor-plugin-history": "^9.0.0",
33
- "@atlaskit/editor-plugin-primary-toolbar": "^10.0.0",
34
- "@atlaskit/editor-plugin-toolbar": "^6.0.0",
35
- "@atlaskit/editor-plugin-type-ahead": "^9.0.0",
32
+ "@atlaskit/editor-plugin-history": "^10.0.0",
33
+ "@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
34
+ "@atlaskit/editor-plugin-toolbar": "^7.0.0",
35
+ "@atlaskit/editor-plugin-type-ahead": "^10.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^7.3.0",
37
- "@atlaskit/editor-toolbar": "^0.20.0",
37
+ "@atlaskit/editor-toolbar": "^1.0.0",
38
38
  "@atlaskit/editor-toolbar-model": "^0.4.0",
39
39
  "@atlaskit/icon": "^34.2.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/prosemirror-history": "^0.2.0",
42
- "@atlaskit/tmp-editor-statsig": "^62.4.0",
42
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^113.0.0",
47
+ "@atlaskit/editor-common": "^114.2.0",
48
48
  "react": "^18.2.0",
49
- "react-intl-next": "npm:react-intl@^5.18.1"
49
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
50
50
  },
51
51
  "techstack": {
52
52
  "@atlassian/frontend": {
@@ -93,5 +93,8 @@
93
93
  "platform_editor_ai_add_undoredo_jira": {
94
94
  "type": "boolean"
95
95
  }
96
+ },
97
+ "devDependencies": {
98
+ "react-intl": "^6.6.2"
96
99
  }
97
100
  }