@atlaskit/editor-core 192.7.0 → 193.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/create-editor/create-plugins-list.js +0 -1
  3. package/dist/cjs/preset-universal.js +8 -1
  4. package/dist/cjs/presets/default.js +1 -2
  5. package/dist/cjs/presets/universal.js +1 -1
  6. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +5 -3
  7. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +4 -3
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/es2019/create-editor/create-plugins-list.js +0 -1
  10. package/dist/es2019/preset-universal.js +2 -1
  11. package/dist/es2019/presets/default.js +1 -2
  12. package/dist/es2019/presets/universal.js +1 -1
  13. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +4 -4
  14. package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -3
  15. package/dist/es2019/version-wrapper.js +1 -1
  16. package/dist/esm/create-editor/create-plugins-list.js +0 -1
  17. package/dist/esm/preset-universal.js +2 -1
  18. package/dist/esm/presets/default.js +1 -2
  19. package/dist/esm/presets/universal.js +1 -1
  20. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +4 -3
  21. package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -3
  22. package/dist/esm/version-wrapper.js +1 -1
  23. package/dist/types/create-editor/create-preset.d.ts +70 -70
  24. package/dist/types/preset-universal.d.ts +1 -0
  25. package/dist/types/presets/default.d.ts +28 -164
  26. package/dist/types/presets/universal.d.ts +70 -70
  27. package/dist/types/presets/useUniversalPreset.d.ts +70 -70
  28. package/dist/types-ts4.5/create-editor/create-preset.d.ts +82 -82
  29. package/dist/types-ts4.5/preset-universal.d.ts +1 -0
  30. package/dist/types-ts4.5/presets/default.d.ts +24 -190
  31. package/dist/types-ts4.5/presets/universal.d.ts +82 -82
  32. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +82 -82
  33. package/docs/4-annotations.tsx +1 -1
  34. package/package.json +21 -8
  35. package/docs/editor-use-only.tsx +0 -50
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#78867](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78867) [`283c8a390db7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/283c8a390db7) - Move annotation plugin from default preset to universal preset
8
+
9
+ ### Patch Changes
10
+
11
+ - [#75947](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75947) [`43549c3789b1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/43549c3789b1) - Migrate @atlaskit/editor-core to use declarative entry points
12
+
3
13
  ## 192.7.0
4
14
 
5
15
  ### Minor Changes
@@ -77,7 +77,6 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent) {
77
77
  textFormatting: _objectSpread(_objectSpread({}, props.textFormatting || {}), {}, {
78
78
  responsiveToolbarMenu: ((_props$textFormatting = props.textFormatting) === null || _props$textFormatting === void 0 ? void 0 : _props$textFormatting.responsiveToolbarMenu) != null ? props.textFormatting.responsiveToolbarMenu : props.allowUndoRedoButtons
79
79
  }),
80
- annotationProviders: props.annotationProviders,
81
80
  submitEditor: props.onSave,
82
81
  quickInsert: {
83
82
  enableElementBrowser: props.elementBrowser && props.elementBrowser.showModal,
@@ -4,10 +4,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
+ Object.defineProperty(exports, "createUniversalPreset", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _universal.default;
11
+ }
12
+ });
7
13
  Object.defineProperty(exports, "useUniversalPreset", {
8
14
  enumerable: true,
9
15
  get: function get() {
10
16
  return _useUniversalPreset.default;
11
17
  }
12
18
  });
13
- var _useUniversalPreset = _interopRequireDefault(require("./presets/useUniversalPreset"));
19
+ var _useUniversalPreset = _interopRequireDefault(require("./presets/useUniversalPreset"));
20
+ var _universal = _interopRequireDefault(require("./presets/universal"));
@@ -9,7 +9,6 @@ exports.useDefaultPreset = useDefaultPreset;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _preset = require("@atlaskit/editor-common/preset");
11
11
  var _analytics = require("@atlaskit/editor-plugins/analytics");
12
- var _annotation = require("@atlaskit/editor-plugins/annotation");
13
12
  var _base = require("@atlaskit/editor-plugins/base");
14
13
  var _betterTypeHistory = require("@atlaskit/editor-plugins/better-type-history");
