@atlaskit/editor-core 183.1.1 → 184.0.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 +29 -0
- package/dist/cjs/i18n/da.js +1 -1
- package/dist/cjs/i18n/en_ZZ.js +8 -34
- package/dist/cjs/i18n/it.js +1 -1
- package/dist/cjs/i18n/nb.js +3 -3
- package/dist/cjs/i18n/nl.js +4 -4
- package/dist/cjs/i18n/pl.js +1 -1
- package/dist/cjs/i18n/pt_BR.js +1 -1
- package/dist/cjs/i18n/ru.js +1 -1
- package/dist/cjs/i18n/th.js +2 -2
- package/dist/cjs/i18n/uk.js +1 -1
- package/dist/cjs/i18n/vi.js +2 -2
- package/dist/cjs/i18n/zh.js +1 -1
- 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/media/ui/ImageBorder/styles.js +4 -1
- 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/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/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/i18n/da.js +1 -1
- package/dist/es2019/i18n/en_ZZ.js +8 -34
- package/dist/es2019/i18n/it.js +1 -1
- package/dist/es2019/i18n/nb.js +3 -3
- package/dist/es2019/i18n/nl.js +4 -4
- package/dist/es2019/i18n/pl.js +1 -1
- package/dist/es2019/i18n/pt_BR.js +1 -1
- package/dist/es2019/i18n/ru.js +1 -1
- package/dist/es2019/i18n/th.js +2 -2
- package/dist/es2019/i18n/uk.js +1 -1
- package/dist/es2019/i18n/vi.js +2 -2
- package/dist/es2019/i18n/zh.js +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/media/ui/ImageBorder/styles.js +9 -9
- 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/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/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/i18n/da.js +1 -1
- package/dist/esm/i18n/en_ZZ.js +8 -34
- package/dist/esm/i18n/it.js +1 -1
- package/dist/esm/i18n/nb.js +3 -3
- package/dist/esm/i18n/nl.js +4 -4
- package/dist/esm/i18n/pl.js +1 -1
- package/dist/esm/i18n/pt_BR.js +1 -1
- package/dist/esm/i18n/ru.js +1 -1
- package/dist/esm/i18n/th.js +2 -2
- package/dist/esm/i18n/uk.js +1 -1
- package/dist/esm/i18n/vi.js +2 -2
- package/dist/esm/i18n/zh.js +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/media/ui/ImageBorder/styles.js +4 -1
- 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/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/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/i18n/en_ZZ.d.ts +2 -28
- 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 +1 -1
- 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/i18n/en_ZZ.d.ts +2 -28
- 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 +1 -1
- 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 +20 -18
- 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
|
@@ -2,10 +2,8 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { Dispatch } from '../../event-dispatcher';
|
|
4
4
|
import { PrivateCollabEditOptions, ProviderCallback } from './types';
|
|
5
|
-
import { CollabEditProvider } from './provider';
|
|
6
5
|
import { PluginState } from './plugin-state';
|
|
7
6
|
import { pluginKey } from './plugin-key';
|
|
8
7
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
8
|
export { PluginState, pluginKey };
|
|
10
|
-
export type { CollabEditProvider };
|
|
11
9
|
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, collabProviderCallback: ProviderCallback, options: PrivateCollabEditOptions, featureFlags: FeatureFlags) => SafePlugin<any, any>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { CollabEditProvider } from '@atlaskit/
|
|
3
|
+
import type { CollabEditProvider, SyncUpErrorFunction } from '@atlaskit/collab-provider';
|
|
4
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
5
|
-
import { SyncUpErrorFunction } from '@atlaskit/editor-common/types';
|
|
6
|
-
export type { CollabParticipant, CollabEventInitData, CollabEventRemoteData, CollabEventConnectionData, CollabEventPresenceData, CollabEventTelepointerData, CollabSendableSelection, } from '@atlaskit/editor-common/collab';
|
|
7
5
|
export type InviteToEditComponentProps = {
|
|
8
6
|
children: ReactElement<InviteToEditButtonProps>;
|
|
9
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AvatarProps } from '@atlaskit/avatar-group';
|
|
2
|
-
import { CollabParticipant } from '
|
|
2
|
+
import type { CollabParticipant } from '@atlaskit/collab-provider';
|
|
3
3
|
declare const _default: import("memoize-one").MemoizedFn<(participant: CollabParticipant) => AvatarProps>;
|
|
4
4
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EditorState } from 'prosemirror-state';
|
|
2
2
|
import { EditorView, Decoration, DecorationSet } from 'prosemirror-view';
|
|
3
|
-
import {
|
|
3
|
+
import type { CollabParticipant } from '@atlaskit/collab-provider';
|
|
4
|
+
import { CollabEditOptions } from './types';
|
|
4
5
|
export interface Color {
|
|
5
6
|
solid: string;
|
|
6
7
|
selection: string;
|
|
@@ -2,6 +2,7 @@ import { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
|
2
2
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
3
3
|
import { NextEditorPlugin, EditorAppearance } from '../../types';
|
|
4
4
|
import { LongPressSelectionPluginOptions } from '../selection/types';
|
|
5
|
+
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
5
6
|
interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
6
7
|
allowAutoSave?: boolean;
|
|
7
8
|
breakoutEnabled?: boolean;
|
|
@@ -10,6 +11,6 @@ interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
|
10
11
|
}
|
|
11
12
|
declare const extensionPlugin: NextEditorPlugin<'extension', {
|
|
12
13
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
13
|
-
dependencies: [typeof featureFlagsPlugin];
|
|
14
|
+
dependencies: [typeof featureFlagsPlugin, typeof widthPlugin];
|
|
14
15
|
}>;
|
|
15
16
|
export default extensionPlugin;
|
|
@@ -3,10 +3,12 @@ import { EditorView, NodeView } from 'prosemirror-view';
|
|
|
3
3
|
import { Node as PmNode } from 'prosemirror-model';
|
|
4
4
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
6
7
|
import { EditorAppearance } from '../../../types/editor-appearance';
|
|
7
8
|
import { ForwardRef, getPosHandler, ReactNodeView } from '../../../nodeviews';
|
|
8
9
|
import { PortalProviderAPI } from '../../../ui/PortalProvider';
|
|
9
10
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
11
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
10
12
|
interface ExtensionNodeViewOptions {
|
|
11
13
|
appearance?: EditorAppearance;
|
|
12
14
|
}
|
|
@@ -22,7 +24,8 @@ export declare class ExtensionNode extends ReactNodeView {
|
|
|
22
24
|
providerFactory: ProviderFactory;
|
|
23
25
|
extensionHandlers: ExtensionHandlers;
|
|
24
26
|
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
27
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
|
|
25
28
|
}, forwardRef: ForwardRef): JSX.Element;
|
|
26
29
|
}
|
|
27
|
-
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
30
|
+
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
28
31
|
export {};
|
|
@@ -4,11 +4,13 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
4
4
|
import { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
8
|
import { EditorAppearance } from '../../../types/editor-appearance';
|
|
8
9
|
import { Dispatch, EventDispatcher } from '../../../event-dispatcher';
|
|
9
10
|
import { PortalProviderAPI } from '../../../ui/PortalProvider';
|
|
10
11
|
import { getPluginState, createCommand } from '../plugin-factory';
|
|
11
12
|
import { pluginKey } from '../plugin-key';
|
|
13
|
+
import type extensionPlugin from '../index';
|
|
12
14
|
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
13
15
|
export declare const createContextIdentifierProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
|
|
14
16
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, }: {
|
|
@@ -17,7 +19,7 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
17
19
|
domAtPos: EditorView['domAtPos'];
|
|
18
20
|
extensionHandlers: ExtensionHandlers;
|
|
19
21
|
}) => true | undefined;
|
|
20
|
-
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, useLongPressSelection?: boolean, options?: {
|
|
22
|
+
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<typeof extensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
21
23
|
appearance?: EditorAppearance;
|
|
22
24
|
}) => SafePlugin<import("../types").ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>, import("prosemirror-model").Schema<any, any>>;
|
|
23
25
|
export { pluginKey, createPlugin, createCommand, getPluginState };
|
|
@@ -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,9 @@
|
|
|
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: [OptionalPlugin<typeof analyticsPlugin>];
|
|
5
7
|
pluginConfiguration: boolean;
|
|
6
8
|
}>;
|
|
7
9
|
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,13 +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
|
-
dependencies: [
|
|
15
|
+
dependencies: [
|
|
16
|
+
typeof featureFlagsPlugin,
|
|
17
|
+
OptionalPlugin<typeof analyticsPlugin>,
|
|
18
|
+
typeof gridPlugin,
|
|
19
|
+
typeof widthPlugin
|
|
20
|
+
];
|
|
21
|
+
sharedState: MediaPluginState | null;
|
|
12
22
|
}>;
|
|
13
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;
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
2
|
import { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
3
3
|
import { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
4
|
-
import { ResolvedEditorState } from '@atlaskit/
|
|
4
|
+
import type { ResolvedEditorState } from '@atlaskit/collab-provider';
|
|
5
5
|
import type { FeatureFlags, Transformer } from '@atlaskit/editor-common/types';
|
|
6
6
|
import { EditorView } from 'prosemirror-view';
|
|
7
7
|
import { EventDispatcher } from '../event-dispatcher';
|
|
@@ -7,6 +7,7 @@ import { MarkConfig, NodeConfig } from '../types/pm-config';
|
|
|
7
7
|
import { EditorReactContext } from '../types/editor-react-context';
|
|
8
8
|
import { FeatureFlags } from '../types/feature-flags';
|
|
9
9
|
import { IntlShape } from 'react-intl-next';
|
|
10
|
+
import { UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
10
11
|
export type LightPMPluginFactoryParams = {
|
|
11
12
|
schema: Schema;
|
|
12
13
|
dispatch: Dispatch;
|
|
@@ -36,6 +37,7 @@ export interface LightEditorPlugin {
|
|
|
36
37
|
marks?: () => MarkConfig[];
|
|
37
38
|
nodes?: () => NodeConfig[];
|
|
38
39
|
pmPlugins?: (pluginOptions?: any) => Array<LightPMPlugin>;
|
|
40
|
+
contentComponent?: UIComponentFactory;
|
|
39
41
|
pluginsOptions?: Record<string, any>;
|
|
40
42
|
onEditorViewStateUpdated?: OnEditorViewStateUpdated;
|
|
41
43
|
}
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.editor.addAltText': string;
|
|
9
|
-
'fabric.editor.addImageBorder': string;
|
|
10
9
|
'fabric.editor.alignCenter': string;
|
|
11
10
|
'fabric.editor.alignLeft': string;
|
|
12
11
|
'fabric.editor.alignRight': string;
|
|
13
12
|
'fabric.editor.alignment': string;
|
|
14
13
|
'fabric.editor.altText': string;
|
|
15
14
|
'fabric.editor.alttext.validation': string;
|
|
15
|
+
'fabric.editor.annotate': string;
|
|
16
16
|
'fabric.editor.annotationToolbar': string;
|
|
17
17
|
'fabric.editor.backLink': string;
|
|
18
18
|
'fabric.editor.blockCardUnavailable': string;
|
|
@@ -60,7 +60,6 @@ declare const _default: {
|
|
|
60
60
|
'fabric.editor.customPanel.description': string;
|
|
61
61
|
'fabric.editor.decisionPlaceholder': string;
|
|
62
62
|
'fabric.editor.defaultAltText': string;
|
|
63
|
-
'fabric.editor.description': string;
|
|
64
63
|
'fabric.editor.displayBlock': string;
|
|
65
64
|
'fabric.editor.displayEmbed': string;
|
|
66
65
|
'fabric.editor.displayInline': string;
|
|
@@ -76,7 +75,6 @@ declare const _default: {
|
|
|
76
75
|
'fabric.editor.editStatusColor': string;
|
|
77
76
|
'fabric.editor.editStatusText': string;
|
|
78
77
|
'fabric.editor.editableContentLabel': string;
|
|
79
|
-
'fabric.editor.editorAssistiveLabel': string;
|
|
80
78
|
'fabric.editor.editorHelp': string;
|
|
81
79
|
'fabric.editor.editors': string;
|
|
82
80
|
'fabric.editor.elementBrowser.help': string;
|
|
@@ -103,16 +101,12 @@ declare const _default: {
|
|
|
103
101
|
'fabric.editor.errorPanel.description': string;
|
|
104
102
|
'fabric.editor.extension.confirmDeleteLinkedModalMessage': string;
|
|
105
103
|
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': string;
|
|
106
|
-
'fabric.editor.extension.deleteElementTitle': string;
|
|
107
|
-
'fabric.editor.extension.sourceNoTitledName': string;
|
|
108
104
|
'fabric.editor.extensions.config-panel.save-indicator': string;
|
|
109
105
|
'fabric.editor.find': string;
|
|
110
106
|
'fabric.editor.findNext': string;
|
|
111
107
|
'fabric.editor.findPrevious': string;
|
|
112
108
|
'fabric.editor.findReplaceToolbarButton': string;
|
|
113
109
|
'fabric.editor.floatingToolbar.confirmModalCancel': string;
|
|
114
|
-
'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
|
|
115
|
-
'fabric.editor.floatingToolbar.confirmModalConnectedUnit': string;
|
|
116
110
|
'fabric.editor.floatingToolbar.confirmModalHeading': string;
|
|
117
111
|
'fabric.editor.floatingToolbar.confirmModalOK': string;
|
|
118
112
|
'fabric.editor.floatingToolbar.floatingToolbarAnnouncer': string;
|
|
@@ -143,12 +137,6 @@ declare const _default: {
|
|
|
143
137
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
144
138
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
145
139
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
146
|
-
'fabric.editor.imageBorderBold': string;
|
|
147
|
-
'fabric.editor.imageBorderColor': string;
|
|
148
|
-
'fabric.editor.imageBorderMedium': string;
|
|
149
|
-
'fabric.editor.imageBorderOptions': string;
|
|
150
|
-
'fabric.editor.imageBorderSize': string;
|
|
151
|
-
'fabric.editor.imageBorderSubtle': string;
|
|
152
140
|
'fabric.editor.improvement': string;
|
|
153
141
|
'fabric.editor.indent': string;
|
|
154
142
|
'fabric.editor.info': string;
|
|
@@ -170,12 +158,9 @@ declare const _default: {
|
|
|
170
158
|
'fabric.editor.matchCase': string;
|
|
171
159
|
'fabric.editor.mediaAddLink': string;
|
|
172
160
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
173
|
-
'fabric.editor.mentionNode.label': string;
|
|
174
161
|
'fabric.editor.mentionsAddLabel': string;
|
|
175
162
|
'fabric.editor.mentionsIconLabel': string;
|
|
176
163
|
'fabric.editor.moreFormatting': string;
|
|
177
|
-
'fabric.editor.navigate.toolbar.editor': string;
|
|
178
|
-
'fabric.editor.navigate.toolbar.floating': string;
|
|
179
164
|
'fabric.editor.noResultsFound': string;
|
|
180
165
|
'fabric.editor.noSearchResults': string;
|
|
181
166
|
'fabric.editor.normal': string;
|
|
@@ -196,7 +181,6 @@ declare const _default: {
|
|
|
196
181
|
'fabric.editor.placeholderTextPlaceholder': string;
|
|
197
182
|
'fabric.editor.quickInsert': string;
|
|
198
183
|
'fabric.editor.redo': string;
|
|
199
|
-
'fabric.editor.removeImageBorder': string;
|
|
200
184
|
'fabric.editor.replace': string;
|
|
201
185
|
'fabric.editor.replaceAll': string;
|
|
202
186
|
'fabric.editor.replaceWith': string;
|
|
@@ -205,7 +189,6 @@ declare const _default: {
|
|
|
205
189
|
'fabric.editor.searchResults': string;
|
|
206
190
|
'fabric.editor.selectLanguage': string;
|
|
207
191
|
'fabric.editor.settingsLinks': string;
|
|
208
|
-
'fabric.editor.shortcut': string;
|
|
209
192
|
'fabric.editor.single': string;
|
|
210
193
|
'fabric.editor.statusPlaceholder': string;
|
|
211
194
|
'fabric.editor.story': string;
|
|
@@ -229,15 +212,7 @@ declare const _default: {
|
|
|
229
212
|
'fabric.editor.toolbarLabel': string;
|
|
230
213
|
'fabric.editor.toolbarMediaTitle': string;
|
|
231
214
|
'fabric.editor.twoColumns': string;
|
|
232
|
-
'fabric.editor.
|
|
233
|
-
'fabric.editor.typeAhead.quickInsertInputLabel': string;
|
|
234
|
-
'fabric.editor.typeAhead.quickInsertPopupLabel': string;
|
|
235
|
-
'fabric.editor.typeahead.emojiInputLabel': string;
|
|
236
|
-
'fabric.editor.typeahead.emojiListItemLabel': string;
|
|
237
|
-
'fabric.editor.typeahead.emojiPopupLabel': string;
|
|
238
|
-
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
239
|
-
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
240
|
-
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
215
|
+
'fabric.editor.typeAheadResultLabel': string;
|
|
241
216
|
'fabric.editor.unableToOpenLink': string;
|
|
242
217
|
'fabric.editor.underline': string;
|
|
243
218
|
'fabric.editor.undo': string;
|
|
@@ -252,6 +227,5 @@ declare const _default: {
|
|
|
252
227
|
'fabric.editor.warningPanel.description': string;
|
|
253
228
|
'fabric.editor.wrapLeft': string;
|
|
254
229
|
'fabric.editor.wrapRight': string;
|
|
255
|
-
'fabric.emoji.label': string;
|
|
256
230
|
};
|
|
257
231
|
export default _default;
|
|
@@ -13,7 +13,6 @@ export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
|
13
13
|
export { default as mediaPlugin, insertMediaSingleNode } from './plugins/media';
|
|
14
14
|
export type { MediaProvider, MediaState, CustomMediaPicker, } from './plugins/media';
|
|
15
15
|
export type { MediaOptions } from './plugins/media/types';
|
|
16
|
-
export type { CollabEditProvider } from './plugins/collab-edit';
|
|
17
16
|
export { AbstractMentionResource, MentionResource, PresenceResource, } from '@atlaskit/mention/resource';
|
|
18
17
|
export type { MentionProvider, PresenceProvider, } from '@atlaskit/mention/resource';
|
|
19
18
|
export { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
|
+
import { BreakoutPluginState } from './types';
|
|
2
4
|
interface BreakoutPluginOptions {
|
|
3
5
|
allowBreakoutButton?: boolean;
|
|
4
6
|
}
|
|
5
7
|
declare const breakoutPlugin: NextEditorPlugin<'breakout', {
|
|
6
8
|
pluginConfiguration: BreakoutPluginOptions | undefined;
|
|
9
|
+
dependencies: [
|
|
10
|
+
typeof widthPlugin
|
|
11
|
+
];
|
|
12
|
+
sharedState: Partial<BreakoutPluginState>;
|
|
7
13
|
}>;
|
|
8
14
|
export default breakoutPlugin;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { EditorView } from 'prosemirror-view';
|
|
5
5
|
import { Node as PMNode } from 'prosemirror-model';
|
|
6
|
-
interface Props {
|
|
6
|
+
export interface Props {
|
|
7
7
|
editorView: EditorView;
|
|
8
8
|
mountPoint?: HTMLElement;
|
|
9
9
|
node: PMNode | null;
|
|
@@ -2,9 +2,9 @@ import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
|
2
2
|
import { CardPluginOptions } from './types';
|
|
3
3
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
4
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
-
import type widthPlugin from '
|
|
5
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
6
6
|
import type basePlugin from '../base';
|
|
7
|
-
import type gridPlugin from '
|
|
7
|
+
import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
8
8
|
declare const cardPlugin: NextEditorPlugin<'card', {
|
|
9
9
|
pluginConfiguration: CardPluginOptions;
|
|
10
10
|
dependencies: [
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Selection } from 'prosemirror-state';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
import { CollabEventInitData, CollabEventRemoteData, CollabEventConnectionData, CollabEventPresenceData,
|
|
3
|
+
import type { CollabEventInitData, CollabEventRemoteData, CollabEventConnectionData, CollabEventPresenceData, CollabTelepointerPayload, CollabSendableSelection } from '@atlaskit/collab-provider';
|
|
4
|
+
import { PrivateCollabEditOptions } from './types';
|
|
4
5
|
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions) => void;
|
|
5
6
|
export declare const handleConnection: (connectionData: CollabEventConnectionData, view: EditorView) => void;
|
|
6
7
|
export declare const handlePresence: (presenceData: CollabEventPresenceData, view: EditorView) => void;
|
|
7
8
|
export declare const applyRemoteData: (remoteData: CollabEventRemoteData, view: EditorView, options: PrivateCollabEditOptions) => void;
|
|
8
9
|
export declare const applyRemoteSteps: (json: any[], view: EditorView, userIds?: (number | string)[], options?: PrivateCollabEditOptions) => void;
|
|
9
|
-
export declare const handleTelePointer: (telepointerData:
|
|
10
|
+
export declare const handleTelePointer: (telepointerData: CollabTelepointerPayload, view: EditorView) => void;
|
|
10
11
|
export declare const getSendableSelection: (selection: Selection) => CollabSendableSelection;
|