@atlaskit/editor-core 204.4.5 → 204.4.7

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,22 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#125634](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/125634)
8
+ [`4e091d2d7760a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4e091d2d7760a) -
9
+ [ux] ED-26999 fix primary toolbar spacing under editor controls feature
10
+
11
+ ## 204.4.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [#125487](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/125487)
16
+ [`e435eea47c743`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e435eea47c743) -
17
+ [ux] EDM-11991: Fix smart links avatar group padding inside editor and renderer
18
+ - Updated dependencies
19
+
3
20
  ## 204.4.5
4
21
 
5
22
  ### Patch Changes
@@ -109,13 +109,8 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
109
109
  }
110
110
  var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
111
111
  return (0, _react2.jsx)(_ui.ContextPanelWidthProvider, null, (0, _react2.jsx)("div", {
112
- css: [
113
112
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
114
- _StyledComponents.fullPageEditorWrapper, isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
115
- exposure: true
116
- }) &&
117
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
118
- _StyledComponents.primaryToolbarReservedSpace]
113
+ css: _StyledComponents.fullPageEditorWrapper
119
114
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
120
115
  ,
121
116
  className: "akEditor",
@@ -82,15 +82,13 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
82
82
  editorView: props.editorView,
83
83
  editorDisabled: props.disabled
84
84
  }, (0, _react2.jsx)("div", {
85
- css: [].concat((0, _toConsumableArray2.default)((0, _StyledComponents.editorContentAreaStyle)({
85
+ css: (0, _toConsumableArray2.default)((0, _StyledComponents.editorContentAreaStyle)({
86
86
  fullWidthMode: fullWidthMode,
87
- layoutMaxWidth: theme.layoutMaxWidth
88
- })), [(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
89
- exposure: true
90
- }) &&
91
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
92
- _StyledComponents.contentAreaReducedHeaderSpace]),
87
+ layoutMaxWidth: theme.layoutMaxWidth,
88
+ isEditorToolbarHidden: props.isEditorToolbarHidden
89
+ })),
93
90
  "data-editor-editable-content": true,
91
+ "data-editor-primary-toolbar-hidden": props.isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? 'true' : undefined,
94
92
  role: "region",
95
93
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.editableContentLabel),
96
94
  ref: contentAreaRef
@@ -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.sidebarArea = exports.primaryToolbarReservedSpace = exports.fullPageEditorWrapper = exports.editorContentGutterStyle = exports.editorContentAreaStyle = exports.editorContentAreaHideContainer = exports.contentAreaWrapper = exports.contentAreaReducedHeaderSpace = exports.contentAreaHeightNoToolbar = exports.contentArea = exports.ScrollContainer = void 0;
7
+ exports.sidebarArea = exports.fullPageEditorWrapper = exports.editorContentGutterStyle = exports.editorContentAreaStyle = exports.editorContentAreaHideContainer = exports.contentAreaWrapper = exports.contentAreaHeightNoToolbar = exports.contentArea = exports.ScrollContainer = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _adfSchema = require("@atlaskit/adf-schema");
@@ -13,6 +13,7 @@ var _consts = require("@atlaskit/editor-plugins/table/ui/consts");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
14
  var _scrollbar = require("@atlaskit/editor-shared-styles/scrollbar");
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
16
17
  var _ContentStyles = require("../../ContentStyles");
17
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
19
 
@@ -148,8 +149,15 @@ var editorContentAreaContainerStyle = function editorContentAreaContainerStyle()
148
149
  };
149
150
  var editorContentAreaStyle = exports.editorContentAreaStyle = function editorContentAreaStyle(_ref) {
150
151
  var layoutMaxWidth = _ref.layoutMaxWidth,
151
- fullWidthMode = _ref.fullWidthMode;
152
- return [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle()];
152
+ fullWidthMode = _ref.fullWidthMode,
153
+ isEditorToolbarHidden = _ref.isEditorToolbarHidden;
154
+ return [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle(), (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
155
+ exposure: true
156
+ }) &&
157
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
158
+ contentAreaReducedHeaderSpace, isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') &&
159
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
160
+ contentAreaReservedPrimaryToolbarSpace];
153
161
  };
154
162
  var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(layoutMaxWidth) {
155
163
  return (0, _react.css)({
@@ -222,17 +230,17 @@ var editorContentGutterStyle = exports.editorContentGutterStyle = function edito
222
230
  });
223
231
  };
224
232
 
225
- // An additional padding applied at the top of the page reserving space when the primary toolbar is hidden
226
- // which is used to avoid layout shift when the toolbar is toggled under the editor controls feature
233
+ // An additional spacing applied at the top of the content area reserving space when the primary toolbar
234
+ // is hidden this avoids layout shift when the toolbar is toggled under the editor controls feature
227
235
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
228
- var primaryToolbarReservedSpace = exports.primaryToolbarReservedSpace = (0, _react.css)({
236
+ var contentAreaReservedPrimaryToolbarSpace = (0, _react.css)({
229
237
  // extra 1px to account for the bottom border on the toolbar
230
- paddingTop: "calc(".concat("var(--ds-space-500, 40px)", " + 1px)")
238
+ marginTop: "calc(".concat("var(--ds-space-500, 40px)", " + 1px)")
231
239
  });
232
240
 
233
- // A reduced top padding to be applied to the content area to compensate for the reserved space at the top
241
+ // A reduced top spacing applied to the content area to compensate for the reserved space at the top
234
242
  // of the page when the primary toolbar is hidden under the editor controls feature
235
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
236
- var contentAreaReducedHeaderSpace = exports.contentAreaReducedHeaderSpace = (0, _react.css)({
244
+ var contentAreaReducedHeaderSpace = (0, _react.css)({
237
245
  paddingTop: "var(--ds-space-400, 32px)"
238
246
  });
@@ -94,7 +94,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
94
94
  var contentStyles = function contentStyles(props) {
95
95
  return (0, _react2.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: 52px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t// nested table resizer layout shift fix\n\t", "\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
96
96
  theme: props.theme
97
- }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), _styles.smartCardSharedStyles, _date.dateStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), fixBlockControlStylesSSR(), (0, _platformFeatureFlags.fg)('platform_editor_table_layout_shift_fix') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.pm-table-resizer-container,\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.resizer-item {\n\t\t\t\t\twidth: 100% !important;\n\t\t\t\t}\n\t\t\t"]))) : null, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
97
+ }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, _date.dateStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), fixBlockControlStylesSSR(), (0, _platformFeatureFlags.fg)('platform_editor_table_layout_shift_fix') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.pm-table-resizer-container,\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.resizer-item {\n\t\t\t\t\twidth: 100% !important;\n\t\t\t\t}\n\t\t\t"]))) : null, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
98
98
  };
99
99
  var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
100
100
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "204.4.5";
8
+ var version = exports.version = "204.4.7";
@@ -13,7 +13,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
13
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
14
14
  import { FullPageContentArea } from './FullPageContentArea';
15
15
  import { FullPageToolbar } from './FullPageToolbar';
16
- import { fullPageEditorWrapper, primaryToolbarReservedSpace } from './StyledComponents';
16
+ import { fullPageEditorWrapper } from './StyledComponents';
17
17
  const useShowKeyline = contentAreaRef => {
18
18
  const [showKeyline, setShowKeyline] = useState(false);
19
19
  useEffect(() => {
@@ -93,13 +93,8 @@ export const FullPageEditor = props => {
93
93
  }
94
94
  const popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 ? void 0 : (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
95
95
  return jsx(ContextPanelWidthProvider, null, jsx("div", {
96
- css: [
97
96
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
98
- fullPageEditorWrapper, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1', {
99
- exposure: true
100
- }) &&
101
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
102
- primaryToolbarReservedSpace]
97
+ css: fullPageEditorWrapper
103
98
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
104
99
  ,
105
100
  className: "akEditor",
@@ -16,7 +16,7 @@ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
16
16
  import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
17
17
  import { ContextPanel } from '../../ContextPanel';
18
18
  import PluginSlot from '../../PluginSlot';
19
- import { contentArea, contentAreaHeightNoToolbar, contentAreaReducedHeaderSpace, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
19
+ import { contentArea, contentAreaHeightNoToolbar, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
20
20
  export const CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
21
21
  export const EDITOR_CONTAINER = 'ak-editor-container';
22
22
  const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
@@ -72,13 +72,11 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
72
72
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
73
73
  ...editorContentAreaStyle({
74
74
  fullWidthMode,
75
- layoutMaxWidth: theme.layoutMaxWidth
76
- }), editorExperiment('platform_editor_controls', 'variant1', {
77
- exposure: true
78
- }) &&
79
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
80
- contentAreaReducedHeaderSpace],
75
+ layoutMaxWidth: theme.layoutMaxWidth,
76
+ isEditorToolbarHidden: props.isEditorToolbarHidden
77
+ })],
81
78
  "data-editor-editable-content": true,
79
+ "data-editor-primary-toolbar-hidden": props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') ? 'true' : undefined,
82
80
  role: "region",
83
81
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
84
82
  ref: contentAreaRef
@@ -6,6 +6,7 @@ import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/cons
6
6
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
7
7
  import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
10
  import { createEditorContentStyle } from '../../ContentStyles';
10
11
 
11
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -136,8 +137,15 @@ const editorContentAreaContainerStyle = () => css({
136
137
  });
137
138
  export const editorContentAreaStyle = ({
138
139
  layoutMaxWidth,
139
- fullWidthMode
140
- }) => [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle()];
140
+ fullWidthMode,
141
+ isEditorToolbarHidden
142
+ }) => [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle(), editorExperiment('platform_editor_controls', 'variant1', {
143
+ exposure: true
144
+ }) &&
145
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
146
+ contentAreaReducedHeaderSpace, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') &&
147
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
148
+ contentAreaReservedPrimaryToolbarSpace];
141
149
  const editorContentAreaWithLayoutWith = layoutMaxWidth => css({
142
150
  // this restricts max width
143
151
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -212,17 +220,17 @@ export const editorContentGutterStyle = () => {
212
220
  });
213
221
  };
214
222
 
215
- // An additional padding applied at the top of the page reserving space when the primary toolbar is hidden
216
- // which is used to avoid layout shift when the toolbar is toggled under the editor controls feature
223
+ // An additional spacing applied at the top of the content area reserving space when the primary toolbar
224
+ // is hidden this avoids layout shift when the toolbar is toggled under the editor controls feature
217
225
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
218
- export const primaryToolbarReservedSpace = css({
226
+ const contentAreaReservedPrimaryToolbarSpace = css({
219
227
  // extra 1px to account for the bottom border on the toolbar
220
- paddingTop: `calc(${"var(--ds-space-500, 40px)"} + 1px)`
228
+ marginTop: `calc(${"var(--ds-space-500, 40px)"} + 1px)`
221
229
  });
222
230
 
223
- // A reduced top padding to be applied to the content area to compensate for the reserved space at the top
231
+ // A reduced top spacing applied to the content area to compensate for the reserved space at the top
224
232
  // of the page when the primary toolbar is hidden under the editor controls feature
225
233
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
226
- export const contentAreaReducedHeaderSpace = css({
234
+ const contentAreaReducedHeaderSpace = css({
227
235
  paddingTop: "var(--ds-space-400, 32px)"
228
236
  });
@@ -17,7 +17,7 @@ import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
17
17
  import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
18
18
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
19
19
  import { gapCursorStyles } from '@atlaskit/editor-common/selection';
20
- import { annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, CodeBlockSharedCssClassName, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
20
+ import { annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, CodeBlockSharedCssClassName, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
21
21
  import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
22
22
  import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
23
23
  import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
@@ -333,7 +333,7 @@ const contentStyles = props => css`
333
333
  ${statusStyles}
334
334
  ${annotationSharedStyles()}
335
335
  ${smartCardStyles()}
336
- ${smartCardSharedStyles}
336
+ ${fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles}
337
337
  ${dateStyles}
338
338
  ${embedCardStyles()}
339
339
  ${unsupportedStyles}
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "204.4.5";
2
+ export const version = "204.4.7";
@@ -14,7 +14,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
14
14
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
15
  import { FullPageContentArea } from './FullPageContentArea';
16
16
  import { FullPageToolbar } from './FullPageToolbar';
17
- import { fullPageEditorWrapper, primaryToolbarReservedSpace } from './StyledComponents';
17
+ import { fullPageEditorWrapper } from './StyledComponents';
18
18
  var useShowKeyline = function useShowKeyline(contentAreaRef) {
19
19
  var _useState = useState(false),
20
20
  _useState2 = _slicedToArray(_useState, 2),
@@ -98,13 +98,8 @@ export var FullPageEditor = function FullPageEditor(props) {
98
98
  }
99
99
  var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
100
100
  return jsx(ContextPanelWidthProvider, null, jsx("div", {
101
- css: [
102
101
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
103
- fullPageEditorWrapper, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1', {
104
- exposure: true
105
- }) &&
106
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
107
- primaryToolbarReservedSpace]
102
+ css: fullPageEditorWrapper
108
103
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
109
104
  ,
110
105
  className: "akEditor",
@@ -17,7 +17,7 @@ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
17
17
  import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
18
18
  import { ContextPanel } from '../../ContextPanel';
19
19
  import PluginSlot from '../../PluginSlot';
20
- import { contentArea, contentAreaHeightNoToolbar, contentAreaReducedHeaderSpace, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
20
+ import { contentArea, contentAreaHeightNoToolbar, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
21
21
  export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
22
22
  export var EDITOR_CONTAINER = 'ak-editor-container';
23
23
  var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -71,15 +71,13 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
71
71
  editorView: props.editorView,
72
72
  editorDisabled: props.disabled
73
73
  }, jsx("div", {
74
- css: [].concat(_toConsumableArray(editorContentAreaStyle({
74
+ css: _toConsumableArray(editorContentAreaStyle({
75
75
  fullWidthMode: fullWidthMode,
76
- layoutMaxWidth: theme.layoutMaxWidth
77
- })), [editorExperiment('platform_editor_controls', 'variant1', {
78
- exposure: true
79
- }) &&
80
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
81
- contentAreaReducedHeaderSpace]),
76
+ layoutMaxWidth: theme.layoutMaxWidth,
77
+ isEditorToolbarHidden: props.isEditorToolbarHidden
78
+ })),
82
79
  "data-editor-editable-content": true,
80
+ "data-editor-primary-toolbar-hidden": props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') ? 'true' : undefined,
83
81
  role: "region",
84
82
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
85
83
  ref: contentAreaRef
@@ -7,6 +7,7 @@ import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/cons
7
7
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
8
8
  import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
11
  import { createEditorContentStyle } from '../../ContentStyles';
11
12
 
12
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -141,8 +142,15 @@ var editorContentAreaContainerStyle = function editorContentAreaContainerStyle()
141
142
  };
142
143
  export var editorContentAreaStyle = function editorContentAreaStyle(_ref) {
143
144
  var layoutMaxWidth = _ref.layoutMaxWidth,
144
- fullWidthMode = _ref.fullWidthMode;
145
- return [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle()];
145
+ fullWidthMode = _ref.fullWidthMode,
146
+ isEditorToolbarHidden = _ref.isEditorToolbarHidden;
147
+ return [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle(), editorExperiment('platform_editor_controls', 'variant1', {
148
+ exposure: true
149
+ }) &&
150
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
151
+ contentAreaReducedHeaderSpace, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') &&
152
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
153
+ contentAreaReservedPrimaryToolbarSpace];
146
154
  };
147
155
  var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(layoutMaxWidth) {
148
156
  return css({
@@ -215,17 +223,17 @@ export var editorContentGutterStyle = function editorContentGutterStyle() {
215
223
  });
216
224
  };
217
225
 
218
- // An additional padding applied at the top of the page reserving space when the primary toolbar is hidden
219
- // which is used to avoid layout shift when the toolbar is toggled under the editor controls feature
226
+ // An additional spacing applied at the top of the content area reserving space when the primary toolbar
227
+ // is hidden this avoids layout shift when the toolbar is toggled under the editor controls feature
220
228
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
221
- export var primaryToolbarReservedSpace = css({
229
+ var contentAreaReservedPrimaryToolbarSpace = css({
222
230
  // extra 1px to account for the bottom border on the toolbar
223
- paddingTop: "calc(".concat("var(--ds-space-500, 40px)", " + 1px)")
231
+ marginTop: "calc(".concat("var(--ds-space-500, 40px)", " + 1px)")
224
232
  });
225
233
 
226
- // A reduced top padding to be applied to the content area to compensate for the reserved space at the top
234
+ // A reduced top spacing applied to the content area to compensate for the reserved space at the top
227
235
  // of the page when the primary toolbar is hidden under the editor controls feature
228
236
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
229
- export var contentAreaReducedHeaderSpace = css({
237
+ var contentAreaReducedHeaderSpace = css({
230
238
  paddingTop: "var(--ds-space-400, 32px)"
231
239
  });
@@ -19,7 +19,7 @@ import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
19
19
  import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
20
20
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
21
21
  import { gapCursorStyles } from '@atlaskit/editor-common/selection';
22
- import { annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, CodeBlockSharedCssClassName, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
22
+ import { annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, CodeBlockSharedCssClassName, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
23
23
  import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
24
24
  import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
25
25
  import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
@@ -86,7 +86,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
86
86
  var contentStyles = function contentStyles(props) {
87
87
  return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: 52px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t// nested table resizer layout shift fix\n\t", "\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
88
88
  theme: props.theme
89
- }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles(), smartCardSharedStyles, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), fg('platform_editor_table_layout_shift_fix') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.pm-table-resizer-container,\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.resizer-item {\n\t\t\t\t\twidth: 100% !important;\n\t\t\t\t}\n\t\t\t"]))) : null, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
89
+ }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), fg('platform_editor_table_layout_shift_fix') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.pm-table-resizer-container,\n\t\t\t\t.ProseMirror\n\t\t\t\t\tdiv[data-prosemirror-node-block='true']\n\t\t\t\t\tdiv[data-prosemirror-node-name='table']\n\t\t\t\t\t.resizer-item {\n\t\t\t\t\twidth: 100% !important;\n\t\t\t\t}\n\t\t\t"]))) : null, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
90
90
  };
91
91
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
92
92
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "204.4.5";
2
+ export var version = "204.4.7";
@@ -13,10 +13,9 @@ export declare const contentAreaWrapper: import("@emotion/react").SerializedStyl
13
13
  export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
14
14
  export declare const sidebarArea: import("@emotion/react").SerializedStyles;
15
15
  export declare const editorContentAreaHideContainer: import("@emotion/react").SerializedStyles;
16
- export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, }: {
16
+ export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, isEditorToolbarHidden, }: {
17
17
  layoutMaxWidth: number;
18
18
  fullWidthMode: boolean;
19
- }) => (false | import("@emotion/react").SerializedStyles)[];
19
+ isEditorToolbarHidden?: boolean | undefined;
20
+ }) => (false | import("@emotion/react").SerializedStyles | undefined)[];
20
21
  export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
21
- export declare const primaryToolbarReservedSpace: import("@emotion/react").SerializedStyles;
22
- export declare const contentAreaReducedHeaderSpace: import("@emotion/react").SerializedStyles;
@@ -13,10 +13,9 @@ export declare const contentAreaWrapper: import("@emotion/react").SerializedStyl
13
13
  export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
14
14
  export declare const sidebarArea: import("@emotion/react").SerializedStyles;
15
15
  export declare const editorContentAreaHideContainer: import("@emotion/react").SerializedStyles;
16
- export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, }: {
16
+ export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, isEditorToolbarHidden, }: {
17
17
  layoutMaxWidth: number;
18
18
  fullWidthMode: boolean;
19
- }) => (false | import("@emotion/react").SerializedStyles)[];
19
+ isEditorToolbarHidden?: boolean | undefined;
20
+ }) => (false | import("@emotion/react").SerializedStyles | undefined)[];
20
21
  export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
