@atlaskit/editor-core 193.24.0 → 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 (116) hide show
  1. package/.eslintrc.js +37 -37
  2. package/CHANGELOG.md +17424 -17539
  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/utils/extensions.js +5 -5
  38. package/dist/cjs/version-wrapper.js +1 -1
  39. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +40 -40
  40. package/dist/es2019/ui/AppearanceComponents/Mobile.js +5 -5
  41. package/dist/es2019/ui/ContentStyles/ai-panels.js +80 -80
  42. package/dist/es2019/ui/ContentStyles/code-block.js +58 -58
  43. package/dist/es2019/ui/ContentStyles/date.js +19 -19
  44. package/dist/es2019/ui/ContentStyles/expand.js +98 -98
  45. package/dist/es2019/ui/ContentStyles/extension.js +154 -159
  46. package/dist/es2019/ui/ContentStyles/index.js +139 -144
  47. package/dist/es2019/ui/ContentStyles/layout.js +125 -125
  48. package/dist/es2019/ui/ContentStyles/media.js +179 -178
  49. package/dist/es2019/ui/ContentStyles/panel.js +29 -30
  50. package/dist/es2019/ui/ContentStyles/status.js +30 -32
  51. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +18 -19
  52. package/dist/es2019/utils/extensions.js +5 -5
  53. package/dist/es2019/version-wrapper.js +1 -1
  54. package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -3
  55. package/dist/esm/ui/AppearanceComponents/Mobile.js +5 -5
  56. package/dist/esm/ui/ContentStyles/ai-panels.js +1 -1
  57. package/dist/esm/ui/ContentStyles/code-block.js +2 -2
  58. package/dist/esm/ui/ContentStyles/date.js +1 -1
  59. package/dist/esm/ui/ContentStyles/expand.js +1 -1
  60. package/dist/esm/ui/ContentStyles/extension.js +2 -2
  61. package/dist/esm/ui/ContentStyles/index.js +6 -6
  62. package/dist/esm/ui/ContentStyles/layout.js +1 -1
  63. package/dist/esm/ui/ContentStyles/media.js +1 -1
  64. package/dist/esm/ui/ContentStyles/panel.js +1 -1
  65. package/dist/esm/ui/ContentStyles/status.js +1 -1
  66. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
  67. package/dist/esm/utils/extensions.js +5 -5
  68. package/dist/esm/version-wrapper.js +1 -1
  69. package/dist/types/composable-editor/editor.d.ts +1 -1
  70. package/dist/types/composable-editor/hooks/useProviders.d.ts +1 -1
  71. package/dist/types/create-editor/create-preset.d.ts +137 -11
  72. package/dist/types/create-editor/sort-by-order.d.ts +1 -1
  73. package/dist/types/event-dispatcher/index.d.ts +2 -2
  74. package/dist/types/index.d.ts +2 -2
  75. package/dist/types/presets/default.d.ts +122 -10
  76. package/dist/types/presets/universal.d.ts +137 -11
  77. package/dist/types/presets/useUniversalPreset.d.ts +137 -11
  78. package/dist/types/test-utils.d.ts +1 -1
  79. package/dist/types/types/browser.d.ts +1 -1
  80. package/dist/types/types/editor-plugin.d.ts +1 -1
  81. package/dist/types/types/empty-state-handler.d.ts +1 -1
  82. package/dist/types/types/feature-flags.d.ts +1 -1
  83. package/dist/types/types/index.d.ts +3 -3
  84. package/dist/types/types/pm-config.d.ts +1 -1
  85. package/dist/types/types/ui-components.d.ts +1 -1
  86. package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
  87. package/dist/types/ui/Toolbar/types.d.ts +1 -1
  88. package/dist/types/utils/action.d.ts +1 -4
  89. package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -1
  90. package/dist/types/utils/slice.d.ts +1 -1
  91. package/dist/types-ts4.5/composable-editor/editor.d.ts +1 -1
  92. package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +1 -1
  93. package/dist/types-ts4.5/create-editor/create-preset.d.ts +155 -11
  94. package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +1 -1
  95. package/dist/types-ts4.5/event-dispatcher/index.d.ts +2 -2
  96. package/dist/types-ts4.5/index.d.ts +2 -2
  97. package/dist/types-ts4.5/presets/default.d.ts +138 -10
  98. package/dist/types-ts4.5/presets/universal.d.ts +155 -11
  99. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +155 -11
  100. package/dist/types-ts4.5/test-utils.d.ts +1 -1
  101. package/dist/types-ts4.5/types/browser.d.ts +1 -1
  102. package/dist/types-ts4.5/types/editor-plugin.d.ts +1 -1
  103. package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
  104. package/dist/types-ts4.5/types/feature-flags.d.ts +1 -1
  105. package/dist/types-ts4.5/types/index.d.ts +3 -3
  106. package/dist/types-ts4.5/types/pm-config.d.ts +1 -1
  107. package/dist/types-ts4.5/types/ui-components.d.ts +1 -1
  108. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
  109. package/dist/types-ts4.5/ui/Toolbar/types.d.ts +1 -1
  110. package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +1 -1
  111. package/dist/types-ts4.5/utils/slice.d.ts +1 -1
  112. package/docs/0-intro.tsx +13 -19
  113. package/docs/1-legacy-editor.tsx +13 -19
  114. package/docs/4-annotations.tsx +222 -223
  115. package/package.json +28 -20
  116. package/report.api.md +448 -473
