@atlaskit/editor-core 190.1.14 → 190.1.16
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 +15 -0
- package/afm-cc/tsconfig.json +6 -0
- package/dist/cjs/plugins/index.js +0 -14
- package/dist/cjs/presets/default.js +2 -2
- package/dist/cjs/presets/universal.js +4 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/index.js +0 -2
- package/dist/es2019/presets/default.js +1 -1
- package/dist/es2019/presets/universal.js +4 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/index.js +0 -2
- package/dist/esm/presets/default.js +1 -1
- package/dist/esm/presets/universal.js +4 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/package.json +4 -2
- package/tsconfig.json +1 -1
- package/dist/cjs/plugins/breakout/commands/remove-breakout.js +0 -30
- package/dist/cjs/plugins/breakout/commands/set-breakout-mode.js +0 -29
- package/dist/cjs/plugins/breakout/index.js +0 -218
- package/dist/cjs/plugins/breakout/plugin-key.js +0 -11
- package/dist/cjs/plugins/breakout/types.js +0 -5
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +0 -133
- package/dist/cjs/plugins/breakout/utils/find-breakout-node.js +0 -42
- package/dist/cjs/plugins/breakout/utils/get-breakout-mode.js +0 -24
- package/dist/cjs/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -27
- package/dist/cjs/plugins/breakout/utils/is-supported-node.js +0 -15
- package/dist/cjs/plugins/undo-redo/attach-input-meta.js +0 -26
- package/dist/cjs/plugins/undo-redo/commands.js +0 -13
- package/dist/cjs/plugins/undo-redo/enums.js +0 -12
- package/dist/cjs/plugins/undo-redo/index.js +0 -44
- package/dist/cjs/plugins/undo-redo/pm-plugins/keymaps.js +0 -23
- package/dist/cjs/plugins/undo-redo/pm-plugins/main.js +0 -14
- package/dist/cjs/plugins/undo-redo/pm-plugins/plugin-key.js +0 -8
- package/dist/cjs/plugins/undo-redo/types.js +0 -5
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +0 -104
- package/dist/es2019/plugins/breakout/commands/remove-breakout.js +0 -22
- package/dist/es2019/plugins/breakout/commands/set-breakout-mode.js +0 -23
- package/dist/es2019/plugins/breakout/index.js +0 -208
- package/dist/es2019/plugins/breakout/plugin-key.js +0 -3
- package/dist/es2019/plugins/breakout/types.js +0 -1
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +0 -117
- package/dist/es2019/plugins/breakout/utils/find-breakout-node.js +0 -37
- package/dist/es2019/plugins/breakout/utils/get-breakout-mode.js +0 -16
- package/dist/es2019/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -22
- package/dist/es2019/plugins/breakout/utils/is-supported-node.js +0 -9
- package/dist/es2019/plugins/undo-redo/attach-input-meta.js +0 -16
- package/dist/es2019/plugins/undo-redo/commands.js +0 -7
- package/dist/es2019/plugins/undo-redo/enums.js +0 -6
- package/dist/es2019/plugins/undo-redo/index.js +0 -32
- package/dist/es2019/plugins/undo-redo/pm-plugins/keymaps.js +0 -17
- package/dist/es2019/plugins/undo-redo/pm-plugins/main.js +0 -9
- package/dist/es2019/plugins/undo-redo/pm-plugins/plugin-key.js +0 -2
- package/dist/es2019/plugins/undo-redo/types.js +0 -1
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +0 -94
- package/dist/esm/plugins/breakout/commands/remove-breakout.js +0 -24
- package/dist/esm/plugins/breakout/commands/set-breakout-mode.js +0 -23
- package/dist/esm/plugins/breakout/index.js +0 -211
- package/dist/esm/plugins/breakout/plugin-key.js +0 -5
- package/dist/esm/plugins/breakout/types.js +0 -1
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +0 -126
- package/dist/esm/plugins/breakout/utils/find-breakout-node.js +0 -37
- package/dist/esm/plugins/breakout/utils/get-breakout-mode.js +0 -18
- package/dist/esm/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -22
- package/dist/esm/plugins/breakout/utils/is-supported-node.js +0 -9
- package/dist/esm/plugins/undo-redo/attach-input-meta.js +0 -20
- package/dist/esm/plugins/undo-redo/commands.js +0 -7
- package/dist/esm/plugins/undo-redo/enums.js +0 -6
- package/dist/esm/plugins/undo-redo/index.js +0 -36
- package/dist/esm/plugins/undo-redo/pm-plugins/keymaps.js +0 -17
- package/dist/esm/plugins/undo-redo/pm-plugins/main.js +0 -8
- package/dist/esm/plugins/undo-redo/pm-plugins/plugin-key.js +0 -2
- package/dist/esm/plugins/undo-redo/types.js +0 -1
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +0 -93
- package/dist/types/plugins/breakout/commands/remove-breakout.d.ts +0 -2
- package/dist/types/plugins/breakout/commands/set-breakout-mode.d.ts +0 -3
- package/dist/types/plugins/breakout/index.d.ts +0 -12
- package/dist/types/plugins/breakout/plugin-key.d.ts +0 -5
- package/dist/types/plugins/breakout/types.d.ts +0 -4
- package/dist/types/plugins/breakout/ui/LayoutButton.d.ts +0 -17
- package/dist/types/plugins/breakout/utils/find-breakout-node.d.ts +0 -9
- package/dist/types/plugins/breakout/utils/get-breakout-mode.d.ts +0 -7
- package/dist/types/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +0 -9
- package/dist/types/plugins/breakout/utils/is-supported-node.d.ts +0 -6
- package/dist/types/plugins/undo-redo/attach-input-meta.d.ts +0 -5
- package/dist/types/plugins/undo-redo/commands.d.ts +0 -4
- package/dist/types/plugins/undo-redo/enums.d.ts +0 -4
- package/dist/types/plugins/undo-redo/index.d.ts +0 -3
- package/dist/types/plugins/undo-redo/pm-plugins/keymaps.d.ts +0 -2
- package/dist/types/plugins/undo-redo/pm-plugins/main.d.ts +0 -2
- package/dist/types/plugins/undo-redo/pm-plugins/plugin-key.d.ts +0 -2
- package/dist/types/plugins/undo-redo/types.d.ts +0 -6
- package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +0 -20
- package/dist/types-ts4.5/plugins/breakout/commands/remove-breakout.d.ts +0 -2
- package/dist/types-ts4.5/plugins/breakout/commands/set-breakout-mode.d.ts +0 -3
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/breakout/plugin-key.d.ts +0 -5
- package/dist/types-ts4.5/plugins/breakout/types.d.ts +0 -4
- package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +0 -17
- package/dist/types-ts4.5/plugins/breakout/utils/find-breakout-node.d.ts +0 -9
- package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +0 -7
- package/dist/types-ts4.5/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +0 -9
- package/dist/types-ts4.5/plugins/breakout/utils/is-supported-node.d.ts +0 -6
- package/dist/types-ts4.5/plugins/undo-redo/attach-input-meta.d.ts +0 -5
- package/dist/types-ts4.5/plugins/undo-redo/commands.d.ts +0 -4
- package/dist/types-ts4.5/plugins/undo-redo/enums.d.ts +0 -4
- package/dist/types-ts4.5/plugins/undo-redo/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/keymaps.d.ts +0 -2
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/main.d.ts +0 -2
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/undo-redo/types.d.ts +0 -9
- package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +0 -20
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Find the nearest parent node to the selection that supports breakout, or if the nearest
|
|
5
|
-
* matching parent node is the doc, return undefined.
|
|
6
|
-
* For depth, if a node is selected and supports breakout, return the depth of the node.
|
|
7
|
-
* @param selection Current editor selection
|
|
8
|
-
*/
|
|
9
|
-
export declare function findSupportedNodeForBreakout(selection: Selection): ContentNodeWithPos | undefined;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { BreakoutMode } from '@atlaskit/editor-common/types';
|
|
3
|
-
/**
|
|
4
|
-
* Get the current mode of the breakout at the selection
|
|
5
|
-
* @param state Current EditorState
|
|
6
|
-
*/
|
|
7
|
-
export declare function getBreakoutMode(state: EditorState): BreakoutMode | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
/**
|
|
3
|
-
* Check if breakout should be allowed for the current selection. If a node is selected,
|
|
4
|
-
* can this node be broken out, if text, can the enclosing parent node be broken out.
|
|
5
|
-
*
|
|
6
|
-
* Currently breakout of a node is not possible if it's nested in anything but the document, however
|
|
7
|
-
* this logic supports this changing.
|
|
8
|
-
*/
|
|
9
|
-
export declare function isBreakoutMarkAllowed(state: EditorState): boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
3
|
-
import type { HistoryPlugin } from '@atlaskit/editor-plugin-history';
|
|
4
|
-
export type UndoRedoPlugin = NextEditorPlugin<'undoRedoPlugin', {
|
|
5
|
-
dependencies: [
|
|
6
|
-
TypeAheadPlugin,
|
|
7
|
-
HistoryPlugin
|
|
8
|
-
];
|
|
9
|
-
}>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import type { UndoRedoPlugin } from '../../types';
|
|
7
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
-
export interface Props {
|
|
9
|
-
undoDisabled?: boolean;
|
|
10
|
-
redoDisabled?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
isReducedSpacing?: boolean;
|
|
13
|
-
editorView: EditorView;
|
|
14
|
-
api: ExtractInjectionAPI<UndoRedoPlugin> | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare const ToolbarUndoRedo: ({ disabled, isReducedSpacing, editorView, api, intl: { formatMessage }, }: Props & WrappedComponentProps) => jsx.JSX.Element;
|
|
17
|
-
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
18
|
-
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|