@atlaskit/editor-core 203.18.2 → 204.0.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Minor Changes
18
+
19
+ - [#116198](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116198)
20
+ [`3f2a72e33616f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f2a72e33616f) -
21
+ ED-26667 remove borders for the Editor status node
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
27
+ ## 203.18.3
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 203.18.2
4
34
 
5
35
  ### Patch Changes
@@ -22,4 +22,4 @@ var getVisualRefreshStatusStyles = function getVisualRefreshStatusStyles() {
22
22
  };
23
23
 
24
24
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
25
- var statusStyles = exports.statusStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), _styles.TableSharedCssClassName.TABLE_CELL_WRAPPER, _styles.TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, (0, _styles.getStatusSharedStyles)(), getVisualRefreshStatusStyles(), _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorDeleteBackgroundWithOpacity, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder);
25
+ var statusStyles = exports.statusStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), _styles.TableSharedCssClassName.TABLE_CELL_WRAPPER, _styles.TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, getVisualRefreshStatusStyles(), _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorDeleteBackgroundWithOpacity, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder);
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "203.18.2";
8
+ var version = exports.version = "204.0.0";
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { StatusSharedCssClassName, TableSharedCssClassName, getStatusSharedStyles } from '@atlaskit/editor-common/styles';
3
+ import { StatusSharedCssClassName, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
4
4
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSelectedBoldBoxShadow, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
6
 
@@ -41,8 +41,6 @@ export const statusStyles = css`
41
41
  line-height: 0; /* Prevent responsive layouts increasing height of container. */
42
42
  }
43
43
 
44
- ${getStatusSharedStyles()}
45
-
46
44
  ${getVisualRefreshStatusStyles()}
47
45
  }
48
46
 
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "203.18.2";
2
+ export const version = "204.0.0";
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2, _templateObject3;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css } from '@emotion/react';
5
- import { StatusSharedCssClassName, TableSharedCssClassName, getStatusSharedStyles } from '@atlaskit/editor-common/styles';
5
+ import { StatusSharedCssClassName, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
6
6
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSelectedBoldBoxShadow, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
 
@@ -17,4 +17,4 @@ var getVisualRefreshStatusStyles = function getVisualRefreshStatusStyles() {
17
17
  };
18
18
 
19
19
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
20
- export var statusStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), TableSharedCssClassName.TABLE_CELL_WRAPPER, TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, StatusSharedCssClassName.STATUS_CONTAINER, StatusSharedCssClassName.STATUS_CONTAINER, getStatusSharedStyles(), getVisualRefreshStatusStyles(), StatusSharedCssClassName.STATUS_LOZENGE, akEditorDeleteBackgroundWithOpacity, StatusSharedCssClassName.STATUS_CONTAINER, akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, akEditorSelectedBorderSize, akEditorDeleteBorder);
20
+ export var statusStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), TableSharedCssClassName.TABLE_CELL_WRAPPER, TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, StatusSharedCssClassName.STATUS_CONTAINER, StatusSharedCssClassName.STATUS_CONTAINER, getVisualRefreshStatusStyles(), StatusSharedCssClassName.STATUS_LOZENGE, akEditorDeleteBackgroundWithOpacity, StatusSharedCssClassName.STATUS_CONTAINER, akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, akEditorSelectedBorderSize, akEditorDeleteBorder);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "203.18.2";
2
+ export var version = "204.0.0";
@@ -601,7 +601,38 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
601
601
  registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
602
602
  resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
603
603
  };
604
- }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>];
604
+ }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
605
+ sharedState: {
606
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
607
+ };
608
+ pluginConfiguration: {
609
+ preferenceToolbarAboveSelection?: boolean | undefined;
610
+ };
611
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
612
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
613
+ dependencies: [];
614
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
615
+ commands: {
616
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
617
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
618
+ };
619
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
620
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
621
+ actions: {
622
+ registerComponent: ({ name, component, }: {
623
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
624
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
625
+ }) => void;
626
+ };
627
+ }, undefined>>];
628
+ actions?: {
629
+ suppressToolbar?: (() => boolean) | undefined;
630
+ unsuppressToolbar?: (() => boolean) | undefined;
631
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
632
+ } | undefined;
633
+ }, {
634
+ preferenceToolbarAboveSelection?: boolean | undefined;
635
+ }>>];
605
636
  commands: {
606
637
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
607
638
  toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -637,7 +668,15 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
637
668
  updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
638
669
  updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
639
670
  };
