@atlaskit/editor-core 187.31.2 → 187.31.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 +20 -0
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +2 -3
- package/dist/cjs/create-editor/create-plugins-list.js +2 -28
- package/dist/cjs/create-editor/create-preset.js +36 -0
- package/dist/cjs/labs/next/presets/useUniversalPreset.js +3 -3
- package/dist/cjs/plugins/insert-block/index.js +13 -12
- package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +5 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +2 -3
- package/dist/es2019/create-editor/create-plugins-list.js +2 -23
- package/dist/es2019/create-editor/create-preset.js +25 -0
- package/dist/es2019/labs/next/presets/useUniversalPreset.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +13 -10
- package/dist/es2019/plugins/type-ahead/pm-plugins/reducer.js +5 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorViewInternal.js +2 -3
- package/dist/esm/create-editor/create-plugins-list.js +2 -27
- package/dist/esm/create-editor/create-preset.js +29 -0
- package/dist/esm/labs/next/presets/useUniversalPreset.js +1 -1
- package/dist/esm/plugins/insert-block/index.js +13 -12
- package/dist/esm/plugins/type-ahead/pm-plugins/reducer.js +5 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-plugins-list.d.ts +2 -3
- package/dist/types/create-editor/create-preset.d.ts +3 -0
- package/dist/types/plugins/base/plugin.d.ts +2 -2
- package/dist/types/plugins/breakout/index.d.ts +2 -2
- package/dist/types/plugins/extension/index.d.ts +8 -8
- package/dist/types/plugins/extension/nodeviews/extension.d.ts +3 -3
- package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/index.d.ts +2 -2
- package/dist/types/plugins/media/next-plugin-type.d.ts +12 -12
- package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -4
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +2 -3
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +3 -0
- package/dist/types-ts4.5/plugins/base/plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/extension/index.d.ts +8 -8
- package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +3 -3
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
- package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +12 -12
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +4 -4
- package/package.json +8 -8
- package/report.api.md +12 -12
- package/tmp/api-report-tmp.d.ts +0 -1897
|
@@ -4,7 +4,7 @@ import type { EditorPluginFeatureProps } from '../types/editor-props';
|
|
|
4
4
|
import type { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
|
|
5
5
|
import type { DefaultPresetPluginOptions } from '../labs/next/presets/default';
|
|
6
6
|
import type { EditorPresetProps } from '../labs/next/presets/types';
|
|
7
|
-
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
7
|
+
import type { EditorPresetBuilder, EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
8
8
|
export declare function getScrollGutterOptions(props: EditorProps): ScrollGutterPluginOptions | undefined;
|
|
9
9
|
export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
|
|
10
10
|
/**
|
|
@@ -13,5 +13,4 @@ export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProp
|
|
|
13
13
|
* Note: The order that presets are added determines
|
|
14
14
|
* their placement in the editor toolbar
|
|
15
15
|
*/
|
|
16
|
-
export default function createPluginsList(props: EditorProps,
|
|
17
|
-
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): EditorPresetBuilder<any, any>;
|
|
16
|
+
export default function createPluginsList(preset: EditorPresetBuilder<any, any>, props: EditorProps, pluginInjectionAPI?: EditorPluginInjectionAPI): EditorPlugin[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '../../types';
|
|
2
2
|
import type { ScrollGutterPluginOptions } from './pm-plugins/scroll-gutter';
|
|
3
3
|
import type { InputTracking, BrowserFreezetracking } from '../../types/performance-tracking';
|
|
4
|
-
import type
|
|
4
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
5
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
export interface BasePluginOptions {
|
|
7
7
|
allowScrollGutter?: ScrollGutterPluginOptions;
|
|
@@ -15,7 +15,7 @@ export type BasePluginState = {
|
|
|
15
15
|
};
|
|
16
16
|
export type BasePlugin = NextEditorPlugin<'base', {
|
|
17
17
|
pluginConfiguration: BasePluginOptions | undefined;
|
|
18
|
-
dependencies: [
|
|
18
|
+
dependencies: [FeatureFlagsPlugin];
|
|
19
19
|
sharedState: BasePluginState;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const isChromeWithSelectionBug: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
3
|
import type { BreakoutPluginState } from './types';
|
|
4
4
|
interface BreakoutPluginOptions {
|
|
5
5
|
allowBreakoutButton?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare const breakoutPlugin: NextEditorPlugin<'breakout', {
|
|
8
8
|
pluginConfiguration: BreakoutPluginOptions | undefined;
|
|
9
|
-
dependencies: [
|
|
9
|
+
dependencies: [WidthPlugin];
|
|
10
10
|
sharedState: Partial<BreakoutPluginState>;
|
|
11
11
|
}>;
|
|
12
12
|
export default breakoutPlugin;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type
|
|
2
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
3
|
import type { NextEditorPlugin, EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
5
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
6
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
7
|
+
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
8
8
|
interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
9
9
|
allowAutoSave?: boolean;
|
|
10
10
|
breakoutEnabled?: boolean;
|
|
@@ -14,10 +14,10 @@ interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
|
14
14
|
declare const extensionPlugin: NextEditorPlugin<'extension', {
|
|
15
15
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
16
16
|
dependencies: [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
OptionalPlugin<
|
|
17
|
+
FeatureFlagsPlugin,
|
|
18
|
+
WidthPlugin,
|
|
19
|
+
DecorationsPlugin,
|
|
20
|
+
OptionalPlugin<ContextPanelPlugin>
|
|
21
21
|
];
|
|
22
22
|
}>;
|
|
23
23
|
export default extensionPlugin;
|
|
@@ -9,7 +9,7 @@ import type { ForwardRef, getPosHandler } from '../../../nodeviews';
|
|
|
9
9
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
10
10
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
11
11
|
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
12
|
-
import type {
|
|
12
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
13
13
|
interface ExtensionNodeViewOptions {
|
|
14
14
|
appearance?: EditorAppearance;
|
|
15
15
|
}
|
|
@@ -25,8 +25,8 @@ export declare class ExtensionNode extends ReactNodeView {
|
|
|
25
25
|
providerFactory: ProviderFactory;
|
|
26
26
|
extensionHandlers: ExtensionHandlers;
|
|
27
27
|
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
28
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
28
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
29
29
|
}, forwardRef: ForwardRef): JSX.Element;
|
|
30
30
|
}
|
|
31
|
-
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
31
|
+
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
32
32
|
export {};
|
|
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
4
4
|
import type { ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import type { ProsemirrorGetPosHandler } from '../../../../../nodeviews';
|
|
6
6
|
import type { EditorAppearance } from '../../../../../types/editor-appearance';
|
|
7
|
-
import type {
|
|
7
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
8
|
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
9
9
|
export interface Props {
|
|
10
10
|
node: PmNode;
|
|
@@ -16,7 +16,7 @@ export interface Props {
|
|
|
16
16
|
references?: ReferenceEntity[];
|
|
17
17
|
hideFrame?: boolean;
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* End workaround
|
|
@@ -5,7 +5,7 @@ import { getNodeRenderer, getExtensionModuleNodePrivateProps } from '@atlaskit/e
|
|
|
5
5
|
import type { ExtensionHandlers, ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import type { ProsemirrorGetPosHandler } from '../../../../nodeviews';
|
|
7
7
|
import type { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
-
import type {
|
|
8
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
9
|
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
10
10
|
export interface Props {
|
|
11
11
|
editorView: EditorView;
|
|
@@ -16,7 +16,7 @@ export interface Props {
|
|
|
16
16
|
extensionProvider?: Promise<ExtensionProvider>;
|
|
17
17
|
references?: ReferenceEntity[];
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
20
|
}
|
|
21
21
|
export interface State {
|
|
22
22
|
extensionProvider?: ExtensionProvider;
|
|
@@ -5,7 +5,7 @@ import type { ExtensionHandlers, ReferenceEntity } from '@atlaskit/editor-common
|
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
import type { ProsemirrorGetPosHandler } from '../../../../nodeviews/types';
|
|
7
7
|
import type { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
-
import type {
|
|
8
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
9
|
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
10
10
|
export interface Props {
|
|
11
11
|
editorView: EditorView;
|
|
@@ -16,7 +16,7 @@ export interface Props {
|
|
|
16
16
|
extensionHandlers: ExtensionHandlers;
|
|
17
17
|
references?: ReferenceEntity[];
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
20
|
}
|
|
21
21
|
export default class Extension extends Component<Props, any> {
|
|
22
22
|
static displayName: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
1
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
2
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
|
+
import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
4
|
+
import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
5
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
6
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
7
7
|
import type { MediaPluginState } from './pm-plugins/types';
|
|
8
8
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
9
9
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
@@ -13,12 +13,12 @@ import type { MediaOptions } from './types';
|
|
|
13
13
|
export type MediaNextEditorPluginType = NextEditorPlugin<'media', {
|
|
14
14
|
pluginConfiguration: MediaOptions | undefined;
|
|
15
15
|
dependencies: [
|
|
16
|
-
|
|
17
|
-
OptionalPlugin<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
FeatureFlagsPlugin,
|
|
17
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
18
|
+
GuidelinePlugin,
|
|
19
|
+
GridPlugin,
|
|
20
|
+
WidthPlugin,
|
|
21
|
+
DecorationsPlugin,
|
|
22
22
|
FloatingToolbarPlugin,
|
|
23
23
|
EditorDisabledPlugin,
|
|
24
24
|
FocusPlugin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
2
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
5
5
|
import type { IndentationButtons } from './pm-plugins/indentation-buttons';
|
|
6
6
|
type Config = {
|
|
@@ -10,9 +10,9 @@ type Config = {
|
|
|
10
10
|
declare const toolbarListsIndentationPlugin: NextEditorPlugin<'toolbarListsIndentation', {
|
|
11
11
|
pluginConfiguration: Config;
|
|
12
12
|
dependencies: [
|
|
13
|
-
|
|
13
|
+
FeatureFlagsPlugin,
|
|
14
14
|
ListPlugin,
|
|
15
|
-
OptionalPlugin<
|
|
15
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
16
16
|
];
|
|
17
17
|
sharedState: IndentationButtons | undefined;
|
|
18
18
|
}>;
|
|
@@ -4,7 +4,7 @@ import type { EditorPluginFeatureProps } from '../types/editor-props';
|
|
|
4
4
|
import type { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
|
|
5
5
|
import type { DefaultPresetPluginOptions } from '../labs/next/presets/default';
|
|
6
6
|
import type { EditorPresetProps } from '../labs/next/presets/types';
|
|
7
|
-
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
7
|
+
import type { EditorPresetBuilder, EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
8
8
|
export declare function getScrollGutterOptions(props: EditorProps): ScrollGutterPluginOptions | undefined;
|
|
9
9
|
export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
|
|
10
10
|
/**
|
|
@@ -13,5 +13,4 @@ export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProp
|
|
|
13
13
|
* Note: The order that presets are added determines
|
|
14
14
|
* their placement in the editor toolbar
|
|
15
15
|
*/
|
|
16
|
-
export default function createPluginsList(props: EditorProps,
|
|
17
|
-
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): EditorPresetBuilder<any, any>;
|
|
16
|
+
export default function createPluginsList(preset: EditorPresetBuilder<any, any>, props: EditorProps, pluginInjectionAPI?: EditorPluginInjectionAPI): EditorPlugin[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '../../types';
|
|
2
2
|
import type { ScrollGutterPluginOptions } from './pm-plugins/scroll-gutter';
|
|
3
3
|
import type { InputTracking, BrowserFreezetracking } from '../../types/performance-tracking';
|
|
4
|
-
import type
|
|
4
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
5
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
export interface BasePluginOptions {
|
|
7
7
|
allowScrollGutter?: ScrollGutterPluginOptions;
|
|
@@ -16,7 +16,7 @@ export type BasePluginState = {
|
|
|
16
16
|
export type BasePlugin = NextEditorPlugin<'base', {
|
|
17
17
|
pluginConfiguration: BasePluginOptions | undefined;
|
|
18
18
|
dependencies: [
|
|
19
|
-
|
|
19
|
+
FeatureFlagsPlugin
|
|
20
20
|
];
|
|
21
21
|
sharedState: BasePluginState;
|
|
22
22
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
3
|
import type { BreakoutPluginState } from './types';
|
|
4
4
|
interface BreakoutPluginOptions {
|
|
5
5
|
allowBreakoutButton?: boolean;
|
|
@@ -7,7 +7,7 @@ interface BreakoutPluginOptions {
|
|
|
7
7
|
declare const breakoutPlugin: NextEditorPlugin<'breakout', {
|
|
8
8
|
pluginConfiguration: BreakoutPluginOptions | undefined;
|
|
9
9
|
dependencies: [
|
|
10
|
-
|
|
10
|
+
WidthPlugin
|
|
11
11
|
];
|
|
12
12
|
sharedState: Partial<BreakoutPluginState>;
|
|
13
13
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type
|
|
2
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
3
|
import type { NextEditorPlugin, EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
5
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
6
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
7
|
+
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
8
8
|
interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
9
9
|
allowAutoSave?: boolean;
|
|
10
10
|
breakoutEnabled?: boolean;
|
|
@@ -14,10 +14,10 @@ interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
|
14
14
|
declare const extensionPlugin: NextEditorPlugin<'extension', {
|
|
15
15
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
16
16
|
dependencies: [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
OptionalPlugin<
|
|
17
|
+
FeatureFlagsPlugin,
|
|
18
|
+
WidthPlugin,
|
|
19
|
+
DecorationsPlugin,
|
|
20
|
+
OptionalPlugin<ContextPanelPlugin>
|
|
21
21
|
];
|
|
22
22
|
}>;
|
|
23
23
|
export default extensionPlugin;
|
|
@@ -9,7 +9,7 @@ import type { ForwardRef, getPosHandler } from '../../../nodeviews';
|
|
|
9
9
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
10
10
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
11
11
|
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
12
|
-
import type {
|
|
12
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
13
13
|
interface ExtensionNodeViewOptions {
|
|
14
14
|
appearance?: EditorAppearance;
|
|
15
15
|
}
|
|
@@ -25,8 +25,8 @@ export declare class ExtensionNode extends ReactNodeView {
|
|
|
25
25
|
providerFactory: ProviderFactory;
|
|
26
26
|
extensionHandlers: ExtensionHandlers;
|
|
27
27
|
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
28
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
28
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
29
29
|
}, forwardRef: ForwardRef): JSX.Element;
|
|
30
30
|
}
|
|
31
|
-
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
31
|
+
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
32
32
|
export {};
|
|
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
4
4
|
import type { ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import type { ProsemirrorGetPosHandler } from '../../../../../nodeviews';
|
|
6
6
|
import type { EditorAppearance } from '../../../../../types/editor-appearance';
|
|
7
|
-
import type {
|
|
7
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
8
|
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
9
9
|
export interface Props {
|
|
10
10
|
node: PmNode;
|
|
@@ -16,7 +16,7 @@ export interface Props {
|
|
|
16
16
|
references?: ReferenceEntity[];
|
|
17
17
|
hideFrame?: boolean;
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* End workaround
|
|
@@ -5,7 +5,7 @@ import { getNodeRenderer, getExtensionModuleNodePrivateProps } from '@atlaskit/e
|
|
|
5
5
|
import type { ExtensionHandlers, ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import type { ProsemirrorGetPosHandler } from '../../../../nodeviews';
|
|
7
7
|
import type { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
-
import type {
|
|
8
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
9
|
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
10
10
|
export interface Props {
|
|
11
11
|
editorView: EditorView;
|
|
@@ -16,7 +16,7 @@ export interface Props {
|
|
|
16
16
|
extensionProvider?: Promise<ExtensionProvider>;
|
|
17
17
|
references?: ReferenceEntity[];
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
20
|
}
|
|
21
21
|
export interface State {
|
|
22
22
|
extensionProvider?: ExtensionProvider;
|
|
@@ -5,7 +5,7 @@ import type { ExtensionHandlers, ReferenceEntity } from '@atlaskit/editor-common
|
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
import type { ProsemirrorGetPosHandler } from '../../../../nodeviews/types';
|
|
7
7
|
import type { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
-
import type {
|
|
8
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
9
|
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
10
10
|
export interface Props {
|
|
11
11
|
editorView: EditorView;
|
|
@@ -16,7 +16,7 @@ export interface Props {
|
|
|
16
16
|
extensionHandlers: ExtensionHandlers;
|
|
17
17
|
references?: ReferenceEntity[];
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
-
pluginInjectionApi: PluginInjectionAPIWithDependency<
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
20
|
}
|
|
21
21
|
export default class Extension extends Component<Props, any> {
|
|
22
22
|
static displayName: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
1
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
2
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
|
+
import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
4
|
+
import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
5
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
6
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
7
7
|
import type { MediaPluginState } from './pm-plugins/types';
|
|
8
8
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
9
9
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
@@ -13,12 +13,12 @@ import type { MediaOptions } from './types';
|
|
|
13
13
|
export type MediaNextEditorPluginType = NextEditorPlugin<'media', {
|
|
14
14
|
pluginConfiguration: MediaOptions | undefined;
|
|
15
15
|
dependencies: [
|
|
16
|
-
|
|
17
|
-
OptionalPlugin<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
FeatureFlagsPlugin,
|
|
17
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
18
|
+
GuidelinePlugin,
|
|
19
|
+
GridPlugin,
|
|
20
|
+
WidthPlugin,
|
|
21
|
+
DecorationsPlugin,
|
|
22
22
|
FloatingToolbarPlugin,
|
|
23
23
|
EditorDisabledPlugin,
|
|
24
24
|
FocusPlugin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
2
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
5
5
|
import type { IndentationButtons } from './pm-plugins/indentation-buttons';
|
|
6
6
|
type Config = {
|
|
@@ -10,9 +10,9 @@ type Config = {
|
|
|
10
10
|
declare const toolbarListsIndentationPlugin: NextEditorPlugin<'toolbarListsIndentation', {
|
|
11
11
|
pluginConfiguration: Config;
|
|
12
12
|
dependencies: [
|
|
13
|
-
|
|
13
|
+
FeatureFlagsPlugin,
|
|
14
14
|
ListPlugin,
|
|
15
|
-
OptionalPlugin<
|
|
15
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
16
16
|
];
|
|
17
17
|
sharedState: IndentationButtons | undefined;
|
|
18
18
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.31.
|
|
3
|
+
"version": "187.31.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"@atlaskit/checkbox": "^12.6.0",
|
|
55
55
|
"@atlaskit/code": "^14.6.0",
|
|
56
56
|
"@atlaskit/date": "^0.10.0",
|
|
57
|
-
"@atlaskit/datetime-picker": "^12.
|
|
57
|
+
"@atlaskit/datetime-picker": "^12.8.0",
|
|
58
58
|
"@atlaskit/editor-common": "^74.52.0",
|
|
59
59
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
60
60
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
61
61
|
"@atlaskit/editor-palette": "1.5.1",
|
|
62
62
|
"@atlaskit/editor-plugin-analytics": "^0.1.0",
|
|
63
63
|
"@atlaskit/editor-plugin-card": "^0.4.0",
|
|
64
|
-
"@atlaskit/editor-plugin-composition": "^0.0.
|
|
65
|
-
"@atlaskit/editor-plugin-content-insertion": "^0.0.
|
|
64
|
+
"@atlaskit/editor-plugin-composition": "^0.0.2",
|
|
65
|
+
"@atlaskit/editor-plugin-content-insertion": "^0.0.10",
|
|
66
66
|
"@atlaskit/editor-plugin-context-panel": "^0.1.0",
|
|
67
67
|
"@atlaskit/editor-plugin-decorations": "^0.1.0",
|
|
68
68
|
"@atlaskit/editor-plugin-editor-disabled": "^0.1.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@atlaskit/media-ui": "^24.0.0",
|
|
97
97
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
98
98
|
"@atlaskit/mention": "^22.1.0",
|
|
99
|
-
"@atlaskit/menu": "^1.
|
|
99
|
+
"@atlaskit/menu": "^1.10.0",
|
|
100
100
|
"@atlaskit/modal-dialog": "^12.6.0",
|
|
101
101
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
102
102
|
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@atlaskit/textfield": "^5.6.0",
|
|
115
115
|
"@atlaskit/theme": "^12.5.0",
|
|
116
116
|
"@atlaskit/toggle": "^12.6.0",
|
|
117
|
-
"@atlaskit/tokens": "^1.
|
|
117
|
+
"@atlaskit/tokens": "^1.16.0",
|
|
118
118
|
"@atlaskit/tooltip": "^17.8.0",
|
|
119
119
|
"@atlaskit/width-detector": "^4.1.0",
|
|
120
120
|
"@babel/runtime": "^7.0.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"@atlaskit/media-core": "^34.1.0",
|
|
159
159
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
160
160
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
161
|
-
"@atlaskit/menu": "^1.
|
|
161
|
+
"@atlaskit/menu": "^1.10.0",
|
|
162
162
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
163
163
|
"@atlaskit/renderer": "^108.11.0",
|
|
164
164
|
"@atlaskit/section-message": "^6.4.0",
|
|
@@ -268,4 +268,4 @@
|
|
|
268
268
|
"type": "boolean"
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
}
|
|
271
|
+
}
|
package/report.api.md
CHANGED
|
@@ -27,7 +27,7 @@ import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
|
27
27
|
import type { AllowedBlockTypes } from '@atlaskit/editor-common/types';
|
|
28
28
|
import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
29
29
|
import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
30
|
-
import type {
|
|
30
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
31
31
|
import type { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
32
32
|
import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
|
|
33
33
|
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
@@ -44,7 +44,7 @@ import { createTable } from '@atlaskit/editor-plugin-table/commands';
|
|
|
44
44
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
45
45
|
import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
46
46
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
47
|
-
import type {
|
|
47
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
48
48
|
import { dedupe } from '@atlaskit/editor-common/utils';
|
|
49
49
|
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
50
50
|
import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -73,7 +73,7 @@ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
|
73
73
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
74
74
|
import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
|
|
75
75
|
import { FC } from 'react';
|
|
76
|
-
import type
|
|
76
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
77
77
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
78
78
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
79
79
|
import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
|
|
@@ -81,8 +81,8 @@ import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
|
81
81
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
82
82
|
import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
83
83
|
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
84
|
-
import type {
|
|
85
|
-
import type {
|
|
84
|
+
import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
85
|
+
import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
86
86
|
import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
|
|
87
87
|
import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
88
88
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -166,7 +166,7 @@ import { UploadParams } from '@atlaskit/media-picker/types';
|
|
|
166
166
|
import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
|
|
167
167
|
import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
168
168
|
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
169
|
-
import type {
|
|
169
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
170
170
|
import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
|
|
171
171
|
import { WithIntlProps } from 'react-intl-next';
|
|
172
172
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
@@ -1208,12 +1208,12 @@ type MediaNextEditorPluginType = NextEditorPlugin<
|
|
|
1208
1208
|
{
|
|
1209
1209
|
pluginConfiguration: MediaOptions | undefined;
|
|
1210
1210
|
dependencies: [
|
|
1211
|
-
|
|
1212
|
-
OptionalPlugin<
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1211
|
+
FeatureFlagsPlugin,
|
|
1212
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
1213
|
+
GuidelinePlugin,
|
|
1214
|
+
GridPlugin,
|
|
1215
|
+
WidthPlugin,
|
|
1216
|
+
DecorationsPlugin,
|
|
1217
1217
|
FloatingToolbarPlugin,
|
|
1218
1218
|
EditorDisabledPlugin,
|
|
1219
1219
|
FocusPlugin,
|