@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.
Files changed (53) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/labs/next/presets/universal.js +3 -2
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/plugins/undo-redo/index.js +7 -16
  5. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +59 -75
  6. package/dist/cjs/version-wrapper.js +1 -1
  7. package/dist/es2019/labs/next/presets/universal.js +2 -1
  8. package/dist/es2019/plugins/index.js +0 -1
  9. package/dist/es2019/plugins/undo-redo/index.js +6 -17
  10. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +60 -61
  11. package/dist/es2019/version-wrapper.js +1 -1
  12. package/dist/esm/labs/next/presets/universal.js +2 -1
  13. package/dist/esm/plugins/index.js +0 -1
  14. package/dist/esm/plugins/undo-redo/index.js +6 -16
  15. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +56 -74
  16. package/dist/esm/version-wrapper.js +1 -1
  17. package/dist/types/plugins/index.d.ts +0 -1
  18. package/dist/types/plugins/undo-redo/types.d.ts +2 -1
  19. package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +2 -6
  20. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  21. package/dist/types-ts4.5/plugins/undo-redo/types.d.ts +3 -1
  22. package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +2 -6
  23. package/package.json +4 -3
  24. package/dist/cjs/plugins/history/actions.js +0 -10
  25. package/dist/cjs/plugins/history/index.js +0 -75
  26. package/dist/cjs/plugins/history/pm-history-types.js +0 -5
  27. package/dist/cjs/plugins/history/reducer.js +0 -18
  28. package/dist/cjs/plugins/history/types.js +0 -5
  29. package/dist/cjs/plugins/history/utils.js +0 -19
  30. package/dist/es2019/plugins/history/actions.js +0 -4
  31. package/dist/es2019/plugins/history/index.js +0 -61
  32. package/dist/es2019/plugins/history/pm-history-types.js +0 -1
  33. package/dist/es2019/plugins/history/reducer.js +0 -12
  34. package/dist/es2019/plugins/history/types.js +0 -1
  35. package/dist/es2019/plugins/history/utils.js +0 -11
  36. package/dist/esm/plugins/history/actions.js +0 -4
  37. package/dist/esm/plugins/history/index.js +0 -68
  38. package/dist/esm/plugins/history/pm-history-types.js +0 -1
  39. package/dist/esm/plugins/history/reducer.js +0 -12
  40. package/dist/esm/plugins/history/types.js +0 -1
  41. package/dist/esm/plugins/history/utils.js +0 -13
  42. package/dist/types/plugins/history/actions.d.ts +0 -8
  43. package/dist/types/plugins/history/index.d.ts +0 -13
  44. package/dist/types/plugins/history/pm-history-types.d.ts +0 -17
  45. package/dist/types/plugins/history/reducer.d.ts +0 -4
  46. package/dist/types/plugins/history/types.d.ts +0 -4
  47. package/dist/types/plugins/history/utils.d.ts +0 -4
  48. package/dist/types-ts4.5/plugins/history/actions.d.ts +0 -8
  49. package/dist/types-ts4.5/plugins/history/index.d.ts +0 -13
  50. package/dist/types-ts4.5/plugins/history/pm-history-types.d.ts +0 -17
  51. package/dist/types-ts4.5/plugins/history/reducer.d.ts +0 -4
  52. package/dist/types-ts4.5/plugins/history/types.d.ts +0 -4
  53. 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 { HistoryAction } from './actions';
2
- import { HistoryPluginState } from './types';
3
- declare const reducer: (state: HistoryPluginState, action: HistoryAction) => HistoryPluginState;
4
- export default reducer;
@@ -1,4 +0,0 @@
1
- export interface HistoryPluginState {
2
- canUndo: boolean;
3
- canRedo: boolean;
4
- }
@@ -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,8 +0,0 @@
1
- export declare enum HistoryActionTypes {
2
- UPDATE = "UPDATE"
3
- }
4
- export interface HistoryAction {
5
- type: HistoryActionTypes.UPDATE;
6
- canUndo: boolean;
7
- canRedo: boolean;
8
- }
@@ -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 { HistoryAction } from './actions';
2
- import { HistoryPluginState } from './types';
3
- declare const reducer: (state: HistoryPluginState, action: HistoryAction) => HistoryPluginState;
4
- export default reducer;
@@ -1,4 +0,0 @@
1
- export interface HistoryPluginState {
2
- canUndo: boolean;
3
- canRedo: boolean;
4
- }
@@ -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;