640
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>];
671
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
672
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
673
+ actions: {
674
+ registerComponent: ({ name, component, }: {
675
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
676
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
677
+ }) => void;
678
+ };
679
+ }, undefined>>];
641
680
  actions?: {
642
681
  suppressToolbar?: (() => boolean) | undefined;
643
682
  unsuppressToolbar?: (() => boolean) | undefined;
@@ -667,7 +706,38 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
667
706
  component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
668
707
  }) => void;
669
708
  };
670
- }, undefined>>];
709
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
710
+ sharedState: {
711
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
712
+ };
713
+ pluginConfiguration: {
714
+ preferenceToolbarAboveSelection?: boolean | undefined;
715
+ };
716
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
717
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
718
+ dependencies: [];
719
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
720
+ commands: {
721
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
722
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
723
+ };
724
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
725
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
726
+ actions: {
727
+ registerComponent: ({ name, component, }: {
728
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
729
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
730
+ }) => void;
731
+ };
732
+ }, undefined>>];
733
+ actions?: {
734
+ suppressToolbar?: (() => boolean) | undefined;
735
+ unsuppressToolbar?: (() => boolean) | undefined;
736
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
737
+ } | undefined;
738
+ }, {
739
+ preferenceToolbarAboveSelection?: boolean | undefined;
740
+ }>>];
671
741
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
672
742
  actions: {
673
743
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
@@ -653,7 +653,38 @@ export default function createUniversalPresetInternal({ appearance, props, featu
653
653
  registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
654
654
  resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
655
655
  };
656
- }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>];
656
+ }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
657
+ sharedState: {
658
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
659
+ };
660
+ pluginConfiguration: {
661
+ preferenceToolbarAboveSelection?: boolean | undefined;
662
+ };
663
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
664
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
665
+ dependencies: [];
666
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
667
+ commands: {
668
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
669
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
670
+ };
671
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
672
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
673
+ actions: {
674
+ registerComponent: ({ name, component, }: {
675
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
676
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
677
+ }) => void;
678
+ };
679
+ }, undefined>>];
680
+ actions?: {
681
+ suppressToolbar?: (() => boolean) | undefined;
682
+ unsuppressToolbar?: (() => boolean) | undefined;
683
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
684
+ } | undefined;
685
+ }, {
686
+ preferenceToolbarAboveSelection?: boolean | undefined;
687
+ }>>];
657
688
  commands: {
658
689
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
659
690
  toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -689,7 +720,15 @@ export default function createUniversalPresetInternal({ appearance, props, featu
689
720
  updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
690
721
  updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
691
722
  };
692
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>];
723
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
724
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
725
+ actions: {
726
+ registerComponent: ({ name, component, }: {
727
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
728
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
729
+ }) => void;
730
+ };
731
+ }, undefined>>];
693
732
  actions?: {
694
733
  suppressToolbar?: (() => boolean) | undefined;
695
734
  unsuppressToolbar?: (() => boolean) | undefined;
@@ -719,7 +758,38 @@ export default function createUniversalPresetInternal({ appearance, props, featu
719
758
  component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
720
759
  }) => void;
721
760
  };
722
- }, undefined>>];
761
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
762
+ sharedState: {
763
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
764
+ };
765
+ pluginConfiguration: {
766
+ preferenceToolbarAboveSelection?: boolean | undefined;
767
+ };
768
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
769
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
770
+ dependencies: [];
771
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
772
+ commands: {
773
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
774
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
775
+ };
776
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
777
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
778
+ actions: {
779
+ registerComponent: ({ name, component, }: {
780
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
781
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
782
+ }) => void;
783
+ };
784
+ }, undefined>>];
785
+ actions?: {
786
+ suppressToolbar?: (() => boolean) | undefined;
787
+ unsuppressToolbar?: (() => boolean) | undefined;
788
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
789
+ } | undefined;
790
+ }, {
791
+ preferenceToolbarAboveSelection?: boolean | undefined;
792
+ }>>];
723
793
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
724
794
  actions: {
725
795
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
@@ -601,7 +601,38 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
601
601
  registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
602
602
  resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
603
603
  };