@@ -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';
@@ -199,7 +199,21 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
199
199
  };
200
200
  }, {
201
201
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
202
- } | undefined>>];
202
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
203
+ dependencies: [];
204
+ sharedState: {
205
+ isMenuOpen: boolean;
206
+ activeNode: {
207
+ pos: number;
208
+ };
209
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
210
+ isDragging: boolean;
211
+ } | undefined;
212
+ actions: {};
213
+ commands: {
214
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
215
+ };
216
+ }, undefined>>];
203
217
  actions: {
204
218
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
205
219
  };
@@ -439,7 +453,21 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
439
453
  };
440
454
  }, {
441
455
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
442
- } | undefined>>];
456
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
457
+ dependencies: [];
458
+ sharedState: {
459
+ isMenuOpen: boolean;
460
+ activeNode: {
461
+ pos: number;
462
+ };
463
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
464
+ isDragging: boolean;
465
+ } | undefined;
466
+ actions: {};
467
+ commands: {
468
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
469
+ };
470
+ }, undefined>>];
443
471
  actions: {
444
472
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
445
473
  };
@@ -635,7 +663,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
635
663
  sharedState: import("@atlaskit/editor-plugins/quick-insert").QuickInsertSharedState | null;
636
664
  actions: {
637
665
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
638
- insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
666
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
639
667
  getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
640
668
  };
641
669
  commands: {
@@ -1160,7 +1188,21 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1160
1188
  };
1161
1189
  }, {
1162
1190
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1163
- } | undefined>>];
1191
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1192
+ dependencies: [];
1193
+ sharedState: {
1194
+ isMenuOpen: boolean;
1195
+ activeNode: {
1196
+ pos: number;
1197
+ };
1198
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1199
+ isDragging: boolean;
1200
+ } | undefined;
1201
+ actions: {};
1202
+ commands: {
1203
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1204
+ };
1205
+ }, undefined>>];
1164
1206
  actions: {
1165
1207
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
1166
1208
  };
@@ -1422,7 +1464,21 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1422
1464
  };
1423
1465
  }, {
1424
1466
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1425
- } | undefined>>];
1467
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1468
+ dependencies: [];
1469
+ sharedState: {
1470
+ isMenuOpen: boolean;
1471
+ activeNode: {
1472
+ pos: number;
1473
+ };
1474
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1475
+ isDragging: boolean;
1476
+ } | undefined;
1477
+ actions: {};
1478
+ commands: {
1479
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1480
+ };
1481
+ }, undefined>>];
1426
1482
  actions: {
1427
1483
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
1428
1484
  };
@@ -1807,7 +1863,21 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
1807
1863
  };
