@atlaskit/editor-core 211.2.7 → 211.2.9

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 (44) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/create-editor/ReactEditorView.js +0 -38
  3. package/dist/cjs/create-editor/create-editor.js +5 -0
  4. package/dist/cjs/create-editor/editorNativeAnchorSupportPlugin.js +34 -0
  5. package/dist/cjs/presets/default.js +4 -4
  6. package/dist/cjs/ui/Appearance/Comment/Comment.js +4 -2
  7. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +10 -8
  8. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
  9. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +2 -0
  10. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +4 -3
  11. package/dist/cjs/version-wrapper.js +1 -1
  12. package/dist/es2019/create-editor/ReactEditorView.js +1 -35
  13. package/dist/es2019/create-editor/create-editor.js +5 -0
  14. package/dist/es2019/create-editor/editorNativeAnchorSupportPlugin.js +26 -0
  15. package/dist/es2019/presets/default.js +4 -4
  16. package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -2
  17. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +10 -8
  18. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
  19. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +2 -0
  20. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +4 -3
  21. package/dist/es2019/version-wrapper.js +1 -1
  22. package/dist/esm/create-editor/ReactEditorView.js +1 -39
  23. package/dist/esm/create-editor/create-editor.js +5 -0
  24. package/dist/esm/create-editor/editorNativeAnchorSupportPlugin.js +28 -0
  25. package/dist/esm/presets/default.js +4 -4
  26. package/dist/esm/ui/Appearance/Comment/Comment.js +4 -2
  27. package/dist/esm/ui/Appearance/Comment/Toolbar.js +10 -8
  28. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
  29. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +2 -0
  30. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +4 -3
  31. package/dist/esm/version-wrapper.js +1 -1
  32. package/dist/types/create-editor/create-editor.d.ts +1 -1
  33. package/dist/types/create-editor/create-universal-preset.d.ts +14 -1
  34. package/dist/types/create-editor/editorNativeAnchorSupportPlugin.d.ts +3 -0
  35. package/dist/types/presets/universal.d.ts +15 -1
  36. package/dist/types/presets/useUniversalPreset.d.ts +14 -1
  37. package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +2 -1
  38. package/dist/types-ts4.5/create-editor/create-editor.d.ts +1 -1
  39. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +21 -1
  40. package/dist/types-ts4.5/create-editor/editorNativeAnchorSupportPlugin.d.ts +3 -0
  41. package/dist/types-ts4.5/presets/universal.d.ts +22 -1
  42. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +21 -1
  43. package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +2 -1
  44. package/package.json +6 -6
@@ -18,12 +18,10 @@ import { measureRender } from '@atlaskit/editor-common/performance/measure-rende
18
18
  import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
19
19
  import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
20
20
  import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
21
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
22
21
  import { ReactEditorViewContext } from '@atlaskit/editor-common/ui-react';
23
22
  import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
24
23
  import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
