@atlaskit/editor-core 193.29.0 → 193.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.30.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`955949c077d4f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/955949c077d4f) -
8
+ [ux] [ED-23627] Text highlighting UI review
9
+
10
+ ### Patch Changes
11
+
12
+ - [#115817](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115817)
13
+ [`d647eedc6ddd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d647eedc6ddd4) -
14
+ [ux] [ED-23275] Feature flag cleanup for allow-extended-panel
15
+ - Updated dependencies
16
+
17
+ ## 193.29.3
18
+
19
+ ### Patch Changes
20
+
21
+ - [#115286](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115286)
22
+ [`cd387e8052aaa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd387e8052aaa) -
23
+ Removed FF platform.editor.react-18-portal
24
+
3
25
  ## 193.29.0
4
26
 
5
27
  ### Minor Changes
@@ -12,9 +12,7 @@ var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _analytics = require("@atlaskit/editor-common/analytics");
14
14
  var _portal = require("@atlaskit/editor-common/portal");
15
- var _portalProvider = require("@atlaskit/editor-common/portal-provider");
16
15
  var _ui = require("@atlaskit/editor-common/ui");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
16
  var _createEditor = require("../create-editor");
19
17
  var _ErrorBoundary = _interopRequireDefault(require("../create-editor/ErrorBoundary"));
20
18
  var _featureFlagsFromProps = require("../create-editor/feature-flags-from-props");
@@ -60,8 +58,8 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
60
58
  var useShallow = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.useShallow;
61
59
  var _usePortalProvider = (0, _portal.usePortalProvider)(),
62
60
  _usePortalProvider2 = (0, _slicedToArray2.default)(_usePortalProvider, 2),
63
- nextPortalProviderAPI = _usePortalProvider2[0],
64
- NextPortalRenderer = _usePortalProvider2[1];
61
+ portalProviderAPI = _usePortalProvider2[0],
62
+ PortalRenderer = _usePortalProvider2[1];
65
63
 
66
64
  // ED-16320: Check for explicit disable so that by default
67
65
  // it will still be enabled as it currently is. Then we can
@@ -85,69 +83,61 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
85
83
  })
86
84
  }, (0, _react2.jsx)(_EditorContext.default, {
87
85
  editorActions: editorActions
88
- }, (0, _react2.jsx)(_contextAdapter.ContextAdapter, null, (0, _react2.jsx)(_portalProvider.PortalProviderWithThemeProviders, {
89
- onAnalyticsEvent: handleAnalyticsEvent,
90
- useAnalyticsContext: props.UNSAFE_useAnalyticsContext,
91
- render: function render(legacyPortalProviderAPI) {
92
- return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(ReactEditorViewContextWrapper, {
93
- editorProps: overriddenEditorProps,
94
- createAnalyticsEvent: createAnalyticsEvent,
95
- portalProviderAPI: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.react-18-portal') ? nextPortalProviderAPI : legacyPortalProviderAPI,
96
- providerFactory: providerFactory,
97
- onEditorCreated: onEditorCreated,
98
- onEditorDestroyed: onEditorDestroyed,
86
+ }, (0, _react2.jsx)(_contextAdapter.ContextAdapter, null, (0, _react2.jsx)(_ui.IntlProviderIfMissingWrapper, null, (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(ReactEditorViewContextWrapper, {
87
+ editorProps: overriddenEditorProps,
88
+ createAnalyticsEvent: createAnalyticsEvent,
89
+ portalProviderAPI: portalProviderAPI,
90
+ providerFactory: providerFactory,
91
+ onEditorCreated: onEditorCreated,
92
+ onEditorDestroyed: onEditorDestroyed,
93
+ disabled: props.disabled,
94
+ preset: preset,
95
+ setEditorApi: setEditorApi,
96
+ render: function render(_ref2) {
97
+ var _props$featureFlags, _props$featureFlags2;
98
+ var editor = _ref2.editor,
99
+ view = _ref2.view,
100
+ eventDispatcher = _ref2.eventDispatcher,
101
+ config = _ref2.config,
102
+ dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
103
+ editorRef = _ref2.editorRef;
104
+ return (0, _react2.jsx)(_ui.BaseTheme, {
105
+ baseFontSize: (0, _getBaseFontSize.getBaseFontSize)(props.appearance)
106
+ }, (0, _react2.jsx)(Component, {
107
+ innerRef: editorRef,
108
+ appearance: props.appearance,
99
109
  disabled: props.disabled,
100
- preset: preset,
101
- setEditorApi: setEditorApi,
102
- render: function render(_ref2) {
103
- var _props$featureFlags, _props$featureFlags2;
104
- var editor = _ref2.editor,
105
- view = _ref2.view,
106
- eventDispatcher = _ref2.eventDispatcher,
107
- config = _ref2.config,
108
- dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
109
- editorRef = _ref2.editorRef;
110
- return (0, _react2.jsx)(_ui.BaseTheme, {
111
- baseFontSize: (0, _getBaseFontSize.getBaseFontSize)(props.appearance)
112
- }, (0, _react2.jsx)(Component, {
113
- innerRef: editorRef,
114
- appearance: props.appearance,
115
- disabled: props.disabled,
116
- editorActions: editorActions,
117
- editorDOMElement: editor,
118
- editorView: view,
119
- providerFactory: providerFactory,
120
- eventDispatcher: eventDispatcher,
121
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
122
- maxHeight: props.maxHeight,
123
- minHeight: props.minHeight,
124
- onSave: props.onSave ? handleSave : undefined,
125
- onCancel: props.onCancel,
126
- popupsMountPoint: props.popupsMountPoint,
127
- popupsBoundariesElement: props.popupsBoundariesElement,
128
- popupsScrollableElement: props.popupsScrollableElement,
129
- contentComponents: config.contentComponents,
130
- primaryToolbarComponents: config.primaryToolbarComponents,
131
- primaryToolbarIconBefore: props.primaryToolbarIconBefore,
132
- secondaryToolbarComponents: config.secondaryToolbarComponents,
133
- customContentComponents: props.contentComponents,
134
- customPrimaryToolbarComponents: props.primaryToolbarComponents,
135
- customSecondaryToolbarComponents: props.secondaryToolbarComponents,
136
- contextPanel: props.contextPanel,
137
- collabEdit: props.collabEdit,
138
- persistScrollGutter: props.persistScrollGutter,
139
- enableToolbarMinWidth: ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.toolbarMinWidthOverflow) != null ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.toolbarMinWidthOverflow) : props.allowUndoRedoButtons,
140
- useStickyToolbar: props.useStickyToolbar,
141
- featureFlags: featureFlags,
142
- pluginHooks: config.pluginHooks,
143
- hideAvatarGroup: props.hideAvatarGroup
144
- }));
145
- }
146
- }), (0, _platformFeatureFlags.getBooleanFF)('platform.editor.react-18-portal') ? (0, _react2.jsx)(NextPortalRenderer, null) : (0, _react2.jsx)(_portalProvider.PortalRenderer, {
147
- portalProviderAPI: legacyPortalProviderAPI
110
+ editorActions: editorActions,
111
+ editorDOMElement: editor,
112
+ editorView: view,
113
+ providerFactory: providerFactory,
114
+ eventDispatcher: eventDispatcher,
115
+ dispatchAnalyticsEvent: dispatchAnalyticsEvent,
116
+ maxHeight: props.maxHeight,
117
+ minHeight: props.minHeight,
118
+ onSave: props.onSave ? handleSave : undefined,
119
+ onCancel: props.onCancel,
120
+ popupsMountPoint: props.popupsMountPoint,
121
+ popupsBoundariesElement: props.popupsBoundariesElement,
122
+ popupsScrollableElement: props.popupsScrollableElement,
123
+ contentComponents: config.contentComponents,
124
+ primaryToolbarComponents: config.primaryToolbarComponents,
125
+ primaryToolbarIconBefore: props.primaryToolbarIconBefore,
126
+ secondaryToolbarComponents: config.secondaryToolbarComponents,
127
+ customContentComponents: props.contentComponents,
128
+ customPrimaryToolbarComponents: props.primaryToolbarComponents,
129
+ customSecondaryToolbarComponents: props.secondaryToolbarComponents,
130
+ contextPanel: props.contextPanel,
131
+ collabEdit: props.collabEdit,
132
+ persistScrollGutter: props.persistScrollGutter,
133
+ enableToolbarMinWidth: ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.toolbarMinWidthOverflow) != null ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.toolbarMinWidthOverflow) : props.allowUndoRedoButtons,
134
+ useStickyToolbar: props.useStickyToolbar,
135
+ featureFlags: featureFlags,
136
+ pluginHooks: config.pluginHooks,
137
+ hideAvatarGroup: props.hideAvatarGroup
148
138
  }));
149
139
  }
150
- }))))));
140
+ }), (0, _react2.jsx)(PortalRenderer, null))))))));
151
141
  });
152
142
  function ReactEditorViewContextWrapper(props) {
153
143
  var setInternalEditorAPI = (0, _context.useSetPresetContext)();
@@ -74,7 +74,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)({
74
74
  var contentStyles = function contentStyles(props) {
75
75
  return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\tpointer-events: none;\n\t\topacity: 0.7;\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), (0, _editorSharedStyles.editorFontSize)({
76
76
  theme: props.theme
77
- }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, _styles.backgroundColorStyles, listsStyles, ruleStyles(), _media.mediaStyles, (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _panel.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
77
+ }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), _media.mediaStyles, (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _panel.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
78
78
  };
79
79
  var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
80
80
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -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 = "193.29.0";
8
+ var version = exports.version = "193.30.0";
@@ -6,9 +6,7 @@ import { Fragment, memo, useCallback } from 'react';
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
8
8
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
9
- import { PortalProviderWithThemeProviders, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
10
- import { BaseTheme, WidthProvider } from '@atlaskit/editor-common/ui';
11
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
+ import { BaseTheme, IntlProviderIfMissingWrapper, WidthProvider } from '@atlaskit/editor-common/ui';
12
10
  import { getUiComponent } from '../create-editor';
13
11
  import ErrorBoundary from '../create-editor/ErrorBoundary';
14
12
  import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
@@ -52,7 +50,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
52
50
  const renderTracking = (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 ? void 0 : (_props$performanceTra2 = _props$performanceTra.renderTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.editor;
53
51
  const renderTrackingEnabled = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.enabled;
54
52
  const useShallow = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.useShallow;
55
- const [nextPortalProviderAPI, NextPortalRenderer] = usePortalProvider();
53
+ const [portalProviderAPI, PortalRenderer] = usePortalProvider();
56
54
 
57
55
  // ED-16320: Check for explicit disable so that by default
58
56
  // it will still be enabled as it currently is. Then we can
@@ -76,68 +74,62 @@ export const EditorInternal = /*#__PURE__*/memo(({
76
74
  })
77
75
  }, jsx(EditorContext, {
78
76
  editorActions: editorActions
79
- }, jsx(ContextAdapter, null, jsx(PortalProviderWithThemeProviders, {
80
- onAnalyticsEvent: handleAnalyticsEvent,
81
- useAnalyticsContext: props.UNSAFE_useAnalyticsContext,
82
- render: legacyPortalProviderAPI => jsx(Fragment, null, jsx(ReactEditorViewContextWrapper, {
83
- editorProps: overriddenEditorProps,
84
- createAnalyticsEvent: createAnalyticsEvent,
85
- portalProviderAPI: getBooleanFF('platform.editor.react-18-portal') ? nextPortalProviderAPI : legacyPortalProviderAPI,
86
- providerFactory: providerFactory,
87
- onEditorCreated: onEditorCreated,
88
- onEditorDestroyed: onEditorDestroyed,
89
- disabled: props.disabled,
90
- preset: preset,
91
- setEditorApi: setEditorApi,
92
- render: ({
93
- editor,
94
- view,
95
- eventDispatcher,
96
- config,
97
- dispatchAnalyticsEvent,
98
- editorRef
99
- }) => {
100
- var _props$featureFlags, _props$featureFlags2;
101
- return jsx(BaseTheme, {
102
- baseFontSize: getBaseFontSize(props.appearance)
103
- }, jsx(Component, {
104
- innerRef: editorRef,
105
- appearance: props.appearance,
106
- disabled: props.disabled,
107
- editorActions: editorActions,
108
- editorDOMElement: editor,
109
- editorView: view,
110
- providerFactory: providerFactory,
111
- eventDispatcher: eventDispatcher,
112
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
113
- maxHeight: props.maxHeight,
114
- minHeight: props.minHeight,
115
- onSave: props.onSave ? handleSave : undefined,
116
- onCancel: props.onCancel,
117
- popupsMountPoint: props.popupsMountPoint,
118
- popupsBoundariesElement: props.popupsBoundariesElement,
119
- popupsScrollableElement: props.popupsScrollableElement,
120
- contentComponents: config.contentComponents,
121
- primaryToolbarComponents: config.primaryToolbarComponents,
122
- primaryToolbarIconBefore: props.primaryToolbarIconBefore,
123
- secondaryToolbarComponents: config.secondaryToolbarComponents,
124
- customContentComponents: props.contentComponents,
125
- customPrimaryToolbarComponents: props.primaryToolbarComponents,
126
- customSecondaryToolbarComponents: props.secondaryToolbarComponents,
127
- contextPanel: props.contextPanel,
128
- collabEdit: props.collabEdit,
129
- persistScrollGutter: props.persistScrollGutter,
130
- enableToolbarMinWidth: ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.toolbarMinWidthOverflow) != null ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.toolbarMinWidthOverflow) : props.allowUndoRedoButtons,
131
- useStickyToolbar: props.useStickyToolbar,
132
- featureFlags: featureFlags,
133
- pluginHooks: config.pluginHooks,
134
- hideAvatarGroup: props.hideAvatarGroup
135
- }));
136
- }
137
- }), getBooleanFF('platform.editor.react-18-portal') ? jsx(NextPortalRenderer, null) : jsx(PortalRenderer, {
138
- portalProviderAPI: legacyPortalProviderAPI
139
- }))
140
- }))))));
77
+ }, jsx(ContextAdapter, null, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewContextWrapper, {
78
+ editorProps: overriddenEditorProps,
79
+ createAnalyticsEvent: createAnalyticsEvent,
80
+ portalProviderAPI: portalProviderAPI,
81
+ providerFactory: providerFactory,
82
+ onEditorCreated: onEditorCreated,
83
+ onEditorDestroyed: onEditorDestroyed,
84
+ disabled: props.disabled,
85
+ preset: preset,
86
+ setEditorApi: setEditorApi,
87
+ render: ({
88
+ editor,
89
+ view,
90
+ eventDispatcher,
91
+ config,
92
+ dispatchAnalyticsEvent,
93
+ editorRef
94
+ }) => {
95
+ var _props$featureFlags, _props$featureFlags2;
96
+ return jsx(BaseTheme, {
97
+ baseFontSize: getBaseFontSize(props.appearance)
98
+ }, jsx(Component, {
99
+ innerRef: editorRef,
100
+ appearance: props.appearance,
101
+ disabled: props.disabled,
102
+ editorActions: editorActions,
103
+ editorDOMElement: editor,
104
+ editorView: view,
105
+ providerFactory: providerFactory,
106
+ eventDispatcher: eventDispatcher,
107
+ dispatchAnalyticsEvent: dispatchAnalyticsEvent,
108
+ maxHeight: props.maxHeight,
109
+ minHeight: props.minHeight,
110
+ onSave: props.onSave ? handleSave : undefined,
111
+ onCancel: props.onCancel,
112
+ popupsMountPoint: props.popupsMountPoint,
113
+ popupsBoundariesElement: props.popupsBoundariesElement,
114
+ popupsScrollableElement: props.popupsScrollableElement,
115
+ contentComponents: config.contentComponents,
116
+ primaryToolbarComponents: config.primaryToolbarComponents,
117
+ primaryToolbarIconBefore: props.primaryToolbarIconBefore,
118
+ secondaryToolbarComponents: config.secondaryToolbarComponents,
119
+ customContentComponents: props.contentComponents,
120
+ customPrimaryToolbarComponents: props.primaryToolbarComponents,
121
+ customSecondaryToolbarComponents: props.secondaryToolbarComponents,
122
+ contextPanel: props.contextPanel,
123
+ collabEdit: props.collabEdit,
124
+ persistScrollGutter: props.persistScrollGutter,
125
+ enableToolbarMinWidth: ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.toolbarMinWidthOverflow) != null ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.toolbarMinWidthOverflow) : props.allowUndoRedoButtons,
126
+ useStickyToolbar: props.useStickyToolbar,
127
+ featureFlags: featureFlags,
128
+ pluginHooks: config.pluginHooks,
129
+ hideAvatarGroup: props.hideAvatarGroup
130
+ }));
131
+ }
132
+ }), jsx(PortalRenderer, null))))))));
141
133
  });
142
134
  function ReactEditorViewContextWrapper(props) {
143
135
  const setInternalEditorAPI = useSetPresetContext();
@@ -189,7 +189,7 @@ const contentStyles = props => css`
189
189
  ${blocktypeStyles()}
190
190
  ${codeMarkSharedStyles()}
191
191
  ${textColorStyles}
192
- ${backgroundColorStyles}
192
+ ${backgroundColorStyles()}
193
193
  ${listsStyles}
194
194
  ${ruleStyles()}
195
195
  ${mediaStyles}
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.29.0";
2
+ export const version = "193.30.0";
@@ -10,9 +10,7 @@ import { Fragment, memo, useCallback } from 'react';
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
12
12
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
13
- import { PortalProviderWithThemeProviders, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
14
- import { BaseTheme, WidthProvider } from '@atlaskit/editor-common/ui';
15
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
13
+ import { BaseTheme, IntlProviderIfMissingWrapper, WidthProvider } from '@atlaskit/editor-common/ui';
16
14
  import { getUiComponent } from '../create-editor';
17
15
  import ErrorBoundary from '../create-editor/ErrorBoundary';
18
16
  import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
@@ -56,8 +54,8 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
56
54
  var useShallow = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.useShallow;
57
55
  var _usePortalProvider = usePortalProvider(),
58
56
  _usePortalProvider2 = _slicedToArray(_usePortalProvider, 2),
59
- nextPortalProviderAPI = _usePortalProvider2[0],
60
- NextPortalRenderer = _usePortalProvider2[1];
57
+ portalProviderAPI = _usePortalProvider2[0],
58
+ PortalRenderer = _usePortalProvider2[1];
61
59
 
62
60
  // ED-16320: Check for explicit disable so that by default
63
61
  // it will still be enabled as it currently is. Then we can
@@ -81,69 +79,61 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
81
79
  })
82
80
  }, jsx(EditorContext, {
83
81
  editorActions: editorActions
84
- }, jsx(ContextAdapter, null, jsx(PortalProviderWithThemeProviders, {
85
- onAnalyticsEvent: handleAnalyticsEvent,
86
- useAnalyticsContext: props.UNSAFE_useAnalyticsContext,
87
- render: function render(legacyPortalProviderAPI) {
88
- return jsx(Fragment, null, jsx(ReactEditorViewContextWrapper, {
89
- editorProps: overriddenEditorProps,
90
- createAnalyticsEvent: createAnalyticsEvent,
91
- portalProviderAPI: getBooleanFF('platform.editor.react-18-portal') ? nextPortalProviderAPI : legacyPortalProviderAPI,
92
- providerFactory: providerFactory,
93
- onEditorCreated: onEditorCreated,
94
- onEditorDestroyed: onEditorDestroyed,
82
+ }, jsx(ContextAdapter, null, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewContextWrapper, {
83
+ editorProps: overriddenEditorProps,
84
+ createAnalyticsEvent: createAnalyticsEvent,
85
+ portalProviderAPI: portalProviderAPI,
86
+ providerFactory: providerFactory,
87
+ onEditorCreated: onEditorCreated,
88
+ onEditorDestroyed: onEditorDestroyed,
89
+ disabled: props.disabled,
90
+ preset: preset,
91
+ setEditorApi: setEditorApi,
92
+ render: function render(_ref2) {
93
+ var _props$featureFlags, _props$featureFlags2;
94
+ var editor = _ref2.editor,
95
+ view = _ref2.view,
96
+ eventDispatcher = _ref2.eventDispatcher,
97
+ config = _ref2.config,
98
+ dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
99
+ editorRef = _ref2.editorRef;
100
+ return jsx(BaseTheme, {
101
+ baseFontSize: getBaseFontSize(props.appearance)
102
+ }, jsx(Component, {
103
+ innerRef: editorRef,
104
+ appearance: props.appearance,
95
105
  disabled: props.disabled,
96
- preset: preset,
97
- setEditorApi: setEditorApi,
98
- render: function render(_ref2) {
99
- var _props$featureFlags, _props$featureFlags2;
100
- var editor = _ref2.editor,
101
- view = _ref2.view,
102
- eventDispatcher = _ref2.eventDispatcher,
103
- config = _ref2.config,
104
- dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
105
- editorRef = _ref2.editorRef;
106
- return jsx(BaseTheme, {
107
- baseFontSize: getBaseFontSize(props.appearance)
108
- }, jsx(Component, {
109
- innerRef: editorRef,
110
- appearance: props.appearance,
111
- disabled: props.disabled,
112
- editorActions: editorActions,
113
- editorDOMElement: editor,
114
- editorView: view,
115
- providerFactory: providerFactory,
116
- eventDispatcher: eventDispatcher,
117
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
118
- maxHeight: props.maxHeight,
119
- minHeight: props.minHeight,
120
- onSave: props.onSave ? handleSave : undefined,
121
- onCancel: props.onCancel,
122
- popupsMountPoint: props.popupsMountPoint,
123
- popupsBoundariesElement: props.popupsBoundariesElement,
124
- popupsScrollableElement: props.popupsScrollableElement,
125
- contentComponents: config.contentComponents,
126
- primaryToolbarComponents: config.primaryToolbarComponents,
127
- primaryToolbarIconBefore: props.primaryToolbarIconBefore,
128
- secondaryToolbarComponents: config.secondaryToolbarComponents,
129
- customContentComponents: props.contentComponents,
130
- customPrimaryToolbarComponents: props.primaryToolbarComponents,
131
- customSecondaryToolbarComponents: props.secondaryToolbarComponents,
132
- contextPanel: props.contextPanel,
133
- collabEdit: props.collabEdit,
134
- persistScrollGutter: props.persistScrollGutter,
135
- enableToolbarMinWidth: ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.toolbarMinWidthOverflow) != null ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.toolbarMinWidthOverflow) : props.allowUndoRedoButtons,
136
- useStickyToolbar: props.useStickyToolbar,
137
- featureFlags: featureFlags,
138
- pluginHooks: config.pluginHooks,
139
- hideAvatarGroup: props.hideAvatarGroup
140
- }));
141
- }
142
- }), getBooleanFF('platform.editor.react-18-portal') ? jsx(NextPortalRenderer, null) : jsx(PortalRenderer, {
143
- portalProviderAPI: legacyPortalProviderAPI
106
+ editorActions: editorActions,
107
+ editorDOMElement: editor,
108
+ editorView: view,
109
+ providerFactory: providerFactory,
110
+ eventDispatcher: eventDispatcher,
111
+ dispatchAnalyticsEvent: dispatchAnalyticsEvent,
112
+ maxHeight: props.maxHeight,
113
+ minHeight: props.minHeight,
114
+ onSave: props.onSave ? handleSave : undefined,
115
+ onCancel: props.onCancel,
116
+ popupsMountPoint: props.popupsMountPoint,
117
+ popupsBoundariesElement: props.popupsBoundariesElement,
118
+ popupsScrollableElement: props.popupsScrollableElement,
119
+ contentComponents: config.contentComponents,
120
+ primaryToolbarComponents: config.primaryToolbarComponents,
121
+ primaryToolbarIconBefore: props.primaryToolbarIconBefore,
122
+ secondaryToolbarComponents: config.secondaryToolbarComponents,
123
+ customContentComponents: props.contentComponents,
124
+ customPrimaryToolbarComponents: props.primaryToolbarComponents,
125
+ customSecondaryToolbarComponents: props.secondaryToolbarComponents,
126
+ contextPanel: props.contextPanel,
127
+ collabEdit: props.collabEdit,
128
+ persistScrollGutter: props.persistScrollGutter,
129
+ enableToolbarMinWidth: ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.toolbarMinWidthOverflow) != null ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.toolbarMinWidthOverflow) : props.allowUndoRedoButtons,
130
+ useStickyToolbar: props.useStickyToolbar,
131
+ featureFlags: featureFlags,
132
+ pluginHooks: config.pluginHooks,
133
+ hideAvatarGroup: props.hideAvatarGroup
144
134
  }));
145
135
  }
146
- }))))));
136
+ }), jsx(PortalRenderer, null))))))));
147
137
  });
