@atlaskit/editor-plugin-undo-redo 7.0.1 → 7.1.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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 7.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`00e69e0b7c839`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00e69e0b7c839) -
|
|
14
|
+
Clean up and removal of the `platform-visual-refresh-icons` feature flag.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 7.0.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
14
14
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
15
15
|
var _redo = _interopRequireDefault(require("@atlaskit/icon/core/redo"));
|
|
16
16
|
var _undo = _interopRequireDefault(require("@atlaskit/icon/core/undo"));
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _commands = require("../../pm-plugins/commands");
|
|
19
18
|
var _utils = require("../../pm-plugins/utils");
|
|
20
19
|
/**
|
|
@@ -52,12 +51,8 @@ var ToolbarUndoRedo = exports.ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
52
51
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
53
52
|
(0, _react.jsx)("span", {
|
|
54
53
|
css:
|
|
55
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
56
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
|
|
57
54
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
58
|
-
_styles.buttonGroupStyle
|
|
59
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
60
|
-
_styles.buttonGroupStyleBeforeVisualRefresh
|
|
55
|
+
_styles.buttonGroupStyle
|
|
61
56
|
}, (0, _react.jsx)(_uiMenu.ToolbarButton, {
|
|
62
57
|
buttonId: _uiMenu.TOOLBAR_BUTTON.UNDO,
|
|
63
58
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
@@ -8,11 +8,10 @@ import { injectIntl } from 'react-intl-next';
|
|
|
8
8
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
9
9
|
import { getAriaKeyshortcuts, redoAlt, tooltip, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
|
|
10
10
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
11
|
-
import { buttonGroupStyle,
|
|
11
|
+
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
13
|
import RedoIcon from '@atlaskit/icon/core/redo';
|
|
14
14
|
import UndoIcon from '@atlaskit/icon/core/undo';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { redoFromToolbarWithAnalytics, undoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
17
16
|
import { forceFocus } from '../../pm-plugins/utils';
|
|
18
17
|
export const ToolbarUndoRedo = ({
|
|
@@ -48,12 +47,8 @@ export const ToolbarUndoRedo = ({
|
|
|
48
47
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
48
|
jsx("span", {
|
|
50
49
|
css:
|
|
51
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
52
|
-
fg('platform-visual-refresh-icons') ?
|
|
53
50
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
54
|
-
buttonGroupStyle
|
|
55
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
56
|
-
buttonGroupStyleBeforeVisualRefresh
|
|
51
|
+
buttonGroupStyle
|
|
57
52
|
}, jsx(ToolbarButton, {
|
|
58
53
|
buttonId: TOOLBAR_BUTTON.UNDO,
|
|
59
54
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
@@ -8,11 +8,10 @@ import { injectIntl } from 'react-intl-next';
|
|
|
8
8
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
9
9
|
import { getAriaKeyshortcuts, redoAlt, tooltip, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
|
|
10
10
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
11
|
-
import { buttonGroupStyle,
|
|
11
|
+
import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
13
|
import RedoIcon from '@atlaskit/icon/core/redo';
|
|
14
14
|
import UndoIcon from '@atlaskit/icon/core/undo';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { redoFromToolbarWithAnalytics, undoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
17
16
|
import { forceFocus } from '../../pm-plugins/utils';
|
|
18
17
|
export var ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
@@ -44,12 +43,8 @@ export var ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
44
43
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
44
|
jsx("span", {
|
|
46
45
|
css:
|
|
47
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
48
|
-
fg('platform-visual-refresh-icons') ?
|
|
49
46
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
50
|
-
buttonGroupStyle
|
|
51
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
52
|
-
buttonGroupStyleBeforeVisualRefresh
|
|
47
|
+
buttonGroupStyle
|
|
53
48
|
}, jsx(ToolbarButton, {
|
|
54
49
|
buttonId: TOOLBAR_BUTTON.UNDO,
|
|
55
50
|
spacing: isReducedSpacing ? 'none' : 'default',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"@atlaskit/editor-plugin-toolbar": "^4.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-type-ahead": "^7.0.0",
|
|
36
36
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
37
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
37
|
+
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
38
38
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
39
|
-
"@atlaskit/icon": "^29.
|
|
39
|
+
"@atlaskit/icon": "^29.4.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^16.11.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^111.
|
|
47
|
+
"@atlaskit/editor-common": "^111.7.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
50
|
},
|