@atlaskit/editor-plugin-undo-redo 1.6.13 → 1.6.14

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,11 @@
1
1
  # @atlaskit/editor-plugin-undo-redo
2
2
 
3
+ ## 1.6.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.6.13
4
10
 
5
11
  ### Patch Changes
@@ -10,7 +10,13 @@ var _keymap = require("@atlaskit/editor-prosemirror/keymap");
10
10
  var _commands = require("./commands");
11
11
  function keymapPlugin() {
12
12
  var list = {};
13
+
14
+ // Ignored via go/ees005
15
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
13
16
  (0, _keymaps.bindKeymapWithCommand)((0, _keymaps.findKeyMapForBrowser)(_keymaps.redo), _commands.redoFromKeyboard, list);
17
+
18
+ // Ignored via go/ees005
19
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
14
20
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.undo.common, _commands.undoFromKeyboard, list);
15
21
  return new _safePlugin.SafePlugin({
16
22
  props: {
@@ -10,6 +10,8 @@ var _keymaps = require("./pm-plugins/keymaps");
10
10
  var _main = require("./pm-plugins/main");
11
11
  var _ToolbarUndoRedo = _interopRequireDefault(require("./ui/ToolbarUndoRedo"));
12
12
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line import/no-named-as-default
13
15
 
14
16
  var undoRedoPlugin = exports.undoRedoPlugin = function undoRedoPlugin(_ref) {
15
17
  var _api$primaryToolbar;
@@ -4,12 +4,18 @@ import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
4
4
  import { redoFromKeyboard, undoFromKeyboard } from './commands';
5
5
  export function keymapPlugin() {
6
6
  const list = {};
7
+
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7
10
  bindKeymapWithCommand(findKeyMapForBrowser(redo), redoFromKeyboard, list);
11
+
12
+ // Ignored via go/ees005
13
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8
14
  bindKeymapWithCommand(undo.common, undoFromKeyboard, list);
9
15
  return new SafePlugin({
10
16
  props: {
11
17
  handleKeyDown(view, event) {
12
- let keyboardEvent = isCapsLockOnAndModifyKeyboardEvent(event);
18
+ const keyboardEvent = isCapsLockOnAndModifyKeyboardEvent(event);
13
19
  return keydownHandler(list)(view, keyboardEvent);
14
20
  }
15
21
  }
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import { keymapPlugin } from './pm-plugins/keymaps';
3
3
  import { createPlugin } from './pm-plugins/main';
4
4
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
+ // Ignored via go/ees005
6
+ // eslint-disable-next-line import/no-named-as-default
5
7
  import ToolbarUndoRedo from './ui/ToolbarUndoRedo';
6
8
  export const undoRedoPlugin = ({
7
9
  api
@@ -4,7 +4,13 @@ import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
4
4
  import { redoFromKeyboard, undoFromKeyboard } from './commands';
5
5
  export function keymapPlugin() {
6
6
  var list = {};
7
+
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7
10
  bindKeymapWithCommand(findKeyMapForBrowser(redo), redoFromKeyboard, list);
11
+
12
+ // Ignored via go/ees005
13
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8
14
  bindKeymapWithCommand(undo.common, undoFromKeyboard, list);
9
15
  return new SafePlugin({
10
16
  props: {
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import { keymapPlugin } from './pm-plugins/keymaps';
3
3
  import { createPlugin } from './pm-plugins/main';
4
4
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
+ // Ignored via go/ees005
6
+ // eslint-disable-next-line import/no-named-as-default
5
7
  import ToolbarUndoRedo from './ui/ToolbarUndoRedo';
6
8
  export var undoRedoPlugin = function undoRedoPlugin(_ref) {
7
9
  var _api$primaryToolbar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-undo-redo",
3
- "version": "1.6.13",
3
+ "version": "1.6.14",
4
4
  "description": "Undo redo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^97.0.0",
34
+ "@atlaskit/editor-common": "^98.0.0",
35
35
  "@atlaskit/editor-plugin-history": "^1.3.0",
36
36
  "@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",