@atlaskit/editor-core 205.3.2 → 205.4.1

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.
@@ -662,11 +662,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
662
662
  sharedState: FeatureFlags;
663
663
  }, FeatureFlags>>];
664
664
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
665
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
665
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
666
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
667
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
668
+ commands: {
669
+ moveToLayout: (start: number, to: number, options?: {
670
+ moveToEnd?: boolean | undefined;
671
+ selectMovedNode?: boolean | undefined;
672
+ moveNodeAtCursorPos?: boolean | undefined;
673
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
674
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
675
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
676
+ toggleBlockMenu: (options?: {
677
+ closeMenu?: boolean | undefined;
678
+ anchorName?: string | undefined;
679
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
680
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
681
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
682
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
683
+ };
684
+ }, undefined>>];
666
685
  actions?: {
667
686
  suppressToolbar?: (() => boolean) | undefined;
668
687
  unsuppressToolbar?: (() => boolean) | undefined;
669
688
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
689
+ refreshToolbarDocking?: (() => boolean) | undefined;
670
690
  } | undefined;
671
691
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
672
692
  commands: {
@@ -723,11 +743,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
723
743
  sharedState: FeatureFlags;
724
744
  }, FeatureFlags>>];
725
745
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
726
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
746
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
747
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
748
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
749
+ commands: {
750
+ moveToLayout: (start: number, to: number, options?: {
751
+ moveToEnd?: boolean | undefined;
752
+ selectMovedNode?: boolean | undefined;
753
+ moveNodeAtCursorPos?: boolean | undefined;
754
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
755
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
756
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
757
+ toggleBlockMenu: (options?: {
758
+ closeMenu?: boolean | undefined;
759
+ anchorName?: string | undefined;
760
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
761
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
762
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
763
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
764
+ };
765
+ }, undefined>>];
727
766
  actions?: {
728
767
  suppressToolbar?: (() => boolean) | undefined;
729
768
  unsuppressToolbar?: (() => boolean) | undefined;
730
769
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
770
+ refreshToolbarDocking?: (() => boolean) | undefined;
731
771
  } | undefined;
732
772
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
733
773
  pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
@@ -786,11 +826,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
786
826
  sharedState: FeatureFlags;
787
827
  }, FeatureFlags>>];
788
828
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
789
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
829
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
830
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
831
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
832
+ commands: {
833
+ moveToLayout: (start: number, to: number, options?: {
834
+ moveToEnd?: boolean | undefined;
835
+ selectMovedNode?: boolean | undefined;
836
+ moveNodeAtCursorPos?: boolean | undefined;
837
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
838
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
839
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
840
+ toggleBlockMenu: (options?: {
841
+ closeMenu?: boolean | undefined;
842
+ anchorName?: string | undefined;
843
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
844
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
845
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
846
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
847
+ };
848
+ }, undefined>>];
790
849
  actions?: {
791
850
  suppressToolbar?: (() => boolean) | undefined;
792
851
  unsuppressToolbar?: (() => boolean) | undefined;
793
852
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
853
+ refreshToolbarDocking?: (() => boolean) | undefined;
794
854
  } | undefined;
795
855
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
796
856
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
@@ -610,11 +610,31 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
610
610
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
611
611
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
612
612
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
613
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
613
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
614
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
615
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
616
+ commands: {
617
+ moveToLayout: (start: number, to: number, options?: {
618
+ moveToEnd?: boolean | undefined;
619
+ selectMovedNode?: boolean | undefined;
620
+ moveNodeAtCursorPos?: boolean | undefined;
621
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
622
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
623
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
624
+ toggleBlockMenu: (options?: {
625
+ closeMenu?: boolean | undefined;
626
+ anchorName?: string | undefined;
627
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
628
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
629
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
630
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
631
+ };
632
+ }, undefined>>];
614
633
  actions?: {
615
634
  suppressToolbar?: (() => boolean) | undefined;
616
635
  unsuppressToolbar?: (() => boolean) | undefined;
617
636
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
637
+ refreshToolbarDocking?: (() => boolean) | undefined;
618
638
  } | undefined;
619
639
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
620
640
  commands: {
@@ -671,11 +691,31 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
671
691
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
672
692
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
673
693
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
674
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
694
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
695
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
696
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
697
+ commands: {
698
+ moveToLayout: (start: number, to: number, options?: {
699
+ moveToEnd?: boolean | undefined;
700
+ selectMovedNode?: boolean | undefined;
701
+ moveNodeAtCursorPos?: boolean | undefined;
702
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
703
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
704
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
705
+ toggleBlockMenu: (options?: {
706
+ closeMenu?: boolean | undefined;
707
+ anchorName?: string | undefined;
708
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
709
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
710
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
711
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
712
+ };
713
+ }, undefined>>];
675
714
  actions?: {
676
715
  suppressToolbar?: (() => boolean) | undefined;
677
716
  unsuppressToolbar?: (() => boolean) | undefined;
678
717
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
718
+ refreshToolbarDocking?: (() => boolean) | undefined;
679
719
  } | undefined;
680
720
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
681
721
  pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
@@ -734,11 +774,31 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
734
774
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
735
775
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
736
776
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
737
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
777
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
778
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
779
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
780
+ commands: {
781
+ moveToLayout: (start: number, to: number, options?: {
782
+ moveToEnd?: boolean | undefined;
783
+ selectMovedNode?: boolean | undefined;
784
+ moveNodeAtCursorPos?: boolean | undefined;
785
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
786
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
787
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
788
+ toggleBlockMenu: (options?: {
789
+ closeMenu?: boolean | undefined;
790
+ anchorName?: string | undefined;
791
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
792
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
793
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
794
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
795
+ };
796
+ }, undefined>>];
738
797
  actions?: {
739
798
  suppressToolbar?: (() => boolean) | undefined;
740
799
  unsuppressToolbar?: (() => boolean) | undefined;
741
800
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
801
+ refreshToolbarDocking?: (() => boolean) | undefined;
742
802
  } | undefined;
743
803
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
744
804
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
@@ -26,7 +26,9 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
26
26
  _privateUnregisterEditor(): void;
27
27
  _privateSubscribe(cb: ContextUpdateHandler): void;
28
28
  _privateUnsubscribe(cb: ContextUpdateHandler): void;
29
- focus(): boolean;
29
+ focus({ scrollIntoView }?: {
30
+ scrollIntoView: boolean;
31
+ }): boolean;
30
32
  blur(): boolean;
31
33
  clear(): boolean;
32
34
  /**
@@ -806,12 +806,33 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
806
806
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
807
807
  ];
808
808
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
809
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
809
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
810
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
811
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
812
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
813
+ commands: {
814
+ moveToLayout: (start: number, to: number, options?: {
815
+ moveToEnd?: boolean | undefined;
816
+ selectMovedNode?: boolean | undefined;
817
+ moveNodeAtCursorPos?: boolean | undefined;
818
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
819
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
820
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
821
+ toggleBlockMenu: (options?: {
822
+ closeMenu?: boolean | undefined;
823
+ anchorName?: string | undefined;
824
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
825
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
826
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
827
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
828
+ };
829
+ }, undefined>>
810
830
  ];
811
831
  actions?: {
812
832
  suppressToolbar?: (() => boolean) | undefined;
813
833
  unsuppressToolbar?: (() => boolean) | undefined;
814
834
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
835
+ refreshToolbarDocking?: (() => boolean) | undefined;
815
836
  } | undefined;
816
837
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
817
838
  ];
@@ -877,12 +898,33 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
877
898
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
878
899
  ];
879
900
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
880
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
901
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
902
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
903
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
904
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
905
+ commands: {
906
+ moveToLayout: (start: number, to: number, options?: {
907
+ moveToEnd?: boolean | undefined;
908
+ selectMovedNode?: boolean | undefined;
909
+ moveNodeAtCursorPos?: boolean | undefined;
910
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
911
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
912
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
913
+ toggleBlockMenu: (options?: {
914
+ closeMenu?: boolean | undefined;
915
+ anchorName?: string | undefined;
916
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
917
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
918
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
919
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
920
+ };
921
+ }, undefined>>
881
922
  ];
882
923
  actions?: {
883
924
  suppressToolbar?: (() => boolean) | undefined;
884
925
  unsuppressToolbar?: (() => boolean) | undefined;
885
926
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
927
+ refreshToolbarDocking?: (() => boolean) | undefined;
886
928
  } | undefined;
887
929
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>,
888
930
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
@@ -954,12 +996,33 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
954
996
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
955
997
  ];
956
998
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
957
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
999
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
1000
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1001
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
1002
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
1003
+ commands: {
1004
+ moveToLayout: (start: number, to: number, options?: {
1005
+ moveToEnd?: boolean | undefined;
1006
+ selectMovedNode?: boolean | undefined;
1007
+ moveNodeAtCursorPos?: boolean | undefined;
1008
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1009
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
1010
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1011
+ toggleBlockMenu: (options?: {
1012
+ closeMenu?: boolean | undefined;
1013
+ anchorName?: string | undefined;
1014
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1015
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
1016
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1017
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1018
+ };
1019
+ }, undefined>>
958
1020
  ];
959
1021
  actions?: {
960
1022
  suppressToolbar?: (() => boolean) | undefined;
961
1023
  unsuppressToolbar?: (() => boolean) | undefined;
962
1024
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
1025
+ refreshToolbarDocking?: (() => boolean) | undefined;
963
1026
  } | undefined;
964
1027
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
965
1028
  ];
@@ -858,12 +858,33 @@ export default function createUniversalPresetInternal({ appearance, props, featu
858
858
  }, FeatureFlags>>
859
859
  ];
860
860
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
861
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
861
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
862
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
863
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
864
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
865
+ commands: {
866
+ moveToLayout: (start: number, to: number, options?: {
867
+ moveToEnd?: boolean | undefined;
868
+ selectMovedNode?: boolean | undefined;
869
+ moveNodeAtCursorPos?: boolean | undefined;
870
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
871
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
872
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
873
+ toggleBlockMenu: (options?: {
874
+ closeMenu?: boolean | undefined;
875
+ anchorName?: string | undefined;
876
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
877
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
878
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
879
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
880
+ };
881
+ }, undefined>>
862
882
  ];
863
883
  actions?: {
864
884
  suppressToolbar?: (() => boolean) | undefined;
865
885
  unsuppressToolbar?: (() => boolean) | undefined;
866
886
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
887
+ refreshToolbarDocking?: (() => boolean) | undefined;
867
888
  } | undefined;
868
889
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
869
890
  ];
@@ -929,12 +950,33 @@ export default function createUniversalPresetInternal({ appearance, props, featu
929
950
  }, FeatureFlags>>
930
951
  ];
931
952
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
932
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
953
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
954
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
955
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
956
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
957
+ commands: {
958
+ moveToLayout: (start: number, to: number, options?: {
959
+ moveToEnd?: boolean | undefined;
960
+ selectMovedNode?: boolean | undefined;
961
+ moveNodeAtCursorPos?: boolean | undefined;
962
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
963
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
964
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
965
+ toggleBlockMenu: (options?: {
966
+ closeMenu?: boolean | undefined;
967
+ anchorName?: string | undefined;
968
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
969
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
970
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
971
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
972
+ };
973
+ }, undefined>>
933
974
  ];
934
975
  actions?: {
935
976
  suppressToolbar?: (() => boolean) | undefined;
936
977
  unsuppressToolbar?: (() => boolean) | undefined;
937
978
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
979
+ refreshToolbarDocking?: (() => boolean) | undefined;
938
980
  } | undefined;
939
981
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>,
940
982
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
@@ -1006,12 +1048,33 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1006
1048
  }, FeatureFlags>>
1007
1049
  ];
1008
1050
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1009
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
1051
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
1052
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1053
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
1054
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
1055
+ commands: {
1056
+ moveToLayout: (start: number, to: number, options?: {
1057
+ moveToEnd?: boolean | undefined;
1058
+ selectMovedNode?: boolean | undefined;
1059
+ moveNodeAtCursorPos?: boolean | undefined;
1060
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1061
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
1062
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1063
+ toggleBlockMenu: (options?: {
1064
+ closeMenu?: boolean | undefined;
1065
+ anchorName?: string | undefined;
1066
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1067
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
1068
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1069
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1070
+ };
1071
+ }, undefined>>
1010
1072
  ];
1011
1073
  actions?: {
1012
1074
  suppressToolbar?: (() => boolean) | undefined;
1013
1075
  unsuppressToolbar?: (() => boolean) | undefined;
1014
1076
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
1077
+ refreshToolbarDocking?: (() => boolean) | undefined;
1015
1078
  } | undefined;
1016
1079
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
1017
1080
  ];
@@ -806,12 +806,33 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
806
806
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
807
807
  ];
808
808
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
809
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
809
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
810
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
811
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
812
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
813
+ commands: {
814
+ moveToLayout: (start: number, to: number, options?: {
815
+ moveToEnd?: boolean | undefined;
816
+ selectMovedNode?: boolean | undefined;
817
+ moveNodeAtCursorPos?: boolean | undefined;
818
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
819
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
820
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
821
+ toggleBlockMenu: (options?: {
822
+ closeMenu?: boolean | undefined;
823
+ anchorName?: string | undefined;
824
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
825
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
826
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
827
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
828
+ };
829
+ }, undefined>>
810
830
  ];
811
831
  actions?: {
812
832
  suppressToolbar?: (() => boolean) | undefined;
813
833
  unsuppressToolbar?: (() => boolean) | undefined;
814
834
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
835
+ refreshToolbarDocking?: (() => boolean) | undefined;
815
836
  } | undefined;
816
837
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
817
838
  ];
@@ -877,12 +898,33 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
877
898
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
878
899
  ];
879
900
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
880
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
901
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
902
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
903
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
904
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
905
+ commands: {
906
+ moveToLayout: (start: number, to: number, options?: {
907
+ moveToEnd?: boolean | undefined;
908
+ selectMovedNode?: boolean | undefined;
909
+ moveNodeAtCursorPos?: boolean | undefined;
910
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
911
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
912
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
913
+ toggleBlockMenu: (options?: {
914
+ closeMenu?: boolean | undefined;
915
+ anchorName?: string | undefined;
916
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
917
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
918
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
919
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
920
+ };
921
+ }, undefined>>
881
922
  ];
882
923
  actions?: {
883
924
  suppressToolbar?: (() => boolean) | undefined;
884
925
  unsuppressToolbar?: (() => boolean) | undefined;
885
926
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
927
+ refreshToolbarDocking?: (() => boolean) | undefined;
886
928
  } | undefined;
887
929
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>,
888
930
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
@@ -954,12 +996,33 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
954
996
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
955
997
  ];
956
998
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
957
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
999
+ }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
1000
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
1001
+ dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
1002
+ sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
1003
+ commands: {
1004
+ moveToLayout: (start: number, to: number, options?: {
1005
+ moveToEnd?: boolean | undefined;
1006
+ selectMovedNode?: boolean | undefined;
1007
+ moveNodeAtCursorPos?: boolean | undefined;
1008
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1009
+ moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
1010
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1011
+ toggleBlockMenu: (options?: {
1012
+ closeMenu?: boolean | undefined;
1013
+ anchorName?: string | undefined;
1014
+ } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1015
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
1016
+ setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1017
+ setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1018
+ };
1019
+ }, undefined>>
958
1020
  ];
959
1021
  actions?: {
960
1022
  suppressToolbar?: (() => boolean) | undefined;
961
1023
  unsuppressToolbar?: (() => boolean) | undefined;
962
1024
  setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
1025
+ refreshToolbarDocking?: (() => boolean) | undefined;
963
1026
  } | undefined;
964
1027
  }, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
965
1028
  ];