@atlaskit/editor-core 188.0.12 → 188.2.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.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/labs/next/presets/universal.js +2 -1
- package/dist/cjs/plugins/annotation/toolbar.js +5 -23
- package/dist/cjs/plugins/code-block/index.js +3 -3
- package/dist/cjs/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +2 -2
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +4 -4
- package/dist/cjs/plugins/media/index.js +12 -6
- package/dist/cjs/plugins/media/utils/media-common.js +7 -109
- package/dist/cjs/plugins/media/utils/media-single.js +7 -68
- package/dist/cjs/plugins/panel/index.js +13 -13
- package/dist/cjs/plugins/paste/handlers.js +4 -4
- package/dist/cjs/plugins/paste/plugins/media.js +181 -0
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/cjs/plugins/paste/pm-plugins/main.js +6 -7
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
- package/dist/cjs/ui/Alignment/index.js +1 -1
- package/dist/cjs/ui/WithHelpTrigger/index.js +3 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +2 -1
- package/dist/es2019/plugins/annotation/toolbar.js +2 -18
- package/dist/es2019/plugins/code-block/index.js +3 -3
- package/dist/es2019/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/es2019/plugins/media/index.js +13 -6
- package/dist/es2019/plugins/media/utils/media-common.js +2 -107
- package/dist/es2019/plugins/media/utils/media-single.js +6 -72
- package/dist/es2019/plugins/panel/index.js +13 -13
- package/dist/es2019/plugins/paste/handlers.js +4 -4
- package/dist/es2019/plugins/paste/plugins/media.js +176 -0
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +3 -4
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
- package/dist/es2019/ui/Alignment/index.js +1 -1
- package/dist/es2019/ui/WithHelpTrigger/index.js +2 -7
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +2 -1
- package/dist/esm/plugins/annotation/toolbar.js +2 -18
- package/dist/esm/plugins/code-block/index.js +3 -3
- package/dist/esm/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/esm/plugins/media/index.js +13 -6
- package/dist/esm/plugins/media/utils/media-common.js +2 -106
- package/dist/esm/plugins/media/utils/media-single.js +6 -66
- package/dist/esm/plugins/panel/index.js +13 -13
- package/dist/esm/plugins/paste/handlers.js +4 -4
- package/dist/esm/plugins/paste/plugins/media.js +172 -0
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +3 -4
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
- package/dist/esm/ui/Alignment/index.js +1 -1
- package/dist/esm/ui/WithHelpTrigger/index.js +2 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/labs/next/presets/default.d.ts +6 -0
- package/dist/types/plugins/annotation/toolbar.d.ts +0 -17
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/media/next-plugin-type.d.ts +4 -0
- package/dist/types/plugins/media/utils/media-common.d.ts +2 -10
- package/dist/types/plugins/media/utils/media-single.d.ts +2 -4
- package/dist/types/plugins/paste/handlers.d.ts +2 -2
- package/dist/types/plugins/paste/index.d.ts +5 -2
- package/dist/types/plugins/paste/plugins/media.d.ts +12 -0
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +2 -2
- package/dist/types/plugins/paste/pm-plugins/main.d.ts +2 -2
- package/dist/types/ui/Alignment/index.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/WithHelpTrigger/index.d.ts +0 -4
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +6 -0
- package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +0 -17
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +4 -0
- package/dist/types-ts4.5/plugins/media/utils/media-common.d.ts +2 -10
- package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +2 -4
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +2 -2
- package/dist/types-ts4.5/plugins/paste/index.d.ts +5 -2
- package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +12 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +2 -2
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/Alignment/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +0 -4
- package/package.json +8 -7
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
- package/dist/cjs/plugins/help-dialog/commands.js +0 -19
- package/dist/cjs/plugins/help-dialog/index.js +0 -138
- package/dist/cjs/plugins/help-dialog/plugin-key.js +0 -8
- package/dist/cjs/plugins/help-dialog/ui/HelpDialogLoader.js +0 -24
- package/dist/cjs/plugins/help-dialog/ui/index.js +0 -568
- package/dist/cjs/plugins/help-dialog/ui/styles.js +0 -50
- package/dist/cjs/plugins/undo-redo/messages.js +0 -19
- package/dist/cjs/ui/Alignment/messages.js +0 -24
- package/dist/es2019/plugins/help-dialog/commands.js +0 -13
- package/dist/es2019/plugins/help-dialog/index.js +0 -125
- package/dist/es2019/plugins/help-dialog/plugin-key.js +0 -2
- package/dist/es2019/plugins/help-dialog/ui/HelpDialogLoader.js +0 -6
- package/dist/es2019/plugins/help-dialog/ui/index.js +0 -446
- package/dist/es2019/plugins/help-dialog/ui/styles.js +0 -110
- package/dist/es2019/plugins/undo-redo/messages.js +0 -13
- package/dist/es2019/ui/Alignment/messages.js +0 -18
- package/dist/esm/plugins/help-dialog/commands.js +0 -13
- package/dist/esm/plugins/help-dialog/index.js +0 -130
- package/dist/esm/plugins/help-dialog/plugin-key.js +0 -2
- package/dist/esm/plugins/help-dialog/ui/HelpDialogLoader.js +0 -12
- package/dist/esm/plugins/help-dialog/ui/index.js +0 -557
- package/dist/esm/plugins/help-dialog/ui/styles.js +0 -40
- package/dist/esm/plugins/undo-redo/messages.js +0 -13
- package/dist/esm/ui/Alignment/messages.js +0 -18
- package/dist/types/plugins/help-dialog/commands.d.ts +0 -3
- package/dist/types/plugins/help-dialog/index.d.ts +0 -18
- package/dist/types/plugins/help-dialog/plugin-key.d.ts +0 -2
- package/dist/types/plugins/help-dialog/ui/HelpDialogLoader.d.ts +0 -4
- package/dist/types/plugins/help-dialog/ui/index.d.ts +0 -27
- package/dist/types/plugins/help-dialog/ui/styles.d.ts +0 -33
- package/dist/types/plugins/undo-redo/messages.d.ts +0 -12
- package/dist/types/ui/Alignment/messages.d.ts +0 -17
- package/dist/types-ts4.5/plugins/help-dialog/commands.d.ts +0 -3
- package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +0 -18
- package/dist/types-ts4.5/plugins/help-dialog/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/help-dialog/ui/HelpDialogLoader.d.ts +0 -4
- package/dist/types-ts4.5/plugins/help-dialog/ui/index.d.ts +0 -27
- package/dist/types-ts4.5/plugins/help-dialog/ui/styles.d.ts +0 -33
- package/dist/types-ts4.5/plugins/undo-redo/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/Alignment/messages.d.ts +0 -17
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import type { Keymap } from '@atlaskit/editor-common/keymaps';
|
|
7
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type helpDialogPlugin from '..';
|
|
9
|
-
export interface Format {
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
keymap?: Function;
|
|
13
|
-
autoFormatting?: Function;
|
|
14
|
-
imageEnabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const formatting: (intl: IntlShape) => Format[];
|
|
17
|
-
export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
|
|
18
|
-
export declare const getComponentFromKeymap: (keymap: Keymap) => jsx.JSX.Element;
|
|
19
|
-
export interface HelpDialogProps {
|
|
20
|
-
pluginInjectionApi: ExtractInjectionAPI<typeof helpDialogPlugin> | undefined;
|
|
21
|
-
editorView: EditorView;
|
|
22
|
-
quickInsertEnabled?: boolean;
|
|
23
|
-
}
|
|
24
|
-
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<HelpDialogProps & WrappedComponentProps<"intl">>> & {
|
|
25
|
-
WrappedComponent: import("react").ComponentType<HelpDialogProps & WrappedComponentProps<"intl">>;
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const header: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const footer: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const contentWrapper: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const line: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const content: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const column: {
|
|
7
|
-
width: string;
|
|
8
|
-
'& > ul': {
|
|
9
|
-
padding: number;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare const row: import("@emotion/react").SerializedStyles;
|
|
13
|
-
export declare const dialogHeader: {
|
|
14
|
-
'&': {
|
|
15
|
-
fontSize: string;
|
|
16
|
-
fontWeight: number;
|
|
17
|
-
color: "var(--ds-text-subtle)";
|
|
18
|
-
letterSpacing: string;
|
|
19
|
-
lineHeight: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare const title: {
|
|
23
|
-
'&': {
|
|
24
|
-
fontSize: string;
|
|
25
|
-
fontWeight: number;
|
|
26
|
-
color: "var(--ds-text-subtle)";
|
|
27
|
-
letterSpacing: string;
|
|
28
|
-
lineHeight: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const codeSm: import("@emotion/react").SerializedStyles;
|
|
32
|
-
export declare const codeMd: import("@emotion/react").SerializedStyles;
|
|
33
|
-
export declare const codeLg: import("@emotion/react").SerializedStyles;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const alignmentMessages: {
|
|
2
|
-
alignLeft: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
alignCenter: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
alignRight: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
-
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
5
|
-
export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
|
|
6
|
-
interface HelpDialogSharedState {
|
|
7
|
-
isVisible: boolean;
|
|
8
|
-
imageEnabled: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const helpDialog: NextEditorPlugin<'helpDialog', {
|
|
11
|
-
dependencies: [
|
|
12
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
13
|
-
OptionalPlugin<QuickInsertPlugin>
|
|
14
|
-
];
|
|
15
|
-
pluginConfiguration: boolean;
|
|
16
|
-
sharedState: HelpDialogSharedState | null;
|
|
17
|
-
}>;
|
|
18
|
-
export default helpDialog;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import type { Keymap } from '@atlaskit/editor-common/keymaps';
|
|
7
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type helpDialogPlugin from '..';
|
|
9
|
-
export interface Format {
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
keymap?: Function;
|
|
13
|
-
autoFormatting?: Function;
|
|
14
|
-
imageEnabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const formatting: (intl: IntlShape) => Format[];
|
|
17
|
-
export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
|
|
18
|
-
export declare const getComponentFromKeymap: (keymap: Keymap) => jsx.JSX.Element;
|
|
19
|
-
export interface HelpDialogProps {
|
|
20
|
-
pluginInjectionApi: ExtractInjectionAPI<typeof helpDialogPlugin> | undefined;
|
|
21
|
-
editorView: EditorView;
|
|
22
|
-
quickInsertEnabled?: boolean;
|
|
23
|
-
}
|
|
24
|
-
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<HelpDialogProps & WrappedComponentProps<"intl">>> & {
|
|
25
|
-
WrappedComponent: import("react").ComponentType<HelpDialogProps & WrappedComponentProps<"intl">>;
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const header: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const footer: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const contentWrapper: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const line: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const content: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const column: {
|
|
7
|
-
width: string;
|
|
8
|
-
'& > ul': {
|
|
9
|
-
padding: number;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare const row: import("@emotion/react").SerializedStyles;
|
|
13
|
-
export declare const dialogHeader: {
|
|
14
|
-
'&': {
|
|
15
|
-
fontSize: string;
|
|
16
|
-
fontWeight: number;
|
|
17
|
-
color: "var(--ds-text-subtle)";
|
|
18
|
-
letterSpacing: string;
|
|
19
|
-
lineHeight: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare const title: {
|
|
23
|
-
'&': {
|
|
24
|
-
fontSize: string;
|
|
25
|
-
fontWeight: number;
|
|
26
|
-
color: "var(--ds-text-subtle)";
|
|
27
|
-
letterSpacing: string;
|
|
28
|
-
lineHeight: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const codeSm: import("@emotion/react").SerializedStyles;
|
|
32
|
-
export declare const codeMd: import("@emotion/react").SerializedStyles;
|
|
33
|
-
export declare const codeLg: import("@emotion/react").SerializedStyles;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const alignmentMessages: {
|
|
2
|
-
alignLeft: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
alignCenter: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
alignRight: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
};
|