604
- }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>];
604
+ }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
605
+ sharedState: {
606
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
607
+ };
608
+ pluginConfiguration: {
609
+ preferenceToolbarAboveSelection?: boolean | undefined;
610
+ };
611
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
612
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
613
+ dependencies: [];
614
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
615
+ commands: {
616
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
617
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
618
+ };
619
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
620
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
621
+ actions: {
622
+ registerComponent: ({ name, component, }: {
623
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
624
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
625
+ }) => void;
626
+ };
627
+ }, undefined>>];
628
+ actions?: {
629
+ suppressToolbar?: (() => boolean) | undefined;
630
+ unsuppressToolbar?: (() => boolean) | undefined;
631
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
632
+ } | undefined;
633
+ }, {
634
+ preferenceToolbarAboveSelection?: boolean | undefined;
635
+ }>>];
605
636
  commands: {
606
637
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
607
638
  toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -637,7 +668,15 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
637
668
  updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
638
669
  updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
639
670
  };
640
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>];
671
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
672
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
673
+ actions: {
674
+ registerComponent: ({ name, component, }: {
675
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
676
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
677
+ }) => void;
678
+ };
679
+ }, undefined>>];
641
680
  actions?: {
642
681
  suppressToolbar?: (() => boolean) | undefined;
643
682
  unsuppressToolbar?: (() => boolean) | undefined;
@@ -667,7 +706,38 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
667
706
  component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
668
707
  }) => void;
669
708
  };
670
- }, undefined>>];
709
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
710
+ sharedState: {
711
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
712
+ };
713
+ pluginConfiguration: {
714
+ preferenceToolbarAboveSelection?: boolean | undefined;
715
+ };
716
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
717
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
718
+ dependencies: [];
719
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
720
+ commands: {
721
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
722
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
723
+ };
724
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
725
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
726
+ actions: {
727
+ registerComponent: ({ name, component, }: {
728
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
729
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
730
+ }) => void;
731
+ };
732
+ }, undefined>>];
733
+ actions?: {
734
+ suppressToolbar?: (() => boolean) | undefined;
735
+ unsuppressToolbar?: (() => boolean) | undefined;
736
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
737
+ } | undefined;
738
+ }, {
739
+ preferenceToolbarAboveSelection?: boolean | undefined;
740
+ }>>];
671
741
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
672
742
  actions: {
673
743
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
@@ -788,7 +788,43 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
788
788
  registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
789
789
  resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
790
790
  };
791
- }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>
791
+ }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>,
792
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
793
+ sharedState: {
794
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
795
+ };
796
+ pluginConfiguration: {
797
+ preferenceToolbarAboveSelection?: boolean | undefined;
798
+ };
799
+ dependencies: [
800
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
801
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
802
+ dependencies: [
803
+ ];
804
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
805
+ commands: {
806
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
807
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
808
+ };
809
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
810
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
811
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
812
+ actions: {
813
+ registerComponent: ({ name, component, }: {
814
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
815
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
816
+ }) => void;
817
+ };
818
+ }, undefined>>
819
+ ];
820
+ actions?: {
821
+ suppressToolbar?: (() => boolean) | undefined;
822
+ unsuppressToolbar?: (() => boolean) | undefined;
823
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
824
+ } | undefined;
825
+ }, {
826
+ preferenceToolbarAboveSelection?: boolean | undefined;
827
+ }>>
792
828
  ];
793
829
  commands: {
794
830
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -829,7 +865,16 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
829
865
  updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
830
866
  updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
831
867
  };
832
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>
868
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
869
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
870
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
871
+ actions: {
872
+ registerComponent: ({ name, component, }: {
873
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
874
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
875
+ }) => void;
876
+ };
877
+ }, undefined>>
833
878
  ];
834
879
  actions?: {
835
880
  suppressToolbar?: (() => boolean) | undefined;
@@ -866,7 +911,43 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
866
911
  component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
867
912
  }) => void;
868
913
  };
