@atlaskit/editor-plugin-undo-redo 3.2.1 → 3.2.3
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 +19 -0
- package/dist/cjs/ui/ToolbarUndoRedo/RedoButton.js +2 -1
- package/dist/cjs/ui/ToolbarUndoRedo/UndoButton.js +2 -1
- package/dist/es2019/ui/ToolbarUndoRedo/RedoButton.js +9 -8
- package/dist/es2019/ui/ToolbarUndoRedo/UndoButton.js +9 -8
- package/dist/es2019/ui/ToolbarUndoRedo/toolbar-components.js +2 -2
- package/dist/esm/ui/ToolbarUndoRedo/RedoButton.js +9 -8
- package/dist/esm/ui/ToolbarUndoRedo/UndoButton.js +9 -8
- package/dist/esm/ui/ToolbarUndoRedo/toolbar-components.js +2 -2
- package/dist/types/ui/ToolbarUndoRedo/RedoButton.d.ts +3 -3
- package/dist/types/ui/ToolbarUndoRedo/UndoButton.d.ts +3 -3
- package/dist/types/ui/ToolbarUndoRedo/toolbar-components.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/RedoButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/UndoButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/toolbar-components.d.ts +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 3.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`286abb4d35eba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/286abb4d35eba) -
|
|
8
|
+
[ux] [ED-28960] Finish full page primary toolbar migration
|
|
9
|
+
|
|
10
|
+
- Align with design update (separator, gap, height, icon size)
|
|
11
|
+
- Add keyboard shortcut to focus toolbar and arrow key navigation
|
|
12
|
+
- Address accessibility
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 3.2.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 3.2.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -40,7 +40,8 @@ var RedoButton = exports.RedoButton = function RedoButton(_ref) {
|
|
|
40
40
|
})
|
|
41
41
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarButton, {
|
|
42
42
|
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.RedoIcon, {
|
|
43
|
-
label: formatMessage(_messages.undoRedoMessages.redo)
|
|
43
|
+
label: formatMessage(_messages.undoRedoMessages.redo),
|
|
44
|
+
size: "small"
|
|
44
45
|
}),
|
|
45
46
|
onClick: handleRedo,
|
|
46
47
|
isDisabled: !canRedo,
|
|
@@ -40,7 +40,8 @@ var UndoButton = exports.UndoButton = function UndoButton(_ref) {
|
|
|
40
40
|
})
|
|
41
41
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarButton, {
|
|
42
42
|
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.UndoIcon, {
|
|
43
|
-
label: formatMessage(_messages.undoRedoMessages.undo)
|
|
43
|
+
label: formatMessage(_messages.undoRedoMessages.undo),
|
|
44
|
+
size: "small"
|
|
44
45
|
}),
|
|
45
46
|
onClick: handleUndo,
|
|
46
47
|
isDisabled: !canUndo,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
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';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, RedoIcon, ToolbarTooltip } from
|
|
8
|
-
import { redoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, RedoIcon, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { redoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export const RedoButton = ({
|
|
11
11
|
api
|
|
12
12
|
}) => {
|
|
@@ -37,7 +37,8 @@ export const RedoButton = ({
|
|
|
37
37
|
})
|
|
38
38
|
}, /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
39
39
|
iconBefore: /*#__PURE__*/React.createElement(RedoIcon, {
|
|
40
|
-
label: formatMessage(undoRedoMessages.redo)
|
|
40
|
+
label: formatMessage(undoRedoMessages.redo),
|
|
41
|
+
size: "small"
|
|
41
42
|
}),
|
|
42
43
|
onClick: handleRedo,
|
|
43
44
|
isDisabled: !canRedo,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
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';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, ToolbarTooltip, UndoIcon } from
|
|
8
|
-
import { undoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, ToolbarTooltip, UndoIcon } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { undoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export const UndoButton = ({
|
|
11
11
|
api
|
|
12
12
|
}) => {
|
|
@@ -37,7 +37,8 @@ export const UndoButton = ({
|
|
|
37
37
|
})
|
|
38
38
|
}, /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
39
39
|
iconBefore: /*#__PURE__*/React.createElement(UndoIcon, {
|
|
40
|
-
label: formatMessage(undoRedoMessages.undo)
|
|
40
|
+
label: formatMessage(undoRedoMessages.undo),
|
|
41
|
+
size: "small"
|
|
41
42
|
}),
|
|
42
43
|
onClick: handleUndo,
|
|
43
44
|
isDisabled: !canUndo,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from
|
|
2
|
+
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { RedoButton } from './RedoButton';
|
|
4
|
-
import { UndoButton } from
|
|
4
|
+
import { UndoButton } from './UndoButton';
|
|
5
5
|
export const getToolbarComponents = api => {
|
|
6
6
|
return [{
|
|
7
7
|
type: UNDO_BUTTON.type,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
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';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, RedoIcon, ToolbarTooltip } from
|
|
8
|
-
import { redoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, RedoIcon, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { redoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export var RedoButton = function RedoButton(_ref) {
|
|
11
11
|
var api = _ref.api;
|
|
12
12
|
var _useIntl = useIntl(),
|
|
@@ -33,7 +33,8 @@ export var RedoButton = function RedoButton(_ref) {
|
|
|
33
33
|
})
|
|
34
34
|
}, /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
35
35
|
iconBefore: /*#__PURE__*/React.createElement(RedoIcon, {
|
|
36
|
-
label: formatMessage(undoRedoMessages.redo)
|
|
36
|
+
label: formatMessage(undoRedoMessages.redo),
|
|
37
|
+
size: "small"
|
|
37
38
|
}),
|
|
38
39
|
onClick: handleRedo,
|
|
39
40
|
isDisabled: !canRedo,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
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';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, ToolbarTooltip, UndoIcon } from
|
|
8
|
-
import { undoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, ToolbarTooltip, UndoIcon } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { undoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export var UndoButton = function UndoButton(_ref) {
|
|
11
11
|
var api = _ref.api;
|
|
12
12
|
var _useIntl = useIntl(),
|
|
@@ -33,7 +33,8 @@ export var UndoButton = function UndoButton(_ref) {
|
|
|
33
33
|
})
|
|
34
34
|
}, /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
35
35
|
iconBefore: /*#__PURE__*/React.createElement(UndoIcon, {
|
|
36
|
-
label: formatMessage(undoRedoMessages.undo)
|
|
36
|
+
label: formatMessage(undoRedoMessages.undo),
|
|
37
|
+
size: "small"
|
|
37
38
|
}),
|
|
38
39
|
onClick: handleUndo,
|
|
39
40
|
isDisabled: !canUndo,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from
|
|
2
|
+
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { RedoButton } from './RedoButton';
|
|
4
|
-
import { UndoButton } from
|
|
4
|
+
import { UndoButton } from './UndoButton';
|
|
5
5
|
export var getToolbarComponents = function getToolbarComponents(api) {
|
|
6
6
|
return [{
|
|
7
7
|
type: UNDO_BUTTON.type,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type RedoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type UndoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from
|
|
2
|
-
import type { RegisterComponent } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<UndoRedoPlugin>) => RegisterComponent[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type RedoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type UndoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from
|
|
2
|
-
import type { RegisterComponent } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<UndoRedoPlugin>) => RegisterComponent[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
40
|
"@atlaskit/editor-toolbar": "^0.3.0",
|
|
41
41
|
"@atlaskit/editor-toolbar-model": "^0.1.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/icon": "^28.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^11.4.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^107.
|
|
49
|
+
"@atlaskit/editor-common": "^107.28.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
52
52
|
},
|