@atlaskit/editor-plugin-undo-redo 5.0.0 → 5.0.2

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,19 @@
1
1
  # @atlaskit/editor-plugin-undo-redo
2
2
 
3
+ ## 5.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`19b70bcbda751`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/19b70bcbda751) -
8
+ [ux] ED-29181 Keyboard shortcuts should appear disabled in menu item
9
+ - Updated dependencies
10
+
11
+ ## 5.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 5.0.0
4
18
 
5
19
  ### Patch Changes
@@ -32,6 +32,9 @@ var undoRedoPlugin = exports.undoRedoPlugin = function undoRedoPlugin(_ref) {
32
32
  var editorView = _ref2.editorView,
33
33
  disabled = _ref2.disabled,
34
34
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing;
35
+ if (!editorView) {
36
+ return null;
37
+ }
35
38
  return /*#__PURE__*/_react.default.createElement(_ToolbarUndoRedo.default, {
36
39
  isReducedSpacing: isToolbarReducedSpacing,
37
40
  disabled: disabled,
@@ -26,6 +26,9 @@ export const undoRedoPlugin = ({
26
26
  disabled,
27
27
  isToolbarReducedSpacing
28
28
  }) => {
29
+ if (!editorView) {
30
+ return null;
31
+ }
29
32
  return /*#__PURE__*/React.createElement(ToolbarUndoRedo, {
30
33
  isReducedSpacing: isToolbarReducedSpacing,
31
34
  disabled: disabled,
@@ -24,6 +24,9 @@ export var undoRedoPlugin = function undoRedoPlugin(_ref) {
24
24
  var editorView = _ref2.editorView,
25
25
  disabled = _ref2.disabled,
26
26
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing;
27
+ if (!editorView) {
28
+ return null;
29
+ }
27
30
  return /*#__PURE__*/React.createElement(ToolbarUndoRedo, {
28
31
  isReducedSpacing: isToolbarReducedSpacing,
29
32
  disabled: disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-undo-redo",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Undo redo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,19 +31,19 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/editor-plugin-history": "^5.0.0",
33
33
  "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
34
- "@atlaskit/editor-plugin-toolbar": "^2.0.0",
35
- "@atlaskit/editor-plugin-type-ahead": "^5.0.0",
34
+ "@atlaskit/editor-plugin-toolbar": "^2.1.0",
35
+ "@atlaskit/editor-plugin-type-ahead": "^5.2.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
- "@atlaskit/editor-toolbar": "^0.8.0",
37
+ "@atlaskit/editor-toolbar": "^0.9.0",
38
38
  "@atlaskit/editor-toolbar-model": "^0.2.0",
39
- "@atlaskit/icon": "^28.1.0",
39
+ "@atlaskit/icon": "^28.2.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
- "@atlaskit/tmp-editor-statsig": "^12.9.0",
41
+ "@atlaskit/tmp-editor-statsig": "^12.25.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/editor-common": "^109.0.0",
46
+ "@atlaskit/editor-common": "^109.10.0",
47
47
  "react": "^18.2.0",
48
48
  "react-intl-next": "npm:react-intl@^5.18.1"
49
49
  },