148
138
  function ReactEditorViewContextWrapper(props) {
149
139
  var setInternalEditorAPI = useSetPresetContext();
@@ -67,7 +67,7 @@ export var placeholderStyles = css({
67
67
  var contentStyles = function contentStyles(props) {
68
68
  return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\tpointer-events: none;\n\t\topacity: 0.7;\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), editorFontSize({
69
69
  theme: props.theme
70
- }), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles, listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
70
+ }), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
71
71
  };
72
72
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
73
73
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.29.0";
2
+ export var version = "193.30.0";
@@ -2,8 +2,7 @@
2
2
  import { jsx } from '@emotion/react';
3
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
5
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
6
- import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/preset';
5
+ import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
7
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
8
7
  import type { Transformer } from '@atlaskit/editor-common/types';
9
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -230,7 +230,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
230
230
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
231
231
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
232
232
  } | undefined;
233
- }, undefined>];
233
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
234
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
235
+ }, undefined>>];
234
236
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
235
237
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
236
238
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -1155,7 +1157,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1155
1157
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
1156
1158
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
1157
1159
  } | undefined;
1158
- }, undefined>];
1160
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
1161
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
1162
+ }, undefined>>];
1159
1163
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1160
1164
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
1161
1165
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"layout", {
@@ -3575,7 +3579,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3575
3579
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
3576
3580
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
3577
3581
  } | undefined;
