@atlaskit/editor-core 193.24.6 → 193.24.15

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 (113) hide show
  1. package/.eslintrc.js +37 -37
  2. package/CHANGELOG.md +8 -0
  3. package/architecture/0001-record-architecture-decisions.md +6 -3
  4. package/architecture/0002-deep-equality-check-for-getsharedstate.md +9 -8
  5. package/architecture/0003-explicit-plugin-dependencies.md +47 -18
  6. package/codemods/140.0.0-rc-kraken-fix-type-errors.ts +1 -3
  7. package/codemods/145.0.0-deprecate-props.ts +1 -3
  8. package/codemods/172.0.0-transform-smartlinks-prop.ts +1 -3
  9. package/codemods/175.0.0-rename-unsafe-allowUndoRedoButton-prop.ts +1 -1
  10. package/codemods/180.1.0-update-to-editor-migration-component.ts +1 -3
  11. package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +29 -31
  12. package/codemods/__tests__/remove-config-panel-width-prop.ts +29 -31
  13. package/codemods/__tests__/rename-editor-to-editor-migration-component.ts +43 -45
  14. package/codemods/__tests__/rename-smartlinks-prop.ts +57 -59
  15. package/codemods/__tests__/rename-unsafe-allowUndoRedoButtons-prop.ts +43 -43
  16. package/codemods/__tests__/rename-unsafe-cards-prop.ts +43 -45
  17. package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +41 -45
  18. package/codemods/migrates/remove-config-panel-width-prop.ts +20 -29
  19. package/codemods/migrates/rename-editor-to-editor-migration-component.ts +20 -24
  20. package/codemods/migrates/rename-smartlinks-prop.ts +30 -38
  21. package/codemods/migrates/rename-unsafe-allowUndoRedoButtons-prop.ts +4 -5
  22. package/codemods/migrates/rename-unsafe-cards-prop.ts +1 -4
  23. package/codemods/utils.ts +62 -72
  24. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +3 -3
  25. package/dist/cjs/ui/AppearanceComponents/Mobile.js +5 -5
  26. package/dist/cjs/ui/ContentStyles/ai-panels.js +1 -1
  27. package/dist/cjs/ui/ContentStyles/code-block.js +2 -2
  28. package/dist/cjs/ui/ContentStyles/date.js +1 -1
  29. package/dist/cjs/ui/ContentStyles/expand.js +1 -1
  30. package/dist/cjs/ui/ContentStyles/extension.js +2 -2
  31. package/dist/cjs/ui/ContentStyles/index.js +6 -6
  32. package/dist/cjs/ui/ContentStyles/layout.js +1 -1
  33. package/dist/cjs/ui/ContentStyles/media.js +1 -1
  34. package/dist/cjs/ui/ContentStyles/panel.js +1 -1
  35. package/dist/cjs/ui/ContentStyles/status.js +1 -1
  36. package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -1
  37. package/dist/cjs/version-wrapper.js +1 -1
  38. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +40 -40
  39. package/dist/es2019/ui/AppearanceComponents/Mobile.js +5 -5
  40. package/dist/es2019/ui/ContentStyles/ai-panels.js +80 -80
  41. package/dist/es2019/ui/ContentStyles/code-block.js +58 -58
  42. package/dist/es2019/ui/ContentStyles/date.js +19 -19
  43. package/dist/es2019/ui/ContentStyles/expand.js +98 -98
  44. package/dist/es2019/ui/ContentStyles/extension.js +154 -159
  45. package/dist/es2019/ui/ContentStyles/index.js +139 -144
  46. package/dist/es2019/ui/ContentStyles/layout.js +125 -125
  47. package/dist/es2019/ui/ContentStyles/media.js +179 -178
  48. package/dist/es2019/ui/ContentStyles/panel.js +29 -30
  49. package/dist/es2019/ui/ContentStyles/status.js +30 -32
  50. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +18 -19
  51. package/dist/es2019/version-wrapper.js +1 -1
  52. package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -3
  53. package/dist/esm/ui/AppearanceComponents/Mobile.js +5 -5
  54. package/dist/esm/ui/ContentStyles/ai-panels.js +1 -1
  55. package/dist/esm/ui/ContentStyles/code-block.js +2 -2
  56. package/dist/esm/ui/ContentStyles/date.js +1 -1
  57. package/dist/esm/ui/ContentStyles/expand.js +1 -1
  58. package/dist/esm/ui/ContentStyles/extension.js +2 -2
  59. package/dist/esm/ui/ContentStyles/index.js +6 -6
  60. package/dist/esm/ui/ContentStyles/layout.js +1 -1
  61. package/dist/esm/ui/ContentStyles/media.js +1 -1
  62. package/dist/esm/ui/ContentStyles/panel.js +1 -1
  63. package/dist/esm/ui/ContentStyles/status.js +1 -1
  64. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
  65. package/dist/esm/version-wrapper.js +1 -1
  66. package/dist/types/composable-editor/editor.d.ts +1 -1
  67. package/dist/types/composable-editor/hooks/useProviders.d.ts +1 -1
  68. package/dist/types/create-editor/create-preset.d.ts +135 -9
  69. package/dist/types/create-editor/sort-by-order.d.ts +1 -1
  70. package/dist/types/event-dispatcher/index.d.ts +2 -2
  71. package/dist/types/index.d.ts +2 -2
  72. package/dist/types/presets/default.d.ts +120 -8
  73. package/dist/types/presets/universal.d.ts +135 -9
  74. package/dist/types/presets/useUniversalPreset.d.ts +135 -9
  75. package/dist/types/test-utils.d.ts +1 -1
  76. package/dist/types/types/browser.d.ts +1 -1
  77. package/dist/types/types/editor-plugin.d.ts +1 -1
  78. package/dist/types/types/empty-state-handler.d.ts +1 -1
  79. package/dist/types/types/feature-flags.d.ts +1 -1
  80. package/dist/types/types/index.d.ts +3 -3
  81. package/dist/types/types/pm-config.d.ts +1 -1
  82. package/dist/types/types/ui-components.d.ts +1 -1
  83. package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
  84. package/dist/types/ui/Toolbar/types.d.ts +1 -1
  85. package/dist/types/utils/action.d.ts +1 -4
  86. package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -1
  87. package/dist/types/utils/slice.d.ts +1 -1
  88. package/dist/types-ts4.5/composable-editor/editor.d.ts +1 -1
  89. package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +1 -1
  90. package/dist/types-ts4.5/create-editor/create-preset.d.ts +153 -9
  91. package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +1 -1
  92. package/dist/types-ts4.5/event-dispatcher/index.d.ts +2 -2
  93. package/dist/types-ts4.5/index.d.ts +2 -2
  94. package/dist/types-ts4.5/presets/default.d.ts +136 -8
  95. package/dist/types-ts4.5/presets/universal.d.ts +153 -9
  96. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +153 -9
  97. package/dist/types-ts4.5/test-utils.d.ts +1 -1
  98. package/dist/types-ts4.5/types/browser.d.ts +1 -1
  99. package/dist/types-ts4.5/types/editor-plugin.d.ts +1 -1
  100. package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
  101. package/dist/types-ts4.5/types/feature-flags.d.ts +1 -1
  102. package/dist/types-ts4.5/types/index.d.ts +3 -3
  103. package/dist/types-ts4.5/types/pm-config.d.ts +1 -1
  104. package/dist/types-ts4.5/types/ui-components.d.ts +1 -1
  105. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
  106. package/dist/types-ts4.5/ui/Toolbar/types.d.ts +1 -1
  107. package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +1 -1
  108. package/dist/types-ts4.5/utils/slice.d.ts +1 -1
  109. package/docs/0-intro.tsx +13 -19
  110. package/docs/1-legacy-editor.tsx +13 -19
  111. package/docs/4-annotations.tsx +222 -223
  112. package/package.json +25 -12
  113. package/report.api.md +448 -473