15
14
  var _blockType = require("@atlaskit/editor-plugins/block-type");
@@ -56,7 +55,7 @@ function createDefaultPreset(options) {
56
55
  contextIdentifierProvider: options.contextIdentifierProvider
57
56
  }]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead || {
58
57
  createAnalyticsEvent: options.createAnalyticsEvent
59
- }]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).maybeAdd([_annotation.annotationPlugin, options.annotationProviders], Boolean(options.annotationProviders)).maybeAdd([_selectionToolbar.selectionToolbarPlugin, {
58
+ }]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).maybeAdd([_selectionToolbar.selectionToolbarPlugin, {
60
59
  preferenceToolbarAboveSelection: false
61
60
  }], function () {
62
61
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-selection-toolbar_ucdwd')) {
@@ -104,7 +104,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
104
104
  __livePage: props.__livePage
105
105
  }], Boolean(props.allowExpand)).maybeAdd(_guideline.guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([_grid.gridPlugin, {
106
106
  shouldCalcBreakoutGridLines: isFullPage
107
- }], Boolean(props.media)).maybeAdd([_media.mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
107
+ }], Boolean(props.media)).maybeAdd([_annotation.annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([_media.mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
108
108
  allowLazyLoading: !isMobile,
109
109
  allowBreakoutSnapPoints: isFullPage,
110
110
  allowAdvancedToolBarOptions: typeof ((_props$media = props.media) === null || _props$media === void 0 ? void 0 : _props$media.allowAdvancedToolBarOptions) !== 'undefined' ? (_props$media2 = props.media) === null || _props$media2 === void 0 ? void 0 : _props$media2.allowAdvancedToolBarOptions : isFullPage || isComment,
@@ -5,13 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.ClickAreaBlock = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
9
  var _react2 = require("@emotion/react");
11
10
  var _clickAreaHelper = require("../click-area-helper");
12
- var _templateObject;
13
11
  /** @jsx jsx */
14
- var clickWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n height: 100%;\n"])));
12
+
13
+ var clickWrapper = (0, _react2.css)({
14
+ flexGrow: 1,
15
+ height: '100%'
16
+ });
15
17
  var ClickAreaBlock = exports.ClickAreaBlock = function ClickAreaBlock(_ref) {
16
18
  var editorView = _ref.editorView,
17
19
  editorDisabled = _ref.editorDisabled,
@@ -5,13 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.ClickAreaInline = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
9
  var _react2 = require("@emotion/react");
11
10
  var _commands = require("@atlaskit/editor-common/commands");
12
- var _templateObject;
13
11
  /** @jsx jsx */
14
- var clickArea = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n"])));
12
+
13
+ var clickArea = (0, _react2.css)({
14
+ flexGrow: 1
15
+ });
15
16
  var ClickAreaInline = exports.ClickAreaInline = function ClickAreaInline(_ref) {
16
17
  var editorView = _ref.editorView,
17
18
  children = _ref.children;
@@ -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 = "192.7.0";
8
+ var version = exports.version = "193.0.0";
@@ -65,7 +65,6 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
65
65
  ...(props.textFormatting || {}),
66
66
  responsiveToolbarMenu: ((_props$textFormatting = props.textFormatting) === null || _props$textFormatting === void 0 ? void 0 : _props$textFormatting.responsiveToolbarMenu) != null ? props.textFormatting.responsiveToolbarMenu : props.allowUndoRedoButtons
67
67
  },
68
- annotationProviders: props.annotationProviders,
69
68
  submitEditor: props.onSave,
70
69
  quickInsert: {
71
70
  enableElementBrowser: props.elementBrowser && props.elementBrowser.showModal,
@@ -1 +1,2 @@
1
- export { default as useUniversalPreset } from './presets/useUniversalPreset';
1
+ export { default as useUniversalPreset } from './presets/useUniversalPreset';
2
+ export { default as createUniversalPreset } from './presets/universal';
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
4
4
  import { analyticsPlugin } from '@atlaskit/editor-plugins/analytics';
5
- import { annotationPlugin } from '@atlaskit/editor-plugins/annotation';
6
5
  import { basePlugin } from '@atlaskit/editor-plugins/base';
7
6
  import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugins/better-type-history';
8
7
  import { blockTypePlugin } from '@atlaskit/editor-plugins/block-type';
@@ -48,7 +47,7 @@ export function createDefaultPreset(options) {
48
47
  contextIdentifierProvider: options.contextIdentifierProvider
49
48
  }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead || {
50
49
  createAnalyticsEvent: options.createAnalyticsEvent
51
- }]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([annotationPlugin, options.annotationProviders], Boolean(options.annotationProviders)).maybeAdd([selectionToolbarPlugin, {
50
+ }]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([selectionToolbarPlugin, {
52
51
  preferenceToolbarAboveSelection: false
53
52
  }], () => {
54
53
  if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
@@ -92,7 +92,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
92
92
  __livePage: props.__livePage
93
93
  }], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
94
94
  shouldCalcBreakoutGridLines: isFullPage
95
- }], Boolean(props.media)).maybeAdd([mediaPlugin, {
95
+ }], Boolean(props.media)).maybeAdd([annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([mediaPlugin, {
96
96
  ...props.media,
97
97
  allowLazyLoading: !isMobile,
98
98
  allowBreakoutSnapPoints: isFullPage,
@@ -2,10 +2,10 @@
2
2
  import React from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { clickAreaClickHandler } from '../click-area-helper';
5
- const clickWrapper = css`
6
- flex-grow: 1;
7
- height: 100%;
8
- `;
5
+ const clickWrapper = css({
6
+ flexGrow: 1,
7
+ height: '100%'
8
+ });
9
9
  export const ClickAreaBlock = ({
10
10
  editorView,
11
11
  editorDisabled,
@@ -2,9 +2,9 @@
2
2
  import React from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { createParagraphAtEnd } from '@atlaskit/editor-common/commands';
5
- const clickArea = css`
6
- flex-grow: 1;
7
- `;
5
+ const clickArea = css({
6
+ flexGrow: 1
7
+ });
8
8
  export const ClickAreaInline = ({
9
9
  editorView,
10
10
  children
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "192.7.0";
2
+ export const version = "193.0.0";
@@ -68,7 +68,6 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
68
68
  textFormatting: _objectSpread(_objectSpread({}, props.textFormatting || {}), {}, {
69
69
  responsiveToolbarMenu: ((_props$textFormatting = props.textFormatting) === null || _props$textFormatting === void 0 ? void 0 : _props$textFormatting.responsiveToolbarMenu) != null ? props.textFormatting.responsiveToolbarMenu : props.allowUndoRedoButtons
70
70
  }),
71
- annotationProviders: props.annotationProviders,
72
71
  submitEditor: props.onSave,
73
72
  quickInsert: {
74
73
  enableElementBrowser: props.elementBrowser && props.elementBrowser.showModal,
@@ -1 +1,2 @@
1
- export { default as useUniversalPreset } from './presets/useUniversalPreset';
1
+ export { default as useUniversalPreset } from './presets/useUniversalPreset';
2
+ export { default as createUniversalPreset } from './presets/universal';
@@ -5,7 +5,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
 
6
6
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
7
7
  import { analyticsPlugin } from '@atlaskit/editor-plugins/analytics';
8
- import { annotationPlugin } from '@atlaskit/editor-plugins/annotation';
9
8
  import { basePlugin } from '@atlaskit/editor-plugins/base';
10
9
  import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugins/better-type-history';
11
10
  import { blockTypePlugin } from '@atlaskit/editor-plugins/block-type';
@@ -51,7 +50,7 @@ export function createDefaultPreset(options) {
51
50
  contextIdentifierProvider: options.contextIdentifierProvider
52
51
  }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead || {
53
52
  createAnalyticsEvent: options.createAnalyticsEvent
54
- }]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([annotationPlugin, options.annotationProviders], Boolean(options.annotationProviders)).maybeAdd([selectionToolbarPlugin, {
53
+ }]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([selectionToolbarPlugin, {
55
54
  preferenceToolbarAboveSelection: false
56
55
  }], function () {
57
56
  if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
@@ -96,7 +96,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
96
96
  __livePage: props.__livePage
97
97
  }], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
98
98
  shouldCalcBreakoutGridLines: isFullPage
99
- }], Boolean(props.media)).maybeAdd([mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
99
+ }], Boolean(props.media)).maybeAdd([annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
100
100
  allowLazyLoading: !isMobile,
101
101
  allowBreakoutSnapPoints: isFullPage,
102
102
  allowAdvancedToolBarOptions: typeof ((_props$media = props.media) === null || _props$media === void 0 ? void 0 : _props$media.allowAdvancedToolBarOptions) !== 'undefined' ? (_props$media2 = props.media) === null || _props$media2 === void 0 ? void 0 : _props$media2.allowAdvancedToolBarOptions : isFullPage || isComment,
@@ -1,10 +1,11 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  /** @jsx jsx */
4
2
  import React from 'react';
5
3
  import { css, jsx } from '@emotion/react';
6
4
  import { clickAreaClickHandler } from '../click-area-helper';
7
- var clickWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-grow: 1;\n height: 100%;\n"])));
5
+ var clickWrapper = css({
6
+ flexGrow: 1,
7
+ height: '100%'
8
+ });
8
9
  export var ClickAreaBlock = function ClickAreaBlock(_ref) {
9
10
  var editorView = _ref.editorView,
10
11
  editorDisabled = _ref.editorDisabled,
@@ -1,10 +1,10 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  /** @jsx jsx */
4
2
  import React from 'react';
5
3
  import { css, jsx } from '@emotion/react';
6
4
  import { createParagraphAtEnd } from '@atlaskit/editor-common/commands';
7
- var clickArea = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-grow: 1;\n"])));
5
+ var clickArea = css({
6
+ flexGrow: 1
7
+ });
8
8
  export var ClickAreaInline = function ClickAreaInline(_ref) {
9
9
  var editorView = _ref.editorView,
10
10
  children = _ref.children;
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "192.7.0";
2
+ export var version = "193.0.0";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { EditorProps } from '../types';
3
- export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[import("@atlaskit/editor-common/types").MaybePluginName<"loom">, "codeBidiWarning", import("@atlaskit/editor-common/types").MaybePluginName<"pasteOptionsToolbarPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"border">, import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/types").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/types").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/types").MaybePluginName<"indentation">, import("@atlaskit/editor-common/types").MaybePluginName<"status">, import("@atlaskit/editor-common/types").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/types").MaybePluginName<"card">, import("@atlaskit/editor-common/types").MaybePluginName<"layout">, import("@atlaskit/editor-common/types").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/types").MaybePluginName<"date">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"extension">, import("@atlaskit/editor-common/types").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/types").MaybePluginName<"panel">, import("@atlaskit/editor-common/types").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/types").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/types").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/types").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/types").MaybePluginName<"table">, import("@atlaskit/editor-common/types").MaybePluginName<"emoji">, import("@atlaskit/editor-common/types").MaybePluginName<"mention">, import("@atlaskit/editor-common/types").MaybePluginName<"caption">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"grid">, import("@atlaskit/editor-common/types").MaybePluginName<"guideline">, import("@atlaskit/editor-common/types").MaybePluginName<"expand">, import("@atlaskit/editor-common/types").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/types").MaybePluginName<"textColor">, import("@atlaskit/editor-common/types").MaybePluginName<"alignment">, import("@atlaskit/editor-common/types").MaybePluginName<"breakout">, "contentInsertion", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
3
+ export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[import("@atlaskit/editor-common/types").MaybePluginName<"loom">, "codeBidiWarning", import("@atlaskit/editor-common/types").MaybePluginName<"pasteOptionsToolbarPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"border">, import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/types").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/types").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/types").MaybePluginName<"indentation">, import("@atlaskit/editor-common/types").MaybePluginName<"status">, import("@atlaskit/editor-common/types").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/types").MaybePluginName<"card">, import("@atlaskit/editor-common/types").MaybePluginName<"layout">, import("@atlaskit/editor-common/types").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/types").MaybePluginName<"date">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"extension">, import("@atlaskit/editor-common/types").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/types").MaybePluginName<"panel">, import("@atlaskit/editor-common/types").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/types").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/types").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/types").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/types").MaybePluginName<"table">, import("@atlaskit/editor-common/types").MaybePluginName<"emoji">, import("@atlaskit/editor-common/types").MaybePluginName<"mention">, import("@atlaskit/editor-common/types").MaybePluginName<"caption">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"grid">, import("@atlaskit/editor-common/types").MaybePluginName<"guideline">, import("@atlaskit/editor-common/types").MaybePluginName<"expand">, import("@atlaskit/editor-common/types").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/types").MaybePluginName<"textColor">, import("@atlaskit/editor-common/types").MaybePluginName<"alignment">, import("@atlaskit/editor-common/types").MaybePluginName<"breakout">, "contentInsertion", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
4
4
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
5
5
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
6
6
  sharedState: {
@@ -2334,7 +2334,74 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2334
2334
  actions: {
2335
2335
  insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
2336
2336
  };
2337
- }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
2337
+ }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
2338
+ pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
2339
+ sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
2340
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
2341
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
2342
+ sharedState: {
2343
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
2344
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
2345
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
2346
+ };
2347
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2348
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2349
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2350
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2351
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2352
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
2353
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2354
+ dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
2355
+ pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
2356
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2357
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2358
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2359
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
2360
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
2361
+ sharedState: {
2362
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
2363
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
2364
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
2365
+ };
2366
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2367
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2368
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2369
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2370
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2371
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
2372
+ sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
2373
+ actions: {
2374
+ getAvatarColor: (str: string) => {
2375
+ index: number;
2376
+ color: import("@atlaskit/editor-common/collab").Color;
2377
+ };
2378
+ addInlineCommentMark: (props: {
2379
+ from: number;
2380
+ to: number;
2381
+ mark: import("prosemirror-model").Mark;
2382
+ }) => boolean;
2383
+ };
2384
+ }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
2385
+ pluginConfiguration?: {
2386
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2387
+ } | undefined;
2388
+ commands: {
2389
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2390
+ };
2391
+ actions: {
2392
+ applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
2393
+ };
2394
+ }, {
2395
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2396
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2397
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2398
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2399
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2400
+ actions: {
2401
+ stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
2402
+ setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
2403
+ };
2404
+ }, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
2338
2405
  pluginConfiguration: import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined;