3578
- }, undefined>];
3582
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
3583
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
3584
+ }, undefined>>];
3579
3585
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3580
3586
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3581
3587
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
@@ -3987,7 +3993,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3987
3993
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
3988
3994
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
3989
3995
  } | undefined;
3990
- }, undefined>];
3996
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
3997
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
3998
+ }, undefined>>];
3991
3999
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3992
4000
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3993
4001
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -849,7 +849,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
849
849
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
850
850
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
851
851
  } | undefined;
852
- }, undefined>];
852
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
853
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
854
+ }, undefined>>];
853
855
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
854
856
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
855
857
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
@@ -1261,7 +1263,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1261
1263
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
1262
1264
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
1263
1265
  } | undefined;
1264
- }, undefined>];
1266
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
1267
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
1268
+ }, undefined>>];
1265
1269
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1266
1270
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
1267
1271
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -2528,7 +2532,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2528
2532
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
2529
2533
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
2530
2534
  } | undefined;
2531
- }, undefined>];
2535
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
2536
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
2537
+ }, undefined>>];
2532
2538
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
2533
2539
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
2534
2540
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
@@ -2940,7 +2946,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2940
2946
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
2941
2947
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
2942
2948
  } | undefined;
2943
- }, undefined>];
2949
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
2950
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
2951
+ }, undefined>>];
2944
2952
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
2945
2953
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
2946
2954
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -247,7 +247,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
247
247
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
248
248
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
249
249
  } | undefined;