@@ -1,2 +1,2 @@
1
- export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage, } from '@atlaskit/editor-common/types';
1
+ export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage } from '@atlaskit/editor-common/types';
2
2
  export type { ToolbarUiComponentFactoryParams, ToolbarUIComponentFactory, } from '@atlaskit/editor-common/types';
@@ -2,8 +2,5 @@ import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/ty
2
2
  import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
3
3
  import type { ExtensionPlugin } from '@atlaskit/editor-plugins/extension';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- export declare function __temporaryFixForConfigPanel(editorView: EditorView, api: PublicPluginAPI<[
6
- OptionalPlugin<ExtensionPlugin>,
7
- OptionalPlugin<ContextPanelPlugin>
8
- ]>): Promise<void>;
5
+ export declare function __temporaryFixForConfigPanel(editorView: EditorView, api: PublicPluginAPI<[OptionalPlugin<ExtensionPlugin>, OptionalPlugin<ContextPanelPlugin>]>): Promise<void>;
9
6
  export declare function getEditorValueWithMedia(editorView: EditorView): Promise<import("prosemirror-model").Node>;
@@ -1,5 +1,5 @@
1
1
  import type { NodeCount, PluginMethodReport, PluginPerformanceReportData, PluginsReport } from '@atlaskit/editor-common/analytics';
