@atlaskit/editor-plugin-undo-redo 3.2.1 → 3.2.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 +6 -0
- package/dist/es2019/ui/ToolbarUndoRedo/RedoButton.js +7 -7
- package/dist/es2019/ui/ToolbarUndoRedo/UndoButton.js +7 -7
- package/dist/es2019/ui/ToolbarUndoRedo/toolbar-components.js +2 -2
- package/dist/esm/ui/ToolbarUndoRedo/RedoButton.js +7 -7
- package/dist/esm/ui/ToolbarUndoRedo/UndoButton.js +7 -7
- package/dist/esm/ui/ToolbarUndoRedo/toolbar-components.js +2 -2
- package/dist/types/ui/ToolbarUndoRedo/RedoButton.d.ts +3 -3
- package/dist/types/ui/ToolbarUndoRedo/UndoButton.d.ts +3 -3
- package/dist/types/ui/ToolbarUndoRedo/toolbar-components.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/RedoButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/UndoButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarUndoRedo/toolbar-components.d.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { getAriaKeyshortcuts, redo as redoKeymap, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, RedoIcon, ToolbarTooltip } from
|
|
8
|
-
import { redoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, RedoIcon, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { redoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export const RedoButton = ({
|
|
11
11
|
api
|
|
12
12
|
}) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { getAriaKeyshortcuts, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, ToolbarTooltip, UndoIcon } from
|
|
8
|
-
import { undoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, ToolbarTooltip, UndoIcon } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { undoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export const UndoButton = ({
|
|
11
11
|
api
|
|
12
12
|
}) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from
|
|
2
|
+
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { RedoButton } from './RedoButton';
|
|
4
|
-
import { UndoButton } from
|
|
4
|
+
import { UndoButton } from './UndoButton';
|
|
5
5
|
export const getToolbarComponents = api => {
|
|
6
6
|
return [{
|
|
7
7
|
type: UNDO_BUTTON.type,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { getAriaKeyshortcuts, redo as redoKeymap, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, RedoIcon, ToolbarTooltip } from
|
|
8
|
-
import { redoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, RedoIcon, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { redoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export var RedoButton = function RedoButton(_ref) {
|
|
11
11
|
var api = _ref.api;
|
|
12
12
|
var _useIntl = useIntl(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useIntl } from
|
|
3
|
-
import { useSharedPluginStateWithSelector } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { getAriaKeyshortcuts, ToolTipContent, undo as undoKeymap } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { useEditorToolbar } from
|
|
7
|
-
import { ToolbarButton, ToolbarTooltip, UndoIcon } from
|
|
8
|
-
import { undoFromToolbarWithAnalytics } from
|
|
9
|
-
import { forceFocus } from
|
|
6
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
7
|
+
import { ToolbarButton, ToolbarTooltip, UndoIcon } from '@atlaskit/editor-toolbar';
|
|
8
|
+
import { undoFromToolbarWithAnalytics } from '../../pm-plugins/commands';
|
|
9
|
+
import { forceFocus } from '../../pm-plugins/utils';
|
|
10
10
|
export var UndoButton = function UndoButton(_ref) {
|
|
11
11
|
var api = _ref.api;
|
|
12
12
|
var _useIntl = useIntl(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from
|
|
2
|
+
import { UNDO_BUTTON, REDO_BUTTON, TRACK_CHANGES_GROUP_RANK, TRACK_CHANGES_GROUP } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { RedoButton } from './RedoButton';
|
|
4
|
-
import { UndoButton } from
|
|
4
|
+
import { UndoButton } from './UndoButton';
|
|
5
5
|
export var getToolbarComponents = function getToolbarComponents(api) {
|
|
6
6
|
return [{
|
|
7
7
|
type: UNDO_BUTTON.type,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type RedoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type UndoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from
|
|
2
|
-
import type { RegisterComponent } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<UndoRedoPlugin>) => RegisterComponent[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type RedoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ExtractInjectionAPI } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
type UndoButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<UndoRedoPlugin>;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from
|
|
2
|
-
import type { RegisterComponent } from
|
|
3
|
-
import type { UndoRedoPlugin } from
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { UndoRedoPlugin } from '../../undoRedoPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<UndoRedoPlugin>) => RegisterComponent[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
40
|
"@atlaskit/editor-toolbar": "^0.3.0",
|
|
41
41
|
"@atlaskit/editor-toolbar-model": "^0.1.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/icon": "^28.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/tmp-editor-statsig": "^11.3.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|