@atlaskit/editor-core 219.4.1 → 219.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,9 @@ var _react = _interopRequireDefault(require("react"));
14
14
  var _browser = require("@atlaskit/editor-common/browser");
15
15
  var _panel = require("@atlaskit/editor-common/panel");
16
16
  var _styles = require("@atlaskit/editor-common/styles");
17
+ var _tableCellBackgroundForCompiled = require("@atlaskit/editor-common/table-cell-background-for-compiled");
17
18
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
19
+ var _overflowShadowForCompiled = require("@atlaskit/editor-shared-styles/overflow-shadow-for-compiled");
18
20
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
21
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
22
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
@@ -258,12 +260,14 @@ var editorContentStyles = {
258
260
  syncBlockOverflowStyles: "",
259
261
  syncBlockStyles: "",
260
262
  syncBlockStylesBase: "",
261
- tableCommentEditorStyles: "",
262
- tableContainerStyles: "",
263
- tableContentModeStyles: "",
264
- tableEmptyRowStyles: "",
265
- tableLayoutFixes: "",
266
- tableLayoutFixesWithFontSize: "",
263
+ tableCommentEditorStyles: "_s9qz1mok _1quk1aqn _1tb2idpf _8vyeidpf _1igzolhs _ux48glyw _giavsm61 _axu71ibz",
264
+ tableContainerStyles: "_18ml1osq _9e5g1wug _uwd31osq _12wgusvi _nnhzewfl _1gbz1osq _10va1osq _lkzl1n9t _1mca1wug",
265
+ tableContentModeStyles: "_1lxan7od _11a2n7od _19iin7od _1vpzn7od _l6b9n7od _9v33vi1l _poet1ris _9loxvi1l _1dsv1wug _r83tvi1l _cbmx261p",
266
+ tableEmptyRowStyles: "_1rgmmh6f _u0mgmh6f",
267
+ tableLayoutFixes: "_1f5xidpf _28dsidpf _f30jidpf _jr291hrf",
268
+ tableLayoutFixesWithFontSize: "_1f5xidpf _156tidpf _f30jidpf _jr291hrf",
269
+ tableSharedStyle: "_ad1u99ee _9d0e7qp0 _1mml7qp0 _1u4a1ule _1w721ule _1gr6t94y _ihzat94y _zi6e1vmz _1uln1vmz _wqm3stnw _1o0wstnw _1aho1ejb _uqg71ejb _g971h2mm _fzt6usvi _1nd8idpf _1j1lidpf _e364idpf _7vb2pzf8 _5cdi6z83 _kc8l11ss _9vqg11ss _up97ia51 _jz731rb6 _13ax1rb6 _b7zl1rb6 _10kw1rb6 _1u451rb6 _1gep1rb6 _14oi1rb6 _3yki1rb6 _185t1rb6 _13heu2gc _1uj1u2gc _1ssuu2gc _lqdju2gc _1waku2gc _1nzzu2gc _7xl8ckbl _1jykckbl _1m6qckbl _sellckbl _11t9ckbl _866vckbl _1dlzi7a9 _irzhi7a9 _15t1i7a9 _1ivxi7a9 _16k4i7a9 _1vo6i7a9 _q0zvjp4b _1junjp4b _ixm7jp4b _17dpjp4b _dzhmjp4b _15pyjp4b _dj9oidpf _8zz2idpf _1hwbidpf _1lxyidpf _yqeuidpf _mzo1idpf _9ex2idpf _1805idpf _1iphidpf _qkm8idpf _17v9idpf _4p8kidpf _6o4midpf _1edridpf _5908idpf _1d63idpf _1j36idpf _hlqnidpf _gw0eutpp _1n42utpp _762vutpp _g62yutpp _1y9hutpp _bjiqutpp _5dtjutpp _dclrutpp _1j94utpp _5o16utpp _946yutpp _1kffutpp _13bnglyw _1ekgglyw _nvt3glyw _v91rcfaq _byukcfaq _4oczcfaq _17xf1j28 _6ggl1j28 _wxs41j28 _1h3k1j28 _1e811j28 _w9wp1j28 _3aim1n9t _xsax1n9t _1hz91n9t _vqlp1x4e _1a0i1x4e _m5f81x4e _12j81osq _135a1osq _vkob1osq _dujf1wug _jr3h1wug _1ei91wug _kq5rusvi _31x2usvi _pavrusvi _14jm1ntv _1rfm1ntv _100i1ntv _1ciasm61 _5gm1sm61 _t176sm61 _1az4vuon _1mdwvuon _9l08vuon _vrwbysee _nwuhysee _1qxuysee _go9a1e5h _ktc91e5h _lr001e5h _komfhp5a _1lj5hp5a _96m3hp5a _s2681tsb _15bz1tsb _1skp1tsb _iley2lzm _ay9u2lzm _8zqr2lzm _qxl3i8nm _3gtki8nm _1nu9i8nm _lezgi8nm _1574i8nm _1yd8i8nm _ywut18tx _cee918tx _17h918tx _1esgtoke _1q0atoke _4waqtoke _1syri8nm _pvtri8nm _12jli8nm _dbl6pzf8 _4e711hrf _1hy1bokp _1bxo1ea5",
270
+ tableSharedStyleBackgroundClipFix: "_m6yo1u8q _19il1u8q _10gj1u8q _tbd61u8q _12ly1u8q _1l071u8q",
267
271
  taskItemCheckboxStyles: "",
268
272
  taskItemStyles: "",
269
273
  taskItemStylesWithBlockTaskItem: "",
@@ -301,6 +305,9 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
301
305
  var isChromeless = appearance === 'chromeless';
302
306
  var baseFontSize = (0, _getBaseFontSize.getBaseFontSize)(appearance, contentMode);
303
307
  var isDense = !!baseFontSize && baseFontSize !== _editorSharedStyles.akEditorFullPageDefaultFontSize;
308
+ var tableOverflowShadow = (0, _overflowShadowForCompiled.overflowShadowForCompiled)({
309
+ leftCoverWidth: "var(--ds-space-300, 24px)"
310
+ });
304
311
  var style = (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
305
312
  exposure: true
306
313
  }) ? {
@@ -308,14 +315,16 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
308
315
  theme: {
309
316
  baseFontSize: baseFontSize
310
317
  }
311
- }), "px")
318
+ }), "px"),
319
+ '--ak-editor--table-overflow-shadow': tableOverflowShadow
312
320
  } : {
313
321
  '--ak-editor-base-font-size': "".concat((0, _editorSharedStyles.editorFontSize)({
314
322
  theme: {
315
323
  baseFontSize: baseFontSize
316
324
  }
317
325
  }), "px"),
318
- '--ak-editor--large-gutter-padding': "".concat((0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), "px")
326
+ '--ak-editor--large-gutter-padding': "".concat((0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), "px"),
327
+ '--ak-editor--table-overflow-shadow': tableOverflowShadow
319
328
  };