869
- }, undefined>>
914
+ }, undefined>>,
915
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
916
+ sharedState: {
917
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
918
+ };
919
+ pluginConfiguration: {
920
+ preferenceToolbarAboveSelection?: boolean | undefined;
921
+ };
922
+ dependencies: [
923
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
924
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
925
+ dependencies: [
926
+ ];
927
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
928
+ commands: {
929
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
930
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
931
+ };
932
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
933
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
934
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
935
+ actions: {
936
+ registerComponent: ({ name, component, }: {
937
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
938
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
939
+ }) => void;
940
+ };
941
+ }, undefined>>
942
+ ];
943
+ actions?: {
944
+ suppressToolbar?: (() => boolean) | undefined;
945
+ unsuppressToolbar?: (() => boolean) | undefined;
946
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
947
+ } | undefined;
948
+ }, {
949
+ preferenceToolbarAboveSelection?: boolean | undefined;
950
+ }>>
870
951
  ];
871
952
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
872
953
  actions: {
@@ -840,7 +840,43 @@ export default function createUniversalPresetInternal({ appearance, props, featu
840
840
  registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
841
841
  resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
842
842
  };
843
- }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>
843
+ }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>,
844
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
845
+ sharedState: {
846
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
847
+ };
848
+ pluginConfiguration: {
849
+ preferenceToolbarAboveSelection?: boolean | undefined;
850
+ };
851
+ dependencies: [
852
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
853
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
854
+ dependencies: [
855
+ ];
856
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
857
+ commands: {
858
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
859
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
860
+ };
861
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
862
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
863
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
864
+ actions: {
865
+ registerComponent: ({ name, component, }: {
866
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
867
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
868
+ }) => void;
869
+ };
870
+ }, undefined>>
871
+ ];
872
+ actions?: {
873
+ suppressToolbar?: (() => boolean) | undefined;
874
+ unsuppressToolbar?: (() => boolean) | undefined;
875
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
876
+ } | undefined;
877
+ }, {
878
+ preferenceToolbarAboveSelection?: boolean | undefined;
879
+ }>>
844
880
  ];
845
881
  commands: {
846
882
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -881,7 +917,16 @@ export default function createUniversalPresetInternal({ appearance, props, featu
881
917
  updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
882
918
  updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
883
919
  };
884
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>
920
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
921
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
922
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
923
+ actions: {
924
+ registerComponent: ({ name, component, }: {
925
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
926
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
927
+ }) => void;
928
+ };
929
+ }, undefined>>
885
930
  ];
886
931
  actions?: {
887
932
  suppressToolbar?: (() => boolean) | undefined;
@@ -918,7 +963,43 @@ export default function createUniversalPresetInternal({ appearance, props, featu
918
963
  component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
919
964
  }) => void;
920
965
  };
921
- }, undefined>>
966
+ }, undefined>>,
967
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
968
+ sharedState: {
969
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
970
+ };
971
+ pluginConfiguration: {
972
+ preferenceToolbarAboveSelection?: boolean | undefined;
973
+ };
974
+ dependencies: [
975
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
976
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
977
+ dependencies: [
978
+ ];
979
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
980
+ commands: {
981
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
982
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
983
+ };
984
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
985
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
986
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
987
+ actions: {
988
+ registerComponent: ({ name, component, }: {
989
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
990
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
991
+ }) => void;
992
+ };
993
+ }, undefined>>
994
+ ];
995
+ actions?: {
996
+ suppressToolbar?: (() => boolean) | undefined;
997
+ unsuppressToolbar?: (() => boolean) | undefined;
998
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
999
+ } | undefined;
1000
+ }, {
1001
+ preferenceToolbarAboveSelection?: boolean | undefined;
1002
+ }>>
922
1003
  ];
923
1004
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
924
1005
  actions: {
@@ -788,7 +788,43 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
788
788
  registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
789
789
  resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
790
790
  };
