@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.
- package/.eslintrc.js +37 -37
- package/CHANGELOG.md +17424 -17539
- package/architecture/0001-record-architecture-decisions.md +6 -3
- package/architecture/0002-deep-equality-check-for-getsharedstate.md +9 -8
- package/architecture/0003-explicit-plugin-dependencies.md +47 -18
- package/codemods/140.0.0-rc-kraken-fix-type-errors.ts +1 -3
- package/codemods/145.0.0-deprecate-props.ts +1 -3
- package/codemods/172.0.0-transform-smartlinks-prop.ts +1 -3
- package/codemods/175.0.0-rename-unsafe-allowUndoRedoButton-prop.ts +1 -1
- package/codemods/180.1.0-update-to-editor-migration-component.ts +1 -3
- package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +29 -31
- package/codemods/__tests__/remove-config-panel-width-prop.ts +29 -31
- package/codemods/__tests__/rename-editor-to-editor-migration-component.ts +43 -45
- package/codemods/__tests__/rename-smartlinks-prop.ts +57 -59
- package/codemods/__tests__/rename-unsafe-allowUndoRedoButtons-prop.ts +43 -43
- package/codemods/__tests__/rename-unsafe-cards-prop.ts +43 -45
- package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +41 -45
- package/codemods/migrates/remove-config-panel-width-prop.ts +20 -29
- package/codemods/migrates/rename-editor-to-editor-migration-component.ts +20 -24
- package/codemods/migrates/rename-smartlinks-prop.ts +30 -38
- package/codemods/migrates/rename-unsafe-allowUndoRedoButtons-prop.ts +4 -5
- package/codemods/migrates/rename-unsafe-cards-prop.ts +1 -4
- package/codemods/utils.ts +62 -72
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +3 -3
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +5 -5
- package/dist/cjs/ui/ContentStyles/ai-panels.js +1 -1
- package/dist/cjs/ui/ContentStyles/code-block.js +2 -2
- package/dist/cjs/ui/ContentStyles/date.js +1 -1
- package/dist/cjs/ui/ContentStyles/expand.js +1 -1
- package/dist/cjs/ui/ContentStyles/extension.js +2 -2
- package/dist/cjs/ui/ContentStyles/index.js +6 -6
- package/dist/cjs/ui/ContentStyles/layout.js +1 -1
- package/dist/cjs/ui/ContentStyles/media.js +1 -1
- package/dist/cjs/ui/ContentStyles/panel.js +1 -1
- package/dist/cjs/ui/ContentStyles/status.js +1 -1
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/cjs/utils/extensions.js +5 -5
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +40 -40
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +5 -5
- package/dist/es2019/ui/ContentStyles/ai-panels.js +80 -80
- package/dist/es2019/ui/ContentStyles/code-block.js +58 -58
- package/dist/es2019/ui/ContentStyles/date.js +19 -19
- package/dist/es2019/ui/ContentStyles/expand.js +98 -98
- package/dist/es2019/ui/ContentStyles/extension.js +154 -159
- package/dist/es2019/ui/ContentStyles/index.js +139 -144
- package/dist/es2019/ui/ContentStyles/layout.js +125 -125
- package/dist/es2019/ui/ContentStyles/media.js +179 -178
- package/dist/es2019/ui/ContentStyles/panel.js +29 -30
- package/dist/es2019/ui/ContentStyles/status.js +30 -32
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +18 -19
- package/dist/es2019/utils/extensions.js +5 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -3
- package/dist/esm/ui/AppearanceComponents/Mobile.js +5 -5
- package/dist/esm/ui/ContentStyles/ai-panels.js +1 -1
- package/dist/esm/ui/ContentStyles/code-block.js +2 -2
- package/dist/esm/ui/ContentStyles/date.js +1 -1
- package/dist/esm/ui/ContentStyles/expand.js +1 -1
- package/dist/esm/ui/ContentStyles/extension.js +2 -2
- package/dist/esm/ui/ContentStyles/index.js +6 -6
- package/dist/esm/ui/ContentStyles/layout.js +1 -1
- package/dist/esm/ui/ContentStyles/media.js +1 -1
- package/dist/esm/ui/ContentStyles/panel.js +1 -1
- package/dist/esm/ui/ContentStyles/status.js +1 -1
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/esm/utils/extensions.js +5 -5
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor.d.ts +1 -1
- package/dist/types/composable-editor/hooks/useProviders.d.ts +1 -1
- package/dist/types/create-editor/create-preset.d.ts +137 -11
- package/dist/types/create-editor/sort-by-order.d.ts +1 -1
- package/dist/types/event-dispatcher/index.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/presets/default.d.ts +122 -10
- package/dist/types/presets/universal.d.ts +137 -11
- package/dist/types/presets/useUniversalPreset.d.ts +137 -11
- package/dist/types/test-utils.d.ts +1 -1
- package/dist/types/types/browser.d.ts +1 -1
- package/dist/types/types/editor-plugin.d.ts +1 -1
- package/dist/types/types/empty-state-handler.d.ts +1 -1
- package/dist/types/types/feature-flags.d.ts +1 -1
- package/dist/types/types/index.d.ts +3 -3
- package/dist/types/types/pm-config.d.ts +1 -1
- package/dist/types/types/ui-components.d.ts +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
- package/dist/types/ui/Toolbar/types.d.ts +1 -1
- package/dist/types/utils/action.d.ts +1 -4
- package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -1
- package/dist/types/utils/slice.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/editor.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +155 -11
- package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +1 -1
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/presets/default.d.ts +138 -10
- package/dist/types-ts4.5/presets/universal.d.ts +155 -11
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +155 -11
- package/dist/types-ts4.5/test-utils.d.ts +1 -1
- package/dist/types-ts4.5/types/browser.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-plugin.d.ts +1 -1
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
- package/dist/types-ts4.5/types/feature-flags.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +3 -3
- package/dist/types-ts4.5/types/pm-config.d.ts +1 -1
- package/dist/types-ts4.5/types/ui-components.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +1 -1
- package/dist/types-ts4.5/utils/slice.d.ts +1 -1
- package/docs/0-intro.tsx +13 -19
- package/docs/1-legacy-editor.tsx +13 -19
- package/docs/4-annotations.tsx +222 -223
- package/package.json +28 -20
- package/report.api.md +448 -473
|
@@ -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;
|
|
@@ -794,7 +826,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
794
826
|
sharedState: import("@atlaskit/editor-plugins/quick-insert").QuickInsertSharedState | null;
|
|
795
827
|
actions: {
|
|
796
828
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
797
|
-
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
|
|
829
|
+
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;
|
|
798
830
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
799
831
|
};
|
|
800
832
|
commands: {
|
|
@@ -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;
|
|
@@ -2777,7 +2873,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2777
2873
|
sharedState: import("@atlaskit/editor-plugins/quick-insert").QuickInsertSharedState | null;
|
|
2778
2874
|
actions: {
|
|
2779
2875
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
2780
|
-
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
|
|
2876
|
+
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;
|
|
2781
2877
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
2782
2878
|
};
|
|
2783
2879
|
commands: {
|
|
@@ -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;
|
|
@@ -408,7 +408,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
408
408
|
};
|
|
409
409
|
}, {
|
|
410
410
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
411
|
-
} | undefined
|
|
411
|
+
} | undefined>>,
|
|
412
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
413
|
+
dependencies: [
|
|
414
|
+
];
|
|
415
|
+
sharedState: {
|
|
416
|
+
isMenuOpen: boolean;
|
|
417
|
+
activeNode: {
|
|
418
|
+
pos: number;
|
|
419
|
+
};
|
|
420
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
421
|
+
isDragging: boolean;
|
|
422
|
+
} | undefined;
|
|
423
|
+
actions: {};
|
|
424
|
+
commands: {
|
|
425
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
426
|
+
};
|
|
427
|
+
}, undefined>>
|
|
412
428
|
];
|
|
413
429
|
actions: {
|
|
414
430
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -728,7 +744,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
728
744
|
};
|
|
729
745
|
}, {
|
|
730
746
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
731
|
-
} | undefined
|
|
747
|
+
} | undefined>>,
|
|
748
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
749
|
+
dependencies: [
|
|
750
|
+
];
|
|
751
|
+
sharedState: {
|
|
752
|
+
isMenuOpen: boolean;
|
|
753
|
+
activeNode: {
|
|
754
|
+
pos: number;
|
|
755
|
+
};
|
|
756
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
757
|
+
isDragging: boolean;
|
|
758
|
+
} | undefined;
|
|
759
|
+
actions: {};
|
|
760
|
+
commands: {
|
|
761
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
762
|
+
};
|
|
763
|
+
}, undefined>>
|
|
732
764
|
];
|
|
733
765
|
actions: {
|
|
734
766
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -1582,7 +1614,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
1582
1614
|
};
|
|
1583
1615
|
}, {
|
|
1584
1616
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1585
|
-
} | undefined
|
|
1617
|
+
} | undefined>>,
|
|
1618
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
1619
|
+
dependencies: [
|
|
1620
|
+
];
|
|
1621
|
+
sharedState: {
|
|
1622
|
+
isMenuOpen: boolean;
|
|
1623
|
+
activeNode: {
|
|
1624
|
+
pos: number;
|
|
1625
|
+
};
|
|
1626
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
1627
|
+
isDragging: boolean;
|
|
1628
|
+
} | undefined;
|
|
1629
|
+
actions: {};
|
|
1630
|
+
commands: {
|
|
1631
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1632
|
+
};
|
|
1633
|
+
}, undefined>>
|
|
1586
1634
|
];
|
|
1587
1635
|
actions: {
|
|
1588
1636
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -2229,7 +2277,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2229
2277
|
};
|
|
2230
2278
|
}, {
|
|
2231
2279
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2232
|
-
} | undefined
|
|
2280
|
+
} | undefined>>,
|
|
2281
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
2282
|
+
dependencies: [
|
|
2283
|
+
];
|
|
2284
|
+
sharedState: {
|
|
2285
|
+
isMenuOpen: boolean;
|
|
2286
|
+
activeNode: {
|
|
2287
|
+
pos: number;
|
|
2288
|
+
};
|
|
2289
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
2290
|
+
isDragging: boolean;
|
|
2291
|
+
} | undefined;
|
|
2292
|
+
actions: {};
|
|
2293
|
+
commands: {
|
|
2294
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2295
|
+
};
|
|
2296
|
+
}, undefined>>
|
|
2233
2297
|
];
|
|
2234
2298
|
actions: {
|
|
2235
2299
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -2427,7 +2491,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2427
2491
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
2428
2492
|
actions: {
|
|
2429
2493
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2430
|
-
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
|
|
2494
|
+
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;
|
|
2431
2495
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
2432
2496
|
};
|
|
2433
2497
|
commands: {
|
|
@@ -3110,7 +3174,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3110
3174
|
};
|
|
3111
3175
|
}, {
|
|
3112
3176
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3113
|
-
} | undefined
|
|
3177
|
+
} | undefined>>,
|
|
3178
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
3179
|
+
dependencies: [
|
|
3180
|
+
];
|
|
3181
|
+
sharedState: {
|
|
3182
|
+
isMenuOpen: boolean;
|
|
3183
|
+
activeNode: {
|
|
3184
|
+
pos: number;
|
|
3185
|
+
};
|
|
3186
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3187
|
+
isDragging: boolean;
|
|
3188
|
+
} | undefined;
|
|
3189
|
+
actions: {};
|
|
3190
|
+
commands: {
|
|
3191
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3192
|
+
};
|
|
3193
|
+
}, undefined>>
|
|
3114
3194
|
];
|
|
3115
3195
|
actions: {
|
|
3116
3196
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -3823,7 +3903,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3823
3903
|
};
|
|
3824
3904
|
}, {
|
|
3825
3905
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3826
|
-
} | undefined
|
|
3906
|
+
} | undefined>>,
|
|
3907
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
3908
|
+
dependencies: [
|
|
3909
|
+
];
|
|
3910
|
+
sharedState: {
|
|
3911
|
+
isMenuOpen: boolean;
|
|
3912
|
+
activeNode: {
|
|
3913
|
+
pos: number;
|
|
3914
|
+
};
|
|
3915
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3916
|
+
isDragging: boolean;
|
|
3917
|
+
} | undefined;
|
|
3918
|
+
actions: {};
|
|
3919
|
+
commands: {
|
|
3920
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3921
|
+
};
|
|
3922
|
+
}, undefined>>
|
|
3827
3923
|
];
|
|
3828
3924
|
actions: {
|
|
3829
3925
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -4118,7 +4214,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4118
4214
|
};
|
|
4119
4215
|
}, {
|
|
4120
4216
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4121
|
-
} | undefined
|
|
4217
|
+
} | undefined>>,
|
|
4218
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
4219
|
+
dependencies: [
|
|
4220
|
+
];
|
|
4221
|
+
sharedState: {
|
|
4222
|
+
isMenuOpen: boolean;
|
|
4223
|
+
activeNode: {
|
|
4224
|
+
pos: number;
|
|
4225
|
+
};
|
|
4226
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
4227
|
+
isDragging: boolean;
|
|
4228
|
+
} | undefined;
|
|
4229
|
+
actions: {};
|
|
4230
|
+
commands: {
|
|
4231
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4232
|
+
};
|
|
4233
|
+
}, undefined>>
|
|
4122
4234
|
];
|
|
4123
4235
|
actions: {
|
|
4124
4236
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -4352,7 +4464,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4352
4464
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
4353
4465
|
actions: {
|
|
4354
4466
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
4355
|
-
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("@atlaskit/editor-common/types").Command;
|
|
4467
|
+
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;
|
|
4356
4468
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
4357
4469
|
};
|
|
4358
4470
|
commands: {
|
|
@@ -4985,7 +5097,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4985
5097
|
};
|
|
4986
5098
|
}, {
|
|
4987
5099
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4988
|
-
} | undefined
|
|
5100
|
+
} | undefined>>,
|
|
5101
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
5102
|
+
dependencies: [
|
|
5103
|
+
];
|
|
5104
|
+
sharedState: {
|
|
5105
|
+
isMenuOpen: boolean;
|
|
5106
|
+
activeNode: {
|
|
5107
|
+
pos: number;
|
|
5108
|
+
};
|
|
5109
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
5110
|
+
isDragging: boolean;
|
|
5111
|
+
} | undefined;
|
|
5112
|
+
actions: {};
|
|
5113
|
+
commands: {
|
|
5114
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5115
|
+
};
|
|
5116
|
+
}, undefined>>
|
|
4989
5117
|
];
|
|
4990
5118
|
actions: {
|
|
4991
5119
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -5305,7 +5433,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
5305
5433
|
};
|
|
5306
5434
|
}, {
|
|
5307
5435
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5308
|
-
} | undefined
|
|
5436
|
+
} | undefined>>,
|
|
5437
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
5438
|
+
dependencies: [
|
|
5439
|
+
];
|
|
5440
|
+
sharedState: {
|
|
5441
|
+
isMenuOpen: boolean;
|
|
5442
|
+
activeNode: {
|
|
5443
|
+
pos: number;
|
|
5444
|
+
};
|
|
5445
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
5446
|
+
isDragging: boolean;
|
|
5447
|
+
} | undefined;
|
|
5448
|
+
actions: {};
|
|
5449
|
+
commands: {
|
|
5450
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5451
|
+
};
|
|
5452
|
+
}, undefined>>
|
|
5309
5453
|
];
|
|
5310
5454
|
actions: {
|
|
5311
5455
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|