@atlaskit/editor-core 188.11.4 → 188.12.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 +10 -0
- package/dist/cjs/labs/next/presets/universal.js +3 -2
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/undo-redo/index.js +7 -16
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +59 -75
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +2 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/undo-redo/index.js +6 -17
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +60 -61
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +2 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/undo-redo/index.js +6 -16
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +56 -74
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/undo-redo/types.d.ts +2 -1
- package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +2 -6
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/undo-redo/types.d.ts +3 -1
- package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +2 -6
- package/package.json +4 -3
- package/dist/cjs/plugins/history/actions.js +0 -10
- package/dist/cjs/plugins/history/index.js +0 -75
- package/dist/cjs/plugins/history/pm-history-types.js +0 -5
- package/dist/cjs/plugins/history/reducer.js +0 -18
- package/dist/cjs/plugins/history/types.js +0 -5
- package/dist/cjs/plugins/history/utils.js +0 -19
- package/dist/es2019/plugins/history/actions.js +0 -4
- package/dist/es2019/plugins/history/index.js +0 -61
- package/dist/es2019/plugins/history/pm-history-types.js +0 -1
- package/dist/es2019/plugins/history/reducer.js +0 -12
- package/dist/es2019/plugins/history/types.js +0 -1
- package/dist/es2019/plugins/history/utils.js +0 -11
- package/dist/esm/plugins/history/actions.js +0 -4
- package/dist/esm/plugins/history/index.js +0 -68
- package/dist/esm/plugins/history/pm-history-types.js +0 -1
- package/dist/esm/plugins/history/reducer.js +0 -12
- package/dist/esm/plugins/history/types.js +0 -1
- package/dist/esm/plugins/history/utils.js +0 -13
- package/dist/types/plugins/history/actions.d.ts +0 -8
- package/dist/types/plugins/history/index.d.ts +0 -13
- package/dist/types/plugins/history/pm-history-types.d.ts +0 -17
- package/dist/types/plugins/history/reducer.d.ts +0 -4
- package/dist/types/plugins/history/types.d.ts +0 -4
- package/dist/types/plugins/history/utils.d.ts +0 -4
- package/dist/types-ts4.5/plugins/history/actions.d.ts +0 -8
- package/dist/types-ts4.5/plugins/history/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/history/pm-history-types.d.ts +0 -17
- package/dist/types-ts4.5/plugins/history/reducer.d.ts +0 -4
- package/dist/types-ts4.5/plugins/history/types.d.ts +0 -4
- package/dist/types-ts4.5/plugins/history/utils.d.ts +0 -4
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { HistoryPluginState } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Plugin that keeps track of whether undo and redo are currently available
|
|
6
|
-
* This is needed so we can enable/disable controls appropriately
|
|
7
|
-
*
|
|
8
|
-
* Actual undo/redo functionality is handled by prosemirror-history:
|
|
9
|
-
* https://github.com/ProseMirror/prosemirror-history
|
|
10
|
-
*/
|
|
11
|
-
export declare const historyPluginKey: PluginKey<HistoryPluginState>;
|
|
12
|
-
declare const historyPlugin: NextEditorPlugin<'history'>;
|
|
13
|
-
export default historyPlugin;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { StepMap, Step } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
-
export interface PmHistoryItem {
|
|
3
|
-
map: StepMap;
|
|
4
|
-
step: Step;
|
|
5
|
-
}
|
|
6
|
-
export interface PmHistoryLeaf {
|
|
7
|
-
values: PmHistoryItem[];
|
|
8
|
-
length: number;
|
|
9
|
-
}
|
|
10
|
-
export interface PmHistoryBranch {
|
|
11
|
-
items: PmHistoryLeaf;
|
|
12
|
-
eventCount: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PmHistoryPluginState {
|
|
15
|
-
done: PmHistoryBranch;
|
|
16
|
-
undone: PmHistoryBranch;
|
|
17
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Plugin, EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { PmHistoryPluginState } from './pm-history-types';
|
|
3
|
-
export declare const getPmHistoryPlugin: (state: EditorState) => Plugin | undefined;
|
|
4
|
-
export declare const getPmHistoryPluginState: (state: EditorState) => PmHistoryPluginState | undefined;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { HistoryPluginState } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Plugin that keeps track of whether undo and redo are currently available
|
|
6
|
-
* This is needed so we can enable/disable controls appropriately
|
|
7
|
-
*
|
|
8
|
-
* Actual undo/redo functionality is handled by prosemirror-history:
|
|
9
|
-
* https://github.com/ProseMirror/prosemirror-history
|
|
10
|
-
*/
|
|
11
|
-
export declare const historyPluginKey: PluginKey<HistoryPluginState>;
|
|
12
|
-
declare const historyPlugin: NextEditorPlugin<'history'>;
|
|
13
|
-
export default historyPlugin;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { StepMap, Step } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
-
export interface PmHistoryItem {
|
|
3
|
-
map: StepMap;
|
|
4
|
-
step: Step;
|
|
5
|
-
}
|
|
6
|
-
export interface PmHistoryLeaf {
|
|
7
|
-
values: PmHistoryItem[];
|
|
8
|
-
length: number;
|
|
9
|
-
}
|
|
10
|
-
export interface PmHistoryBranch {
|
|
11
|
-
items: PmHistoryLeaf;
|
|
12
|
-
eventCount: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PmHistoryPluginState {
|
|
15
|
-
done: PmHistoryBranch;
|
|
16
|
-
undone: PmHistoryBranch;
|
|
17
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Plugin, EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { PmHistoryPluginState } from './pm-history-types';
|
|
3
|
-
export declare const getPmHistoryPlugin: (state: EditorState) => Plugin | undefined;
|
|
4
|
-
export declare const getPmHistoryPluginState: (state: EditorState) => PmHistoryPluginState | undefined;
|