@atlaskit/editor-core 188.12.0 → 188.12.2

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.
Files changed (79) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/labs/next/presets/universal.js +12 -1
  3. package/dist/cjs/plugins/annotation/index.js +12 -1
  4. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -1
  5. package/dist/cjs/plugins/annotation/pm-plugins/plugin-factory.js +5 -0
  6. package/dist/cjs/plugins/annotation/pm-plugins/reducer.js +2 -1
  7. package/dist/cjs/plugins/annotation/toolbar.js +2 -156
  8. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +33 -31
  9. package/dist/cjs/plugins/layout/actions.js +20 -17
  10. package/dist/cjs/plugins/layout/index.js +6 -2
  11. package/dist/cjs/plugins/panel/index.js +1 -1
  12. package/dist/cjs/plugins/panel/toolbar.js +9 -7
  13. package/dist/cjs/plugins/paste/plugins/media.js +50 -24
  14. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +0 -6
  15. package/dist/cjs/plugins/paste/pm-plugins/main.js +1 -0
  16. package/dist/cjs/plugins/rank.js +1 -1
  17. package/dist/cjs/plugins/tasks-and-decisions/index.js +1 -1
  18. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/keymaps.js +104 -90
  19. package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -2
  20. package/dist/cjs/version-wrapper.js +1 -1
  21. package/dist/es2019/labs/next/presets/universal.js +12 -1
  22. package/dist/es2019/plugins/annotation/index.js +14 -1
  23. package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +2 -1
  24. package/dist/es2019/plugins/annotation/pm-plugins/plugin-factory.js +6 -0
  25. package/dist/es2019/plugins/annotation/pm-plugins/reducer.js +2 -1
  26. package/dist/es2019/plugins/annotation/toolbar.js +1 -156
  27. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
  28. package/dist/es2019/plugins/layout/actions.js +4 -3
  29. package/dist/es2019/plugins/layout/index.js +63 -57
  30. package/dist/es2019/plugins/panel/index.js +1 -1
  31. package/dist/es2019/plugins/panel/toolbar.js +9 -7
  32. package/dist/es2019/plugins/paste/plugins/media.js +53 -25
  33. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +1 -4
  34. package/dist/es2019/plugins/paste/pm-plugins/main.js +4 -5
  35. package/dist/es2019/plugins/rank.js +1 -1
  36. package/dist/es2019/plugins/tasks-and-decisions/index.js +1 -1
  37. package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/keymaps.js +22 -14
  38. package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -2
  39. package/dist/es2019/version-wrapper.js +1 -1
  40. package/dist/esm/labs/next/presets/universal.js +12 -1
  41. package/dist/esm/plugins/annotation/index.js +12 -1
  42. package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +2 -1
  43. package/dist/esm/plugins/annotation/pm-plugins/plugin-factory.js +5 -0
  44. package/dist/esm/plugins/annotation/pm-plugins/reducer.js +2 -1
  45. package/dist/esm/plugins/annotation/toolbar.js +1 -156
  46. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +33 -31
  47. package/dist/esm/plugins/layout/actions.js +15 -12
  48. package/dist/esm/plugins/layout/index.js +7 -3
  49. package/dist/esm/plugins/panel/index.js +1 -1
  50. package/dist/esm/plugins/panel/toolbar.js +9 -7
  51. package/dist/esm/plugins/paste/plugins/media.js +50 -23
  52. package/dist/esm/plugins/paste/pm-plugins/analytics.js +1 -6
  53. package/dist/esm/plugins/paste/pm-plugins/main.js +4 -5
  54. package/dist/esm/plugins/rank.js +1 -1
  55. package/dist/esm/plugins/tasks-and-decisions/index.js +1 -1
  56. package/dist/esm/plugins/tasks-and-decisions/pm-plugins/keymaps.js +104 -90
  57. package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -2
  58. package/dist/esm/version-wrapper.js +1 -1
  59. package/dist/types/plugins/annotation/pm-plugins/types.d.ts +1 -0
  60. package/dist/types/plugins/insert-block/types.d.ts +3 -1
  61. package/dist/types/plugins/layout/actions.d.ts +2 -1
  62. package/dist/types/plugins/layout/index.d.ts +4 -0
  63. package/dist/types/plugins/panel/index.d.ts +2 -2
  64. package/dist/types/plugins/panel/toolbar.d.ts +5 -3
  65. package/dist/types/plugins/paste/plugins/media.d.ts +11 -0
  66. package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +0 -1
  67. package/dist/types/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +7 -4
  68. package/dist/types/plugins/tasks-and-decisions/types.d.ts +5 -1
  69. package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +1 -0
  70. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
  71. package/dist/types-ts4.5/plugins/layout/actions.d.ts +2 -1
  72. package/dist/types-ts4.5/plugins/layout/index.d.ts +4 -0
  73. package/dist/types-ts4.5/plugins/panel/index.d.ts +2 -2
  74. package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +5 -3
  75. package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +11 -0
  76. package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +0 -1
  77. package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +7 -4
  78. package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +3 -1
  79. package/package.json +6 -2