2
- export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, };
2
+ export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData };
3
3
  export interface OutlierReport {
4
4
  stateApplyOutlier: number | undefined;
5
5
  viewUpdateOutlier: number | undefined;
@@ -1,2 +1,2 @@
1
1
  export { getFragmentBackingArray, mapFragment, mapSlice, flatmap, mapChildren, } from '@atlaskit/editor-common/utils';
2
- export type { FlatMapCallback, MapWithCallback, } from '@atlaskit/editor-common/utils';
2
+ export type { FlatMapCallback, MapWithCallback } from '@atlaskit/editor-common/utils';
@@ -3,7 +3,7 @@ import type { EditorNextProps } from '../types/editor-props';
3
3
  export declare function ComposableEditor(props: EditorNextProps): jsx.JSX.Element;
4
4
  export declare namespace ComposableEditor {
5
5
  var propTypes: {
6
- minHeight: ({ appearance, minHeight, }: Pick<EditorNextProps, "appearance" | "minHeight">) => Error | null;
6
+ minHeight: ({ appearance, minHeight }: Pick<EditorNextProps, "appearance" | "minHeight">) => Error | null;
7
7
  };
8
8
  }
9
9
  export default ComposableEditor;
@@ -10,5 +10,5 @@ interface UseProvidersProps {
10
10
  *
11
11
  * In the future ideally consumers implement this behaviour themselves.
12
12
  */
13
- export declare const useProviders: ({ contextIdentifierProvider, }: UseProvidersProps) => void;
13
+ export declare const useProviders: ({ contextIdentifierProvider }: UseProvidersProps) => void;
14
14
  export {};
@@ -391,7 +391,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
391
391
  };
392
392
  }, {
393
393
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
394
- } | undefined>>
394
+ } | undefined>>,
395
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
396
+ dependencies: [
397
+ ];
398
+ sharedState: {
399
+ isMenuOpen: boolean;
400
+ activeNode: {
401
+ pos: number;
402
+ };
403
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
404
+ isDragging: boolean;
405
+ } | undefined;
406
+ actions: {};
407
+ commands: {
408
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
409
+ };
410
+ }, undefined>>
395
411
  ];
396
412
  actions: {
397
413
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -711,7 +727,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
711
727
  };
