@atlaskit/editor-plugin-undo-redo 8.0.0 → 8.0.2
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 +12 -0
- package/dist/cjs/ui/ToolbarUndoRedo/index.js +6 -2
- package/dist/es2019/ui/ToolbarUndoRedo/index.js +6 -2
- package/dist/esm/ui/ToolbarUndoRedo/index.js +6 -2
- package/dist/types/pm-plugins/commands.d.ts +9 -8
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/ui/ToolbarUndoRedo/index.d.ts +5 -4
- package/dist/types-ts4.5/pm-plugins/commands.d.ts +9 -8
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/index.d.ts +5 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -20,7 +20,8 @@ var _utils = require("../../pm-plugins/utils");
|
|
|
20
20
|
* @jsxRuntime classic
|
|
21
21
|
* @jsx jsx
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
24
25
|
|
|
25
26
|
var ToolbarUndoRedo = exports.ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
26
27
|
var disabled = _ref.disabled,
|
|
@@ -94,4 +95,7 @@ var ToolbarUndoRedo = exports.ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
94
95
|
}))
|
|
95
96
|
);
|
|
96
97
|
};
|
|
97
|
-
|
|
98
|
+
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
100
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarUndoRedo);
|
|
101
|
+
var _default = exports.default = _default_1;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
7
|
import { jsx } from '@emotion/react';
|
|
7
8
|
import { injectIntl } from 'react-intl-next';
|
|
8
9
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -90,4 +91,7 @@ export const ToolbarUndoRedo = ({
|
|
|
90
91
|
}))
|
|
91
92
|
);
|
|
92
93
|
};
|
|
93
|
-
|
|
94
|
+
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
96
|
+
const _default_1 = injectIntl(ToolbarUndoRedo);
|
|
97
|
+
export default _default_1;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
7
|
import { jsx } from '@emotion/react';
|
|
7
8
|
import { injectIntl } from 'react-intl-next';
|
|
8
9
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -86,4 +87,7 @@ export var ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
|
|
|
86
87
|
}))
|
|
87
88
|
);
|
|
88
89
|
};
|
|
89
|
-
|
|
90
|
+
|
|
91
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
92
|
+
var _default_1 = injectIntl(ToolbarUndoRedo);
|
|
93
|
+
export default _default_1;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const undoFromKeyboard: Command;
|
|
4
|
+
export declare const redoFromKeyboard: Command;
|
|
5
|
+
export declare const undoFromToolbar: Command;
|
|
6
|
+
export declare const redoFromToolbar: Command;
|
|
7
|
+
export declare const undoFromKeyboardWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
8
|
+
export declare const redoFromKeyboardWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
9
|
+
export declare const undoFromToolbarWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
10
|
+
export declare const redoFromToolbarWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const pluginKey: PluginKey
|
|
2
|
+
export declare const pluginKey: PluginKey;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
import type { ComponentType, FC } from 'react';
|
|
5
6
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
10
|
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
@@ -16,7 +17,7 @@ export interface Props {
|
|
|
16
17
|
undoDisabled?: boolean;
|
|
17
18
|
}
|
|
18
19
|
export declare const ToolbarUndoRedo: ({ disabled, isReducedSpacing, editorView, api, intl: { formatMessage }, }: Props & WrappedComponentProps) => jsx.JSX.Element;
|
|
19
|
-
declare const
|
|
20
|
-
WrappedComponent:
|
|
20
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
21
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
21
22
|
};
|
|
22
|
-
export default
|
|
23
|
+
export default _default_1;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const undoFromKeyboard: Command;
|
|
4
|
+
export declare const redoFromKeyboard: Command;
|
|
5
|
+
export declare const undoFromToolbar: Command;
|
|
6
|
+
export declare const redoFromToolbar: Command;
|
|
7
|
+
export declare const undoFromKeyboardWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
8
|
+
export declare const redoFromKeyboardWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
9
|
+
export declare const undoFromToolbarWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
10
|
+
export declare const redoFromToolbarWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const pluginKey: PluginKey
|
|
2
|
+
export declare const pluginKey: PluginKey;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
import type { ComponentType, FC } from 'react';
|
|
5
6
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
10
|
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
@@ -16,7 +17,7 @@ export interface Props {
|
|
|
16
17
|
undoDisabled?: boolean;
|
|
17
18
|
}
|
|
18
19
|
export declare const ToolbarUndoRedo: ({ disabled, isReducedSpacing, editorView, api, intl: { formatMessage }, }: Props & WrappedComponentProps) => jsx.JSX.Element;
|
|
19
|
-
declare const
|
|
20
|
-
WrappedComponent:
|
|
20
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
21
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
21
22
|
};
|
|
22
|
-
export default
|
|
23
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"@atlaskit/icon": "^32.0.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^37.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^112.
|
|
47
|
+
"@atlaskit/editor-common": "^112.2.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
50
|
},
|