2339
2406
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
2340
2407
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
@@ -3127,74 +3194,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3127
3194
  } | undefined>>];
3128
3195
  }, {
3129
3196
  preferenceToolbarAboveSelection?: boolean | undefined;
3130
- }>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
3131
- pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
3132
- sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
3133
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
3134
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
3135
- sharedState: {
3136
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
3137
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
3138
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
3139
- };
3140
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3141
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3142
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3143
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3144
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3145
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3146
- sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3147
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
3148
- pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
3149
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3150
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3151
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3152
- }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
3153
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
3154
- sharedState: {
3155
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
3156
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
3157
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
3158
- };
3159
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3160
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3161
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3162
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3163
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3164
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
3165
- sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
3166
- actions: {
3167
- getAvatarColor: (str: string) => {
3168
- index: number;
3169
- color: import("@atlaskit/editor-common/collab").Color;
3170
- };
3171
- addInlineCommentMark: (props: {
3172
- from: number;
3173
- to: number;
3174
- mark: import("prosemirror-model").Mark;
3175
- }) => boolean;
3176
- };
3177
- }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
3178
- pluginConfiguration?: {
3179
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3180
- } | undefined;
3181
- commands: {
3182
- updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3183
- };
3184
- actions: {
3185
- applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
3186
- };
3187
- }, {
3188
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3189
- } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3190
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3191
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3192
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3193
- actions: {
3194
- stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
3195
- setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
3196
- };
3197
- }, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
3197
+ }>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
3198
3198
  pluginConfiguration: import("@atlaskit/editor-plugin-block-type").BlockTypePluginOptions | undefined;
3199
3199
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
3200
3200
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
@@ -1 +1,2 @@
1
1
  export { default as useUniversalPreset } from './presets/useUniversalPreset';
2
+ export { default as createUniversalPreset } from './presets/universal';