250
- }, undefined>];
250
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
251
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
252
+ }, undefined>>];
251
253
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
252
254
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
253
255
  }, import("@atlaskit/editor-plugins/card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -1172,7 +1174,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
1172
1174
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
1173
1175
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
1174
1176
  } | undefined;
1175
- }, undefined>];
1177
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
1178
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
1179
+ }, undefined>>];
1176
1180
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
1177
1181
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
1178
1182
  }, import("@atlaskit/editor-plugins/card").CardPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"layout", {
@@ -3592,7 +3596,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
3592
3596
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
3593
3597
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
3594
3598
  } | undefined;
3595
- }, undefined>];
3599
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
3600
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
3601
+ }, undefined>>];
3596
3602
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
3597
3603
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3598
3604
  }, import("@atlaskit/editor-plugins/card").CardPluginOptions>>];
@@ -4004,7 +4010,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
4004
4010
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
4005
4011
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
4006
4012
  } | undefined;
4007
- }, undefined>];
4013
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
4014
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4015
+ }, undefined>>];
4008
4016
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
4009
4017
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
4010
4018
  }, import("@atlaskit/editor-plugins/card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -233,7 +233,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
233
233
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
234
234
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
235
235
  } | undefined;
236
- }, undefined>];
236
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
237
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
238
+ }, undefined>>];
237
239
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
238
240
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
239
241
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
@@ -1158,7 +1160,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1158
1160
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
1159
1161
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
1160
1162
  } | undefined;