791
- }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>
791
+ }, import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined>>,
792
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
793
+ sharedState: {
794
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
795
+ };
796
+ pluginConfiguration: {
797
+ preferenceToolbarAboveSelection?: boolean | undefined;
798
+ };
799
+ dependencies: [
800
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
801
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
802
+ dependencies: [
803
+ ];
804
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
805
+ commands: {
806
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
807
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
808
+ };
809
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
810
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
811
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
812
+ actions: {
813
+ registerComponent: ({ name, component, }: {
814
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
815
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
816
+ }) => void;
817
+ };
818
+ }, undefined>>
819
+ ];
820
+ actions?: {
821
+ suppressToolbar?: (() => boolean) | undefined;
822
+ unsuppressToolbar?: (() => boolean) | undefined;
823
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
824
+ } | undefined;
825
+ }, {
826
+ preferenceToolbarAboveSelection?: boolean | undefined;
827
+ }>>
792
828
  ];
793
829
  commands: {
794
830
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -829,7 +865,16 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
829
865
  updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
830
866
  updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
831
867
  };
832
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>
868
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
869
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
870
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
871
+ actions: {
872
+ registerComponent: ({ name, component, }: {
873
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
874
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
875
+ }) => void;
876
+ };
877
+ }, undefined>>
833
878
  ];
834
879
  actions?: {
835
880
  suppressToolbar?: (() => boolean) | undefined;
@@ -866,7 +911,43 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
866
911
  component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
867
912
  }) => void;
868
913
  };
869
- }, undefined>>
914
+ }, undefined>>,
915
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
916
+ sharedState: {
917
+ toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
918
+ };
919
+ pluginConfiguration: {
920
+ preferenceToolbarAboveSelection?: boolean | undefined;
921
+ };
922
+ dependencies: [
923
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
924
+ sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
925
+ dependencies: [
926
+ ];
927
+ pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
928
+ commands: {
929
+ updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
930
+ updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
931
+ };
932
+ }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>,
933
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
934
+ sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
935
+ actions: {
936
+ registerComponent: ({ name, component, }: {
937
+ name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
938
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
939
+ }) => void;
940
+ };
941
+ }, undefined>>
942
+ ];
943
+ actions?: {
944
+ suppressToolbar?: (() => boolean) | undefined;
945
+ unsuppressToolbar?: (() => boolean) | undefined;
946
+ setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
947
+ } | undefined;
948
+ }, {
949
+ preferenceToolbarAboveSelection?: boolean | undefined;
950
+ }>>
870
951
  ];
871
952
  sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
872
953
  actions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "203.18.2",
