@atlaskit/editor-core 193.24.6 → 193.24.18

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 +16 -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 -16
  113. package/report.api.md +448 -473
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -259,7 +259,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
259
259
  };
260
260
  }, {
261
261
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
262
- } | undefined>>];
262
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
263
+ dependencies: [];
264
+ sharedState: {
265
+ isMenuOpen: boolean;
266
+ activeNode: {
267
+ pos: number;
268
+ };
269
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
270
+ isDragging: boolean;
271
+ } | undefined;
272
+ actions: {};
273
+ commands: {
274
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
275
+ };
276
+ }, undefined>>];
263
277
  actions: {
264
278
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
265
279
  };
@@ -521,7 +535,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
521
535
  };
522
536
  }, {
523
537
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
524
- } | undefined>>];
538
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
539
+ dependencies: [];
540
+ sharedState: {
541
+ isMenuOpen: boolean;
542
+ activeNode: {
543
+ pos: number;
544
+ };
545
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
546
+ isDragging: boolean;
547
+ } | undefined;
548
+ actions: {};
549
+ commands: {
550
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
551
+ };
552
+ }, undefined>>];
525
553
  actions: {
526
554
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
527
555
  };
@@ -1224,7 +1252,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1224
1252
  };
1225
1253
  }, {
1226
1254
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1227
- } | undefined>>];
1255
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
1256
+ dependencies: [];
1257
+ sharedState: {
1258
+ isMenuOpen: boolean;
1259
+ activeNode: {
1260
+ pos: number;
1261
+ };
1262
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1263
+ isDragging: boolean;
1264
+ } | undefined;
1265
+ actions: {};
1266
+ commands: {
1267
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1268
+ };
1269
+ }, undefined>>];
1228
1270
  actions: {
1229
1271
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
1230
1272
  };
@@ -1756,7 +1798,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1756
1798
  };
1757
1799
  }, {
1758
1800
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1759
- } | undefined>>];
1801
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
1802
+ dependencies: [];
1803
+ sharedState: {
1804
+ isMenuOpen: boolean;
1805
+ activeNode: {
1806
+ pos: number;
1807
+ };
1808
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
1809
+ isDragging: boolean;
1810
+ } | undefined;
1811
+ actions: {};
1812
+ commands: {
1813
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1814
+ };
1815
+ }, undefined>>];
1760
1816
  actions: {
1761
1817
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
1762
1818
  };
@@ -2487,7 +2543,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
2487
2543
  };
2488
2544
  }, {
2489
2545
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2490
- } | undefined>>];
2546
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
2547
+ dependencies: [];
2548
+ sharedState: {
2549
+ isMenuOpen: boolean;
2550
+ activeNode: {
2551
+ pos: number;
2552
+ };
2553
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
2554
+ isDragging: boolean;
2555
+ } | undefined;
2556
+ actions: {};
2557
+ commands: {
2558
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2559
+ };
2560
+ }, undefined>>];
2491
2561
  actions: {
2492
2562
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
2493
2563
  };
@@ -3069,7 +3139,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3069
3139
  };
3070
3140
  }, {
3071
3141
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3072
- } | undefined>>];
3142
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
3143
+ dependencies: [];
3144
+ sharedState: {
3145
+ isMenuOpen: boolean;
3146
+ activeNode: {
3147
+ pos: number;
3148
+ };
3149
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3150
+ isDragging: boolean;
3151
+ } | undefined;
3152
+ actions: {};
3153
+ commands: {
3154
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3155
+ };
3156
+ }, undefined>>];
3073
3157
  actions: {
3074
3158
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
3075
3159
  };
@@ -3309,7 +3393,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3309
3393
  };
3310
3394
  }, {
3311
3395
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3312
- } | undefined>>];
3396
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
3397
+ dependencies: [];
3398
+ sharedState: {
3399
+ isMenuOpen: boolean;
3400
+ activeNode: {
3401
+ pos: number;
3402
+ };
3403
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
3404
+ isDragging: boolean;
3405
+ } | undefined;
3406
+ actions: {};
3407
+ commands: {
3408
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3409
+ };
3410
+ }, undefined>>];
3313
3411
  actions: {
3314
3412
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
3315
3413
  };
@@ -4030,7 +4128,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4030
4128
  };
4031
4129
  }, {
4032
4130
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4033
- } | undefined>>];
4131
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
4132
+ dependencies: [];
4133
+ sharedState: {
4134
+ isMenuOpen: boolean;
4135
+ activeNode: {
4136
+ pos: number;
4137
+ };
4138
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
4139
+ isDragging: boolean;
4140
+ } | undefined;
4141
+ actions: {};
4142
+ commands: {
4143
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
4144
+ };
4145
+ }, undefined>>];
4034
4146
  actions: {
4035
4147
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
4036
4148
  };
@@ -4292,7 +4404,21 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4292
4404
  };