@@ -1,4 +1,4 @@
1
- import type { FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types';
1
+ import type { FloatingToolbarConfig, FloatingToolbarItem, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { EmojiInfo, PanelPluginOptions } from './types';
3
3
  import type { IntlShape } from 'react-intl-next';
4
4
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
@@ -7,8 +7,10 @@ import type { NodeType } from '@atlaskit/editor-prosemirror/model';
7
7
  import type { Command } from '../../types';
8
8
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
9
  import { PanelType } from '@atlaskit/adf-schema';
10
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
11
+ import type { PanelPlugin } from './index';
10
12
  export declare const panelIconMap: {
11
13
  [key in Exclude<PanelType, PanelType.CUSTOM>]: EmojiInfo;
12
14
  };
13
- export declare const getToolbarItems: (formatMessage: IntlShape['formatMessage'], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined, activePanelType?: string, activePanelColor?: string, activePanelIcon?: string, state?: EditorState) => FloatingToolbarItem<Command>[];
14
- export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, options: PanelPluginOptions | undefined, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarConfig | undefined;
15
+ export declare const getToolbarItems: (formatMessage: IntlShape['formatMessage'], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, activePanelType?: string, activePanelColor?: string, activePanelIcon?: string, state?: EditorState) => FloatingToolbarItem<Command>[];
16
+ export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, options: PanelPluginOptions | undefined, providerFactory: ProviderFactory, api: ExtractInjectionAPI<PanelPlugin> | undefined) => FloatingToolbarConfig | undefined;
@@ -1,8 +1,19 @@
1
1
  import type { Slice, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
+ /**
4
+ * Ensure correct layout in nested mode
5
+ *
6
+ * TODO: this func is only used in handlePaste, so layout update won't work for drop event
7
+ */
3
8
  export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
4
9
  export declare const isImage: (fileType?: string) => boolean;
5
10
  export declare const transformSliceToCorrectMediaWrapper: (slice: Slice, schema: Schema) => Slice;
11
+ /**
12
+ * This func will be called when copy & paste, drag & drop external html with media, media files, and slices from editor
13
+ * Because width may not be available when transform, DEFAULT_IMAGE_WIDTH is used as a fallback
14
+ *
15
+ */
16
+ export declare const transformSliceToMediaSingleWithNewExperience: (slice: Slice, schema: Schema) => Slice;
6
17
  /**
7
18
  * Given a html string, we attempt to hoist any nested `<img>` tags,
8
19
  * not directly wrapped by a `<div>` as ProseMirror no-op's
@@ -21,7 +21,6 @@ export declare function getContent({ schema, slice }: GetContentProps): PasteCon
21
21
  export declare function getMediaTraceId(slice: Slice): undefined;
22
22
  export declare function createPasteAnalyticsPayload(view: EditorView, event: ClipboardEvent, slice: Slice, pasteContext: PasteContext): AnalyticsEventPayload;
23
23
  export declare function sendPasteAnalyticsEvent(view: EditorView, event: ClipboardEvent, slice: Slice, pasteContext: PasteContext): void;
24
- export declare function pasteCommandWithAnalytics(view: EditorView, event: ClipboardEvent, slice: Slice, pasteContext: PasteContext): import("../../analytics").HigherOrderCommand;
25
24
  export declare const handlePasteAsPlainTextWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice) => Command;
26
25
  export declare const handlePasteIntoTaskAndDecisionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
27
26
  export declare const handlePasteIntoCaptionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType) => Command;
@@ -1,8 +1,11 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { INPUT_METHOD } from '../../analytics';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
5
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
+ import type { TaskAndDecisionsPlugin } from '../types';
4
7
  type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
5
- export declare const getUnindentCommand: (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
6
- export declare const getIndentCommand: (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
7
- export declare function keymapPlugin(schema: Schema, allowNestedTasks?: boolean, consumeTabs?: boolean): SafePlugin | undefined;
8
+ export declare const getUnindentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
9
+ export declare const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
10
+ export declare function keymapPlugin(schema: Schema, api: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined, allowNestedTasks?: boolean, consumeTabs?: boolean): SafePlugin | undefined;
8
11
  export default keymapPlugin;
@@ -4,6 +4,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
4
4
  import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
5
5
  import type { NextEditorPlugin, OptionalPlugin, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
6
6
  import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
7
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
7
8
  export type TaskDecisionListType = 'taskList' | 'decisionList';
8
9
  export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
9
10
  export type ContextData = {
@@ -27,5 +28,8 @@ export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptio
27
28
  }
28
29
  export type TaskAndDecisionsPlugin = NextEditorPlugin<'taskDecision', {
29
30
  pluginConfiguration: TaskDecisionPluginOptions | undefined;
30
- dependencies: [OptionalPlugin<TypeAheadPlugin>];
31
+ dependencies: [
32
+ OptionalPlugin<TypeAheadPlugin>,
33
+ OptionalPlugin<AnalyticsPlugin>
34
+ ];
31
35
  }>;
@@ -71,4 +71,5 @@ export type InlineCommentPluginState = {
71
71
  bookmark?: SelectionBookmark;
72
72
  disallowOnWhitespace: boolean;
73
73
  isVisible: boolean;
74
+ skipSelectionHandling: boolean;
74
75
  };
@@ -10,6 +10,7 @@ import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
10
10
  import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
11
11
  import type codeBlockPlugin from '../code-block';
12
12
  import type panelPlugin from '../panel';
13
+ import type { LayoutPlugin } from '../layout';
13
14
  import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
14
15
  import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
15
16
  import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
@@ -31,5 +32,6 @@ export type InsertBlockPluginDependencies = [
31
32
  OptionalPlugin<typeof panelPlugin>,
32
33
  OptionalPlugin<MediaPlugin>,
33
34
  OptionalPlugin<MentionsPlugin>,
34
- OptionalPlugin<StatusPlugin>
35
+ OptionalPlugin<StatusPlugin>,
36
+ OptionalPlugin<LayoutPlugin>
35
37
  ];
@@ -1,6 +1,7 @@
1
1
  import type { Node } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Command } from '../../types/command';
3
3
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
4
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
5
  import type { Change, PresetLayout } from './types';
5
6
  import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
6
7
  export declare const ONE_COL_LAYOUTS: PresetLayout[];
@@ -14,7 +15,7 @@ export declare const getPresetLayout: (section: Node) => PresetLayout | undefine
14
15
  export declare const getSelectedLayout: (maybeLayoutSection: Node | undefined, current: PresetLayout) => PresetLayout;
15
16
  export declare const createDefaultLayoutSection: (state: EditorState) => Node;
16
17
  export declare const insertLayoutColumns: Command;
17
- export declare const insertLayoutColumnsWithAnalytics: (inputMethod: TOOLBAR_MENU_TYPE) => Command;
18
+ export declare const insertLayoutColumnsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: TOOLBAR_MENU_TYPE) => Command;
18
19
  export declare function forceSectionToPresetLayout(state: EditorState, node: Node, pos: number, presetLayout: PresetLayout): Transaction;
19
20
  export declare const setPresetLayout: (layout: PresetLayout) => Command;
20
21
  export declare const fixColumnSizes: (changedTr: Transaction, state: EditorState) => Change | undefined;
@@ -1,4 +1,5 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
+ import { insertLayoutColumnsWithAnalytics } from './actions';
2
3
  import { pluginKey } from './pm-plugins/plugin-key';
3
4
  import type { LayoutPluginOptions } from './types';
4
5
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
@@ -10,6 +11,9 @@ export type LayoutPlugin = NextEditorPlugin<'layout', {
10
11
  DecorationsPlugin,
11
12
  OptionalPlugin<AnalyticsPlugin>
12
13
  ];
14
+ actions: {
15
+ insertLayoutColumns: ReturnType<typeof insertLayoutColumnsWithAnalytics>;
16
+ };
13
17
  }>;
14
18
  declare const layoutPlugin: LayoutPlugin;
15
19
  export default layoutPlugin;
@@ -3,7 +3,7 @@ import { INPUT_METHOD } from '../analytics';
3
3
  import type { PanelPluginOptions } from './types';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
6
- declare const panelPlugin: NextEditorPlugin<'panel', {
6
+ export type PanelPlugin = NextEditorPlugin<'panel', {
7
7
  pluginConfiguration: PanelPluginOptions | undefined;
8
8
  dependencies: [
9
9
  typeof decorationsPlugin,
@@ -13,5 +13,5 @@ declare const panelPlugin: NextEditorPlugin<'panel', {
13
13
  insertPanel: (inputMethod: INPUT_METHOD) => Command;
14
14
  };
15
15
  }>;
16
+ declare const panelPlugin: PanelPlugin;
16
17
  export default panelPlugin;
17
- export type PanelPlugin = typeof panelPlugin;
@@ -1,4 +1,4 @@
1
- import type { FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types';
1
+ import type { FloatingToolbarConfig, FloatingToolbarItem, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { EmojiInfo, PanelPluginOptions } from './types';
3
3
  import type { IntlShape } from 'react-intl-next';
4
4
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
@@ -7,8 +7,10 @@ import type { NodeType } from '@atlaskit/editor-prosemirror/model';
7
7
  import type { Command } from '../../types';
8
8
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
9
  import { PanelType } from '@atlaskit/adf-schema';
10
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
11
+ import type { PanelPlugin } from './index';
10
12
  export declare const panelIconMap: {
11
13
  [key in Exclude<PanelType, PanelType.CUSTOM>]: EmojiInfo;
12
14
  };
13
- export declare const getToolbarItems: (formatMessage: IntlShape['formatMessage'], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined, activePanelType?: string, activePanelColor?: string, activePanelIcon?: string, state?: EditorState) => FloatingToolbarItem<Command>[];
14
- export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, options: PanelPluginOptions | undefined, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarConfig | undefined;
15
+ export declare const getToolbarItems: (formatMessage: IntlShape['formatMessage'], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, activePanelType?: string, activePanelColor?: string, activePanelIcon?: string, state?: EditorState) => FloatingToolbarItem<Command>[];
16
+ export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, options: PanelPluginOptions | undefined, providerFactory: ProviderFactory, api: ExtractInjectionAPI<PanelPlugin> | undefined) => FloatingToolbarConfig | undefined;
@@ -1,8 +1,19 @@
1
1
  import type { Slice, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
+ /**
4
+ * Ensure correct layout in nested mode
5
+ *
6
+ * TODO: this func is only used in handlePaste, so layout update won't work for drop event
7
+ */
3
8
  export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
4
9
  export declare const isImage: (fileType?: string) => boolean;
5
10
  export declare const transformSliceToCorrectMediaWrapper: (slice: Slice, schema: Schema) => Slice;
11
+ /**
12
+ * This func will be called when copy & paste, drag & drop external html with media, media files, and slices from editor
13
+ * Because width may not be available when transform, DEFAULT_IMAGE_WIDTH is used as a fallback
14
+ *
15
+ */
16
+ export declare const transformSliceToMediaSingleWithNewExperience: (slice: Slice, schema: Schema) => Slice;
6
17
  /**
7
18
  * Given a html string, we attempt to hoist any nested `<img>` tags,
8
19
  * not directly wrapped by a `<div>` as ProseMirror no-op's
@@ -21,7 +21,6 @@ export declare function getContent({ schema, slice }: GetContentProps): PasteCon
21
21
  export declare function getMediaTraceId(slice: Slice): undefined;
22
22
  export declare function createPasteAnalyticsPayload(view: EditorView, event: ClipboardEvent, slice: Slice, pasteContext: PasteContext): AnalyticsEventPayload;
23
23
  export declare function sendPasteAnalyticsEvent(view: EditorView, event: ClipboardEvent, slice: Slice, pasteContext: PasteContext): void;
24
- export declare function pasteCommandWithAnalytics(view: EditorView, event: ClipboardEvent, slice: Slice, pasteContext: PasteContext): import("../../analytics").HigherOrderCommand;
25
24
  export declare const handlePasteAsPlainTextWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice) => Command;
26
25
  export declare const handlePasteIntoTaskAndDecisionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
27
26
  export declare const handlePasteIntoCaptionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType) => Command;
@@ -1,8 +1,11 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { INPUT_METHOD } from '../../analytics';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
5
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
+ import type { TaskAndDecisionsPlugin } from '../types';
4
7
  type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
5
- export declare const getUnindentCommand: (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
6
- export declare const getIndentCommand: (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
7
- export declare function keymapPlugin(schema: Schema, allowNestedTasks?: boolean, consumeTabs?: boolean): SafePlugin | undefined;
8
+ export declare const getUnindentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
9
+ export declare const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => import("@atlaskit/editor-common/types").Command;
10
+ export declare function keymapPlugin(schema: Schema, api: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined, allowNestedTasks?: boolean, consumeTabs?: boolean): SafePlugin | undefined;
8
11
  export default keymapPlugin;
@@ -4,6 +4,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
4
4
  import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
5
5
  import type { NextEditorPlugin, OptionalPlugin, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
6
6
  import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
7
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
7
8
  export type TaskDecisionListType = 'taskList' | 'decisionList';
8
9
  export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
9
10
  export type ContextData = {
@@ -28,6 +29,7 @@ export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptio
28
29
  export type TaskAndDecisionsPlugin = NextEditorPlugin<'taskDecision', {
29
30
  pluginConfiguration: TaskDecisionPluginOptions | undefined;
30
31
  dependencies: [
31
- OptionalPlugin<TypeAheadPlugin>
32
+ OptionalPlugin<TypeAheadPlugin>,
33
+ OptionalPlugin<AnalyticsPlugin>
32
34
  ];
33
35
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "188.12.0",
3
+ "version": "188.12.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -93,6 +93,7 @@
93
93
  "@atlaskit/editor-plugin-save-on-enter": "^0.1.0",
94
94
  "@atlaskit/editor-plugin-scroll-into-view": "^0.1.0",
95
95
  "@atlaskit/editor-plugin-selection": "^0.1.0",
96
+ "@atlaskit/editor-plugin-selection-toolbar": "^0.1.0",
96
97
  "@atlaskit/editor-plugin-status": "^0.1.0",
97
98
  "@atlaskit/editor-plugin-table": "^5.3.0",
98
99
  "@atlaskit/editor-plugin-text-formatting": "^0.4.0",
@@ -117,7 +118,7 @@
117
118
  "@atlaskit/radio": "^5.6.0",
118
119
  "@atlaskit/section-message": "^6.4.0",
119
120
  "@atlaskit/select": "^16.7.0",
120
- "@atlaskit/smart-card": "^26.36.0",
121
+ "@atlaskit/smart-card": "^26.37.0",
121
122
  "@atlaskit/smart-user-picker": "^6.3.0",
122
123
  "@atlaskit/spinner": "^15.6.0",
123
124
  "@atlaskit/tabs": "^13.4.0",
@@ -316,6 +317,9 @@
316
317
  "platform.editor.table-update-colwidths-after-column-is-deleted": {
317
318
  "type": "boolean",
318
319
  "referenceOnly": "true"
320
+ },
321
+ "platform.editor.enable-selection-toolbar_ucdwd": {
322
+ "type": "boolean"
319
323
  }
320
324
  }
321
325
  }