1161
- }, undefined>];
1163
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
1164
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
1165
+ }, undefined>>];
1162
1166
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1163
1167
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
1164
1168
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"layout", {
@@ -3578,7 +3582,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3578
3582
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
3579
3583
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
3580
3584
  } | undefined;
3581
- }, undefined>];
3585
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
3586
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
3587
+ }, undefined>>];
3582
3588
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3583
3589
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3584
3590
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
@@ -3990,7 +3996,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3990
3996
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
3991
3997
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
3992
3998
  } | undefined;
3993
- }, undefined>];
3999
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
4000
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4001
+ }, undefined>>];
3994
4002
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3995
4003
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3996
4004
  }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
@@ -2,8 +2,7 @@
2
2
  import { jsx } from '@emotion/react';
3
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
5
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
6
- import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/preset';
5
+ import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
7
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
8
7
  import type { Transformer } from '@atlaskit/editor-common/types';
9
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -363,7 +363,10 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
363
363
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
364
364
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
365
365
  } | undefined;
366
- }, undefined>
366
+ }, undefined>,
367
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
368
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
369
+ }, undefined>>
367
370
  ];
368
371
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
369
372
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1496,7 +1499,10 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1496
1499
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
1497
1500
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
1498
1501
  } | undefined;
1499
- }, undefined>
1502
+ }, undefined>,
1503
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
1504
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
1505
+ }, undefined>>
1500
1506
  ];
