@atlaskit/editor-core 187.48.2 → 187.48.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 +520 -507
- package/dist/cjs/plugins/insert-block/index.js +11 -15
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +3 -1
- package/dist/cjs/plugins/submit-editor/index.js +6 -5
- package/dist/cjs/ui/Appearance/Comment/Comment.js +19 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +6 -10
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +3 -1
- package/dist/es2019/plugins/submit-editor/index.js +6 -5
- package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -10
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/insert-block/index.js +7 -11
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +3 -1
- package/dist/esm/plugins/submit-editor/index.js +6 -5
- package/dist/esm/ui/Appearance/Comment/Comment.js +16 -10
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/labs/next/presets/default.d.ts +230 -0
- package/dist/types/plugins/insert-block/types.d.ts +3 -1
- package/dist/types/plugins/submit-editor/index.d.ts +6 -3
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +298 -0
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
- package/dist/types-ts4.5/plugins/submit-editor/index.d.ts +8 -3
- package/package.json +2 -2
|
@@ -12,6 +12,7 @@ import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
|
12
12
|
import type codeBlockPlugin from '../code-block';
|
|
13
13
|
import type panelPlugin from '../panel';
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
|
+
import type { MediaNextEditorPluginType } from '../media/next-plugin-type';
|
|
15
16
|
export type InsertBlockPluginDependencies = [
|
|
16
17
|
FeatureFlagsPlugin,
|
|
17
18
|
OptionalPlugin<typeof tablesPlugin>,
|
|
@@ -25,5 +26,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
25
26
|
OptionalPlugin<QuickInsertPlugin>,
|
|
26
27
|
OptionalPlugin<RulePlugin>,
|
|
27
28
|
OptionalPlugin<typeof codeBlockPlugin>,
|
|
28
|
-
OptionalPlugin<typeof panelPlugin
|
|
29
|
+
OptionalPlugin<typeof panelPlugin>,
|
|
30
|
+
OptionalPlugin<MediaNextEditorPluginType>
|
|
29
31
|
];
|
|
@@ -2,10 +2,15 @@ import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { Dispatch } from '../../event-dispatcher';
|
|
4
4
|
import type { EditorProps } from '../../types/editor-props';
|
|
5
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
6
|
-
|
|
5
|
+
import type { NextEditorPlugin, OptionalPlugin, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { MediaNextEditorPluginType } from '../../plugins/media/next-plugin-type';
|
|
7
|
+
export declare function createPlugin(eventDispatch: Dispatch, api: ExtractInjectionAPI<SubmitEditorPlugin> | undefined, onSave?: (editorView: EditorView) => void): SafePlugin | undefined;
|
|
7
8
|
type Config = EditorProps['onSave'];
|
|
8
|
-
|
|
9
|
+
type SubmitEditorPlugin = NextEditorPlugin<'submitEditor', {
|
|
9
10
|
pluginConfiguration: Config | undefined;
|
|
11
|
+
dependencies: [
|
|
12
|
+
OptionalPlugin<MediaNextEditorPluginType>
|
|
13
|
+
];
|
|
10
14
|
}>;
|
|
15
|
+
declare const submitEditorPlugin: SubmitEditorPlugin;
|
|
11
16
|
export default submitEditorPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.48.
|
|
3
|
+
"version": "187.48.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
75
75
|
"@atlaskit/editor-plugin-floating-toolbar": "^0.5.0",
|
|
76
76
|
"@atlaskit/editor-plugin-focus": "^0.2.0",
|
|
77
|
-
"@atlaskit/editor-plugin-grid": "^0.
|
|
77
|
+
"@atlaskit/editor-plugin-grid": "^0.3.0",
|
|
78
78
|
"@atlaskit/editor-plugin-guideline": "^0.5.0",
|
|
79
79
|
"@atlaskit/editor-plugin-hyperlink": "^0.5.0",
|
|
80
80
|
"@atlaskit/editor-plugin-image-upload": "^0.2.0",
|