@atlaskit/editor-core 183.1.6 → 184.0.4
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/.eslintrc.js +7 -3
- package/CHANGELOG.md +29 -0
- package/dist/cjs/labs/next/full-page.js +2 -6
- package/dist/cjs/labs/next/presets/create-stub-internal-apis.js +4 -2
- package/dist/cjs/labs/next/presets/default.js +2 -2
- package/dist/cjs/labs/next/presets/universal.js +2 -1
- package/dist/cjs/plugins/breakout/index.js +54 -35
- package/dist/cjs/plugins/card/toolbar.js +4 -3
- package/dist/cjs/plugins/collab-edit/plugin-state.js +2 -3
- package/dist/cjs/plugins/copy-button/commands.js +8 -1
- package/dist/cjs/plugins/extension/index.js +1 -1
- package/dist/cjs/plugins/extension/nodeviews/extension.js +5 -3
- package/dist/cjs/plugins/extension/pm-plugins/main.js +6 -6
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +34 -4
- package/dist/cjs/plugins/extension/ui/Extension/ExtensionComponent.js +4 -2
- package/dist/cjs/plugins/extension/ui/Extension/index.js +4 -2
- package/dist/cjs/plugins/help-dialog/index.js +12 -8
- package/dist/cjs/plugins/index.js +0 -14
- package/dist/cjs/plugins/layout/pm-plugins/main.js +0 -1
- package/dist/cjs/plugins/media/index.js +15 -5
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +22 -14
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +53 -34
- package/dist/cjs/plugins/media/styles.js +1 -1
- package/dist/cjs/plugins/media/toolbar/index.js +4 -3
- package/dist/cjs/plugins/paste/pm-plugins/main.js +7 -1
- package/dist/cjs/test-utils.js +6 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/cjs/ui/ColorPickerButton/index.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +6 -10
- package/dist/cjs/ui/ContentStyles/index.js +9 -10
- package/dist/cjs/ui/ContextPanel/index.js +67 -56
- package/dist/cjs/ui/MediaAndEmbedsToolbar/index.js +10 -11
- package/dist/cjs/ui/Resizer/index.js +8 -8
- package/dist/cjs/ui/WidthEmitter/index.js +10 -4
- package/dist/cjs/ui/styles.js +6 -0
- package/dist/cjs/utils/clipboard.js +18 -11
- package/dist/cjs/utils/performance/instrumented-plugin.js +14 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/labs/next/full-page.js +2 -5
- package/dist/es2019/labs/next/presets/create-stub-internal-apis.js +4 -2
- package/dist/es2019/labs/next/presets/default.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +2 -1
- package/dist/es2019/plugins/breakout/index.js +48 -31
- package/dist/es2019/plugins/card/toolbar.js +4 -3
- package/dist/es2019/plugins/collab-edit/plugin-state.js +2 -4
- package/dist/es2019/plugins/copy-button/commands.js +9 -2
- package/dist/es2019/plugins/extension/index.js +1 -1
- package/dist/es2019/plugins/extension/nodeviews/extension.js +5 -3
- package/dist/es2019/plugins/extension/pm-plugins/main.js +4 -4
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +38 -2
- package/dist/es2019/plugins/extension/ui/Extension/ExtensionComponent.js +4 -2
- package/dist/es2019/plugins/extension/ui/Extension/index.js +4 -2
- package/dist/es2019/plugins/help-dialog/index.js +14 -9
- package/dist/es2019/plugins/index.js +0 -2
- package/dist/es2019/plugins/layout/pm-plugins/main.js +0 -1
- package/dist/es2019/plugins/media/index.js +15 -5
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/index.js +21 -10
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +53 -33
- package/dist/es2019/plugins/media/styles.js +1 -7
- package/dist/es2019/plugins/media/toolbar/index.js +4 -4
- package/dist/es2019/plugins/paste/pm-plugins/main.js +7 -1
- package/dist/es2019/test-utils.js +6 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/es2019/ui/ColorPickerButton/index.js +2 -2
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +5 -10
- package/dist/es2019/ui/ContentStyles/index.js +1 -2
- package/dist/es2019/ui/ContextPanel/index.js +66 -43
- package/dist/es2019/ui/MediaAndEmbedsToolbar/index.js +8 -9
- package/dist/es2019/ui/Resizer/index.js +1 -1
- package/dist/es2019/ui/WidthEmitter/index.js +10 -4
- package/dist/es2019/ui/styles.js +6 -0
- package/dist/es2019/utils/clipboard.js +12 -7
- package/dist/es2019/utils/performance/instrumented-plugin.js +15 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/labs/next/full-page.js +2 -5
- package/dist/esm/labs/next/presets/create-stub-internal-apis.js +4 -2
- package/dist/esm/labs/next/presets/default.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +2 -1
- package/dist/esm/plugins/breakout/index.js +54 -35
- package/dist/esm/plugins/card/toolbar.js +4 -3
- package/dist/esm/plugins/collab-edit/plugin-state.js +2 -3
- package/dist/esm/plugins/copy-button/commands.js +9 -2
- package/dist/esm/plugins/extension/index.js +1 -1
- package/dist/esm/plugins/extension/nodeviews/extension.js +5 -3
- package/dist/esm/plugins/extension/pm-plugins/main.js +6 -6
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +33 -2
- package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +4 -2
- package/dist/esm/plugins/extension/ui/Extension/index.js +4 -2
- package/dist/esm/plugins/help-dialog/index.js +12 -8
- package/dist/esm/plugins/index.js +0 -2
- package/dist/esm/plugins/layout/pm-plugins/main.js +0 -1
- package/dist/esm/plugins/media/index.js +15 -5
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/index.js +22 -14
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +54 -35
- package/dist/esm/plugins/media/styles.js +2 -2
- package/dist/esm/plugins/media/toolbar/index.js +4 -3
- package/dist/esm/plugins/paste/pm-plugins/main.js +7 -1
- package/dist/esm/test-utils.js +6 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/esm/ui/ColorPickerButton/index.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +5 -10
- package/dist/esm/ui/ContentStyles/index.js +1 -2
- package/dist/esm/ui/ContextPanel/index.js +64 -53
- package/dist/esm/ui/MediaAndEmbedsToolbar/index.js +10 -11
- package/dist/esm/ui/Resizer/index.js +1 -1
- package/dist/esm/ui/WidthEmitter/index.js +10 -4
- package/dist/esm/ui/styles.js +6 -0
- package/dist/esm/utils/clipboard.js +16 -10
- package/dist/esm/utils/performance/instrumented-plugin.js +14 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/create-editor/get-plugins.d.ts +2 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/plugins/breakout/index.d.ts +4 -0
- package/dist/types/plugins/breakout/ui/LayoutButton.d.ts +1 -1
- package/dist/types/plugins/card/index.d.ts +2 -2
- package/dist/types/plugins/collab-edit/actions.d.ts +3 -2
- package/dist/types/plugins/collab-edit/events/handlers.d.ts +3 -3
- package/dist/types/plugins/collab-edit/events/initialize.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/send-transaction.d.ts +1 -1
- package/dist/types/plugins/collab-edit/index.d.ts +0 -1
- package/dist/types/plugins/collab-edit/native-collab-provider-plugin.d.ts +2 -2
- package/dist/types/plugins/collab-edit/participants.d.ts +1 -1
- package/dist/types/plugins/collab-edit/plugin.d.ts +0 -2
- package/dist/types/plugins/collab-edit/types.d.ts +1 -3
- package/dist/types/plugins/collab-edit/ui/to-avatar.d.ts +1 -1
- package/dist/types/plugins/collab-edit/utils.d.ts +2 -1
- package/dist/types/plugins/extension/index.d.ts +2 -1
- package/dist/types/plugins/extension/nodeviews/extension.d.ts +4 -1
- package/dist/types/plugins/extension/pm-plugins/main.d.ts +3 -1
- package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +6 -0
- package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +3 -0
- package/dist/types/plugins/extension/ui/Extension/index.d.ts +3 -0
- package/dist/types/plugins/help-dialog/index.d.ts +3 -1
- package/dist/types/plugins/index.d.ts +0 -3
- package/dist/types/plugins/media/index.d.ts +12 -2
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +4 -2
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/types.d.ts +2 -1
- package/dist/types/plugins/media/toolbar/index.d.ts +3 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +2 -2
- package/dist/types/test-utils.d.ts +3 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ColorPickerButton/index.d.ts +3 -3
- package/dist/types/ui/ContextPanel/index.d.ts +3 -4
- package/dist/types/ui/MediaAndEmbedsToolbar/index.d.ts +3 -1
- package/dist/types/ui/PluginSlot/index.d.ts +1 -1
- package/dist/types/ui/Resizer/types.d.ts +2 -2
- package/dist/types/utils/clipboard.d.ts +1 -0
- package/dist/types-ts4.5/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +2 -0
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/actions.d.ts +3 -2
- package/dist/types-ts4.5/plugins/collab-edit/events/handlers.d.ts +3 -3
- package/dist/types-ts4.5/plugins/collab-edit/events/initialize.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/events/send-transaction.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/collab-edit/native-collab-provider-plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/participants.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugins/collab-edit/types.d.ts +1 -3
- package/dist/types-ts4.5/plugins/collab-edit/ui/to-avatar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +2 -1
- package/dist/types-ts4.5/plugins/extension/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +4 -1
- package/dist/types-ts4.5/plugins/extension/pm-plugins/main.d.ts +3 -1
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +5 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/media/index.d.ts +9 -2
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaNodeView/index.d.ts +4 -2
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/types.d.ts +2 -1
- package/dist/types-ts4.5/plugins/media/toolbar/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/types.d.ts +2 -2
- package/dist/types-ts4.5/test-utils.d.ts +3 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +3 -4
- package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/index.d.ts +3 -1
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Resizer/types.d.ts +2 -2
- package/dist/types-ts4.5/utils/clipboard.d.ts +1 -0
- package/package.json +25 -23
- package/report.api.md +15 -63
- package/dist/cjs/plugins/collab-edit/provider/index.js +0 -5
- package/dist/cjs/plugins/collab-edit/provider/types.js +0 -5
- package/dist/cjs/plugins/grid/index.js +0 -207
- package/dist/cjs/plugins/grid/styles.js +0 -16
- package/dist/cjs/plugins/grid/types.js +0 -5
- package/dist/cjs/plugins/width/index.js +0 -88
- package/dist/cjs/ui/ContextPanel/context.js +0 -89
- package/dist/es2019/plugins/collab-edit/provider/index.js +0 -1
- package/dist/es2019/plugins/collab-edit/provider/types.js +0 -1
- package/dist/es2019/plugins/grid/index.js +0 -168
- package/dist/es2019/plugins/grid/styles.js +0 -36
- package/dist/es2019/plugins/grid/types.js +0 -1
- package/dist/es2019/plugins/width/index.js +0 -72
- package/dist/es2019/ui/ContextPanel/context.js +0 -65
- package/dist/esm/plugins/collab-edit/provider/index.js +0 -1
- package/dist/esm/plugins/collab-edit/provider/types.js +0 -1
- package/dist/esm/plugins/grid/index.js +0 -191
- package/dist/esm/plugins/grid/styles.js +0 -7
- package/dist/esm/plugins/grid/types.js +0 -1
- package/dist/esm/plugins/width/index.js +0 -78
- package/dist/esm/ui/ContextPanel/context.js +0 -79
- package/dist/types/plugins/collab-edit/provider/index.d.ts +0 -1
- package/dist/types/plugins/collab-edit/provider/types.d.ts +0 -1
- package/dist/types/plugins/grid/index.d.ts +0 -25
- package/dist/types/plugins/grid/styles.d.ts +0 -2
- package/dist/types/plugins/grid/types.d.ts +0 -7
- package/dist/types/plugins/width/index.d.ts +0 -18
- package/dist/types/ui/ContextPanel/context.d.ts +0 -24
- package/dist/types-ts4.5/plugins/collab-edit/provider/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/collab-edit/provider/types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/grid/index.d.ts +0 -27
- package/dist/types-ts4.5/plugins/grid/styles.d.ts +0 -2
- package/dist/types-ts4.5/plugins/grid/types.d.ts +0 -7
- package/dist/types-ts4.5/plugins/width/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +0 -24
|
@@ -5,6 +5,8 @@ import { EditorView } from 'prosemirror-view';
|
|
|
5
5
|
import type { ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import { ProsemirrorGetPosHandler } from '../../../../../nodeviews';
|
|
7
7
|
import { EditorAppearance } from '../../../../../types/editor-appearance';
|
|
8
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
|
+
import { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
8
10
|
export interface Props {
|
|
9
11
|
node: PmNode;
|
|
10
12
|
getPos: ProsemirrorGetPosHandler;
|
|
@@ -15,7 +17,11 @@ export interface Props {
|
|
|
15
17
|
references?: ReferenceEntity[];
|
|
16
18
|
hideFrame?: boolean;
|
|
17
19
|
editorAppearance?: EditorAppearance;
|
|
20
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
|
|
18
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* End workaround
|
|
24
|
+
*/
|
|
19
25
|
declare const _default: {
|
|
20
26
|
new (props: Readonly<Props>): {
|
|
21
27
|
overflowContainer?: HTMLElement | null | undefined;
|
|
@@ -5,6 +5,8 @@ import { getNodeRenderer, getExtensionModuleNodePrivateProps } from '@atlaskit/e
|
|
|
5
5
|
import type { ExtensionHandlers, ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import { ProsemirrorGetPosHandler } from '../../../../nodeviews';
|
|
7
7
|
import { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
|
+
import { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
8
10
|
export interface Props {
|
|
9
11
|
editorView: EditorView;
|
|
10
12
|
node: PMNode;
|
|
@@ -14,6 +16,7 @@ export interface Props {
|
|
|
14
16
|
extensionProvider?: Promise<ExtensionProvider>;
|
|
15
17
|
references?: ReferenceEntity[];
|
|
16
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
|
|
17
20
|
}
|
|
18
21
|
export interface State {
|
|
19
22
|
extensionProvider?: ExtensionProvider;
|
|
@@ -5,6 +5,8 @@ import type { ExtensionHandlers, ReferenceEntity } from '@atlaskit/editor-common
|
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
import { ProsemirrorGetPosHandler } from '../../../../nodeviews/types';
|
|
7
7
|
import { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
|
+
import { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
8
10
|
export interface Props {
|
|
9
11
|
editorView: EditorView;
|
|
10
12
|
node: PMNode;
|
|
@@ -14,6 +16,7 @@ export interface Props {
|
|
|
14
16
|
extensionHandlers: ExtensionHandlers;
|
|
15
17
|
references?: ReferenceEntity[];
|
|
16
18
|
editorAppearance?: EditorAppearance;
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
|
|
17
20
|
}
|
|
18
21
|
export default class Extension extends Component<Props, any> {
|
|
19
22
|
static displayName: string;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
4
|
export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any, any>;
|
|
4
5
|
declare const helpDialog: NextEditorPlugin<'helpDialog', {
|
|
6
|
+
dependencies: [
|
|
7
|
+
OptionalPlugin<typeof analyticsPlugin>
|
|
8
|
+
];
|
|
5
9
|
pluginConfiguration: boolean;
|
|
6
10
|
}>;
|
|
7
11
|
export default helpDialog;
|
|
@@ -5,7 +5,6 @@ export type { BlockTypeState } from './block-type';
|
|
|
5
5
|
export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
|
|
6
6
|
export { default as codeBlockPlugin } from './code-block';
|
|
7
7
|
export { default as collabEditPlugin } from './collab-edit';
|
|
8
|
-
export type { CollabEditProvider } from './collab-edit';
|
|
9
8
|
export { default as datePlugin } from './date';
|
|
10
9
|
export { default as emojiPlugin } from './emoji';
|
|
11
10
|
export { default as extensionPlugin } from './extension';
|
|
@@ -35,11 +34,9 @@ export { default as textColorPlugin } from './text-color';
|
|
|
35
34
|
export { default as textFormattingPlugin } from './text-formatting';
|
|
36
35
|
export { default as typeAheadPlugin } from './type-ahead';
|
|
37
36
|
export { default as unsupportedContentPlugin } from './unsupported-content';
|
|
38
|
-
export { default as widthPlugin } from './width';
|
|
39
37
|
export { default as cardPlugin } from './card';
|
|
40
38
|
export { default as floatingToolbarPlugin } from './floating-toolbar';
|
|
41
39
|
export { default as statusPlugin } from './status';
|
|
42
|
-
export { default as gridPlugin } from './grid';
|
|
43
40
|
export { default as breakoutPlugin } from './breakout';
|
|
44
41
|
export { default as alignmentPlugin } from './alignment';
|
|
45
42
|
export { default as dataConsumerMarkPlugin } from './data-consumer';
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import { NextEditorPlugin } from '../../types';
|
|
3
|
+
import { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
4
|
import { MediaState } from './pm-plugins/main';
|
|
4
5
|
import { CustomMediaPicker, MediaOptions } from './types';
|
|
6
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
7
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
6
|
-
import type gridPlugin from '
|
|
8
|
+
import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
9
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
10
|
+
import { MediaPluginState } from './pm-plugins/types';
|
|
7
11
|
export type { MediaState, MediaProvider, CustomMediaPicker };
|
|
8
12
|
export { insertMediaSingleNode } from './utils/media-single';
|
|
9
13
|
declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
10
14
|
pluginConfiguration: MediaOptions | undefined;
|
|
11
15
|
dependencies: [
|
|
12
16
|
typeof featureFlagsPlugin,
|
|
13
|
-
typeof
|
|
17
|
+
OptionalPlugin<typeof analyticsPlugin>,
|
|
18
|
+
typeof gridPlugin,
|
|
19
|
+
typeof widthPlugin
|
|
14
20
|
];
|
|
21
|
+
sharedState: MediaPluginState | null;
|
|
15
22
|
}>;
|
|
16
23
|
export default mediaPlugin;
|
|
@@ -7,9 +7,11 @@ import { EditorView } from 'prosemirror-view';
|
|
|
7
7
|
import { EventDispatcher } from '../../../../event-dispatcher';
|
|
8
8
|
import { getPosHandler, SelectionBasedNodeView } from '../../../../nodeviews';
|
|
9
9
|
import { PortalProviderAPI } from '../../../../ui/PortalProvider';
|
|
10
|
-
import { WidthPluginState } from '
|
|
10
|
+
import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
|
|
11
11
|
import { MediaOptions } from '../../types';
|
|
12
12
|
import { MediaNodeViewProps } from '../types';
|
|
13
|
+
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
14
|
+
import type mediaPlugin from '../../index';
|
|
13
15
|
declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
|
|
14
16
|
createDomRef(): HTMLElement;
|
|
15
17
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
@@ -22,5 +24,5 @@ declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
|
|
|
22
24
|
renderMediaNodeWithProviders: ({ mediaProvider, contextIdentifierProvider, }: Providers) => JSX.Element;
|
|
23
25
|
render(): JSX.Element;
|
|
24
26
|
}
|
|
25
|
-
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions
|
|
27
|
+
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaNodeView;
|
|
26
28
|
export {};
|
|
@@ -15,7 +15,7 @@ import { PortalProviderAPI } from '../../../ui/PortalProvider';
|
|
|
15
15
|
import { MediaOptions } from '../types';
|
|
16
16
|
import { MediaSingleNodeProps, MediaSingleNodeViewProps } from './types';
|
|
17
17
|
import { MediaNodeUpdater } from './mediaNodeUpdater';
|
|
18
|
-
import { DispatchAnalyticsEvent } from '
|
|
18
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
19
19
|
import ReactNodeView from '../../../nodeviews/ReactNodeView';
|
|
20
20
|
import type mediaPlugin from '../index';
|
|
21
21
|
export interface MediaSingleNodeState {
|
|
@@ -25,7 +25,7 @@ export interface MediaSingleNodeProps {
|
|
|
25
25
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
26
26
|
isCopyPasteEnabled?: boolean;
|
|
27
27
|
forwardRef: ForwardRef;
|
|
28
|
-
pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin
|
|
28
|
+
pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined;
|
|
29
29
|
}
|
|
30
30
|
export interface MediaSingleNodeViewProps {
|
|
31
31
|
eventDispatcher: EventDispatcher;
|
|
@@ -40,4 +40,5 @@ export interface MediaNodeViewProps {
|
|
|
40
40
|
eventDispatcher: EventDispatcher;
|
|
41
41
|
providerFactory: ProviderFactory;
|
|
42
42
|
mediaOptions: MediaOptions;
|
|
43
|
+
pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined;
|
|
43
44
|
}
|
|
@@ -2,4 +2,6 @@ import { EditorState } from 'prosemirror-state';
|
|
|
2
2
|
import { IntlShape } from 'react-intl-next';
|
|
3
3
|
import { FloatingToolbarConfig } from '../../../plugins/floating-toolbar/types';
|
|
4
4
|
import { MediaFloatingToolbarOptions } from '../types';
|
|
5
|
-
|
|
5
|
+
import type mediaPlugin from '../index';
|
|
6
|
+
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
+
export declare const floatingToolbar: (state: EditorState, intl: IntlShape, options: MediaFloatingToolbarOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => FloatingToolbarConfig | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { MediaSingleProps } from '@atlaskit/editor-common/ui';
|
|
3
3
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
4
|
-
import { GridType } from '
|
|
4
|
+
import type { GridType } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { EditorView } from 'prosemirror-view';
|
|
6
6
|
import { getPosHandler } from '../../../../nodeviews/types';
|
|
7
|
-
import { DispatchAnalyticsEvent } from '
|
|
7
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { ResolvedPos } from 'prosemirror-model';
|
|
9
9
|
export type EnabledHandles = {
|
|
10
10
|
left?: boolean;
|
|
@@ -8,11 +8,12 @@ export type { LightEditorPlugin } from './create-editor/get-plugins';
|
|
|
8
8
|
export type { DispatchAnalyticsEvent } from './plugins/analytics/types';
|
|
9
9
|
export type { FeatureFlags } from './types/feature-flags';
|
|
10
10
|
import { EditorPresetBuilder, type EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
11
|
-
import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
11
|
+
import type { AllEditorPresetPluginTypes, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
12
12
|
export interface LightEditorConfig {
|
|
13
13
|
nodes: NodeConfig[];
|
|
14
14
|
marks: MarkConfig[];
|
|
15
15
|
plugins: Array<LightPMPlugin>;
|
|
16
|
+
contentComponents: UIComponentFactory[];
|
|
16
17
|
onEditorViewStateUpdatedCallbacks: Array<OnEditorViewStateUpdated>;
|
|
17
18
|
}
|
|
18
19
|
export declare function getFireAnalytics(editorView: EditorView): any;
|
|
@@ -20,6 +21,7 @@ type PluginData = {
|
|
|
20
21
|
plugins: Plugin[];
|
|
21
22
|
schema: Schema;
|
|
22
23
|
onEditorViewStateUpdatedCallbacks: Array<OnEditorViewStateUpdated>;
|
|
24
|
+
editorConfig: LightEditorConfig;
|
|
23
25
|
};
|
|
24
26
|
export declare const createPMSchemaAndPlugins: (inputPreset?: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>) => (pluginFactoryParams: Omit<LightPMPluginFactoryParams, 'schema'> & {
|
|
25
27
|
pluginInjectionAPI: EditorPluginInjectionAPI;
|
|
@@ -87,7 +87,7 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
87
87
|
'aria-label'?: string | undefined;
|
|
88
88
|
'aria-labelledby'?: string | undefined;
|
|
89
89
|
'aria-level'?: number | undefined;
|
|
90
|
-
'aria-live'?: "off" | "
|
|
90
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
91
91
|
'aria-modal'?: boolean | "false" | "true" | undefined;
|
|
92
92
|
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
|
93
93
|
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
|
@@ -11,8 +11,8 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
11
11
|
cols?: number;
|
|
12
12
|
alignX?: 'left' | 'right' | 'center' | 'end';
|
|
13
13
|
size?: {
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
16
|
};
|
|
17
17
|
mountPoint?: HTMLElement;
|
|
18
18
|
setDisableParentScroll?: (disable: boolean) => void;
|
|
@@ -25,5 +25,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
25
25
|
*/
|
|
26
26
|
skipFocusButtonAfterPick?: boolean;
|
|
27
27
|
};
|
|
28
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "currentColor" | "cols" | "analyticsContext" | "
|
|
28
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "currentColor" | "cols" | "analyticsContext" | "colorPalette" | "placement" | "alignX" | "mountPoint" | "setDisableParentScroll" | "hexToPaletteColor" | "showSomewhatSemanticTooltips" | "paletteColorTooltipMessages" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
29
29
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WidthPluginState } from '
|
|
4
|
+
import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
|
|
5
5
|
import { EditorView } from 'prosemirror-view';
|
|
6
6
|
import { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
7
7
|
export type Props = {
|
|
@@ -30,12 +30,11 @@ export declare class SwappableContentArea extends React.PureComponent<SwappableC
|
|
|
30
30
|
};
|
|
31
31
|
static getDerivedStateFromProps(props: SwappableContentAreaProps, state: State): State | null;
|
|
32
32
|
private unsetPluginContent;
|
|
33
|
+
focusEditor: () => void;
|
|
33
34
|
componentDidMount(): void;
|
|
34
35
|
showPluginContent: () => jsx.JSX.Element | undefined;
|
|
35
36
|
showProvidedContent: (isVisible: boolean) => jsx.JSX.Element | undefined;
|
|
36
37
|
render(): jsx.JSX.Element;
|
|
37
38
|
}
|
|
38
|
-
export default
|
|
39
|
-
render(): jsx.JSX.Element;
|
|
40
|
-
}
|
|
39
|
+
export default function ContextPanel(props: Props): jsx.JSX.Element;
|
|
41
40
|
export {};
|
|
@@ -3,5 +3,7 @@ import { IntlShape } from 'react-intl-next';
|
|
|
3
3
|
import { NodeType } from 'prosemirror-model';
|
|
4
4
|
import { FloatingToolbarItem } from '../../plugins/floating-toolbar/types';
|
|
5
5
|
import { Command } from '../../types';
|
|
6
|
-
|
|
6
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
7
|
+
import type { PluginDependenciesAPI } from '@atlaskit/editor-common/types';
|
|
8
|
+
declare const buildLayoutButtons: (state: EditorState, intl: IntlShape, nodeType: NodeType, widthPluginDependencyApi: PluginDependenciesAPI<typeof widthPlugin> | undefined, allowResizing?: boolean, allowResizingInTables?: boolean, allowWrapping?: boolean, allowAlignment?: boolean) => FloatingToolbarItem<Command>[];
|
|
7
9
|
export default buildLayoutButtons;
|
|
@@ -8,7 +8,7 @@ import { EventDispatcher } from '../../event-dispatcher';
|
|
|
8
8
|
import EditorActions from '../../actions';
|
|
9
9
|
import { DispatchAnalyticsEvent } from '../../plugins/analytics';
|
|
10
10
|
export interface Props {
|
|
11
|
-
items?:
|
|
11
|
+
items?: UIComponentFactory[];
|
|
12
12
|
editorView?: EditorView;
|
|
13
13
|
editorActions?: EditorActions;
|
|
14
14
|
eventDispatcher?: EventDispatcher;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { MediaSingleProps } from '@atlaskit/editor-common/ui';
|
|
3
3
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
4
|
-
import { GridType } from '
|
|
4
|
+
import type { GridType } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { EditorView } from 'prosemirror-view';
|
|
6
6
|
import { getPosHandler } from '../../nodeviews/types';
|
|
7
|
-
import { DispatchAnalyticsEvent } from '
|
|
7
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
export type EnabledHandles = {
|
|
9
9
|
left?: boolean;
|
|
10
10
|
right?: boolean;
|
|
@@ -2,3 +2,4 @@ export declare function checkClipboardTypes(type: DOMStringList | ReadonlyArray<
|
|
|
2
2
|
export declare function isPastedFile(rawEvent: Event): boolean;
|
|
3
3
|
export declare const copyToClipboard: (textToCopy: string) => Promise<void>;
|
|
4
4
|
export declare const copyHTMLToClipboard: (elementToCopy: HTMLElement, plainTextToCopy?: string) => Promise<void>;
|
|
5
|
+
export declare const copyHTMLToClipboardPolyfill: (elementToCopy: HTMLElement, plainTextToCopy?: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "184.0.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
37
|
-
"@atlaskit/adf-schema": "^25.
|
|
37
|
+
"@atlaskit/adf-schema": "^25.7.0",
|
|
38
38
|
"@atlaskit/adf-utils": "^18.2.0",
|
|
39
39
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
40
40
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
@@ -48,15 +48,17 @@
|
|
|
48
48
|
"@atlaskit/checkbox": "^12.6.0",
|
|
49
49
|
"@atlaskit/code": "^14.6.0",
|
|
50
50
|
"@atlaskit/date": "^0.10.0",
|
|
51
|
-
"@atlaskit/datetime-picker": "^12.
|
|
52
|
-
"@atlaskit/editor-common": "^74.
|
|
51
|
+
"@atlaskit/datetime-picker": "^12.6.0",
|
|
52
|
+
"@atlaskit/editor-common": "^74.2.0",
|
|
53
53
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
54
54
|
"@atlaskit/editor-markdown-transformer": "^5.2.0",
|
|
55
55
|
"@atlaskit/editor-palette": "1.4.2",
|
|
56
56
|
"@atlaskit/editor-plugin-analytics": "^0.0.1",
|
|
57
57
|
"@atlaskit/editor-plugin-content-insertion": "^0.0.1",
|
|
58
58
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
59
|
-
"@atlaskit/editor-plugin-
|
|
59
|
+
"@atlaskit/editor-plugin-grid": "^0.1.0",
|
|
60
|
+
"@atlaskit/editor-plugin-table": "^1.5.0",
|
|
61
|
+
"@atlaskit/editor-plugin-width": "^0.0.1",
|
|
60
62
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
61
63
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
62
64
|
"@atlaskit/emoji": "^67.4.0",
|
|
@@ -65,12 +67,12 @@
|
|
|
65
67
|
"@atlaskit/icon": "^21.12.0",
|
|
66
68
|
"@atlaskit/icon-object": "^6.3.0",
|
|
67
69
|
"@atlaskit/link-analytics": "^8.0.0",
|
|
68
|
-
"@atlaskit/link-picker": "^1.
|
|
70
|
+
"@atlaskit/link-picker": "^1.22.0",
|
|
69
71
|
"@atlaskit/locale": "^2.5.0",
|
|
70
72
|
"@atlaskit/logo": "^13.14.0",
|
|
71
|
-
"@atlaskit/media-card": "^
|
|
73
|
+
"@atlaskit/media-card": "^76.0.0",
|
|
72
74
|
"@atlaskit/media-client": "^22.0.0",
|
|
73
|
-
"@atlaskit/media-common": "^
|
|
75
|
+
"@atlaskit/media-common": "^5.0.0",
|
|
74
76
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
75
77
|
"@atlaskit/media-picker": "^65.1.0",
|
|
76
78
|
"@atlaskit/media-ui": "^23.0.0",
|
|
@@ -83,15 +85,15 @@
|
|
|
83
85
|
"@atlaskit/prosemirror-input-rules": "^2.2.0",
|
|
84
86
|
"@atlaskit/radio": "^5.6.0",
|
|
85
87
|
"@atlaskit/section-message": "^6.4.0",
|
|
86
|
-
"@atlaskit/select": "^16.
|
|
87
|
-
"@atlaskit/smart-card": "^26.
|
|
88
|
+
"@atlaskit/select": "^16.4.0",
|
|
89
|
+
"@atlaskit/smart-card": "^26.3.0",
|
|
88
90
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
89
91
|
"@atlaskit/spinner": "^15.5.0",
|
|
90
92
|
"@atlaskit/status": "^1.3.0",
|
|
91
93
|
"@atlaskit/tabs": "^13.4.0",
|
|
92
94
|
"@atlaskit/task-decision": "^17.6.0",
|
|
93
|
-
"@atlaskit/textarea": "^4.
|
|
94
|
-
"@atlaskit/textfield": "^5.
|
|
95
|
+
"@atlaskit/textarea": "^4.7.0",
|
|
96
|
+
"@atlaskit/textfield": "^5.5.0",
|
|
95
97
|
"@atlaskit/theme": "^12.5.0",
|
|
96
98
|
"@atlaskit/toggle": "^12.6.0",
|
|
97
99
|
"@atlaskit/tokens": "^1.4.0",
|
|
@@ -143,22 +145,22 @@
|
|
|
143
145
|
},
|
|
144
146
|
"devDependencies": {
|
|
145
147
|
"@af/integration-testing": "*",
|
|
146
|
-
"@atlaskit/atlassian-navigation": "^2.
|
|
147
|
-
"@atlaskit/breadcrumbs": "11.10.
|
|
148
|
+
"@atlaskit/atlassian-navigation": "^2.6.0",
|
|
149
|
+
"@atlaskit/breadcrumbs": "11.10.3",
|
|
148
150
|
"@atlaskit/code": "^14.6.0",
|
|
149
|
-
"@atlaskit/collab-provider": "
|
|
151
|
+
"@atlaskit/collab-provider": "9.0.0",
|
|
150
152
|
"@atlaskit/docs": "*",
|
|
151
153
|
"@atlaskit/drawer": "^7.5.0",
|
|
152
154
|
"@atlaskit/dropdown-menu": "^11.9.0",
|
|
153
155
|
"@atlaskit/editor-bitbucket-transformer": "^8.1.0",
|
|
154
156
|
"@atlaskit/editor-card-provider": "^3.0.0",
|
|
155
157
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
156
|
-
"@atlaskit/editor-plugin-table": "^1.
|
|
157
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
158
|
+
"@atlaskit/editor-plugin-table": "^1.5.0",
|
|
159
|
+
"@atlaskit/editor-test-helpers": "^18.5.0",
|
|
158
160
|
"@atlaskit/flag": "^15.2.0",
|
|
159
161
|
"@atlaskit/inline-dialog": "^13.6.0",
|
|
160
162
|
"@atlaskit/link-provider": "^1.6.0",
|
|
161
|
-
"@atlaskit/link-test-helpers": "^
|
|
163
|
+
"@atlaskit/link-test-helpers": "^4.0.0",
|
|
162
164
|
"@atlaskit/lozenge": "^11.4.0",
|
|
163
165
|
"@atlaskit/media-core": "^34.1.0",
|
|
164
166
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
@@ -166,23 +168,23 @@
|
|
|
166
168
|
"@atlaskit/menu": "^1.7.0",
|
|
167
169
|
"@atlaskit/page-layout": "^1.6.0",
|
|
168
170
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
169
|
-
"@atlaskit/profilecard": "^19.
|
|
171
|
+
"@atlaskit/profilecard": "^19.4.0",
|
|
170
172
|
"@atlaskit/pubsub": "^6.4.0",
|
|
171
173
|
"@atlaskit/renderer": "^108.1.0",
|
|
172
174
|
"@atlaskit/section-message": "^6.4.0",
|
|
173
175
|
"@atlaskit/share": "*",
|
|
174
176
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
175
177
|
"@atlaskit/synchrony-test-helpers": "^2.3.0",
|
|
176
|
-
"@atlaskit/textarea": "^4.
|
|
178
|
+
"@atlaskit/textarea": "^4.7.0",
|
|
177
179
|
"@atlaskit/toggle": "^12.6.0",
|
|
178
180
|
"@atlaskit/ufo": "^0.2.0",
|
|
179
181
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
180
182
|
"@atlaskit/visual-regression": "*",
|
|
181
183
|
"@atlaskit/webdriver-runner": "*",
|
|
182
184
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
183
|
-
"@atlassian/link-picker-atlassian-plugin": "^
|
|
184
|
-
"@atlassian/link-picker-plugins": "^
|
|
185
|
-
"@atlassian/search-provider": "2.4.
|
|
185
|
+
"@atlassian/link-picker-atlassian-plugin": "^32.1.0",
|
|
186
|
+
"@atlassian/link-picker-plugins": "^22.1.0",
|
|
187
|
+
"@atlassian/search-provider": "2.4.4",
|
|
186
188
|
"@atlassian/ufo": "^0.2.0",
|
|
187
189
|
"@emotion/jest": "^11.8.0",
|
|
188
190
|
"@storybook/addon-knobs": "^5.3.18",
|
package/report.api.md
CHANGED
|
@@ -26,11 +26,11 @@ import { ActivityProvider } from '@atlaskit/activity-provider';
|
|
|
26
26
|
import { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
27
27
|
import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
28
28
|
import { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
29
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
29
30
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
30
31
|
import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
|
|
31
32
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
32
33
|
import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
33
|
-
import { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
34
34
|
import { Color } from '@atlaskit/status/element';
|
|
35
35
|
import { Command as Command_2 } from '@atlaskit/editor-common/types';
|
|
36
36
|
import { ComponentType } from 'react';
|
|
@@ -48,7 +48,6 @@ import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
48
48
|
import { DropdownOptionT } from '@atlaskit/editor-common/types';
|
|
49
49
|
import { EditorActionsOptions } from '@atlaskit/editor-common/types';
|
|
50
50
|
import { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
51
|
-
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
52
51
|
import { FeatureFlags as EditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
53
52
|
import { EditorPlugin } from '@atlaskit/editor-common/types';
|
|
54
53
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
@@ -84,6 +83,7 @@ import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
|
84
83
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
85
84
|
import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
86
85
|
import { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
86
|
+
import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
87
87
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
88
88
|
import { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
89
89
|
import { InputTracking } from '@atlaskit/editor-common/types';
|
|
@@ -111,6 +111,7 @@ import { Node as Node_2 } from 'prosemirror-model';
|
|
|
111
111
|
import { NodeConfig } from '@atlaskit/editor-common/types';
|
|
112
112
|
import { NodeType } from 'prosemirror-model';
|
|
113
113
|
import { NodeView } from 'prosemirror-view';
|
|
114
|
+
import { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
114
115
|
import { PaletteColor } from '@atlaskit/editor-common/ui-color';
|
|
115
116
|
import { PerformanceTracking } from '@atlaskit/editor-common/types';
|
|
116
117
|
import { PluginConfig } from '@atlaskit/editor-plugin-table/types';
|
|
@@ -131,7 +132,7 @@ import { default as React_2 } from 'react';
|
|
|
131
132
|
import { ReactElement } from 'react';
|
|
132
133
|
import { RefObject } from 'react';
|
|
133
134
|
import { ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
134
|
-
import { ResolvedEditorState } from '@atlaskit/
|
|
135
|
+
import type { ResolvedEditorState } from '@atlaskit/collab-provider';
|
|
135
136
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
136
137
|
import { Schema } from 'prosemirror-model';
|
|
137
138
|
import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -156,6 +157,7 @@ import { UploadEndEventPayload } from '@atlaskit/media-picker/types';
|
|
|
156
157
|
import { UploadErrorEventPayload } from '@atlaskit/media-picker/types';
|
|
157
158
|
import { UploadParams } from '@atlaskit/media-picker/types';
|
|
158
159
|
import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
|
|
160
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
159
161
|
import { WithIntlProps } from 'react-intl-next';
|
|
160
162
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
161
163
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
@@ -363,8 +365,6 @@ type CollabEditOptions = {
|
|
|
363
365
|
} & CollabInviteToEditProps &
|
|
364
366
|
CollabAnalyticsProps;
|
|
365
367
|
|
|
366
|
-
export { CollabEditProvider };
|
|
367
|
-
|
|
368
368
|
// @public (undocumented)
|
|
369
369
|
interface CollabInviteToEditProps {
|
|
370
370
|
// (undocumented)
|
|
@@ -416,13 +416,7 @@ type Context = {
|
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
// @public (undocumented)
|
|
419
|
-
export
|
|
420
|
-
// (undocumented)
|
|
421
|
-
render(): jsx.JSX.Element;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
// @public (undocumented)
|
|
425
|
-
type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
|
|
419
|
+
export function ContextPanel(props: Props_4): jsx.JSX.Element;
|
|
426
420
|
|
|
427
421
|
// @public (undocumented)
|
|
428
422
|
interface CreateEditorStateOptions {
|
|
@@ -584,9 +578,6 @@ type DefaultPresetPluginOptions = {
|
|
|
584
578
|
// @public
|
|
585
579
|
export const deleteDate: () => Command;
|
|
586
580
|
|
|
587
|
-
// @public (undocumented)
|
|
588
|
-
type DisplayGrid = (props: Required_2<GridPluginState>) => boolean;
|
|
589
|
-
|
|
590
581
|
export { DropdownOptionT };
|
|
591
582
|
|
|
592
583
|
// @public (undocumented)
|
|
@@ -1280,35 +1271,6 @@ type getPosHandler = boolean | getPosHandlerNode;
|
|
|
1280
1271
|
// @public (undocumented)
|
|
1281
1272
|
type getPosHandlerNode = () => number;
|
|
1282
1273
|
|
|
1283
|
-
// @public (undocumented)
|
|
1284
|
-
const gridPlugin: NextEditorPlugin<
|
|
1285
|
-
'grid',
|
|
1286
|
-
{
|
|
1287
|
-
pluginConfiguration: GridPluginOptions | undefined;
|
|
1288
|
-
dependencies: [typeof widthPlugin];
|
|
1289
|
-
sharedState: GridPluginState | null;
|
|
1290
|
-
actions: {
|
|
1291
|
-
displayGrid: CreateDisplayGrid;
|
|
1292
|
-
};
|
|
1293
|
-
}
|
|
1294
|
-
>;
|
|
1295
|
-
|
|
1296
|
-
// @public (undocumented)
|
|
1297
|
-
interface GridPluginOptions {
|
|
1298
|
-
// (undocumented)
|
|
1299
|
-
shouldCalcBreakoutGridLines?: boolean;
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
// @public (undocumented)
|
|
1303
|
-
type GridPluginState = {
|
|
1304
|
-
visible: boolean;
|
|
1305
|
-
gridType?: GridType;
|
|
1306
|
-
highlight: Highlights;
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
// @public (undocumented)
|
|
1310
|
-
type GridType = 'full' | 'wrapped';
|
|
1311
|
-
|
|
1312
1274
|
// @public
|
|
1313
1275
|
export function hasVisibleContent(node: Node_2): boolean;
|
|
1314
1276
|
|
|
@@ -1318,9 +1280,6 @@ type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
|
1318
1280
|
// @public (undocumented)
|
|
1319
1281
|
type HeadingLevelsAndNormalText = HeadingLevels | NormalTextLevel;
|
|
1320
1282
|
|
|
1321
|
-
// @public (undocumented)
|
|
1322
|
-
type Highlights = Array<'full-width' | 'wide' | number>;
|
|
1323
|
-
|
|
1324
1283
|
// @public
|
|
1325
1284
|
export const historyPluginKey: PluginKey<HistoryPluginState, any>;
|
|
1326
1285
|
|
|
@@ -1694,7 +1653,13 @@ export const mediaPlugin: NextEditorPlugin<
|
|
|
1694
1653
|
'media',
|
|
1695
1654
|
{
|
|
1696
1655
|
pluginConfiguration: MediaOptions | undefined;
|
|
1697
|
-
dependencies: [
|
|
1656
|
+
dependencies: [
|
|
1657
|
+
typeof featureFlagsPlugin,
|
|
1658
|
+
OptionalPlugin<typeof analyticsPlugin>,
|
|
1659
|
+
typeof gridPlugin,
|
|
1660
|
+
typeof widthPlugin,
|
|
1661
|
+
];
|
|
1662
|
+
sharedState: MediaPluginState | null;
|
|
1698
1663
|
}
|
|
1699
1664
|
>;
|
|
1700
1665
|
|
|
@@ -2365,11 +2330,6 @@ interface RectData {
|
|
|
2365
2330
|
// @public (undocumented)
|
|
2366
2331
|
export const removeStatus: (showStatusPickerAt: number) => Command;
|
|
2367
2332
|
|
|
2368
|
-
// @public (undocumented)
|
|
2369
|
-
type Required_2<T> = {
|
|
2370
|
-
[P in keyof T]-?: T[P];
|
|
2371
|
-
};
|
|
2372
|
-
|
|
2373
2333
|
// @public (undocumented)
|
|
2374
2334
|
type ScrollGutterPluginOptions = {
|
|
2375
2335
|
getScrollElement?: (view: EditorView) => HTMLElement | null;
|
|
@@ -2824,14 +2784,6 @@ export const version: string;
|
|
|
2824
2784
|
// @public (undocumented)
|
|
2825
2785
|
type VisibilityEvent = 'setvisibility';
|
|
2826
2786
|
|
|
2827
|
-
// @public (undocumented)
|
|
2828
|
-
const widthPlugin: NextEditorPlugin<
|
|
2829
|
-
'width',
|
|
2830
|
-
{
|
|
2831
|
-
sharedState: EditorContainerWidth | undefined;
|
|
2832
|
-
}
|
|
2833
|
-
>;
|
|
2834
|
-
|
|
2835
2787
|
// @public (undocumented)
|
|
2836
2788
|
export class WithEditorActions extends React_2.Component<
|
|
2837
2789
|
WithEditorActionsProps,
|
|
@@ -2892,8 +2844,8 @@ export { WithPluginState };
|
|
|
2892
2844
|
|
|
2893
2845
|
```json
|
|
2894
2846
|
{
|
|
2895
|
-
"@atlaskit/link-provider": "^1.6.
|
|
2896
|
-
"@atlaskit/media-core": "^34.1.
|
|
2847
|
+
"@atlaskit/link-provider": "^1.6.2",
|
|
2848
|
+
"@atlaskit/media-core": "^34.1.2",
|
|
2897
2849
|
"react": "^16.8.0",
|
|
2898
2850
|
"react-dom": "^16.8.0",
|
|
2899
2851
|
"react-intl-next": "npm:react-intl@^5.18.1"
|