1501
1507
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1502
1508
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -4458,7 +4464,10 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
4458
4464
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
4459
4465
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
4460
4466
  } | undefined;
4461
- }, undefined>
4467
+ }, undefined>,
4468
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
4469
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4470
+ }, undefined>>
4462
4471
  ];
4463
4472
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
4464
4473
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -4960,7 +4969,10 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
4960
4969
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
4961
4970
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
4962
4971
  } | undefined;
4963
- }, undefined>
4972
+ }, undefined>,
4973
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
4974
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4975
+ }, undefined>>
4964
4976
  ];
4965
4977
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
4966
4978
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1066,7 +1066,10 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1066
1066
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
1067
1067
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
1068
1068
  } | undefined;
1069
- }, undefined>
1069
+ }, undefined>,
1070
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
1071
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
1072
+ }, undefined>>
1070
1073
  ];
1071
1074
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1072
1075
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1568,7 +1571,10 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1568
1571
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
1569
1572
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
1570
1573
  } | undefined;
1571
- }, undefined>
1574
+ }, undefined>,
1575
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
1576
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
1577
+ }, undefined>>
1572
1578
  ];
1573
1579
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1574
1580
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -3159,7 +3165,10 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3159
3165
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
3160
3166
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
3161
3167
  } | undefined;
