@atlaskit/editor-core 191.6.0 → 191.6.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/afm-cc/tsconfig.json +1 -211
  3. package/dist/cjs/composable-editor/editor.js +2 -2
  4. package/dist/cjs/labs-next.js +1 -1
  5. package/dist/cjs/presets/default.js +32 -32
  6. package/dist/cjs/presets/universal.js +70 -70
  7. package/dist/cjs/test-utils.js +2 -2
  8. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
  9. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  10. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -2
  11. package/dist/cjs/ui/ContentStyles/expand.js +1 -1
  12. package/dist/cjs/ui/ContentStyles/index.js +5 -5
  13. package/dist/cjs/ui/ContentStyles/layout.js +2 -2
  14. package/dist/cjs/ui/WithHelpTrigger/index.js +2 -2
  15. package/dist/cjs/version-wrapper.js +1 -1
  16. package/dist/es2019/composable-editor/editor.js +1 -1
  17. package/dist/es2019/index.js +2 -2
  18. package/dist/es2019/labs-next.js +1 -1
  19. package/dist/es2019/presets/default.js +28 -28
  20. package/dist/es2019/presets/universal.js +45 -45
  21. package/dist/es2019/test-utils.js +1 -1
  22. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
  23. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  24. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +2 -2
  25. package/dist/es2019/ui/ContentStyles/expand.js +2 -2
  26. package/dist/es2019/ui/ContentStyles/index.js +5 -5
  27. package/dist/es2019/ui/ContentStyles/layout.js +2 -2
  28. package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
  29. package/dist/es2019/version-wrapper.js +1 -1
  30. package/dist/esm/composable-editor/editor.js +1 -1
  31. package/dist/esm/index.js +2 -2
  32. package/dist/esm/labs-next.js +1 -1
  33. package/dist/esm/presets/default.js +28 -28
  34. package/dist/esm/presets/universal.js +45 -45
  35. package/dist/esm/test-utils.js +1 -1
  36. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
  37. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  38. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +2 -2
  39. package/dist/esm/ui/ContentStyles/expand.js +2 -2
  40. package/dist/esm/ui/ContentStyles/index.js +5 -5
  41. package/dist/esm/ui/ContentStyles/layout.js +2 -2
  42. package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
  43. package/dist/esm/version-wrapper.js +1 -1
  44. package/dist/types/create-editor/create-plugins-list.d.ts +3 -4
  45. package/dist/types/create-editor/create-preset.d.ts +80 -40
  46. package/dist/types/index.d.ts +4 -4
  47. package/dist/types/labs-next.d.ts +1 -1
  48. package/dist/types/presets/default.d.ts +770 -730
  49. package/dist/types/presets/universal.d.ts +278 -239
  50. package/dist/types/presets/useUniversalPreset.d.ts +80 -40
  51. package/dist/types/types/editor-props.d.ts +12 -12
  52. package/dist/types/ui/ContextPanel/index.d.ts +1 -1
  53. package/dist/types/utils/action.d.ts +2 -2
  54. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +3 -4
  55. package/dist/types-ts4.5/create-editor/create-preset.d.ts +84 -40
  56. package/dist/types-ts4.5/index.d.ts +4 -4
  57. package/dist/types-ts4.5/labs-next.d.ts +1 -1
  58. package/dist/types-ts4.5/presets/default.d.ts +774 -730
  59. package/dist/types-ts4.5/presets/universal.d.ts +282 -239
  60. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +84 -40
  61. package/dist/types-ts4.5/types/editor-props.d.ts +12 -12
  62. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +1 -1
  63. package/dist/types-ts4.5/utils/action.d.ts +2 -2
  64. package/docs/0-intro.tsx +5 -5
  65. package/package.json +16 -149
  66. package/tsconfig.json +193 -166
  67. package/dist/cjs/presets/types.js +0 -5
  68. package/dist/es2019/presets/types.js +0 -1
  69. package/dist/esm/presets/types.js +0 -1
  70. package/dist/types/presets/types.d.ts +0 -6
  71. package/dist/types-ts4.5/presets/types.d.ts +0 -6
