@atlaskit/editor-plugin-undo-redo 1.5.1 → 1.6.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,17 @@
1
1
  # @atlaskit/editor-plugin-undo-redo
2
2
 
3
+ ## 1.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#133191](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133191)
8
+ [`78a1927084934`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/78a1927084934) -
9
+ [ux] Remove icon migration feature gate and migrate new icons on primary toolbar
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.5.1
4
16
 
5
17
  ### 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/glyph/redo"));
16
- var _undo = _interopRequireDefault(require("@atlaskit/icon/glyph/undo"));
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/glyph/redo';
14
- import UndoIcon from '@atlaskit/icon/glyph/undo';
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/glyph/redo';
14
- import UndoIcon from '@atlaskit/icon/glyph/undo';
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.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Undo redo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/editor-common": "^88.0.0",
35
+ "@atlaskit/editor-common": "^88.1.0",
36
36
  "@atlaskit/editor-plugin-history": "^1.3.0",
37
37
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
38
38
  "@atlaskit/editor-plugin-type-ahead": "^1.8.0",