@atlaskit/editor-plugin-undo-redo 1.6.11 → 1.6.12
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 +8 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{attach-input-meta.js → pm-plugins/attach-input-meta.js} +1 -1
- package/dist/cjs/pm-plugins/keymaps.js +1 -1
- package/dist/cjs/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/{attach-input-meta.js → pm-plugins/attach-input-meta.js} +1 -1
- package/dist/es2019/pm-plugins/keymaps.js +1 -1
- package/dist/es2019/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/es2019/{plugin.js → undoRedoPlugin.js} +0 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{attach-input-meta.js → pm-plugins/attach-input-meta.js} +1 -1
- package/dist/esm/pm-plugins/keymaps.js +1 -1
- package/dist/esm/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/esm/{plugin.js → undoRedoPlugin.js} +0 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/ui/ToolbarUndoRedo/index.d.ts +1 -1
- package/dist/types/undoRedoPlugin.d.ts +2 -0
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/index.d.ts +1 -1
- package/dist/types-ts4.5/undoRedoPlugin.d.ts +2 -0
- package/package.json +6 -3
- package/dist/types/plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugin.d.ts +0 -2
- /package/dist/cjs/{commands.js → pm-plugins/commands.js} +0 -0
- /package/dist/cjs/{enums.js → pm-plugins/enums.js} +0 -0
- /package/dist/cjs/{plugin.js → undoRedoPlugin.js} +0 -0
- /package/dist/cjs/{types.js → undoRedoPluginType.js} +0 -0
- /package/dist/es2019/{commands.js → pm-plugins/commands.js} +0 -0
- /package/dist/es2019/{enums.js → pm-plugins/enums.js} +0 -0
- /package/dist/es2019/{types.js → undoRedoPluginType.js} +0 -0
- /package/dist/esm/{commands.js → pm-plugins/commands.js} +0 -0
- /package/dist/esm/{enums.js → pm-plugins/enums.js} +0 -0
- /package/dist/esm/{types.js → undoRedoPluginType.js} +0 -0
- /package/dist/types/{attach-input-meta.d.ts → pm-plugins/attach-input-meta.d.ts} +0 -0
- /package/dist/types/{commands.d.ts → pm-plugins/commands.d.ts} +0 -0
- /package/dist/types/{enums.d.ts → pm-plugins/enums.d.ts} +0 -0
- /package/dist/types/{types.d.ts → undoRedoPluginType.d.ts} +0 -0
- /package/dist/types-ts4.5/{attach-input-meta.d.ts → pm-plugins/attach-input-meta.d.ts} +0 -0
- /package/dist/types-ts4.5/{commands.d.ts → pm-plugins/commands.d.ts} +0 -0
- /package/dist/types-ts4.5/{enums.d.ts → pm-plugins/enums.d.ts} +0 -0
- /package/dist/types-ts4.5/{types.d.ts → undoRedoPluginType.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 1.6.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#171551](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171551)
|
|
8
|
+
[`702c918817e78`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/702c918817e78) -
|
|
9
|
+
ED-25817: refactors plugins to meet folder standards
|
|
10
|
+
|
|
3
11
|
## 1.6.11
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "undoRedoPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _undoRedoPlugin.undoRedoPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _undoRedoPlugin = require("./undoRedoPlugin");
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.attachInputMeta = void 0;
|
|
7
|
-
var _pluginKey = require("./
|
|
7
|
+
var _pluginKey = require("./plugin-key");
|
|
8
8
|
var attachInputMeta = exports.attachInputMeta = function attachInputMeta(inputSource) {
|
|
9
9
|
return function (command) {
|
|
10
10
|
return function (state, dispatch) {
|
|
@@ -7,7 +7,7 @@ exports.keymapPlugin = keymapPlugin;
|
|
|
7
7
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
8
8
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
9
9
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
10
|
-
var _commands = require("
|
|
10
|
+
var _commands = require("./commands");
|
|
11
11
|
function keymapPlugin() {
|
|
12
12
|
var list = {};
|
|
13
13
|
(0, _keymaps.bindKeymapWithCommand)((0, _keymaps.findKeyMapForBrowser)(_keymaps.redo), _commands.redoFromKeyboard, list);
|
|
@@ -14,7 +14,7 @@ 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/migration/redo"));
|
|
16
16
|
var _undo = _interopRequireDefault(require("@atlaskit/icon/core/migration/undo"));
|
|
17
|
-
var _commands = require("../../commands");
|
|
17
|
+
var _commands = require("../../pm-plugins/commands");
|
|
18
18
|
/**
|
|
19
19
|
* @jsxRuntime classic
|
|
20
20
|
* @jsx jsx
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { undoRedoPlugin } from './
|
|
1
|
+
export { undoRedoPlugin } from './undoRedoPlugin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bindKeymapWithCommand, findKeyMapForBrowser, isCapsLockOnAndModifyKeyboardEvent, redo, undo } from '@atlaskit/editor-common/keymaps';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
|
-
import { redoFromKeyboard, undoFromKeyboard } from '
|
|
4
|
+
import { redoFromKeyboard, undoFromKeyboard } from './commands';
|
|
5
5
|
export function keymapPlugin() {
|
|
6
6
|
const list = {};
|
|
7
7
|
bindKeymapWithCommand(findKeyMapForBrowser(redo), redoFromKeyboard, list);
|
|
@@ -12,7 +12,7 @@ import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/style
|
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
13
|
import RedoIcon from '@atlaskit/icon/core/migration/redo';
|
|
14
14
|
import UndoIcon from '@atlaskit/icon/core/migration/undo';
|
|
15
|
-
import { redoFromToolbar, undoFromToolbar } from '../../commands';
|
|
15
|
+
import { redoFromToolbar, undoFromToolbar } from '../../pm-plugins/commands';
|
|
16
16
|
const closeTypeAheadAndRunCommand = (editorView, api) => command => {
|
|
17
17
|
var _api$typeAhead, _api$typeAhead$action;
|
|
18
18
|
if (!editorView) {
|
|
@@ -2,7 +2,6 @@ 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
|
-
|
|
6
5
|
import ToolbarUndoRedo from './ui/ToolbarUndoRedo';
|
|
7
6
|
export const undoRedoPlugin = ({
|
|
8
7
|
api
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { undoRedoPlugin } from './
|
|
1
|
+
export { undoRedoPlugin } from './undoRedoPlugin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bindKeymapWithCommand, findKeyMapForBrowser, isCapsLockOnAndModifyKeyboardEvent, redo, undo } from '@atlaskit/editor-common/keymaps';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
|
-
import { redoFromKeyboard, undoFromKeyboard } from '
|
|
4
|
+
import { redoFromKeyboard, undoFromKeyboard } from './commands';
|
|
5
5
|
export function keymapPlugin() {
|
|
6
6
|
var list = {};
|
|
7
7
|
bindKeymapWithCommand(findKeyMapForBrowser(redo), redoFromKeyboard, list);
|
|
@@ -12,7 +12,7 @@ import { buttonGroupStyle, separatorStyles } from '@atlaskit/editor-common/style
|
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
13
|
import RedoIcon from '@atlaskit/icon/core/migration/redo';
|
|
14
14
|
import UndoIcon from '@atlaskit/icon/core/migration/undo';
|
|
15
|
-
import { redoFromToolbar, undoFromToolbar } from '../../commands';
|
|
15
|
+
import { redoFromToolbar, undoFromToolbar } from '../../pm-plugins/commands';
|
|
16
16
|
var closeTypeAheadAndRunCommand = function closeTypeAheadAndRunCommand(editorView, api) {
|
|
17
17
|
return function (command) {
|
|
18
18
|
var _api$typeAhead;
|
|
@@ -2,7 +2,6 @@ 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
|
-
|
|
6
5
|
import ToolbarUndoRedo from './ui/ToolbarUndoRedo';
|
|
7
6
|
export var undoRedoPlugin = function undoRedoPlugin(_ref) {
|
|
8
7
|
var _api$primaryToolbar;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { undoRedoPlugin } from './
|
|
2
|
-
export type { UndoRedoPlugin } from './
|
|
1
|
+
export { undoRedoPlugin } from './undoRedoPlugin';
|
|
2
|
+
export type { UndoRedoPlugin } from './undoRedoPluginType';
|
|
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import type { UndoRedoPlugin } from '../../
|
|
10
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
11
11
|
export interface Props {
|
|
12
12
|
undoDisabled?: boolean;
|
|
13
13
|
redoDisabled?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { undoRedoPlugin } from './
|
|
2
|
-
export type { UndoRedoPlugin } from './
|
|
1
|
+
export { undoRedoPlugin } from './undoRedoPlugin';
|
|
2
|
+
export type { UndoRedoPlugin } from './undoRedoPluginType';
|
|
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import type { UndoRedoPlugin } from '../../
|
|
10
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
11
11
|
export interface Props {
|
|
12
12
|
undoDisabled?: boolean;
|
|
13
13
|
redoDisabled?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.12",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^96.
|
|
34
|
+
"@atlaskit/editor-common": "^96.3.0",
|
|
35
35
|
"@atlaskit/editor-plugin-history": "^1.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-type-ahead": "^1.11.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
39
|
-
"@atlaskit/icon": "^23.
|
|
39
|
+
"@atlaskit/icon": "^23.1.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@emotion/react": "^11.7.1"
|
|
42
42
|
},
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"techstack": {
|
|
51
51
|
"@atlassian/frontend": {
|
|
52
|
+
"code-structure": [
|
|
53
|
+
"editor-plugin"
|
|
54
|
+
],
|
|
52
55
|
"import-structure": [
|
|
53
56
|
"atlassian-conventions"
|
|
54
57
|
],
|
package/dist/types/plugin.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|