@atlaskit/editor-plugin-undo-redo 3.2.4 → 3.2.5
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 3.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
|
|
8
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 3.2.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -8,12 +8,12 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
10
10
|
export interface Props {
|
|
11
|
-
|
|
12
|
-
redoDisabled?: boolean;
|
|
11
|
+
api: ExtractInjectionAPI<UndoRedoPlugin> | undefined;
|
|
13
12
|
disabled?: boolean;
|
|
14
|
-
isReducedSpacing?: boolean;
|
|
15
13
|
editorView: EditorView;
|
|
16
|
-
|
|
14
|
+
isReducedSpacing?: boolean;
|
|
15
|
+
redoDisabled?: boolean;
|
|
16
|
+
undoDisabled?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare const ToolbarUndoRedo: ({ disabled, isReducedSpacing, editorView, api, intl: { formatMessage }, }: Props & WrappedComponentProps) => jsx.JSX.Element;
|
|
19
19
|
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
@@ -7,6 +7,10 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
|
7
7
|
import { type InputSource } from './pm-plugins/enums';
|
|
8
8
|
export type UndoRedoAction = (inputSource?: InputSource) => boolean;
|
|
9
9
|
export type UndoRedoPlugin = NextEditorPlugin<'undoRedoPlugin', {
|
|
10
|
+
actions: {
|
|
11
|
+
redo: UndoRedoAction;
|
|
12
|
+
undo: UndoRedoAction;
|
|
13
|
+
};
|
|
10
14
|
dependencies: [
|
|
11
15
|
TypeAheadPlugin,
|
|
12
16
|
HistoryPlugin,
|
|
@@ -14,8 +18,4 @@ export type UndoRedoPlugin = NextEditorPlugin<'undoRedoPlugin', {
|
|
|
14
18
|
OptionalPlugin<AnalyticsPlugin>,
|
|
15
19
|
OptionalPlugin<ToolbarPlugin>
|
|
16
20
|
];
|
|
17
|
-
actions: {
|
|
18
|
-
undo: UndoRedoAction;
|
|
19
|
-
redo: UndoRedoAction;
|
|
20
|
-
};
|
|
21
21
|
}>;
|
|
@@ -8,12 +8,12 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
10
10
|
export interface Props {
|
|
11
|
-
|
|
12
|
-
redoDisabled?: boolean;
|
|
11
|
+
api: ExtractInjectionAPI<UndoRedoPlugin> | undefined;
|
|
13
12
|
disabled?: boolean;
|
|
14
|
-
isReducedSpacing?: boolean;
|
|
15
13
|
editorView: EditorView;
|
|
16
|
-
|
|
14
|
+
isReducedSpacing?: boolean;
|
|
15
|
+
redoDisabled?: boolean;
|
|
16
|
+
undoDisabled?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare const ToolbarUndoRedo: ({ disabled, isReducedSpacing, editorView, api, intl: { formatMessage }, }: Props & WrappedComponentProps) => jsx.JSX.Element;
|
|
19
19
|
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
@@ -7,6 +7,10 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
|
7
7
|
import { type InputSource } from './pm-plugins/enums';
|
|
8
8
|
export type UndoRedoAction = (inputSource?: InputSource) => boolean;
|
|
9
9
|
export type UndoRedoPlugin = NextEditorPlugin<'undoRedoPlugin', {
|
|
10
|
+
actions: {
|
|
11
|
+
redo: UndoRedoAction;
|
|
12
|
+
undo: UndoRedoAction;
|
|
13
|
+
};
|
|
10
14
|
dependencies: [
|
|
11
15
|
TypeAheadPlugin,
|
|
12
16
|
HistoryPlugin,
|
|
@@ -14,8 +18,4 @@ export type UndoRedoPlugin = NextEditorPlugin<'undoRedoPlugin', {
|
|
|
14
18
|
OptionalPlugin<AnalyticsPlugin>,
|
|
15
19
|
OptionalPlugin<ToolbarPlugin>
|
|
16
20
|
];
|
|
17
|
-
actions: {
|
|
18
|
-
undo: UndoRedoAction;
|
|
19
|
-
redo: UndoRedoAction;
|
|
20
|
-
};
|
|
21
21
|
}>;
|