@atlaskit/editor-plugin-undo-redo 1.5.1 → 1.6.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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 1.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#133191](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133191)
|
|
14
|
+
[`78a1927084934`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/78a1927084934) -
|
|
15
|
+
[ux] Remove icon migration feature gate and migrate new icons on primary toolbar
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.5.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -12,8 +12,8 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
14
14
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
15
|
-
var _redo = _interopRequireDefault(require("@atlaskit/icon/
|
|
16
|
-
var _undo = _interopRequireDefault(require("@atlaskit/icon/
|
|
15
|
+
var _redo = _interopRequireDefault(require("@atlaskit/icon/core/migration/redo"));
|
|
16
|
+
var _undo = _interopRequireDefault(require("@atlaskit/icon/core/migration/undo"));
|
|
17
17
|
var _commands = require("../../commands");
|
|
18
18
|
/**
|
|
19
19
|
* @jsxRuntime classic
|
|
@@ -81,7 +81,9 @@ var ToolbarUndoRedo = exports.ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
81
81
|
keymap: _keymaps.undo
|
|
82
82
|
}),
|
|
83
83
|
iconBefore: (0, _react.jsx)(_undo.default, {
|
|
84
|
-
label: ""
|
|
84
|
+
label: "",
|
|
85
|
+
color: "currentColor",
|
|
86
|
+
spacing: "spacious"
|
|
85
87
|
}),
|
|
86
88
|
testId: "ak-editor-toolbar-button-undo"
|
|
87
89
|
}), (0, _react.jsx)(_uiMenu.ToolbarButton, {
|
|
@@ -94,7 +96,9 @@ var ToolbarUndoRedo = exports.ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
94
96
|
keymap: _keymaps.redo
|
|
95
97
|
}),
|
|
96
98
|
iconBefore: (0, _react.jsx)(_redo.default, {
|
|
97
|
-
label: ""
|
|
99
|
+
label: "",
|
|
100
|
+
color: "currentColor",
|
|
101
|
+
spacing: "spacious"
|
|
98
102
|
}),
|
|
99
103
|
testId: "ak-editor-toolbar-button-redo",
|
|
100
104
|
"aria-label": (0, _keymaps.tooltip)(_keymaps.redo, labelRedo),
|
|
@@ -10,8 +10,8 @@ import { getAriaKeyshortcuts, redo as redoKeymap, tooltip, ToolTipContent, undo
|
|
|
10
10
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
|
-
import RedoIcon from '@atlaskit/icon/
|
|
14
|
-
import UndoIcon from '@atlaskit/icon/
|
|
13
|
+
import RedoIcon from '@atlaskit/icon/core/migration/redo';
|
|
14
|
+
import UndoIcon from '@atlaskit/icon/core/migration/undo';
|
|
15
15
|
import { redoFromToolbar, undoFromToolbar } from '../../commands';
|
|
16
16
|
const closeTypeAheadAndRunCommand = (editorView, api) => command => {
|
|
17
17
|
var _api$typeAhead, _api$typeAhead$action;
|
|
@@ -74,7 +74,9 @@ export const ToolbarUndoRedo = ({
|
|
|
74
74
|
keymap: undoKeymap
|
|
75
75
|
}),
|
|
76
76
|
iconBefore: jsx(UndoIcon, {
|
|
77
|
-
label: ""
|
|
77
|
+
label: "",
|
|
78
|
+
color: "currentColor",
|
|
79
|
+
spacing: "spacious"
|
|
78
80
|
}),
|
|
79
81
|
testId: "ak-editor-toolbar-button-undo"
|
|
80
82
|
}), jsx(ToolbarButton, {
|
|
@@ -87,7 +89,9 @@ export const ToolbarUndoRedo = ({
|
|
|
87
89
|
keymap: redoKeymap
|
|
88
90
|
}),
|
|
89
91
|
iconBefore: jsx(RedoIcon, {
|
|
90
|
-
label: ""
|
|
92
|
+
label: "",
|
|
93
|
+
color: "currentColor",
|
|
94
|
+
spacing: "spacious"
|
|
91
95
|
}),
|
|
92
96
|
testId: "ak-editor-toolbar-button-redo",
|
|
93
97
|
"aria-label": tooltip(redoKeymap, labelRedo),
|
|
@@ -10,8 +10,8 @@ import { getAriaKeyshortcuts, redo as redoKeymap, tooltip, ToolTipContent, undo
|
|
|
10
10
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
|
-
import RedoIcon from '@atlaskit/icon/
|
|
14
|
-
import UndoIcon from '@atlaskit/icon/
|
|
13
|
+
import RedoIcon from '@atlaskit/icon/core/migration/redo';
|
|
14
|
+
import UndoIcon from '@atlaskit/icon/core/migration/undo';
|
|
15
15
|
import { redoFromToolbar, undoFromToolbar } from '../../commands';
|
|
16
16
|
var closeTypeAheadAndRunCommand = function closeTypeAheadAndRunCommand(editorView, api) {
|
|
17
17
|
return function (command) {
|
|
@@ -73,7 +73,9 @@ export var ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
73
73
|
keymap: undoKeymap
|
|
74
74
|
}),
|
|
75
75
|
iconBefore: jsx(UndoIcon, {
|
|
76
|
-
label: ""
|
|
76
|
+
label: "",
|
|
77
|
+
color: "currentColor",
|
|
78
|
+
spacing: "spacious"
|
|
77
79
|
}),
|
|
78
80
|
testId: "ak-editor-toolbar-button-undo"
|
|
79
81
|
}), jsx(ToolbarButton, {
|
|
@@ -86,7 +88,9 @@ export var ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
86
88
|
keymap: redoKeymap
|
|
87
89
|
}),
|
|
88
90
|
iconBefore: jsx(RedoIcon, {
|
|
89
|
-
label: ""
|
|
91
|
+
label: "",
|
|
92
|
+
color: "currentColor",
|
|
93
|
+
spacing: "spacious"
|
|
90
94
|
}),
|
|
91
95
|
testId: "ak-editor-toolbar-button-redo",
|
|
92
96
|
"aria-label": tooltip(redoKeymap, labelRedo),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Lego",
|
|
12
12
|
"singleton": true,
|
|
13
|
-
"releaseModel": "continuous",
|
|
14
13
|
"runReact18": false
|
|
15
14
|
},
|
|
16
15
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
@@ -32,12 +31,12 @@
|
|
|
32
31
|
".": "./src/index.ts"
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^89.0.0",
|
|
36
35
|
"@atlaskit/editor-plugin-history": "^1.3.0",
|
|
37
36
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
|
38
37
|
"@atlaskit/editor-plugin-type-ahead": "^1.8.0",
|
|
39
38
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
40
|
-
"@atlaskit/icon": "^22.
|
|
39
|
+
"@atlaskit/icon": "^22.16.0",
|
|
41
40
|
"@babel/runtime": "^7.0.0",
|
|
42
41
|
"@emotion/react": "^11.7.1"
|
|
43
42
|
},
|