3162
- }, undefined>
3168
+ }, undefined>,
3169
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
3170
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
3171
+ }, undefined>>
3163
3172
  ];
3164
3173
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3165
3174
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -3661,7 +3670,10 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3661
3670
  configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
3662
3671
  floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
3663
3672
  } | undefined;
3664
- }, undefined>
3673
+ }, undefined>,
3674
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
3675
+ sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
3676
+ }, undefined>>
3665
3677
  ];
3666
3678
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3667
3679
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -380,7 +380,10 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
380
380
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
381
381
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
382
382
  } | undefined;
383
- }, undefined>
383
+ }, undefined>,
384
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
385
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
386
+ }, undefined>>
384
387
  ];
385
388
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
386
389
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1513,7 +1516,10 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
1513
1516
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
1514
1517
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
1515
1518
  } | undefined;
1516
- }, undefined>
1519
+ }, undefined>,
1520
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
1521
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
1522
+ }, undefined>>
1517
1523
  ];
1518
1524
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
1519
1525
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -4475,7 +4481,10 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
4475
4481
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
4476
4482
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
4477
4483
  } | undefined;
4478
- }, undefined>
4484
+ }, undefined>,
4485
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
4486
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4487
+ }, undefined>>
4479
4488
  ];
4480
4489
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
4481
4490
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -4977,7 +4986,10 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
4977
4986
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
4978
4987
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
4979
4988
  } | undefined;