1808
1864
  }, {
1809
1865
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1810
- } | undefined>>];
1866
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1867
+ dependencies: [];
1868
+ sharedState: {
1869
+ isMenuOpen: boolean;
1870
+ activeNode: {
1871
+ pos: number;
1872
+ };
1873
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1874
+ isDragging: boolean;
1875
+ } | undefined;
1876
+ actions: {};
1877
+ commands: {
1878
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1879
+ };
1880
+ }, undefined>>];
1811
1881
  actions: {
1812
1882
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
1813
1883
  };
@@ -2047,7 +2117,21 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2047
2117
  };
2048
2118
  }, {
2049
2119
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2050
- } | undefined>>];
2120
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
2121
+ dependencies: [];
2122
+ sharedState: {
2123
+ isMenuOpen: boolean;
2124
+ activeNode: {
2125
+ pos: number;
2126
+ };
2127
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
2128
+ isDragging: boolean;
2129
+ } | undefined;
2130
+ actions: {};
2131
+ commands: {
2132
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2133
+ };
2134
+ }, undefined>>];
2051
2135
  actions: {
2052
2136
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
2053
2137
  };
@@ -2243,7 +2327,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2243
2327
  sharedState: import("@atlaskit/editor-plugins/quick-insert").QuickInsertSharedState | null;
2244
2328
  actions: {
2245
2329
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
2246
- insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
2330
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
2247
2331
  getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
2248
2332
  };
2249
2333
  commands: {
@@ -2768,7 +2852,21 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2768
2852
  };
2769
2853
  }, {
2770
2854
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2771
- } | undefined>>];
2855
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
2856
+ dependencies: [];
2857
+ sharedState: {
2858
+ isMenuOpen: boolean;
2859
+ activeNode: {
2860
+ pos: number;
2861
+ };
2862
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
2863
+ isDragging: boolean;
2864
+ } | undefined;
2865
+ actions: {};
2866
+ commands: {
2867
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2868
+ };
2869
+ }, undefined>>];
2772
2870
  actions: {
2773
2871
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
2774
2872
  };
@@ -3030,7 +3128,21 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3030
3128
  };
3031
3129
  }, {
3032
3130
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3033
- } | undefined>>];
3131
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
3132
+ dependencies: [];
3133
+ sharedState: {
3134
+ isMenuOpen: boolean;
3135
+ activeNode: {
3136
+ pos: number;
3137
+ };
3138
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3139
+ isDragging: boolean;
3140
+ } | undefined;
3141
+ actions: {};
3142
+ commands: {
3143
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3144
+ };
3145
+ }, undefined>>];
3034
3146
  actions: {
3035
3147
  forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
3036
3148
  };
@@ -273,7 +273,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
273
273
  };
274
274
  }, {
275
275
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
276
- } | undefined>>];
276
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
277
+ dependencies: [];
278
+ sharedState: {
279
+ isMenuOpen: boolean;
280
+ activeNode: {
281
+ pos: number;
282
+ };
283
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
284
+ isDragging: boolean;
285
+ } | undefined;
286
+ actions: {};
287
+ commands: {
288
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
289
+ };
290
+ }, undefined>>];
277
291
  actions: {
278
292
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
279
293
  };
@@ -535,7 +549,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
535
549
  };
536
550
  }, {
537
551
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
538
- } | undefined>>];
552
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
553
+ dependencies: [];
554
+ sharedState: {
555
+ isMenuOpen: boolean;
556
+ activeNode: {
557
+ pos: number;
558
+ };
559
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
560
+ isDragging: boolean;
561
+ } | undefined;
562
+ actions: {};
563
+ commands: {
564
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
565
+ };
566
+ }, undefined>>];
539
567
  actions: {
540
568
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
541
569
  };
@@ -1238,7 +1266,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
1238
1266
  };
1239
1267
  }, {
1240
1268
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1241
- } | undefined>>];
1269
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1270
+ dependencies: [];
1271
+ sharedState: {
1272
+ isMenuOpen: boolean;
1273
+ activeNode: {
1274
+ pos: number;
1275
+ };
1276
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1277
+ isDragging: boolean;
1278
+ } | undefined;
1279
+ actions: {};
1280
+ commands: {
1281
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1282
+ };
1283
+ }, undefined>>];
1242
1284
  actions: {
1243
1285
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
1244
1286
  };