4293
4405
  }, {
4294
4406
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4295
- } | undefined>>];
4407
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
4408
+ dependencies: [];
4409
+ sharedState: {
4410
+ isMenuOpen: boolean;
4411
+ activeNode: {
4412
+ pos: number;
4413
+ };
4414
+ decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
4415
+ isDragging: boolean;
4416
+ } | undefined;
4417
+ actions: {};
4418
+ commands: {
4419
+ moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
4420
+ };
4421
+ }, undefined>>];
4296
4422
  actions: {
4297
4423
  forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
4298
4424
  };
@@ -28,7 +28,7 @@ export declare const createPMSchemaAndPlugins: (inputPreset?: EditorPresetBuilde
28
28
  }) => PluginData;
29
29
  export { EventDispatcher } from './event-dispatcher';
30
30
  export type { Dispatch } from './event-dispatcher';
31
- export { GapCursorSelection, Side as GapCursorSide, } from '@atlaskit/editor-common/selection';
31
+ export { GapCursorSelection, Side as GapCursorSide } from '@atlaskit/editor-common/selection';
32
32
  export declare function setTextSelection(view: EditorView, anchor: number, head?: number): void;
33
33
  /**
34
34
  * Given a selector, checks if an element matching the selector exists in the
@@ -1 +1 @@
1
- export type { Browsers, Range, DisableSpellcheckByBrowser, } from '@atlaskit/editor-common/types';
1
+ export type { Browsers, Range, DisableSpellcheckByBrowser } from '@atlaskit/editor-common/types';
@@ -1 +1 @@
1
- export type { NextEditorPlugin, PluginsOptions, EditorPlugin, } from '@atlaskit/editor-common/types';
1
+ export type { NextEditorPlugin, PluginsOptions, EditorPlugin } from '@atlaskit/editor-common/types';
@@ -1 +1 @@
1
- export type { EmptyStateHandler, EmptyStateHandlerParams, } from '@atlaskit/editor-common/types';
1
+ export type { EmptyStateHandler, EmptyStateHandlerParams } from '@atlaskit/editor-common/types';
@@ -1 +1 @@
1
- export type { FeatureFlags, FeatureFlagKey, } from '@atlaskit/editor-common/types';
1
+ export type { FeatureFlags, FeatureFlagKey } from '@atlaskit/editor-common/types';
@@ -1,7 +1,7 @@
1
1
  export type { AllowedBlockTypes } from '@atlaskit/editor-common/types';
2
2
  export type { EditorInstance } from './editor-instance';
3
3
  export type { EditorConfig } from './editor-config';
4
- export type { NextEditorPlugin, EditorPlugin, PluginsOptions, } from './editor-plugin';
4
+ export type { NextEditorPlugin, EditorPlugin, PluginsOptions } from './editor-plugin';
5
5
  export type { EditorReactContext } from './editor-react-context';
6
6
  export type { EditorProps, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, ContentComponents, } from './editor-props';
7
7
  export type { EditorAppearanceComponentProps } from './editor-appearance-component';
@@ -11,8 +11,8 @@ export type { DomAtPos } from './dom-at-pos';
11
11
  export type { ExtensionConfig } from './extension-config';
12
12
  export type { EditorAppearance } from './editor-appearance';
13
13
  export type { ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, } from '../ui/Toolbar/types';
14
- export type { PMPlugin, PMPluginFactory, PMPluginFactoryParams, } from './pm-plugin';
14
+ export type { PMPlugin, PMPluginFactory, PMPluginFactoryParams } from './pm-plugin';
15
15
  export type { PMPluginCreateConfig } from './pm-plugin-list';
16
16
  export type { NodeViewConfig, MarkConfig, NodeConfig } from './pm-config';
17
- export type { UIComponentFactory, UiComponentFactoryParams, } from './ui-components';
17
+ export type { UIComponentFactory, UiComponentFactoryParams } from './ui-components';
18
18
  export type { DisableSpellcheckByBrowser, Range, Browsers } from './browser';
@@ -1 +1 @@
1
- export type { NodeConfig, MarkConfig, NodeViewConfig, } from '@atlaskit/editor-common/types';
1
+ export type { NodeConfig, MarkConfig, NodeViewConfig } from '@atlaskit/editor-common/types';
@@ -1 +1 @@
1
- export type { UiComponentFactoryParams, UIComponentFactory, } from '@atlaskit/editor-common/types';
1
+ export type { UiComponentFactoryParams, UIComponentFactory } from '@atlaskit/editor-common/types';
@@ -5,5 +5,5 @@ export interface Props {
5
5
  children?: any;
6
6
  editorDisabled?: boolean;
7
7
  }
8
- export declare const ClickAreaBlock: ({ editorView, editorDisabled, children, }: Props) => jsx.JSX.Element;
8
+ export declare const ClickAreaBlock: ({ editorView, editorDisabled, children }: Props) => jsx.JSX.Element;
9
9
  export default ClickAreaBlock;