3
+ "version": "204.0.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,28 +39,28 @@
39
39
  "dependencies": {
40
40
  "@atlaskit/activity-provider": "^2.5.0",
41
41
  "@atlaskit/adf-schema": "^47.2.1",
42
- "@atlaskit/analytics-namespaced-context": "^6.14.0",
43
- "@atlaskit/analytics-next": "^10.3.0",
42
+ "@atlaskit/analytics-namespaced-context": "^7.0.0",
43
+ "@atlaskit/analytics-next": "^11.0.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
- "@atlaskit/button": "^20.5.0",
46
- "@atlaskit/editor-common": "^99.18.0",
45
+ "@atlaskit/button": "^21.0.0",
46
+ "@atlaskit/editor-common": "^100.0.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.23.0",
48
- "@atlaskit/editor-performance-metrics": "1.5.0",
49
- "@atlaskit/editor-plugin-quick-insert": "1.10.2",
50
- "@atlaskit/editor-plugins": "^7.2.0",
48
+ "@atlaskit/editor-performance-metrics": "2.0.0",
49
+ "@atlaskit/editor-plugin-quick-insert": "2.0.0",
50
+ "@atlaskit/editor-plugins": "^8.0.0",
51
51
  "@atlaskit/editor-prosemirror": "7.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^3.3.0",
53
- "@atlaskit/emoji": "^67.14.0",
54
- "@atlaskit/icon": "^23.10.0",
55
- "@atlaskit/media-card": "^78.19.0",
56
- "@atlaskit/mention": "^23.11.0",
53
+ "@atlaskit/emoji": "^68.0.0",
54
+ "@atlaskit/icon": "^24.0.0",
55
+ "@atlaskit/media-card": "^79.0.0",
56
+ "@atlaskit/mention": "^24.0.0",
57
57
  "@atlaskit/platform-feature-flags": "^1.1.0",
58
- "@atlaskit/react-ufo": "^2.16.0",
59
- "@atlaskit/task-decision": "^18.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^2.47.0",
61
- "@atlaskit/tokens": "^3.3.0",
62
- "@atlaskit/tooltip": "^19.2.0",
63
- "@atlaskit/width-detector": "^4.4.0",
58
+ "@atlaskit/react-ufo": "^3.0.0",
59
+ "@atlaskit/task-decision": "^19.0.0",
60
+ "@atlaskit/tmp-editor-statsig": "^3.0.0",
61
+ "@atlaskit/tokens": "^4.0.0",
62
+ "@atlaskit/tooltip": "^20.0.0",
63
+ "@atlaskit/width-detector": "^5.0.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
66
66
  "@types/react-loadable": "^5.4.1",
@@ -74,38 +74,38 @@
74
74
  "uuid": "^3.1.0"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/link-provider": "^1.17.0",
78
- "@atlaskit/media-core": "^34.3.0",
79
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
80
- "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0",
77
+ "@atlaskit/link-provider": "^2.0.0",
78
+ "@atlaskit/media-core": "^35.0.0",
79
+ "react": "^18.2.0",
80
+ "react-dom": "^18.2.0",
81
81
  "react-intl-next": "npm:react-intl@^5.18.1"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@af/editor-libra": "*",
85
85
  "@af/visual-regression": "*",
86
86
  "@atlaskit/adf-utils": "^19.18.0",
87
- "@atlaskit/analytics-listeners": "^8.15.0",
88
- "@atlaskit/collab-provider": "10.7.1",
89
- "@atlaskit/editor-plugin-annotation": "1.28.1",
90
- "@atlaskit/editor-plugin-card": "^4.6.0",
91
- "@atlaskit/editor-plugin-list": "^3.10.0",
92
- "@atlaskit/editor-plugin-paste": "^2.3.0",
93
- "@atlaskit/link-provider": "^1.19.0",
94
- "@atlaskit/logo": "^15.4.0",
95
- "@atlaskit/media-core": "^34.5.0",
96
- "@atlaskit/media-integration-test-helpers": "^3.1.0",
97
- "@atlaskit/media-test-helpers": "^34.8.0",
98
- "@atlaskit/modal-dialog": "^12.20.0",
99
- "@atlaskit/primitives": "^13.6.0",
100
- "@atlaskit/renderer": "^112.15.0",
101
- "@atlaskit/smart-card": "^34.11.0",
87
+ "@atlaskit/analytics-listeners": "^9.0.0",
88
+ "@atlaskit/collab-provider": "10.7.2",
89
+ "@atlaskit/editor-plugin-annotation": "2.0.0",
90
+ "@atlaskit/editor-plugin-card": "^5.0.0",
91
+ "@atlaskit/editor-plugin-list": "^4.0.0",
92
+ "@atlaskit/editor-plugin-paste": "^3.0.0",
93
+ "@atlaskit/link-provider": "^2.0.0",
94
+ "@atlaskit/logo": "^16.0.0",
95
+ "@atlaskit/media-core": "^35.0.0",
96
+ "@atlaskit/media-integration-test-helpers": "^4.0.0",
97
+ "@atlaskit/media-test-helpers": "^35.0.0",
98
+ "@atlaskit/modal-dialog": "^13.0.0",
99
+ "@atlaskit/primitives": "^14.0.0",
100
+ "@atlaskit/renderer": "^113.0.0",
101
+ "@atlaskit/smart-card": "^35.0.0",
102
102
  "@atlaskit/synchrony-test-helpers": "^3.1.0",
103
- "@atlaskit/toggle": "^14.2.0",
103
+ "@atlaskit/toggle": "^15.0.0",
104
104
  "@atlaskit/util-data-test": "^18.0.0",
105
105
  "@atlaskit/visual-regression": "*",
106
106
  "@atlassian/adf-schema-json": "^1.27.0",
107
107
  "@atlassian/feature-flags-test-utils": "*",
108
- "@atlassian/search-provider": "3.0.37",
108
+ "@atlassian/search-provider": "3.0.38",
109
109
  "@emotion/jest": "^11.8.0",
110
110
  "@storybook/addon-knobs": "^6.4.0",
111
111
  "@testing-library/react": "^13.4.0",