4980
- }, undefined>
4989
+ }, undefined>,
4990
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
4991
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4992
+ }, undefined>>
4981
4993
  ];
4982
4994
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
4983
4995
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -366,7 +366,10 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
366
366
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
367
367
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
368
368
  } | undefined;
369
- }, undefined>
369
+ }, undefined>,
370
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
371
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
372
+ }, undefined>>
370
373
  ];
371
374
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
372
375
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1499,7 +1502,10 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1499
1502
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
1500
1503
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
1501
1504
  } | undefined;
1502
- }, undefined>
1505
+ }, undefined>,
1506
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
1507
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
1508
+ }, undefined>>
1503
1509
  ];
1504
1510
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1505
1511
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -4461,7 +4467,10 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4461
4467
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
4462
4468
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
4463
4469
  } | undefined;
4464
- }, undefined>
4470
+ }, undefined>,
4471
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
4472
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4473
+ }, undefined>>
4465
4474
  ];
4466
4475
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
4467
4476
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -4963,7 +4972,10 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4963
4972
  configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
4964
4973
  floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
4965
4974
  } | undefined;
4966
- }, undefined>
4975
+ }, undefined>,
4976
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
4977
+ sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
4978
+ }, undefined>>
4967
4979
  ];
4968
4980
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
4969
4981
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.29.0",
3
+ "version": "193.30.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/analytics-next": "^9.3.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^18.0.0",
48
- "@atlaskit/editor-common": "^83.3.0",
48
+ "@atlaskit/editor-common": "^83.4.0",
49
49
  "@atlaskit/editor-json-transformer": "^8.15.0",
50
50
  "@atlaskit/editor-plugins": "^3.3.0",
51
51
  "@atlaskit/editor-prosemirror": "4.0.1",
@@ -100,14 +100,14 @@
100
100
  "@atlaskit/media-test-helpers": "^33.0.27",
101
101
  "@atlaskit/modal-dialog": "^12.14.0",
102
102
  "@atlaskit/primitives": "^9.0.0",
103
- "@atlaskit/renderer": "^109.38.0",
103
+ "@atlaskit/renderer": "^109.40.0",
104
104
  "@atlaskit/smart-card": "^27.8.0",
105
105
  "@atlaskit/synchrony-test-helpers": "^2.4.0",
106
106
  "@atlaskit/toggle": "^13.2.0",
107
107
  "@atlaskit/util-data-test": "^17.9.0",
108
108
  "@atlaskit/visual-regression": "*",
109
109
  "@atlassian/adf-schema-json": "^1.16.0",
110
- "@atlassian/search-provider": "2.4.86",
110
+ "@atlassian/search-provider": "2.4.87",
111
111
  "@emotion/jest": "^11.8.0",
112
112
  "@storybook/addon-knobs": "^5.3.18",
113
113
  "@testing-library/react": "^12.1.5",
@@ -311,9 +311,6 @@
311
311
  "type": "boolean",
312
312
  "referenceOnly": "true"
313
313
  },
314
- "platform.editor.react-18-portal": {
315
- "type": "boolean"
316
- },
317
314
  "platform.editor.table.allow-table-alignment": {
318
315
  "type": "boolean"
319
316
  },
@@ -356,6 +353,10 @@
356
353
  },
357
354
  "platform.editor.a11y-main-toolbar-navigation_osrty": {
358
355
  "type": "boolean"
356
+ },
357
+ "platform.editor.review-text-highlighting-styling": {
358
+ "type": "boolean",
359
+ "referenceOnly": "true"
359
360
  }
360
361
  },
361
362
  "stricter": {