21
- export declare const primaryToolbarReservedSpace: import("@emotion/react").SerializedStyles;
22
- export declare const contentAreaReducedHeaderSpace: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "204.4.5",
3
+ "version": "204.4.7",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^21.1.0",
48
48
  "@atlaskit/css": "^0.10.0",
49
- "@atlaskit/editor-common": "^102.4.0",
49
+ "@atlaskit/editor-common": "^102.5.0",
50
50
  "@atlaskit/editor-json-transformer": "^8.24.0",
51
51
  "@atlaskit/editor-performance-metrics": "^2.0.0",
52
52
  "@atlaskit/editor-plugin-quick-insert": "^2.1.0",
@@ -90,7 +90,7 @@
90
90
  "@atlaskit/analytics-listeners": "^9.0.0",
91
91
  "@atlaskit/collab-provider": "^10.9.0",
92
92
  "@atlaskit/editor-plugin-annotation": "^2.1.0",
93
- "@atlaskit/editor-plugin-card": "^5.2.0",
93
+ "@atlaskit/editor-plugin-card": "^5.3.0",
94
94
  "@atlaskit/editor-plugin-list": "^4.1.0",
95
95
  "@atlaskit/editor-plugin-paste": "^3.1.0",
96
96
  "@atlaskit/link-provider": "^2.0.0",
@@ -542,6 +542,9 @@
542
542
  "platform_editor_remove_drag_handle_fix": {
543
543
  "type": "boolean",
544
544
  "referenceOnly": true
545
+ },
546
+ "platform-linking-visual-refresh-v1": {
547
+ "type": "boolean"
545
548
  }
546
549
  },
547
550
  "stricter": {