@@ -3,50 +3,50 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import { shouldForceTracking } from '@atlaskit/editor-common/utils';
6
- import { alignmentPlugin } from '@atlaskit/editor-plugin-alignment';
7
- import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
8
- import { avatarGroupPlugin } from '@atlaskit/editor-plugin-avatar-group';
9
- import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugin-before-primary-toolbar';
10
- import { borderPlugin } from '@atlaskit/editor-plugin-border';
11
- import { breakoutPlugin } from '@atlaskit/editor-plugin-breakout';
12
- import { captionPlugin } from '@atlaskit/editor-plugin-caption';
13
- import { cardPlugin } from '@atlaskit/editor-plugin-card';
14
- import { codeBidiWarningPlugin } from '@atlaskit/editor-plugin-code-bidi-warning';
15
- import { collabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
16
- import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
17
- import { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
18
- import { customAutoformatPlugin } from '@atlaskit/editor-plugin-custom-autoformat';
19
- import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
20
- import { datePlugin } from '@atlaskit/editor-plugin-date';
21
- import { emojiPlugin } from '@atlaskit/editor-plugin-emoji';
22
- import { expandPlugin } from '@atlaskit/editor-plugin-expand';
23
- import { extensionPlugin } from '@atlaskit/editor-plugin-extension';
24
- import { feedbackDialogPlugin } from '@atlaskit/editor-plugin-feedback-dialog';
25
- import { findReplacePlugin } from '@atlaskit/editor-plugin-find-replace';
26
- import { fragmentPlugin } from '@atlaskit/editor-plugin-fragment';
27
- import { gridPlugin } from '@atlaskit/editor-plugin-grid';
28
- import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
29
- import { helpDialogPlugin } from '@atlaskit/editor-plugin-help-dialog';
30
- import { imageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
31
- import { indentationPlugin } from '@atlaskit/editor-plugin-indentation';
32
- import { insertBlockPlugin } from '@atlaskit/editor-plugin-insert-block';
33
- import { layoutPlugin } from '@atlaskit/editor-plugin-layout';
34
- import { listPlugin } from '@atlaskit/editor-plugin-list';
35
- import { loomPlugin } from '@atlaskit/editor-plugin-loom';
36
- import { maxContentSizePlugin } from '@atlaskit/editor-plugin-max-content-size';
37
- import { mediaPlugin } from '@atlaskit/editor-plugin-media';
38
- import { mentionsPlugin } from '@atlaskit/editor-plugin-mentions';
39
- import { panelPlugin } from '@atlaskit/editor-plugin-panel';
40
- import { pasteOptionsToolbarPlugin } from '@atlaskit/editor-plugin-paste-options-toolbar';
41
- import { placeholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
42
- import { rulePlugin } from '@atlaskit/editor-plugin-rule';
43
- import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
44
- import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
45
- import { statusPlugin } from '@atlaskit/editor-plugin-status';
46
- import { tablesPlugin } from '@atlaskit/editor-plugin-table';
47
- import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
48
- import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
49
- import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugin-toolbar-lists-indentation';
6
+ import { alignmentPlugin } from '@atlaskit/editor-plugins/alignment';
7
+ import { annotationPlugin } from '@atlaskit/editor-plugins/annotation';
8
+ import { avatarGroupPlugin } from '@atlaskit/editor-plugins/avatar-group';
9
+ import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugins/before-primary-toolbar';
10
+ import { borderPlugin } from '@atlaskit/editor-plugins/border';
11
+ import { breakoutPlugin } from '@atlaskit/editor-plugins/breakout';
12
+ import { captionPlugin } from '@atlaskit/editor-plugins/caption';
13
+ import { cardPlugin } from '@atlaskit/editor-plugins/card';
14
+ import { codeBidiWarningPlugin } from '@atlaskit/editor-plugins/code-bidi-warning';
15
+ import { collabEditPlugin } from '@atlaskit/editor-plugins/collab-edit';
16
+ import { contentInsertionPlugin } from '@atlaskit/editor-plugins/content-insertion';
17
+ import { contextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
18
+ import { customAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
19
+ import { dataConsumerPlugin } from '@atlaskit/editor-plugins/data-consumer';
20
+ import { datePlugin } from '@atlaskit/editor-plugins/date';
21
+ import { emojiPlugin } from '@atlaskit/editor-plugins/emoji';
22
+ import { expandPlugin } from '@atlaskit/editor-plugins/expand';
23
+ import { extensionPlugin } from '@atlaskit/editor-plugins/extension';
24
+ import { feedbackDialogPlugin } from '@atlaskit/editor-plugins/feedback-dialog';
25
+ import { findReplacePlugin } from '@atlaskit/editor-plugins/find-replace';
26
+ import { fragmentPlugin } from '@atlaskit/editor-plugins/fragment';
27
+ import { gridPlugin } from '@atlaskit/editor-plugins/grid';
28
+ import { guidelinePlugin } from '@atlaskit/editor-plugins/guideline';
29
+ import { helpDialogPlugin } from '@atlaskit/editor-plugins/help-dialog';
30
+ import { imageUploadPlugin } from '@atlaskit/editor-plugins/image-upload';
31
+ import { indentationPlugin } from '@atlaskit/editor-plugins/indentation';
32
+ import { insertBlockPlugin } from '@atlaskit/editor-plugins/insert-block';
33
+ import { layoutPlugin } from '@atlaskit/editor-plugins/layout';
34
+ import { listPlugin } from '@atlaskit/editor-plugins/list';
35
+ import { loomPlugin } from '@atlaskit/editor-plugins/loom';
36
+ import { maxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
37
+ import { mediaPlugin } from '@atlaskit/editor-plugins/media';
38
+ import { mentionsPlugin } from '@atlaskit/editor-plugins/mentions';
39
+ import { panelPlugin } from '@atlaskit/editor-plugins/panel';
40
+ import { pasteOptionsToolbarPlugin } from '@atlaskit/editor-plugins/paste-options-toolbar';
41
+ import { placeholderTextPlugin } from '@atlaskit/editor-plugins/placeholder-text';
42
+ import { rulePlugin } from '@atlaskit/editor-plugins/rule';
43
+ import { saveOnEnterPlugin } from '@atlaskit/editor-plugins/save-on-enter';
44
+ import { scrollIntoViewPlugin } from '@atlaskit/editor-plugins/scroll-into-view';
45
+ import { statusPlugin } from '@atlaskit/editor-plugins/status';
46
+ import { tablesPlugin } from '@atlaskit/editor-plugins/table';
47
+ import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
48
+ import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
49
+ import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
50
50
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
51
51
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
52
52
  import { version as coreVersion } from '../version-wrapper';
@@ -116,7 +116,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
116
116
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
117
117
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
118
118
  tableResizingEnabled: getBooleanFF('platform.editor.custom-table-width') && ['full-page', 'full-width'].includes(appearance || ''),
119
- dragAndDropEnabled: getBooleanFF('platform.editor.table.drag-and-drop') && isFullPage,
119
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
120
120
  breakoutEnabled: appearance === 'full-page',
121
121
  allowContextualMenu: !isMobile,
122
122
  fullWidthEnabled: appearance === 'full-width',
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
6
- import { basePlugin } from '@atlaskit/editor-plugin-base';
6
+ import { basePlugin } from '@atlaskit/editor-plugins/base';
7
7
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { createSchema } from './create-editor/create-schema';
9
9
  import { sortByOrder } from './create-editor/sort-by-order';
@@ -20,7 +20,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
20
20
  import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
21
21
  import { WidthConsumer } from '@atlaskit/editor-common/ui';
22
22
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
23
- import { tableCommentEditorStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
23
+ import { tableCommentEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
24
24
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
25
25
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
26
26
  import { N40 } from '@atlaskit/theme/colors';
@@ -8,7 +8,7 @@ var beforePrimaryToolbarPluginWrapperStyles = css({
8
8
  justifyContent: 'flex-end',
9
9
  alignItems: 'center'
10
10
  });
11
- // Duplicate of the wrapper from `editor-plugin-before-primary-toolbar` used
11
+ // Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
12
12
  // only in `FullPageToolbar` to decouple the plugin from the main toolbar
13
13
  export var BeforePrimaryToolbarWrapper = function BeforePrimaryToolbarWrapper(props) {
14
14
  return jsx("div", {
@@ -2,8 +2,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
3
3
  import { css } from '@emotion/react';
4
4
  import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
5
- import { tableFullPageEditorStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
6
- import { tableMarginFullWidthMode } from '@atlaskit/editor-plugin-table/ui/consts';
5
+ import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
6
+ import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
7
7
  import { akEditorContextPanelWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorSwoopCubicBezier, akLayoutGutterOffset, ATLASSIAN_NAVIGATION_HEIGHT } from '@atlaskit/editor-shared-styles';
8
8
  import { createEditorContentStyle } from '../../ContentStyles';
9
9
  import { scrollbarStyles } from '../../styles';
@@ -5,10 +5,10 @@ import { BreakoutCssClassName } from '@atlaskit/editor-common/styles';
5
5
  import { expandClassNames } from '@atlaskit/editor-common/styles';
6
6
  import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
7
7
  import { akEditorSelectedNodeClassName, akLayoutGutterOffset, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
8
- import { N40A, N50A, N80A, R300, R50 } from '@atlaskit/theme/colors';
8
+ import { N100A, N40A, N50A, R300, R50 } from '@atlaskit/theme/colors';
9
9
  var EXPAND_SELECTED_BACKGROUND = "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))";
10
10
  var EXPAND_ICON_COLOR = function EXPAND_ICON_COLOR() {
11
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-icon-subtle, ".concat(N80A, ")"));
11
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-icon-subtle, ".concat(N100A, ")"));
12
12
  };
13
13
  var DANGER_STATE_BACKGROUND_COLOR = "var(--ds-background-danger, ".concat(R50, ")");
14
14
  var DANGER_STATE_BORDER_COLOR = "var(--ds-border-danger, ".concat(R300, ")");
@@ -11,11 +11,11 @@ import { annotationSharedStyles, blockMarksSharedStyles, codeBlockInListSafariFi
11
11
  import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
12
12
  import { codeMarkSharedStyles, linkSharedStyle, ruleSharedStyles } from '@atlaskit/editor-common/styles';
13
13
  import { browser } from '@atlaskit/editor-common/utils';
14
- import { blocktypeStyles } from '@atlaskit/editor-plugin-block-type/styles';
15
- import { findReplaceStyles } from '@atlaskit/editor-plugin-find-replace/styles';
16
- import { textHighlightStyle } from '@atlaskit/editor-plugin-paste-options-toolbar/styles';
17
- import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/styles';
18
- import { tableStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
14
+ import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
15
+ import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
16
+ import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
17
+ import { placeholderTextStyles } from '@atlaskit/editor-plugins/placeholder-text/styles';
18
+ import { tableStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
19
19
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorLineHeight, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
20
20
  import { N200, N30A, N500 } from '@atlaskit/theme/colors';
21
21
  import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
@@ -2,8 +2,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { columnLayoutSharedStyle, LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '@atlaskit/editor-common/styles';
5
- import { TableCssClassName } from '@atlaskit/editor-plugin-table/types';
6
- import { tableMarginFullWidthMode } from '@atlaskit/editor-plugin-table/ui/consts';
5
+ import { TableCssClassName } from '@atlaskit/editor-plugins/table/types';
6
+ import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
7
7
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSwoopCubicBezier, akLayoutGutterOffset, getSelectionStyles, gridMediumMaxWidth, SelectionStyle } from '@atlaskit/editor-shared-styles';
8
8
  import { N40A, N50A } from '@atlaskit/theme/colors';
9
9
  export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
@@ -11,7 +11,7 @@ import React from 'react';
11
11
  import PropTypes from 'prop-types';
12
12
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
13
13
  import { analyticsEventKey } from '@atlaskit/editor-common/utils';
14
- import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugin-help-dialog';
14
+ import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugins/help-dialog';
15
15
  import { createDispatch } from '../../event-dispatcher';
16
16
  var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
17
17
  _inherits(WithHelpTrigger, _React$Component);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "191.6.0";
2
+ export var version = "191.6.1";
@@ -1,12 +1,11 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { EditorPluginInjectionAPI, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
3
- import type { ScrollGutterPluginOptions } from '@atlaskit/editor-plugin-base';
4
- import type { DefaultPresetPluginOptions } from '../presets/default';
5
- import type { EditorPresetProps } from '../presets/types';
3
+ import type { ScrollGutterPluginOptions } from '@atlaskit/editor-plugins/base';
4
+ import type { DefaultPresetPluginOptions } from '../../src/presets/default';
6
5
  import type { EditorPlugin, EditorProps } from '../types';
7
6
  import type { EditorPluginFeatureProps } from '../types/editor-props';
8
7
  export declare function getScrollGutterOptions(props: EditorProps): ScrollGutterPluginOptions | undefined;
9
- export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
8
+ export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): DefaultPresetPluginOptions & EditorPluginFeatureProps;
10
9
  /**
11
10
  * Maps EditorProps to EditorPlugins
12
11
  *
@@ -264,7 +264,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
264
264
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
265
265
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
266
266
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
267
- pluginConfiguration: import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined;
267
+ pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
268
268
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
269
269
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
270
270
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -407,18 +407,18 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
407
407
  hasFocus: boolean;
408
408
  };
409
409
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
410
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
410
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
411
411
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
412
412
  commands: {
413
413
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
414
414
  };
415
415
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
416
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>];
417
- sharedState: import("@atlaskit/editor-plugin-media/types").MediaPluginState | null;
416
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>];
417
+ sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
418
418
  actions: {
419
- insertMediaAsMediaSingle: import("@atlaskit/editor-plugin-media/types").InsertMediaAsMediaSingle;
419
+ insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
420
420
  };
421
- }, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
421
+ }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
422
422
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
423
423
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
424
424
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
@@ -473,7 +473,17 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
473
473
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
474
474
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
475
475
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
476
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
476
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
477
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
478
+ pluginConfiguration?: {
479
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
480
+ } | undefined;
481
+ commands: {
482
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
483
+ };
484
+ }, {
485
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
486
+ } | undefined>>];
477
487
  actions: {
478
488
  stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
479
489
  };
@@ -1038,7 +1048,17 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1038
1048
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
1039
1049
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
1040
1050
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1041
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
1051
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
1052
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1053
+ pluginConfiguration?: {
1054
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1055
+ } | undefined;
1056
+ commands: {
1057
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1058
+ };
1059
+ }, {
1060
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1061
+ } | undefined>>];
1042
1062
  actions: {
1043
1063
  stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
1044
1064
  };
@@ -1139,7 +1159,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1139
1159
  };
1140
1160
  };
1141
1161
  }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
1142
- pluginConfiguration: import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined;
1162
+ pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
1143
1163
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1144
1164
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
1145
1165
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -1282,18 +1302,18 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1282
1302
  hasFocus: boolean;
1283
1303
  };
1284
1304
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1285
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
1305
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
1286
1306
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
1287
1307
  commands: {
1288
1308
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1289
1309
  };
1290
1310
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1291
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>];
1292
- sharedState: import("@atlaskit/editor-plugin-media/types").MediaPluginState | null;
1311
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>];
1312
+ sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
1293
1313
  actions: {
1294
- insertMediaAsMediaSingle: import("@atlaskit/editor-plugin-media/types").InsertMediaAsMediaSingle;
1314
+ insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
1295
1315
  };
1296
- }, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"imageUpload", {
1316
+ }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"imageUpload", {
1297
1317
  actions: {
1298
1318
  startUpload: () => import("@atlaskit/editor-common/types").Command;
1299
1319
  };
@@ -1501,13 +1521,13 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1501
1521
  displayGuideline: import("@atlaskit/editor-common/guideline").DisplayGuideline;
1502
1522
  };
1503
1523
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1504
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
1524
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
1505
1525
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
1506
1526
  commands: {
1507
1527
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1508
1528
  };
1509
1529
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1510
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>];
1530
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>];
1511
1531
  }, import("@atlaskit/editor-plugin-table").TablePluginOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
1512
1532
  pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
1513
1533
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -1648,7 +1668,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1648
1668
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1649
1669
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>];
1650
1670
  }, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
1651
- pluginConfiguration: import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined;
1671
+ pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
1652
1672
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1653
1673
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
1654
1674
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -1791,18 +1811,18 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1791
1811
  hasFocus: boolean;
1792
1812
  };
1793
1813
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1794
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
1814
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
1795
1815
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
1796
1816
  commands: {
1797
1817
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1798
1818
  };
1799
1819
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1800
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>];
1801
- sharedState: import("@atlaskit/editor-plugin-media/types").MediaPluginState | null;
1820
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>];
1821
+ sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
1802
1822
  actions: {
1803
- insertMediaAsMediaSingle: import("@atlaskit/editor-plugin-media/types").InsertMediaAsMediaSingle;
1823
+ insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
1804
1824
  };
1805
- }, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
1825
+ }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
1806
1826
  pluginConfiguration: import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined;
1807
1827
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
1808
1828
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
@@ -1832,13 +1852,13 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1832
1852
  removeDecoration: import("@atlaskit/editor-common/types").Command;
1833
1853
  };
1834
1854
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1835
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
1855
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
1836
1856
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
1837
1857
  commands: {
1838
1858
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1839
1859
  };
1840
1860
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1841
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
1861
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
1842
1862
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
1843
1863
  sharedState: {
1844
1864
  createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
@@ -1972,13 +1992,13 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1972
1992
  insertCodeBlock: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
1973
1993
  };
1974
1994
  }, import("@atlaskit/editor-plugin-code-block").CodeBlockOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1975
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
1995
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
1976
1996
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
1977
1997
  commands: {
1978
1998
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1979
1999
  };
1980
2000
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1981
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
2001
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
1982
2002
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1983
2003
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
1984
2004
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -2089,7 +2109,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2089
2109
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"submitEditor", {
2090
2110
  pluginConfiguration: import("@atlaskit/editor-plugin-submit-editor").SubmitEditorPluginOptions | undefined;
2091
2111
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
2092
- pluginConfiguration: import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined;
2112
+ pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
2093
2113
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2094
2114
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2095
2115
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -2232,18 +2252,18 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2232
2252
  hasFocus: boolean;
2233
2253
  };
2234
2254
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
2235
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
2255
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
2236
2256
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
2237
2257
  commands: {
2238
2258
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
2239
2259
  };
2240
2260
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
2241
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>];
2242
- sharedState: import("@atlaskit/editor-plugin-media/types").MediaPluginState | null;
2261
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>];
2262
+ sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
2243
2263
  actions: {
2244
- insertMediaAsMediaSingle: import("@atlaskit/editor-plugin-media/types").InsertMediaAsMediaSingle;
2264
+ insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
2245
2265
  };
2246
- }, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>];
2266
+ }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>];
2247
2267
  }, import("@atlaskit/editor-plugin-submit-editor").SubmitEditorPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
2248
2268
  sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
2249
2269
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
@@ -2435,7 +2455,17 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2435
2455
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2436
2456
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2437
2457
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2438
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
2458
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
2459
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2460
+ pluginConfiguration?: {
2461
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2462
+ } | undefined;
2463
+ commands: {
2464
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2465
+ };
2466
+ }, {
2467
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2468
+ } | undefined>>];
2439
2469
  actions: {
2440
2470
  stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
2441
2471
  };
@@ -2778,7 +2808,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2778
2808
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2779
2809
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2780
2810
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
2781
- pluginConfiguration: import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined;
2811
+ pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
2782
2812
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2783
2813
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2784
2814
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -2921,18 +2951,18 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2921
2951
  hasFocus: boolean;
2922
2952
  };
2923
2953
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
2924
- pluginConfiguration: import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined;
2954
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
2925
2955
  actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
2926
2956
  commands: {
2927
2957
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
2928
2958
  };
2929
2959
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
2930
- }, import("@atlaskit/editor-plugin-selection/types").SelectionPluginOptions | undefined>];
2931
- sharedState: import("@atlaskit/editor-plugin-media/types").MediaPluginState | null;
2960
+ }, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>];
2961
+ sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
2932
2962
  actions: {
2933
- insertMediaAsMediaSingle: import("@atlaskit/editor-plugin-media/types").InsertMediaAsMediaSingle;
2963
+ insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
2934
2964
  };
2935
- }, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
2965
+ }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
2936
2966
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
2937
2967
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
2938
2968
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
@@ -2987,7 +3017,17 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2987
3017
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2988
3018
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2989
3019
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2990
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
3020
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3021
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3022
+ pluginConfiguration?: {
3023
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3024
+ } | undefined;
3025
+ commands: {
3026
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3027
+ };
3028
+ }, {
3029
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3030
+ } | undefined>>];
2991
3031
  actions: {
2992
3032
  stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
2993
3033
  };
@@ -23,9 +23,9 @@ export type { UpdateEvent } from '@atlaskit/editor-common/annotation';
23
23
  * @deprecated
24
24
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
25
25
  * This is here while we work to extract the annotation plugin.
26
- * Please use the export from `@atlaskit/editor-plugin-annotation`.
26
+ * Please use the export from `@atlaskit/editor-plugins/annotation`.
27
27
  */
28
- export type { AnnotationProviders, InlineCommentAnnotationProvider, InlineCommentCreateComponentProps, InlineCommentViewComponentProps, AnnotationInfo, AnnotationState, AnnotationTypeProvider, InlineCommentState, } from '@atlaskit/editor-plugin-annotation';
28
+ export type { AnnotationProviders, InlineCommentAnnotationProvider, InlineCommentCreateComponentProps, InlineCommentViewComponentProps, AnnotationInfo, AnnotationState, AnnotationTypeProvider, InlineCommentState, } from '@atlaskit/editor-plugins/annotation';
29
29
  export type { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
30
30
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
31
31
  export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
@@ -45,9 +45,9 @@ export type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
45
45
  * @deprecated
46
46
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
47
47
  * This is here while we work to extract the media plugin.
48
- * Please use the export from `@atlaskit/editor-plugin-media/types`.
48
+ * Please use the export from `@atlaskit/editor-plugins/media/types`.
49
49
  */
50
- export type { MediaOptions } from '@atlaskit/editor-plugin-media/types';
50
+ export type { MediaOptions } from '@atlaskit/editor-plugins/media/types';
51
51
  export type {
52
52
  /**
53
53
  * @deprecated Use QuickInsertItem from @atlaskit/editor-common/provider-factory instead
@@ -1 +1 @@
1
- export { createDefaultPreset } from './presets/default';
1
+ export { createDefaultPreset } from '../src/presets/default';