@atlaskit/editor-core 216.7.12 → 216.7.14

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,19 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.7.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [`653c0c803b286`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/653c0c803b286) -
8
+ EDITOR-4620 Clean up platform_editor_toolbar_aifc_patch_6
9
+ - Updated dependencies
10
+
11
+ ## 216.7.13
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 216.7.12
4
18
 
5
19
  ### Patch Changes
@@ -20,7 +20,6 @@ var _ui = require("@atlaskit/editor-common/ui");
20
20
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
21
21
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
22
22
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
24
23
  var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
25
24
  var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
26
25
  var _EditorContentContainer = _interopRequireDefault(require("../../EditorContentContainer/EditorContentContainer"));
@@ -177,7 +176,6 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
177
176
  var customToolbarSlot = (0, _react2.jsx)("div", {
178
177
  css: [mainToolbarCustomComponentsSlotStyleNew, isTwoLineToolbarEnabled && mainToolbarCustomComponentsSlotStyleTwoLineToolbarNew, isToolbarAIFCEnabled && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_responsive_improve') && mainToolbarCustomComponentsSlotStylePaddingOverride]
179
178
  }, customPrimaryToolbarComponents);
180
- var patch6Enabled = (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
181
179
  return (0, _react2.jsx)(_WithFlash.default, {
182
180
  animate: maxContentSizeReached
183
181
  }, (0, _react2.jsx)(_ui.WidthProvider, null, (0, _react2.jsx)("div", {
@@ -207,7 +205,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
207
205
  editorAPI: editorAPI,
208
206
  editorView: editorView,
209
207
  editorAppearance: appearance,
210
- disabled: patch6Enabled ? !!disabled : undefined,
208
+ disabled: !!disabled,
211
209
  popupsBoundariesElement: popupsBoundariesElement,
212
210
  popupsScrollableElement: popupsScrollableElement,
213
211
  popupsMountPoint: popupsMountPoint
@@ -13,7 +13,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _react2 = require("@emotion/react");
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
17
  /**
19
18
  * @jsxRuntime classic
@@ -93,7 +92,6 @@ var StickyToolbar = function StickyToolbar(props) {
93
92
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
94
93
  top = _useState2[0],
95
94
  setTop = _useState2[1];
96
- var toolbarPatch6Enabled = (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
97
95
 
98
96
  // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
99
97
  // else if offsetTop is a number set top to offsetTop
@@ -109,7 +107,7 @@ var StickyToolbar = function StickyToolbar(props) {
109
107
  return (
110
108
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
111
109
  (0, _react2.jsx)("div", {
112
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && !toolbarPatch6Enabled && mainToolbarWithoutLeftPadding, props.isNewToolbarEnabled && toolbarPatch6Enabled && mainToolbarWithPadding]
110
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding]
113
111
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
114
112
  ,
115
113
  style: {
@@ -359,7 +359,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
359
359
  // merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
360
360
  (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
361
361
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
362
- _syncBlockStyles.syncBlockStyles,
362
+ _syncBlockStyles.syncBlockStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') &&
363
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
364
+ _syncBlockStyles.syncBlockOverflowStyles,
363
365
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
364
366
  (0, _experiments.editorExperiment)('advanced_layouts', true) && _layout.layoutBaseStylesAdvanced, (0, _experiments.editorExperiment)('advanced_layouts', true) ?
365
367
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.syncBlockStyles = void 0;
7
+ exports.syncBlockStyles = exports.syncBlockOverflowStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _syncBlock = require("@atlaskit/editor-common/sync-block");
@@ -127,4 +127,16 @@ var syncBlockStyles = exports.syncBlockStyles = (0, _react.css)((0, _definePrope
127
127
  right: "var(--ds-space-150, 12px)",
128
128
  backgroundColor: "var(--ds-surface, #FFFFFF)",
129
129
  maxWidth: '140px'
130
- }));
130
+ }));
131
+
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
133
+ var syncBlockOverflowStyles = exports.syncBlockOverflowStyles = (0, _react.css)({
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
135
+ '.ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_syncBlock.BodiedSyncBlockSharedCssClassName.content), {
136
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
137
+ overflow: 'hidden'
138
+ }), ".".concat(_syncBlock.SyncBlockSharedCssClassName.renderer), {
139
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
140
+ overflow: 'hidden'
141
+ })
142
+ });
@@ -12,7 +12,6 @@ var _types = require("@atlaskit/editor-common/types");
12
12
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
13
13
  var _editorToolbar = require("@atlaskit/editor-toolbar");
14
14
  var _editorToolbarModel = require("@atlaskit/editor-toolbar-model");
15
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  var _ToolbarInner = require("./ToolbarInner");
17
16
  /**
18
17
  * *Warning:* With `platform_editor_toolbar_aifc` enabled this component is no longer used and is replaced with `<ToolbarNext />`.
@@ -70,7 +69,6 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
70
69
  editorToolbarDockingPreference = _usePluginState.editorToolbarDockingPreference;
71
70
  // remove offline check when patch6Enabled is cleaned up
72
71
  var isOffline = (0, _editorPluginConnectivity.isOfflineMode)(connectivityStateMode);
73
- var patch6Enabled = (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
74
72
  return /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
75
73
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
76
74
  editorAppearance: editorAppearance,
@@ -79,7 +77,7 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
79
77
  isOffline: isOffline
80
78
  }, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
81
79
  api: editorAPI,
82
- isDisabled: patch6Enabled ? isDisabled : isOffline || isDisabled,
80
+ isDisabled: isDisabled,
83
81
  popupsMountPoint: popupsMountPoint,
84
82
  popupsBoundariesElement: popupsBoundariesElement,
85
83
  popupsScrollableElement: popupsScrollableElement,
@@ -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 = "216.7.11";
8
+ var version = exports.version = "216.7.13";
@@ -16,7 +16,6 @@ import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
16
16
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
17
17
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
18
18
  import { fg } from '@atlaskit/platform-feature-flags';
19
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
19
  // Ignored via go/ees005
21
20
  // eslint-disable-next-line import/no-named-as-default
22
21
  import ClickAreaBlock from '../../Addon/ClickAreaBlock';
@@ -165,7 +164,6 @@ export const CommentEditorWithIntl = props => {
165
164
  const customToolbarSlot = jsx("div", {
166
165
  css: [mainToolbarCustomComponentsSlotStyleNew, isTwoLineToolbarEnabled && mainToolbarCustomComponentsSlotStyleTwoLineToolbarNew, isToolbarAIFCEnabled && fg('platform_editor_toolbar_aifc_responsive_improve') && mainToolbarCustomComponentsSlotStylePaddingOverride]
167
166
  }, customPrimaryToolbarComponents);
168
- const patch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
169
167
  return jsx(WithFlash, {
170
168
  animate: maxContentSizeReached
171
169
  }, jsx(WidthProvider, null, jsx("div", {
@@ -195,7 +193,7 @@ export const CommentEditorWithIntl = props => {
195
193
  editorAPI: editorAPI,
196
194
  editorView: editorView,
197
195
  editorAppearance: appearance,
198
- disabled: patch6Enabled ? !!disabled : undefined,
196
+ disabled: !!disabled,
199
197
  popupsBoundariesElement: popupsBoundariesElement,
200
198
  popupsScrollableElement: popupsScrollableElement,
201
199
  popupsMountPoint: popupsMountPoint
@@ -9,7 +9,6 @@ import React, { useEffect, useState } from 'react';
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { fg } from '@atlaskit/platform-feature-flags';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
14
13
  const akEditorMenuZIndex = 500;
15
14
  const akEditorToolbarKeylineHeight = 2;
@@ -87,7 +86,6 @@ const stickyToolbarWrapperStyleNew = css({
87
86
  });
88
87
  const StickyToolbar = props => {
89
88
  const [top, setTop] = useState(0);
90
- const toolbarPatch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
91
89
 
92
90
  // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
93
91
  // else if offsetTop is a number set top to offsetTop
@@ -103,7 +101,7 @@ const StickyToolbar = props => {
103
101
  return (
104
102
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
105
103
  jsx("div", {
106
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && !toolbarPatch6Enabled && mainToolbarWithoutLeftPadding, props.isNewToolbarEnabled && toolbarPatch6Enabled && mainToolbarWithPadding]
104
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding]
107
105
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
108
106
  ,
109
107
  style: {
@@ -58,7 +58,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
58
58
  import { shadowStyles } from './styles/shadowStyles';
59
59
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
60
60
  import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
61
- import { syncBlockStyles } from './styles/syncBlockStyles';
61
+ import { syncBlockStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
62
62
  import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
63
63
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
64
64
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
@@ -355,7 +355,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
355
355
  // merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
356
356
  fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, editorExperiment('platform_synced_block', true) &&
357
357
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
358
- syncBlockStyles,
358
+ syncBlockStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') &&
359
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
360
+ syncBlockOverflowStyles,
359
361
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
360
362
  editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
361
363
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -166,4 +166,21 @@ export const syncBlockStyles = css({
166
166
  backgroundColor: "var(--ds-surface, #FFFFFF)",
167
167
  maxWidth: '140px'
168
168
  }
169
+ });
170
+
171
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
172
+ export const syncBlockOverflowStyles = css({
173
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
174
+ '.ProseMirror': {
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
176
+ [`.${BodiedSyncBlockSharedCssClassName.content}`]: {
177
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
178
+ overflow: 'hidden'
179
+ },
180
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
181
+ [`.${SyncBlockSharedCssClassName.renderer}`]: {
182
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
183
+ overflow: 'hidden'
184
+ }
185
+ }
169
186
  });
@@ -5,7 +5,6 @@ import { ToolbarSize } from '@atlaskit/editor-common/types';
5
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
6
6
  import { ToolbarButtonGroup, ToolbarDropdownItemSection, ToolbarSection } from '@atlaskit/editor-toolbar';
7
7
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { ToolbarInner } from './ToolbarInner';
10
9
 
11
10
  /**
@@ -66,7 +65,6 @@ export const ToolbarNext = ({
66
65
  } = usePluginState(editorAPI);
67
66
  // remove offline check when patch6Enabled is cleaned up
68
67
  const isOffline = isOfflineMode(connectivityStateMode);
69
- const patch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
70
68
  return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
71
69
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
72
70
  editorAppearance: editorAppearance,
@@ -75,7 +73,7 @@ export const ToolbarNext = ({
75
73
  isOffline: isOffline
76
74
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
77
75
  api: editorAPI,
78
- isDisabled: patch6Enabled ? isDisabled : isOffline || isDisabled,
76
+ isDisabled: isDisabled,
79
77
  popupsMountPoint: popupsMountPoint,
80
78
  popupsBoundariesElement: popupsBoundariesElement,
81
79
  popupsScrollableElement: popupsScrollableElement,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.7.11";
2
+ export const version = "216.7.13";
@@ -18,7 +18,6 @@ import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
18
18
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
19
19
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
20
20
  import { fg } from '@atlaskit/platform-feature-flags';
21
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
21
  // Ignored via go/ees005
23
22
  // eslint-disable-next-line import/no-named-as-default
24
23
  import ClickAreaBlock from '../../Addon/ClickAreaBlock';
@@ -166,7 +165,6 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
166
165
  var customToolbarSlot = jsx("div", {
167
166
  css: [mainToolbarCustomComponentsSlotStyleNew, isTwoLineToolbarEnabled && mainToolbarCustomComponentsSlotStyleTwoLineToolbarNew, isToolbarAIFCEnabled && fg('platform_editor_toolbar_aifc_responsive_improve') && mainToolbarCustomComponentsSlotStylePaddingOverride]
168
167
  }, customPrimaryToolbarComponents);
169
- var patch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
170
168
  return jsx(WithFlash, {
171
169
  animate: maxContentSizeReached
172
170
  }, jsx(WidthProvider, null, jsx("div", {
@@ -196,7 +194,7 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
196
194
  editorAPI: editorAPI,
197
195
  editorView: editorView,
198
196
  editorAppearance: appearance,
199
- disabled: patch6Enabled ? !!disabled : undefined,
197
+ disabled: !!disabled,
200
198
  popupsBoundariesElement: popupsBoundariesElement,
201
199
  popupsScrollableElement: popupsScrollableElement,
202
200
  popupsMountPoint: popupsMountPoint
@@ -12,7 +12,6 @@ import React, { useEffect, useState } from 'react';
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
13
  import { css, jsx } from '@emotion/react';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
15
  var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
17
16
  var akEditorMenuZIndex = 500;
18
17
  var akEditorToolbarKeylineHeight = 2;
@@ -84,7 +83,6 @@ var StickyToolbar = function StickyToolbar(props) {
84
83
  _useState2 = _slicedToArray(_useState, 2),
85
84
  top = _useState2[0],
86
85
  setTop = _useState2[1];
87
- var toolbarPatch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
88
86
 
89
87
  // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
90
88
  // else if offsetTop is a number set top to offsetTop
@@ -100,7 +98,7 @@ var StickyToolbar = function StickyToolbar(props) {
100
98
  return (
101
99
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
102
100
  jsx("div", {
103
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && !toolbarPatch6Enabled && mainToolbarWithoutLeftPadding, props.isNewToolbarEnabled && toolbarPatch6Enabled && mainToolbarWithPadding]
101
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding]
104
102
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
105
103
  ,
106
104
  style: {
@@ -59,7 +59,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
59
59
  import { shadowStyles } from './styles/shadowStyles';
60
60
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
61
61
  import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
62
- import { syncBlockStyles } from './styles/syncBlockStyles';
62
+ import { syncBlockStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
63
63
  import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
64
64
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
65
65
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
@@ -351,7 +351,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
351
351
  // merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
352
352
  fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, editorExperiment('platform_synced_block', true) &&
353
353
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
354
- syncBlockStyles,
354
+ syncBlockStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') &&
355
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
356
+ syncBlockOverflowStyles,
355
357
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
356
358
  editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
357
359
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -119,4 +119,16 @@ export var syncBlockStyles = css(_defineProperty({
119
119
  right: "var(--ds-space-150, 12px)",
120
120
  backgroundColor: "var(--ds-surface, #FFFFFF)",
121
121
  maxWidth: '140px'
122
- }));
122
+ }));
123
+
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
125
+ export var syncBlockOverflowStyles = css({
126
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
127
+ '.ProseMirror': _defineProperty(_defineProperty({}, ".".concat(BodiedSyncBlockSharedCssClassName.content), {
128
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
129
+ overflow: 'hidden'
130
+ }), ".".concat(SyncBlockSharedCssClassName.renderer), {
131
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
132
+ overflow: 'hidden'
133
+ })
134
+ });
@@ -5,7 +5,6 @@ import { ToolbarSize } from '@atlaskit/editor-common/types';
5
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
6
6
  import { ToolbarButtonGroup, ToolbarDropdownItemSection, ToolbarSection } from '@atlaskit/editor-toolbar';
7
7
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { ToolbarInner } from './ToolbarInner';
10
9
 
11
10
  /**
@@ -64,7 +63,6 @@ export var ToolbarNext = function ToolbarNext(_ref) {
64
63
  editorToolbarDockingPreference = _usePluginState.editorToolbarDockingPreference;
65
64
  // remove offline check when patch6Enabled is cleaned up
66
65
  var isOffline = isOfflineMode(connectivityStateMode);
67
- var patch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
68
66
  return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
69
67
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
70
68
  editorAppearance: editorAppearance,
@@ -73,7 +71,7 @@ export var ToolbarNext = function ToolbarNext(_ref) {
73
71
  isOffline: isOffline
74
72
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
75
73
  api: editorAPI,
76
- isDisabled: patch6Enabled ? isDisabled : isOffline || isDisabled,
74
+ isDisabled: isDisabled,
77
75
  popupsMountPoint: popupsMountPoint,
78
76
  popupsBoundariesElement: popupsBoundariesElement,
79
77
  popupsScrollableElement: popupsScrollableElement,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.7.11";
2
+ export var version = "216.7.13";
@@ -1,2 +1,3 @@
1
1
  import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
+ export declare const syncBlockOverflowStyles: SerializedStyles;
@@ -1,2 +1,3 @@
1
1
  import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
+ export declare const syncBlockOverflowStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.7.12",
3
+ "version": "216.7.14",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.0.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.36.0",
69
+ "@atlaskit/tmp-editor-statsig": "^17.1.0",
70
70
  "@atlaskit/tokens": "^10.1.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",