712
728
  }, {
713
729
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
714
- } | undefined>>
730
+ } | undefined>>,
731
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
732
+ dependencies: [
733
+ ];
734
+ sharedState: {
735
+ isMenuOpen: boolean;
736
+ activeNode: {
737
+ pos: number;
738
+ };
739
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
740
+ isDragging: boolean;
741
+ } | undefined;
742
+ actions: {};
743
+ commands: {
744
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
745
+ };
746
+ }, undefined>>
715
747
  ];
716
748
  actions: {
717
749
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -1565,7 +1597,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1565
1597
  };
1566
1598
  }, {
1567
1599
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1568
- } | undefined>>
1600
+ } | undefined>>,
1601
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1602
+ dependencies: [
1603
+ ];
1604
+ sharedState: {
1605
+ isMenuOpen: boolean;
1606
+ activeNode: {
1607
+ pos: number;
1608
+ };
1609
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1610
+ isDragging: boolean;
1611
+ } | undefined;
1612
+ actions: {};
1613
+ commands: {
1614
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1615
+ };
1616
+ }, undefined>>
1569
1617
  ];
1570
1618
  actions: {
1571
1619
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -2212,7 +2260,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2212
2260
  };
2213
2261
  }, {
2214
2262
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2215
- } | undefined>>
2263
+ } | undefined>>,
2264
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
2265
+ dependencies: [
2266
+ ];
2267
+ sharedState: {
2268
+ isMenuOpen: boolean;
2269
+ activeNode: {
2270
+ pos: number;
2271
+ };
2272
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
2273
+ isDragging: boolean;
2274
+ } | undefined;
2275
+ actions: {};
2276
+ commands: {
2277
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2278
+ };
2279
+ }, undefined>>
2216
2280
  ];
2217
2281
  actions: {
2218
2282
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -3093,7 +3157,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3093
3157
  };
3094
3158
  }, {
3095
3159
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3096
- } | undefined>>
3160
+ } | undefined>>,
3161
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
3162
+ dependencies: [
3163
+ ];
3164
+ sharedState: {
3165
+ isMenuOpen: boolean;
3166
+ activeNode: {
3167
+ pos: number;
3168
+ };
3169
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3170
+ isDragging: boolean;
3171
+ } | undefined;
3172
+ actions: {};
3173
+ commands: {
3174
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3175
+ };
3176
+ }, undefined>>
3097
3177
  ];
3098
3178
  actions: {
3099
3179
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -3806,7 +3886,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3806
3886
  };
3807
3887
  }, {
3808
3888
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3809
- } | undefined>>
3889
+ } | undefined>>,
3890
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
3891
+ dependencies: [
3892
+ ];
3893
+ sharedState: {
3894
+ isMenuOpen: boolean;
3895
+ activeNode: {
3896
+ pos: number;
3897
+ };
3898
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3899
+ isDragging: boolean;
3900
+ } | undefined;
3901
+ actions: {};
3902
+ commands: {
3903
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3904
+ };
3905
+ }, undefined>>
3810
3906
  ];
3811
3907
  actions: {
3812
3908
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -4101,7 +4197,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
4101
4197
  };
4102
4198
  }, {
4103
4199
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4104
- } | undefined>>
4200
+ } | undefined>>,
4201
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
4202
+ dependencies: [
4203
+ ];
4204
+ sharedState: {
4205
+ isMenuOpen: boolean;
4206
+ activeNode: {
4207
+ pos: number;
4208
+ };
4209
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
4210
+ isDragging: boolean;
4211
+ } | undefined;
4212
+ actions: {};
4213
+ commands: {
4214
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
4215
+ };
4216
+ }, undefined>>
4105
4217
  ];
4106
4218
  actions: {
4107
4219
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -4968,7 +5080,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
4968
5080
  };
4969
5081
  }, {
4970
5082
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4971
- } | undefined>>
5083
+ } | undefined>>,
5084
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
5085
+ dependencies: [
5086
+ ];
5087
+ sharedState: {
5088
+ isMenuOpen: boolean;
5089
+ activeNode: {
5090
+ pos: number;
5091
+ };
5092
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
5093
+ isDragging: boolean;
5094
+ } | undefined;
5095
+ actions: {};
5096
+ commands: {
5097
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
5098
+ };
5099
+ }, undefined>>
4972
5100
  ];