@@ -1770,7 +1812,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
1770
1812
  };
1771
1813
  }, {
1772
1814
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1773
- } | undefined>>];
1815
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1816
+ dependencies: [];
1817
+ sharedState: {
1818
+ isMenuOpen: boolean;
1819
+ activeNode: {
1820
+ pos: number;
1821
+ };
1822
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1823
+ isDragging: boolean;
1824
+ } | undefined;
1825
+ actions: {};
1826
+ commands: {
1827
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1828
+ };
1829
+ }, undefined>>];
1774
1830
  actions: {
1775
1831
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
1776
1832
  };
@@ -1936,7 +1992,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
1936
1992
  sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
1937
1993
  actions: {
1938
1994
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
1939
- insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
1995
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
1940
1996
  getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
1941
1997
  };
1942
1998
  commands: {
@@ -2501,7 +2557,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
2501
2557
  };
2502
2558
  }, {
2503
2559
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2504
- } | undefined>>];
2560
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
2561
+ dependencies: [];
2562
+ sharedState: {
2563
+ isMenuOpen: boolean;
2564
+ activeNode: {
2565
+ pos: number;
2566
+ };
2567
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
2568
+ isDragging: boolean;
2569
+ } | undefined;
2570
+ actions: {};
2571
+ commands: {
2572
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2573
+ };
2574
+ }, undefined>>];
2505
2575
  actions: {
2506
2576
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
2507
2577
  };
@@ -3083,7 +3153,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
3083
3153
  };
3084
3154
  }, {
3085
3155
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3086
- } | undefined>>];
3156
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
3157
+ dependencies: [];
3158
+ sharedState: {
3159
+ isMenuOpen: boolean;
3160
+ activeNode: {
3161
+ pos: number;
3162
+ };
3163
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3164
+ isDragging: boolean;
3165
+ } | undefined;
3166
+ actions: {};
3167
+ commands: {
3168
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3169
+ };
3170
+ }, undefined>>];
3087
3171
  actions: {
3088
3172
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
3089
3173
  };
@@ -3323,7 +3407,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
3323
3407
  };
3324
3408
  }, {
3325
3409
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3326
- } | undefined>>];
3410
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
3411
+ dependencies: [];
3412
+ sharedState: {
3413
+ isMenuOpen: boolean;
3414
+ activeNode: {
3415
+ pos: number;
3416
+ };
3417
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3418
+ isDragging: boolean;
3419
+ } | undefined;
3420
+ actions: {};
3421
+ commands: {
3422
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3423
+ };
3424
+ }, undefined>>];
3327
3425
  actions: {
3328
3426
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
3329
3427
  };
@@ -3519,7 +3617,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
3519
3617
  sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
3520
3618
  actions: {
3521
3619
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
3522
- insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
3620
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
3523
3621
  getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
3524
3622
  };
3525
3623
  commands: {
@@ -4044,7 +4142,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
4044
4142
  };
4045
4143
  }, {
4046
4144
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4047
- } | undefined>>];
4145
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
4146
+ dependencies: [];
4147
+ sharedState: {
4148
+ isMenuOpen: boolean;
4149
+ activeNode: {
4150
+ pos: number;
4151
+ };
4152
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
4153
+ isDragging: boolean;
4154
+ } | undefined;
4155
+ actions: {};
4156
+ commands: {
4157
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
4158
+ };
4159
+ }, undefined>>];
4048
4160
  actions: {
4049
4161
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
4050
4162
  };
@@ -4306,7 +4418,21 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
4306
4418
  };
4307
4419
  }, {
4308
4420
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4309
- } | undefined>>];
4421
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
4422
+ dependencies: [];
4423
+ sharedState: {
4424
+ isMenuOpen: boolean;
4425
+ activeNode: {
4426
+ pos: number;
4427
+ };
4428
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
4429
+ isDragging: boolean;
4430
+ } | undefined;
4431
+ actions: {};
4432
+ commands: {
4433
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
4434
+ };
4435
+ }, undefined>>];
4310
4436
  actions: {
4311
4437
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
4312
4438
  };