@atlaskit/editor-plugin-undo-redo 8.0.30 → 10.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 +25 -0
- package/dist/cjs/ui/ToolbarUndoRedo/RedoButton.js +2 -2
- package/dist/cjs/ui/ToolbarUndoRedo/UndoButton.js +2 -2
- package/dist/cjs/ui/ToolbarUndoRedo/index.js +2 -2
- package/dist/es2019/ui/ToolbarUndoRedo/RedoButton.js +1 -1
- package/dist/es2019/ui/ToolbarUndoRedo/UndoButton.js +1 -1
- package/dist/es2019/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/esm/ui/ToolbarUndoRedo/RedoButton.js +1 -1
- package/dist/esm/ui/ToolbarUndoRedo/UndoButton.js +1 -1
- package/dist/esm/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/types/ui/ToolbarUndoRedo/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/index.d.ts +1 -1
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 10.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
|
+
## 9.0.0
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 8.0.30
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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": "
|
|
3
|
+
"version": "10.0.0",
|
|
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": "^
|
|
33
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
34
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
35
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
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.
|
|
37
|
+
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
38
38
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
39
|
-
"@atlaskit/icon": "^34.
|
|
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.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^
|
|
47
|
+
"@atlaskit/editor-common": "^114.0.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
|
-
"react-intl
|
|
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
|
}
|