4973
5101
  actions: {
4974
5102
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -5288,7 +5416,23 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
5288
5416
  };
5289
5417
  }, {
5290
5418
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
5291
- } | undefined>>
5419
+ } | undefined>>,
5420
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
5421
+ dependencies: [
5422
+ ];
5423
+ sharedState: {
5424
+ isMenuOpen: boolean;
5425
+ activeNode: {
5426
+ pos: number;
5427
+ };
5428
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
5429
+ isDragging: boolean;
5430
+ } | undefined;
5431
+ actions: {};
5432
+ commands: {
5433
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
5434
+ };
5435
+ }, undefined>>
5292
5436
  ];
5293
5437
  actions: {
5294
5438
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
@@ -1 +1 @@
1
- export { sortByOrder, sortByOrderWithTypeName, } from '@atlaskit/editor-common/legacy-rank-plugins';
1
+ export { sortByOrder, sortByOrderWithTypeName } from '@atlaskit/editor-common/legacy-rank-plugins';
@@ -1,2 +1,2 @@
1
- export type { Listeners, Listener, Dispatch, } from '@atlaskit/editor-common/event-dispatcher';
2
- export { EventDispatcher, createDispatch, } from '@atlaskit/editor-common/event-dispatcher';
1
+ export type { Listeners, Listener, Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
+ export { EventDispatcher, createDispatch } from '@atlaskit/editor-common/event-dispatcher';
@@ -9,7 +9,7 @@ export { default as ToolbarFeedback } from './ui/ToolbarFeedback';
9
9
  export { default as ContextPanel } from './ui/ContextPanel';
10
10
  export { EmojiResource } from '@atlaskit/emoji/resource';
11
11
  export { MentionResource } from '@atlaskit/mention/resource';
12
- export type { MentionProvider, PresenceProvider, } from '@atlaskit/mention/resource';
12
+ export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';
13
13
  export { TeamMentionResource } from '@atlaskit/mention/team-resource';
14
14
  /**
15
15
  * @deprecated
@@ -30,7 +30,7 @@ export type { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
30
30
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
31
31
  export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
32
32
  export { setTextSelection, getNodesCount, measurements } from './utils';
33
- export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch, } from './types';
33
+ export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch } from './types';
34
34
  export { default as EditorActions } from './actions';
35
35
  export type { MacroProvider, MacroAttributes, ExtensionType, CardProvider, } from '@atlaskit/editor-common/provider-factory';
36
36
  export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer, } from '@atlaskit/editor-common/portal-provider';
@@ -265,7 +265,23 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
265
265
  };
266
266
  }, {
267
267
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
268
- } | undefined>>
268
+ } | undefined>>,
269
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
270
+ dependencies: [
271
+ ];
272
+ sharedState: {
273
+ isMenuOpen: boolean;
274
+ activeNode: {
275
+ pos: number;
276
+ };
277
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
278
+ isDragging: boolean;
279
+ } | undefined;
280
+ actions: {};
281
+ commands: {
282
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
283
+ };
284
+ }, undefined>>
269
285
  ];
270
286
  actions: {
271
287
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
@@ -560,7 +576,23 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
560
576
  };
561
577
  }, {
562
578
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
563
- } | undefined>>
579
+ } | undefined>>,
580
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
581
+ dependencies: [
582
+ ];
583
+ sharedState: {
584
+ isMenuOpen: boolean;
585
+ activeNode: {
586
+ pos: number;
587
+ };
588
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
589
+ isDragging: boolean;
590
+ } | undefined;
591
+ actions: {};
592
+ commands: {
593
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
594
+ };
595
+ }, undefined>>
564
596
  ];
565
597
  actions: {
566
598
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
@@ -1427,7 +1459,23 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1427
1459
  };
1428
1460
  }, {
1429
1461
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1430
- } | undefined>>
1462
+ } | undefined>>,
1463
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1464
+ dependencies: [
1465
+ ];
1466
+ sharedState: {
1467
+ isMenuOpen: boolean;
1468
+ activeNode: {
1469
+ pos: number;
1470
+ };
1471
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1472
+ isDragging: boolean;
1473
+ } | undefined;
1474
+ actions: {};
1475
+ commands: {
1476
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1477
+ };
1478
+ }, undefined>>
1431
1479
  ];
1432
1480
  actions: {
1433
1481
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
@@ -1747,7 +1795,23 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1747
1795
  };
1748
1796
  }, {
1749
1797
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1750
- } | undefined>>
1798
+ } | undefined>>,
1799
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1800
+ dependencies: [
1801
+ ];
1802
+ sharedState: {
1803
+ isMenuOpen: boolean;
1804
+ activeNode: {
1805
+ pos: number;
1806
+ };
1807
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1808
+ isDragging: boolean;
1809
+ } | undefined;
1810
+ actions: {};
1811
+ commands: {
1812
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1813
+ };
1814
+ }, undefined>>
1751
1815
  ];
1752
1816
  actions: {
1753
1817
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
@@ -2248,7 +2312,23 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2248
2312
  };
2249
2313
  }, {
2250
2314
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2251
- } | undefined>>
2315
+ } | undefined>>,
2316
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
2317
+ dependencies: [
2318
+ ];
2319
+ sharedState: {
2320
+ isMenuOpen: boolean;
2321
+ activeNode: {
2322
+ pos: number;
2323
+ };
2324
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
2325
+ isDragging: boolean;
2326
+ } | undefined;
2327
+ actions: {};
2328
+ commands: {
2329
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2330
+ };
2331
+ }, undefined>>
2252
2332
  ];
2253
2333
  actions: {
2254
2334
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
@@ -2543,7 +2623,23 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2543
2623
  };
2544
2624
  }, {
2545
2625
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2546
- } | undefined>>
2626
+ } | undefined>>,
2627
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
2628
+ dependencies: [
2629
+ ];
2630
+ sharedState: {
2631
+ isMenuOpen: boolean;
2632
+ activeNode: {
2633
+ pos: number;
2634
+ };
2635
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
2636
+ isDragging: boolean;
2637
+ } | undefined;
2638
+ actions: {};
2639
+ commands: {
2640
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2641
+ };
2642
+ }, undefined>>
2547
2643
  ];
2548
2644
  actions: {
2549
2645
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
@@ -3410,7 +3506,23 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3410
3506
  };
3411
3507
  }, {
3412
3508
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3413
- } | undefined>>
3509
+ } | undefined>>,
3510
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
3511
+ dependencies: [
3512
+ ];
3513
+ sharedState: {
3514
+ isMenuOpen: boolean;
3515
+ activeNode: {
3516
+ pos: number;
3517
+ };
3518
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3519
+ isDragging: boolean;
3520
+ } | undefined;
3521
+ actions: {};
3522
+ commands: {
3523
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3524
+ };
3525
+ }, undefined>>
3414
3526
  ];
3415
3527
  actions: {
3416
3528
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
@@ -3730,7 +3842,23 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3730
3842
  };
3731
3843
  }, {
3732
3844
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3733
- } | undefined>>
3845
+ } | undefined>>,
3846
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
3847
+ dependencies: [
3848
+ ];
3849
+ sharedState: {
3850
+ isMenuOpen: boolean;
3851
+ activeNode: {
3852
+ pos: number;
3853
+ };
3854
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3855
+ isDragging: boolean;
3856
+ } | undefined;
3857
+ actions: {};
3858
+ commands: {
3859
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3860
+ };
3861
+ }, undefined>>
3734
3862
  ];
3735
3863
  actions: {
3736
3864
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;