320
329
  var browser = (0, _browser.getBrowserInfo)();
321
330
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -383,11 +392,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
383
392
  // : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
384
393
  // getDenseEmojiStyles(baseFontSize)
385
394
  // : undefined,
386
- editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, editorContentStyles.tableContainerStyles,
387
- // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
388
- // TODO: it was from "import { tableSharedStyle } from '@atlaskit/editor-common/styles';"
389
- // tableSharedStyle(),
390
- editorContentStyles.tableEmptyRowStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, className]),
395
+ editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, editorContentStyles.tableEmptyRowStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, className]),
391
396
  ref: ref,
392
397
  "data-editor-scroll-container": isScrollable ? 'true' : undefined,
393
398
  "data-testid": "editor-content-container"
@@ -396,5 +401,5 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
396
401
  style: style,
397
402
  tabIndex: isScrollable ? 0 : undefined,
398
403
  role: isScrollable ? 'region' : undefined
399
- }, children);
404
+ }, /*#__PURE__*/_react.default.createElement("style", null, _tableCellBackgroundForCompiled.tableCellBackgroundStyleOverrideForCompiled), children);
400
405
  });
@@ -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 = "219.4.0";
8
+ var version = exports.version = "219.5.0";
@@ -62,14 +62,20 @@ export const FullPageEditor = props => {
62
62
  const scrollContentContainerRef = useRef(null);
63
63
  const showKeyline = useShowKeyline(scrollContentContainerRef);
64
64
  const editorAPI = props.editorAPI;
65
- const state = useSharedPluginStateWithSelector(editorAPI, ['primaryToolbar', 'interaction', 'editorViewMode'], states => {
66
- var _states$primaryToolba, _states$interactionSt, _states$editorViewMod;
65
+ const state = useSharedPluginStateWithSelector(editorAPI, ['primaryToolbar', 'interaction', 'editorViewMode', 'toolbar'], states => {
66
+ var _states$primaryToolba, _states$interactionSt, _states$editorViewMod, _states$toolbarState;
67
67
  return {
68
68
  primaryToolbarComponents: (_states$primaryToolba = states.primaryToolbarState) === null || _states$primaryToolba === void 0 ? void 0 : _states$primaryToolba.components,
69
69
  interactionState: (_states$interactionSt = states.interactionState) === null || _states$interactionSt === void 0 ? void 0 : _states$interactionSt.interactionState,
70
- editorViewMode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode
70
+ editorViewMode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode,
71
+ contextualFormattingModeOverride: (_states$toolbarState = states.toolbarState) === null || _states$toolbarState === void 0 ? void 0 : _states$toolbarState.contextualFormattingModeOverride
71
72
  };
72
73
  });
74
+ // Markdown Mode forces `'always-pinned'` while in source / preview view
75
+ // (no PM selection to anchor a floating toolbar to). The user's docking
76
+ // pref alone is not enough to decide whether to mount the primary toolbar
77
+ // in that case — the override has to short-circuit the hide gate below.
78
+ const forcePrimaryToolbarPinned = state.contextualFormattingModeOverride === 'always-pinned' && fg('platform_editor_toolbar_mode_override');
73
79
  const interactionState = state.interactionState;
74
80
  const primaryToolbarState = getPrimaryToolbarComponents(editorAPI, state.primaryToolbarComponents);
75
81
  const hasHadInteraction = interactionState !== 'hasNotHadInteraction';
@@ -115,14 +121,14 @@ export const FullPageEditor = props => {
115
121
  })) {
116
122
  if (fg('platform_editor_use_preferences_plugin')) {
117
123
  // need to check if the toolbarDockingPosition is set to 'none' or 'top'
118
- if (toolbarDockingPosition === 'none') {
124
+ if (toolbarDockingPosition === 'none' && !forcePrimaryToolbarPinned) {
119
125
  primaryToolbarComponents = [];
120
126
  if (!hasCustomComponents(customPrimaryToolbarComponents)) {
121
127
  isEditorToolbarHidden = true;
122
128
  }
123
129
  }
124
130
  } else {
125
- if (toolbarDocking === 'none') {
131
+ if (toolbarDocking === 'none' && !forcePrimaryToolbarPinned) {
126
132
  primaryToolbarComponents = [];
127
133
  if (!hasCustomComponents(customPrimaryToolbarComponents)) {
128
134
  isEditorToolbarHidden = true;
@@ -5,8 +5,10 @@ import React, { useCallback } from 'react';
5
5
  import { useIntl } from 'react-intl';
6
6
  import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
7
7
  import { isSSR } from '@atlaskit/editor-common/core-utils';
8
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
9
  import { shouldShowPrimaryToolbar, TOOLBARS } from '@atlaskit/editor-common/toolbar';
9
10
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
10
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
13
  import { isToolbar } from '../../../utils/toolbar';
12
14
  import ExcludeFromHydration from '../../ExcludeFromHydration';
@@ -53,17 +55,6 @@ const SecondChildWrapper = ({
53
55
  className: ax([styles.secondChildWrapperOneLine])
54
56
  }, children);
55
57
  };
56
-
57
- /**
58
- * Placeholder component that reserves the toolbar's space during hydration
59
- * to prevent layout shift when the actual toolbar renders.
60
- */
61
- const ToolbarPlaceholder = () => {
62
- return /*#__PURE__*/React.createElement("div", {
63
- "data-testid": "ak-editor-main-toolbar-placeholder",
64
- className: ax([styles.toolbarPlaceholder])
65
- });
66
- };
67
58
  const shouldShowToolbarContainer = (toolbar, customPrimaryToolbarComponents) => {
68
59
  return !!toolbar || !!customPrimaryToolbarComponents;
69
60
  };
@@ -79,7 +70,12 @@ export const FullPageToolbarNext = ({
79
70
  }) => {
80
71
  var _editorAPI$toolbar, _editorAPI$toolbar2, _useToolbarPortal;
81
72
  const components = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
82
- const contextualFormattingEnabled = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
73
+ const runtimeOverride = useSharedPluginStateWithSelector(editorAPI, ['toolbar'], states => {
74
+ var _states$toolbarState;
75
+ return (_states$toolbarState = states.toolbarState) === null || _states$toolbarState === void 0 ? void 0 : _states$toolbarState.contextualFormattingModeOverride;
76
+ });
77
+ const effectiveRuntimeOverride = runtimeOverride !== undefined && fg('platform_editor_toolbar_mode_override') ? runtimeOverride : undefined;
78
+ const contextualFormattingEnabled = effectiveRuntimeOverride !== null && effectiveRuntimeOverride !== void 0 ? effectiveRuntimeOverride : editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
83
79
  const intl = useIntl();
84
80
  const toolbar = components === null || components === void 0 ? void 0 : components.find(component => component.key === TOOLBARS.PRIMARY_TOOLBAR);
85
81
  const primaryToolbarDockingConfigEnabled = shouldShowPrimaryToolbar(contextualFormattingEnabled, toolbarDockingPosition);
@@ -112,40 +108,9 @@ export const FullPageToolbarNext = ({
112
108
  if (!shouldShowToolbarContainer(toolbar, customPrimaryToolbarComponents)) {
113
109
  return /*#__PURE__*/React.createElement(ToolbarPortal, null, null);
114
110
  }
115
- if (expValEquals('platform_editor_toolbar_two_stage_hydration', 'isEnabled', true)) {
116
- return /*#__PURE__*/React.createElement(ContextPanelConsumer, null, ({
117
- width: ContextPanelWidth
118
- }) => /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
119
- editorView: editorView,
120
- childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
121
- isShortcutToFocusToolbar: isShortcutToFocusToolbar,
122
- handleEscape: handleEscape,
123
- intl: intl
124
- }, /*#__PURE__*/React.createElement(ToolbarPortal, null, /*#__PURE__*/React.createElement(MainToolbarWrapper, {
125
- testId: "ak-editor-main-toolbar",
126
- showKeyline: showKeyline || ContextPanelWidth > 0
127
- }, beforeIcon && /*#__PURE__*/React.createElement("div", {
128
- className: ax([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
129
- }, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
130
- toolbar: toolbar,
131
- components: components,
132
- editorView: editorView,
133
- editorAPI: editorAPI,
134
- popupsMountPoint: mountPoint,
135
- editorAppearance: "full-page",
136
- isDisabled: disabled
137
- }))), /*#__PURE__*/React.createElement(SecondChildWrapper, null, /*#__PURE__*/React.createElement("div", {
138
- className: ax([styles.customToolbarWrapperStyle])
139
- }, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
140
- "data-testid": 'before-primary-toolbar-components-plugin',
141
- className: ax([styles.beforePrimaryToolbarComponents])
142
- }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null))))));
143
- }
144
111
  return /*#__PURE__*/React.createElement(ContextPanelConsumer, null, ({
145
112
  width: ContextPanelWidth
146
- }) => /*#__PURE__*/React.createElement(ExcludeFromHydration, {
147
- fallback: /*#__PURE__*/React.createElement(ToolbarPlaceholder, null)
148
- }, /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
113
+ }) => /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
149
114
  editorView: editorView,
150
115
  childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
151
116
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
@@ -156,7 +121,7 @@ export const FullPageToolbarNext = ({
156
121
  showKeyline: showKeyline || ContextPanelWidth > 0
157
122
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
158
123
  className: ax([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
159
- }, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
124
+ }, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
160
125
  toolbar: toolbar,
161
126
  components: components,
162
127
  editorView: editorView,
@@ -164,10 +129,10 @@ export const FullPageToolbarNext = ({
164
129
  popupsMountPoint: mountPoint,
165
130
  editorAppearance: "full-page",
166
131
  isDisabled: disabled
167
- })), /*#__PURE__*/React.createElement(SecondChildWrapper, null, /*#__PURE__*/React.createElement("div", {
132
+ }))), /*#__PURE__*/React.createElement(SecondChildWrapper, null, /*#__PURE__*/React.createElement("div", {
168
133
  className: ax([styles.customToolbarWrapperStyle])
169
134
  }, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
170
135
  "data-testid": 'before-primary-toolbar-components-plugin',
171
136
  className: ax([styles.beforePrimaryToolbarComponents])
172
- }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)))))));
137
+ }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null))))));
173
138
  };