25
- import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
26
- import { EditorState, PluginKey, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
24
+ import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
27
25
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
28
26
  import { fg } from '@atlaskit/platform-feature-flags';
29
27
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
@@ -46,39 +44,6 @@ import { handleEditorFocus } from './ReactEditorView/handleEditorFocus';
46
44
  import { useDispatchTransaction } from './ReactEditorView/useDispatchTransaction';
47
45
  import { useFireFullWidthEvent } from './ReactEditorView/useFireFullWidthEvent';
48
46
  var EDIT_AREA_ID = 'ak-editor-textarea';
49
- var injectNodeViewNodeTypeList = ['paragraph', 'heading'];
50
- var createNodeViewPlugin = function createNodeViewPlugin(schema) {
51
- var nodeViewEntries = [];
52
- schema.spec.nodes.forEach(function (nodeName, nodeSpec) {
53
- if (injectNodeViewNodeTypeList.includes(nodeName)) {
54
- if (nodeSpec.toDOM && typeof nodeSpec.toDOM === 'function') {
55
- var toDOM = nodeSpec.toDOM.bind(nodeSpec);
56
- nodeViewEntries.push([nodeName, function (node) {
57
- return DOMSerializer.renderSpec(document, toDOM(node));
58
- }]);
59
- }
60
- }
61
- });
62
- return {
63
- name: 'nodeViewInjectPlugin',
64
- plugin: function plugin() {
65
- return new SafePlugin({
66
- state: {
67
- init: function init() {
68
- return {};
69
- },
70
- apply: function apply(_tr, pluginState) {
71
- return pluginState;
72
- }
73
- },
74
- key: new PluginKey('nodeViewInjectPlugin'),
75
- props: {
76
- nodeViews: Object.fromEntries(nodeViewEntries)
77
- }
78
- });
79
- }
80
- };
81
- };
82
47
  export function ReactEditorView(props) {
83
48
  var _pluginInjectionAPI$c, _media, _linking, _document$querySelect, _props$render, _props$render2;
84
49
  var preset = props.preset,
@@ -174,9 +139,6 @@ export function ReactEditorView(props) {
174
139
  config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
175
140
  schema = createSchema(config.current);
176
141
  setEditorAPI(pluginInjectionAPI.current.api());
177
- if (expValEquals('platform_editor_native_anchor_support', 'isEnabled', true)) {
178
- config.current.pmPlugins.push(createNodeViewPlugin(schema));
179
- }
180
142
  }
181
143
  var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
182
144
  var plugins = createPMPlugins({
@@ -1,6 +1,8 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
3
3
  import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
+ import { createEditorNativeAnchorSupportPlugin } from './editorNativeAnchorSupportPlugin';
4
6
  import { createEditorStateNotificationPlugin } from './editorStateNotificationPlugin';
5
7
  export function sortByRank(a, b) {
6
8
  return a.rank - b.rank;
@@ -103,6 +105,9 @@ export function createPMPlugins(config) {
103
105
  }).filter(function (plugin) {
104
106
  return typeof plugin !== 'undefined';
105
107
  });
108
+ if (expValEquals('platform_editor_native_anchor_support', 'isEnabled', true)) {
109
+ pmPlugins.push(createEditorNativeAnchorSupportPlugin(config.schema));
110
+ }
106
111
  if (config.onEditorStateUpdated !== undefined) {
107
112
  return [createEditorStateNotificationPlugin(config.onEditorStateUpdated, config.editorConfig.onEditorViewStateUpdatedCallbacks)].concat(_toConsumableArray(pmPlugins));
108
113
  }
@@ -0,0 +1,28 @@
1
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
+ import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
3
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
+ var injectNodeViewNodeTypeList = ['paragraph', 'heading', 'bulletList', 'orderedList', 'blockquote', 'rule', 'decisionList', 'taskList', 'layoutColumn', 'hardBreak'];
5
+ var key = new PluginKey('editorNativeAnchorSupportPlugin');
6
+
7
+ // Internal plugin to enable native anchor support in the editor.
8
+ // This plugin injects node views for specific node types (e.g., 'paragraph', 'heading')
9
+ // that do not already have a nodeView, allowing them to be rendered with native anchors when needed.
10
+ export var createEditorNativeAnchorSupportPlugin = function createEditorNativeAnchorSupportPlugin(schema) {
11
+ var nodeViewEntries = [];
12
+ schema.spec.nodes.forEach(function (nodeName, nodeSpec) {
13
+ if (injectNodeViewNodeTypeList.includes(nodeName)) {
14
+ if (nodeSpec.toDOM && typeof nodeSpec.toDOM === 'function') {
15
+ var toDOM = nodeSpec.toDOM.bind(nodeSpec);
16
+ nodeViewEntries.push([nodeName, function (node) {
17
+ return DOMSerializer.renderSpec(document, toDOM(node));
18
+ }]);
19
+ }
20
+ }
21
+ });
22
+ return new SafePlugin({
23
+ key: key,
24
+ props: {
25
+ nodeViews: Object.fromEntries(nodeViewEntries)
26
+ }
27
+ });
28
+ };
@@ -50,7 +50,7 @@ import { isFullPage as fullPageCheck } from '../utils/is-full-page';
50
50
  * @example
51
51
  */
52
52
  export function createDefaultPreset(options) {
53
- var _options$featureFlags, _options$featureFlags2;
53
+ var _options$toolbar, _options$featureFlags, _options$featureFlags2;
54
54
  var isFullPage = fullPageCheck(options.appearance);
55
55
  var preset = new EditorPresetBuilder().add([featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([analyticsPlugin, {
56
56
  createAnalyticsEvent: options.createAnalyticsEvent,
@@ -65,9 +65,9 @@ export function createDefaultPreset(options) {
65
65
  return fg('platform_editor_use_preferences_plugin');
66
66
  }).maybeAdd(interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(compositionPlugin).add([contextIdentifierPlugin, {
67
67
  contextIdentifierProvider: options.contextIdentifierProvider
68
- }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([toolbarPlugin, options.toolbar || {}], editorExperiment('platform_editor_toolbar_aifc', true, {
69
- exposure: true
70
- })).add([primaryToolbarPlugin, {
68
+ }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([toolbarPlugin, options.toolbar || {}],
69
+ // if explicitly set to false, don't enable. If undefined treat as truthy and allow plugin to be enabled under experiment
70
+ Boolean(expValEquals('platform_editor_toolbar_aifc_exp_code_toggle', 'isEnabled', true) ? ((_options$toolbar = options.toolbar) === null || _options$toolbar === void 0 ? void 0 : _options$toolbar.enableNewToolbarExperience) !== false && editorExperiment('platform_editor_toolbar_aifc', true) : editorExperiment('platform_editor_toolbar_aifc', true))).add([primaryToolbarPlugin, {
71
71
  contextualFormattingEnabled: isFullPage
72
72
  }]).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, _objectSpread(_objectSpread({}, options.blockType), {}, {
73
73
  includeBlockQuoteAsTextstyleOption: isFullPage
@@ -202,6 +202,7 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
202
202
  css: expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [mainToolbarCustomComponentsSlotStyleNew, isTwoLineToolbarEnabled && mainToolbarCustomComponentsSlotStyleTwoLineToolbarNew] : /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766 */
203
203
  mainToolbarCustomComponentsSlotStyle(isTwoLineToolbarEnabled)
204
204
  }, customPrimaryToolbarComponents);
205
+ var isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar) && expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true);
205
206
  return jsx(WithFlash, {
206
207
  animate: maxContentSizeReached
207
208
  }, jsx(WidthProvider, null, jsx("div", {
@@ -217,8 +218,9 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
217
218
  ref: wrapperElementRef
218
219
  }, jsx(MainToolbar, {
219
220
  useStickyToolbar: useStickyToolbar,
220
- twoLineEditorToolbar: isTwoLineToolbarEnabled
221
- }, editorExperiment('platform_editor_toolbar_aifc', true) ? jsx(React.Fragment, null, jsx(CommentToolbar, {
221
+ twoLineEditorToolbar: isTwoLineToolbarEnabled,
222
+ isNewToolbarEnabled: isToolbarAIFCEnabled
223
+ }, isToolbarAIFCEnabled ? jsx(React.Fragment, null, jsx(CommentToolbar, {
222
224
  editorAPI: editorAPI,
223
225
  editorView: editorView,
224
226
  editorAppearance: appearance
@@ -15,7 +15,6 @@ import React, { useEffect, useState } from 'react';
15
15
  import { css, jsx } from '@emotion/react';
16
16
  import { fg } from '@atlaskit/platform-feature-flags';
17
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
18
  var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
20
19
  var akEditorMenuZIndex = 500;
21
20
  var akEditorToolbarKeylineHeight = 2;
@@ -106,11 +105,11 @@ var StickyToolbar = function StickyToolbar(props) {
106
105
  return (
107
106
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
108
107
  jsx("div", {
109
- css: expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, editorExperiment('platform_editor_toolbar_aifc', true) && mainToolbarWithoutLeftPadding] : [
108
+ css: expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding] : [
110
109
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
111
110
  mainToolbarWrapperStyle(props.twoLineEditorToolbar,
112
111
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
113
- editorExperiment('platform_editor_toolbar_aifc', true)), stickyToolbarWrapperStyle]
112
+ props.isNewToolbarEnabled), stickyToolbarWrapperStyle]
114
113
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
115
114
  ,
116
115
  style: {
@@ -127,11 +126,11 @@ var FixedToolbar = function FixedToolbar(props) {
127
126
  return (
128
127
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
129
128
  jsx("div", {
130
- css: expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, editorExperiment('platform_editor_toolbar_aifc', true) && mainToolbarWithoutLeftPadding] :
129
+ css: expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding] :
131
130
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
132
131
  mainToolbarWrapperStyle(props.twoLineEditorToolbar,
133
132
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
134
- editorExperiment('platform_editor_toolbar_aifc', true)),
133
+ props.isNewToolbarEnabled),
135
134
  "data-testid": "ak-editor-main-toolbar"
136
135
  }, props.children)
137
136
  );
@@ -167,16 +166,19 @@ var getStickyParameters = function getStickyParameters(configuration) {
167
166
  export var MainToolbar = function MainToolbar(_ref) {
168
167
  var useStickyToolbar = _ref.useStickyToolbar,
169
168
  twoLineEditorToolbar = _ref.twoLineEditorToolbar,
170
- children = _ref.children;
169
+ children = _ref.children,
170
+ isNewToolbarEnabled = _ref.isNewToolbarEnabled;
171
171
  if (useStickyToolbar) {
172
172
  return jsx(StickyToolbar
173
173
  // Ignored via go/ees005
174
174
  // eslint-disable-next-line react/jsx-props-no-spreading
175
175
  , _extends({}, getStickyParameters(useStickyToolbar), {
176
- twoLineEditorToolbar: twoLineEditorToolbar
176
+ twoLineEditorToolbar: twoLineEditorToolbar,
177
+ isNewToolbarEnabled: isNewToolbarEnabled
177
178
  }), children);
178
179
  }
179
180
  return jsx(FixedToolbar, {
180
- twoLineEditorToolbar: twoLineEditorToolbar
181
+ twoLineEditorToolbar: twoLineEditorToolbar,
182
+ isNewToolbarEnabled: isNewToolbarEnabled
181
183
  }, children);
182
184
  };
@@ -143,7 +143,7 @@ export var FullPageEditor = function FullPageEditor(props) {
143
143
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
144
144
  '--ak-editor-fullpage-toolbar-height': FULL_PAGE_EDITOR_TOOLBAR_HEIGHT()
145
145
  }
146
- }, !isEditorToolbarHidden && (editorExperiment('platform_editor_toolbar_aifc', true) ? jsx(IntlProvider, {
146
+ }, !isEditorToolbarHidden && (Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true) ? jsx(IntlProvider, {
147
147
  locale: "en"
148
148
  }, jsx(FullPageToolbarNext, {
149
149
  toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
@@ -6,8 +6,10 @@
6
6
  ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
7
7
  ._1bahesu3{justify-content:flex-end}
8
8
  ._1e0c1txw{display:flex}
9
+ ._1pby16oo{z-index:510}
9
10
  ._1ul91ns9{min-width:-moz-fit-content;min-width:fit-content}
10
11
  ._2hwxpxbi{margin-right:var(--ds-space-200,1pc)}
11
12
  ._4cvr1h6o{align-items:center}
12
13
  ._4t3izwfg{height:2pc}
14
+ ._kqswh2mm{position:relative}
13
15
  ._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
@@ -16,6 +16,7 @@ var styles = {
16
16
  mainToolbarIconBeforeNew: "_4cvr1h6o _1e0c1txw",
17
17
  mainToolbarWrapper: "_1rjc12x7 _18zrutpp _n7zl7r9e",
18
18
  mainToolbarNew: "_1e0c1txw _4t3izwfg",
19
+ mainToolbarZIndex: "_1pby16oo _kqswh2mm",
19
20
  mainToolbarWithKeyline: "_16qs9g9j",
20
21
  customToolbarWrapperStyle: "_4cvr1h6o _1e0c1txw",
21
22
  firstChildWrapperOneLine: "_1e0c1txw _16jlkb7n",
@@ -28,7 +29,7 @@ var MainToolbarWrapper = function MainToolbarWrapper(_ref) {
28
29
  showKeyline = _ref.showKeyline;
29
30
  return /*#__PURE__*/React.createElement("div", {
30
31
  "data-testid": testId,
31
- className: ax([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarNew])
32
+ className: ax([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarNew, expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) && styles.mainToolbarZIndex])
32
33
  }, children);
33
34
  };
34
35
  var FirstChildWrapper = function FirstChildWrapper(_ref2) {
@@ -102,7 +103,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
102
103
  showKeyline: showKeyline || ContextPanelWidth > 0
103
104
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
104
105
  className: ax([styles.mainToolbarIconBefore, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
105
- }, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && /*#__PURE__*/React.createElement(ToolbarNext, {
106
+ }, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/React.createElement(ToolbarNext, {
106
107
  toolbar: toolbar,
107
108
  components: components,
108
109
  editorView: editorView,
@@ -114,7 +115,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
114
115
  }, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
115
116
  "data-testid": 'before-primary-toolbar-components-plugin',
116
117
  className: ax([styles.beforePrimaryToolbarComponents])
117
- }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents))) : toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && /*#__PURE__*/React.createElement(ToolbarNext, {
118
+ }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents))) : toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/React.createElement(ToolbarNext, {
118
119
  toolbar: toolbar,
119
120
  components: components,
120
121
  editorView: editorView,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "211.2.6";
2
+ export var version = "211.2.8";
@@ -1,5 +1,5 @@
1
- import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
2
1
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/error-reporter';
2
+ import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
3
3
  import { type SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import type { EditorPlugin } from '@atlaskit/editor-common/types';
5
5
  import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
@@ -379,6 +379,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
379
379
  };
380
380
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>];
381
381
  pluginConfiguration?: import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions;
382
+ sharedState: {
383
+ isFormatMenuHidden?: boolean;
384
+ } | undefined;
382
385
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
383
386
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
384
387
  commands: {
@@ -389,7 +392,17 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
389
392
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
390
393
  pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
391
394
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
392
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
395
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
396
+ actions: {
397
+ getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
398
+ registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
399
+ };
400
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
401
+ pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
402
+ sharedState: {
403
+ shouldShowToolbar: boolean;
404
+ };
405
+ }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined>>];
393
406
  pluginConfiguration: import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined;
394
407
  sharedState: {
395
408
  copyButtonHoverNode: import("prosemirror-model").Node;
@@ -0,0 +1,3 @@
1
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
+ import type { Schema } from '@atlaskit/editor-prosemirror/model';
3
+ export declare const createEditorNativeAnchorSupportPlugin: (schema: Schema) => SafePlugin<any>;
@@ -35,6 +35,7 @@ export type InitialPluginConfiguration = {
35
35
  };
36
36
  toolbarPlugin?: {
37
37
  disableSelectionToolbar?: boolean;
38
+ enableNewToolbarExperience?: boolean;
38
39
  };
39
40
  trackChangesPlugin?: {
40
41
  showOnToolbar?: boolean;
@@ -437,6 +438,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
437
438
  };
438
439
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>];
439
440
  pluginConfiguration?: import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions;
441
+ sharedState: {
442
+ isFormatMenuHidden?: boolean;
443
+ } | undefined;
440
444
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
441
445
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
442
446
  commands: {
@@ -447,7 +451,17 @@ export default function createUniversalPresetInternal({ appearance, props, featu
447
451
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
448
452
  pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
449
453
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
450
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
454
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
455
+ actions: {
456
+ getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
457
+ registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
458
+ };
459
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
460
+ pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
461
+ sharedState: {
462
+ shouldShowToolbar: boolean;
463
+ };
464
+ }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined>>];
451
465
  pluginConfiguration: import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined;
452
466
  sharedState: {
453
467
  copyButtonHoverNode: import("prosemirror-model").Node;
@@ -379,6 +379,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
379
379
  };
380
380
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>];
381
381
  pluginConfiguration?: import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions;
382
+ sharedState: {
383
+ isFormatMenuHidden?: boolean;
384
+ } | undefined;
382
385
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
383
386
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
384
387
  commands: {
@@ -389,7 +392,17 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
389
392
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
390
393
  pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
391
394
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
392
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
395
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
396
+ actions: {
397
+ getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
398
+ registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
399
+ };
400
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
401
+ pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
402
+ sharedState: {
403
+ shouldShowToolbar: boolean;
404
+ };
405
+ }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined>>];
393
406
  pluginConfiguration: import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined;
394
407
  sharedState: {
395
408
  copyButtonHoverNode: import("prosemirror-model").Node;
@@ -3,8 +3,9 @@ import { jsx } from '@emotion/react';
3
3
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
4
4
  type MainToolbarProps = {
5
5
  children?: React.ReactNode;
6
+ isNewToolbarEnabled?: boolean;
6
7
  twoLineEditorToolbar?: boolean;
7
8
  useStickyToolbar?: UseStickyToolbarType;
8
9
  };
9
- export declare const MainToolbar: ({ useStickyToolbar, twoLineEditorToolbar, children, }: MainToolbarProps) => jsx.JSX.Element;
10
+ export declare const MainToolbar: ({ useStickyToolbar, twoLineEditorToolbar, children, isNewToolbarEnabled, }: MainToolbarProps) => jsx.JSX.Element;
10
11
  export {};
@@ -1,5 +1,5 @@
1
- import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
2
1
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/error-reporter';
2
+ import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
3
3
  import { type SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import type { EditorPlugin } from '@atlaskit/editor-common/types';
5
5
  import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
@@ -538,6 +538,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
538
538
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>
539
539
  ];
540
540
  pluginConfiguration?: import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions;
541
+ sharedState: {
542
+ isFormatMenuHidden?: boolean;
543
+ } | undefined;
541
544
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>,
542
545
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
543
546
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
@@ -551,7 +554,24 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
551
554
  ];
552
555
  pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
553
556
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
554
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
557
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>,
558
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
559
+ actions: {
560
+ getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
561
+ registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
562
+ };
563
+ dependencies: [
564
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
565
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>,
566
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>,
567
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>,
568
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>
569
+ ];
570
+ pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
571
+ sharedState: {
572
+ shouldShowToolbar: boolean;
573
+ };
574
+ }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined>>
555
575
  ];
556
576
  pluginConfiguration: import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined;
557
577
  sharedState: {
@@ -0,0 +1,3 @@
1
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
+ import type { Schema } from '@atlaskit/editor-prosemirror/model';
3
+ export declare const createEditorNativeAnchorSupportPlugin: (schema: Schema) => SafePlugin<any>;
@@ -35,6 +35,7 @@ export type InitialPluginConfiguration = {
35
35
  };
36
36
  toolbarPlugin?: {
37
37
  disableSelectionToolbar?: boolean;
38
+ enableNewToolbarExperience?: boolean;
38
39
  };
39
40
  trackChangesPlugin?: {
40
41
  showOnToolbar?: boolean;
@@ -596,6 +597,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
596
597
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>
597
598
  ];
598
599
  pluginConfiguration?: import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions;
600
+ sharedState: {
601
+ isFormatMenuHidden?: boolean;
602
+ } | undefined;
599
603
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>,
600
604
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
601
605
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
@@ -609,7 +613,24 @@ export default function createUniversalPresetInternal({ appearance, props, featu
609
613
  ];
610
614
  pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
611
615
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
612
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
616
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>,
617
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
618
+ actions: {
619
+ getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
620
+ registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
621
+ };
622
+ dependencies: [
623
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
624
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>,
625
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>,
626
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>,
627
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>
628
+ ];
629
+ pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
630
+ sharedState: {
631
+ shouldShowToolbar: boolean;
632
+ };
633
+ }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined>>
613
634
  ];
614
635
  pluginConfiguration: import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined;
615
636
  sharedState: {
@@ -538,6 +538,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
538
538
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>
539
539
  ];
540
540
  pluginConfiguration?: import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions;
541
+ sharedState: {
542
+ isFormatMenuHidden?: boolean;
543
+ } | undefined;
541
544
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>,
542
545
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
543
546
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
@@ -551,7 +554,24 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
551
554
  ];
552
555
  pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
553
556
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
554
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
557
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>,
558
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
559
+ actions: {
560
+ getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
561
+ registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
562
+ };
563
+ dependencies: [
564
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
565
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>,
566
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>,
567
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>,
568
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>
569
+ ];
570
+ pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
571
+ sharedState: {
572
+ shouldShowToolbar: boolean;
573
+ };
574
+ }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined>>
555
575
  ];
556
576
  pluginConfiguration: import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined;
557
577
  sharedState: {
@@ -3,8 +3,9 @@ import { jsx } from '@emotion/react';
3
3
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
4
4
  type MainToolbarProps = {
5
5
  children?: React.ReactNode;
6
+ isNewToolbarEnabled?: boolean;
6
7
  twoLineEditorToolbar?: boolean;
7
8
  useStickyToolbar?: UseStickyToolbarType;
8
9
  };
9
- export declare const MainToolbar: ({ useStickyToolbar, twoLineEditorToolbar, children, }: MainToolbarProps) => jsx.JSX.Element;
10
+ export declare const MainToolbar: ({ useStickyToolbar, twoLineEditorToolbar, children, isNewToolbarEnabled, }: MainToolbarProps) => jsx.JSX.Element;
10
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "211.2.7",
3
+ "version": "211.2.9",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/editor-performance-metrics": "^2.1.0",
50
50
  "@atlaskit/editor-plugin-quick-insert": "^4.0.0",
51
51
  "@atlaskit/editor-plugin-user-preferences": "^2.0.0",
52
- "@atlaskit/editor-plugins": "^10.3.0",
52
+ "@atlaskit/editor-plugins": "^10.4.0",
53
53
  "@atlaskit/editor-prosemirror": "7.0.0",
54
54
  "@atlaskit/editor-shared-styles": "^3.6.0",
55
55
  "@atlaskit/editor-toolbar": "^0.8.0",
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
64
64
  "@atlaskit/react-ufo": "^4.5.0",
65
65
  "@atlaskit/task-decision": "^19.2.0",
66
- "@atlaskit/tmp-editor-statsig": "^12.6.0",
66
+ "@atlaskit/tmp-editor-statsig": "^12.8.0",
67
67
  "@atlaskit/tokens": "^6.3.0",
68
68
  "@atlaskit/tooltip": "^20.4.0",
69
69
  "@atlaskit/width-detector": "^5.0.0",
@@ -80,7 +80,7 @@
80
80
  "uuid": "^3.1.0"
81
81
  },
82
82
  "peerDependencies": {
83
- "@atlaskit/editor-common": "^108.5.0",
83
+ "@atlaskit/editor-common": "^108.6.0",
84
84
  "@atlaskit/link-provider": "^3.7.0",
85
85
  "@atlaskit/media-core": "^37.0.0",
86
86
  "react": "^18.2.0",
@@ -94,7 +94,7 @@
94
94
  "@atlaskit/analytics-listeners": "^9.0.0",
95
95
  "@atlaskit/collab-provider": "^12.0.0",
96
96
  "@atlaskit/editor-plugin-annotation": "^4.0.0",
97
- "@atlaskit/editor-plugin-card": "^8.0.0",
97
+ "@atlaskit/editor-plugin-card": "^8.1.0",
98
98
  "@atlaskit/editor-plugin-list": "^6.0.0",
99
99
  "@atlaskit/editor-plugin-paste": "^5.0.0",
100
100
  "@atlaskit/link-provider": "^3.7.0",
@@ -106,7 +106,7 @@
106
106
  "@atlaskit/primitives": "^14.14.0",
107
107
  "@atlaskit/renderer": "^121.3.0",
108
108
  "@atlaskit/section-message": "^8.7.0",
109
- "@atlaskit/smart-card": "^40.20.0",
109
+ "@atlaskit/smart-card": "^40.21.0",
110
110
  "@atlaskit/synchrony-test-helpers": "workspace:^",
111
111
  "@atlaskit/toggle": "^15.1.0",
112
112
  "@atlaskit/util-data-test": "^18.1.0",