@atlaskit/editor-core 207.16.0 → 207.17.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 207.17.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165113](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165113)
8
+ [`867bcb05452bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/867bcb05452bf) -
9
+ Cleaned up platform_editor_controls_patch_analytics and platform_editor_controls_patch_analytics_2
10
+ - [#165779](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165779)
11
+ [`3d472e56bc200`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3d472e56bc200) -
12
+ [ux] ED-27698: Fixed table width issue in inline comment table
13
+ - [#167077](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167077)
14
+ [`a2fd3756690cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2fd3756690cc) -
15
+ [ux] Migrate statusStyles to static CSS
16
+ - Updated dependencies
17
+
18
+ ## 207.17.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [#167295](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167295)
23
+ [`6c94765105520`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6c94765105520) -
24
+ [https://product-fabric.atlassian.net/browse/ED-28212](ED-28212) - the `validNode()` function from
25
+ @atlaskit/editor-core package will use memoization
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 207.16.0
4
32
 
5
33
  ### Minor Changes
@@ -170,6 +170,7 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
170
170
  minHeight: "".concat(minHeight, "px")
171
171
  })],
172
172
  "data-testid": "chromeless-editor",
173
+ id: "chromeless-editor",
173
174
  ref: function ref(_ref2) {
174
175
  return _this.containerElement = _ref2;
175
176
  }
@@ -136,7 +136,7 @@ var editorContentAreaStyle = exports.editorContentAreaStyle = function editorCon
136
136
  var layoutMaxWidth = _ref.layoutMaxWidth,
137
137
  fullWidthMode = _ref.fullWidthMode,
138
138
  isEditorToolbarHidden = _ref.isEditorToolbarHidden;
139
- return [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle()].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') ? [] : [(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') &&
139
+ return [editorContentArea, (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle()].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') ? [] : [(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') &&
140
140
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
141
141
  contentAreaReducedHeaderSpace, isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') &&
142
142
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -149,6 +149,40 @@ var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(l
149
149
  maxWidth: "".concat(layoutMaxWidth + getTotalPadding(), "px")
150
150
  });
151
151
  };
152
+ var fullWidthModeBreakoutBlockTableStyle = (0, _react.css)({
153
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-1
154
+ '.fabric-editor--full-width-mode': {
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
156
+ '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
157
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
158
+ width: '100% !important'
159
+ },
160
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
161
+ '.fabric-editor-breakout-mark': {
162
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
163
+ marginLeft: 'unset !important',
164
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
165
+ transform: 'none !important'
166
+ }
167
+ }
168
+ });
169
+ var fullWidthNonChromelessBreakoutBlockTableStyle = (0, _react.css)({
170
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-1
171
+ '.fabric-editor--full-width-mode:not(:has(#chromeless-editor))': {
172
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
173
+ '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
174
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
175
+ width: '100% !important'
176
+ },
177
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
178
+ '.fabric-editor-breakout-mark': {
179
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
180
+ marginLeft: 'unset !important',
181
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
182
+ transform: 'none !important'
183
+ }
184
+ }
185
+ });
152
186
  var editorContentArea = (0, _react.css)({
153
187
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
154
188
  lineHeight: '24px',
@@ -184,23 +218,7 @@ var editorContentArea = (0, _react.css)({
184
218
  })
185
219
  },
186
220
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
187
- _commonStyles.tableFullPageEditorStyles, {
188
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
189
- '.fabric-editor--full-width-mode': {
190
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
191
- '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
192
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
193
- width: '100% !important'
194
- },
195
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
196
- '.fabric-editor-breakout-mark': {
197
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
198
- marginLeft: 'unset !important',
199
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
200
- transform: 'none !important'
201
- }
202
- }
203
- });
221
+ _commonStyles.tableFullPageEditorStyles);
204
222
 
205
223
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
206
224
  var editorContentGutterStyle = exports.editorContentGutterStyle = function editorContentGutterStyle() {
@@ -18,7 +18,6 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
18
18
  var _tokens = require("@atlaskit/tokens");
19
19
  var _extension = require("../ContentStyles/extension");
20
20
  var _panel = require("../ContentStyles/panel");
21
- var _status = require("../ContentStyles/status");
22
21
  var _aiPanel = require("./styles/aiPanel");
23
22
  var _annotationStyles = require("./styles/annotationStyles");
24
23
  var _backgroundColorStyles = require("./styles/backgroundColorStyles");
@@ -47,6 +46,7 @@ var _resizerStyles = require("./styles/resizerStyles");
47
46
  var _rule = require("./styles/rule");
48
47
  var _shadowStyles = require("./styles/shadowStyles");
49
48
  var _smartCardStyles = require("./styles/smartCardStyles");
49
+ var _statusStyles = require("./styles/statusStyles");
50
50
  var _tasksAndDecisionsStyles = require("./styles/tasksAndDecisionsStyles");
51
51
  var _telepointerStyles = require("./styles/telepointerStyles");
52
52
  var _textColorStyles = require("./styles/textColorStyles");
@@ -103,7 +103,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
103
103
 
104
104
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
105
105
  var contentStyles = function contentStyles() {
106
- return (0, _react2.css)(_templateObject || (_templateObject = (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: ", "px;\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: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\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\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\t", "\n \t", "\n\n\n \t", "\n\n\t", "\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\n ", "\n\n ", ";\n\n\t", "\n\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 ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t.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.hyperlink-floating-toolbar {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, _whitespaceStyles.whitespaceStyles, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _inlineNodeViewSharedStyles.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject2 || (_templateObject2 = (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)(_templateObject3 || (_templateObject3 = (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)", _placeholderTextStyles.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, _codeBlockStyles.codeBlockStyles, !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault,
106
+ return (0, _react2.css)(_templateObject || (_templateObject = (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: ", "px;\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: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\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\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\t", "\n \t", "\n\n\n \t", "\n\n\t", "\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\n ", "\n\n ", ";\n\n\t", "\n\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 ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t.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.hyperlink-floating-toolbar {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, _whitespaceStyles.whitespaceStyles, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _inlineNodeViewSharedStyles.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject2 || (_templateObject2 = (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)(_templateObject3 || (_templateObject3 = (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)", _placeholderTextStyles.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, _codeBlockStyles.codeBlockStyles, !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault,
107
107
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
108
108
  (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && ( /* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
109
109
  (0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && _editorUGCTokenStyles.editorUGCTokensRefreshed
@@ -119,7 +119,7 @@ var contentStyles = function contentStyles() {
119
119
  exposure: false
120
120
  }) && (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisionsStyles.vanillaDecisionIconWithVisualRefresh, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
121
121
  exposure: false
122
- }) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisionsStyles.vanillaDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, _annotationStyles.annotationStyles, _smartCardStyles.smartCardStyles, _embedCardStyles.embedCardStyles, _unsupportedStyles.unsupportedStyles, _resizerStyles.resizerStyles, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject4 || (_templateObject4 = (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);
122
+ }) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisionsStyles.vanillaDecisionIconWithoutVisualRefresh, _statusStyles.statusStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && _statusStyles.statusStylesMixin_fg_platform_component_visual_refresh, !(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && _statusStyles.statusStylesMixin_without_fg_platform_component_visual_refresh, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) && _statusStyles.vanillaStatusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) && (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && _statusStyles.vanillaStatusStylesMixin_fg_platform_component_visual_refresh, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) && !(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && _statusStyles.vanillaStatusStylesMixin_without_fg_platform_component_visual_refresh, _annotationStyles.annotationStyles, _smartCardStyles.smartCardStyles, _embedCardStyles.embedCardStyles, _unsupportedStyles.unsupportedStyles, _resizerStyles.resizerStyles, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject4 || (_templateObject4 = (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);
123
123
  };
124
124
  var CommentEditorMargin = 14;
125
125
 
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.vanillaStatusStylesMixin_without_fg_platform_component_visual_refresh = exports.vanillaStatusStylesMixin_fg_platform_component_visual_refresh = exports.vanillaStatusStyles = exports.statusStylesMixin_without_fg_platform_component_visual_refresh = exports.statusStylesMixin_fg_platform_component_visual_refresh = exports.statusStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
11
+ var statusStyles = exports.statusStyles = (0, _react.css)({
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
13
+ '.pm-table-cell-content-wrap, .pm-table-header-content-wrap, [data-layout-section]': {
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
15
+ '.statusView-content-wrap': {
16
+ maxWidth: '100%',
17
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
18
+ lineHeight: 0,
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
20
+ '& > span': {
21
+ width: '100%'
22
+ }
23
+ }
24
+ },
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
26
+ '.statusView-content-wrap': {
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
28
+ '& > span': {
29
+ cursor: 'pointer',
30
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
31
+ lineHeight: 0 // Prevent responsive layouts increasing height of container.
32
+ }
33
+ },
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
35
+ '.danger': {
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
37
+ '.status-lozenge-span > span': {
38
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
39
+ backgroundColor: 'rgba(255, 189, 173, 0.5)' // akEditorDeleteBackgroundWithOpacity
40
+ },
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
42
+ '.statusView-content-wrap.ak-editor-selected-node': {
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
44
+ '.status-lozenge-span > span': {
45
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)")
46
+ }
47
+ }
48
+ }
49
+ });
50
+
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
52
+ var statusStylesMixin_fg_platform_component_visual_refresh = exports.statusStylesMixin_fg_platform_component_visual_refresh = (0, _react.css)({
53
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
54
+ '.statusView-content-wrap': {
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
56
+ '&.ak-editor-selected-node .status-lozenge-span > span': {
57
+ boxShadow: "0 0 0 2px ".concat("var(--ds-border-selected, #0C66E4)")
58
+ }
59
+ }
60
+ });
61
+
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
63
+ var statusStylesMixin_without_fg_platform_component_visual_refresh = exports.statusStylesMixin_without_fg_platform_component_visual_refresh = (0, _react.css)({
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
65
+ '.statusView-content-wrap': {
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
67
+ '&.ak-editor-selected-node .status-lozenge-span > span': {
68
+ // getSelectionStyles([SelectionStyle.BoxShadow]);
69
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
70
+ borderColor: 'transparent',
71
+ // hideNativeBrowserTextSelectionStyles
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
73
+ '&::selection, & *::selection': {
74
+ backgroundColor: 'transparent'
75
+ },
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
77
+ '&::-moz-selection, & *::-moz-selection': {
78
+ backgroundColor: 'transparent'
79
+ }
80
+ }
81
+ }
82
+ });
83
+
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
85
+ var vanillaStatusStyles = exports.vanillaStatusStyles = (0, _react.css)({
86
+ // baseVanillaStatusStyles
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
88
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] .lozenge-wrapper': {
89
+ backgroundColor: "var(--ds-background-neutral, #091E420F)",
90
+ maxWidth: '100%',
91
+ paddingInline: "var(--ds-space-050, 4px)",
92
+ display: 'inline-flex',
93
+ borderRadius: '3px',
94
+ blockSize: 'min-content',
95
+ position: 'static',
96
+ overflow: 'hidden',
97
+ boxSizing: 'border-box',
98
+ appearance: 'none',
99
+ border: 'none'
100
+ },
101
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
102
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] .lozenge-text': {
103
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
104
+ fontSize: '11px',
105
+ fontStyle: 'normal',
106
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
107
+ fontWeight: "var(--ds-font-weight-bold, 700)",
108
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
109
+ lineHeight: '16px',
110
+ overflow: 'hidden',
111
+ textOverflow: 'ellipsis',
112
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
113
+ textTransform: 'uppercase',
114
+ whiteSpace: 'nowrap',
115
+ maxWidth: "calc(200px - ".concat("var(--ds-space-100, 8px)", ")")
116
+ }
117
+ });
118
+
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
120
+ var vanillaStatusStylesMixin_fg_platform_component_visual_refresh = exports.vanillaStatusStylesMixin_fg_platform_component_visual_refresh = (0, _react.css)({
121
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
122
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] .lozenge-text': {
123
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
124
+ color: '#292A2E'
125
+ },
126
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
127
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=neutral] > .lozenge-wrapper': {
128
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
129
+ backgroundColor: '#DDDEE1'
130
+ },
131
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
132
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=purple] > .lozenge-wrapper': {
133
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
134
+ backgroundColor: '#D8A0F7'
135
+ },
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
137
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=blue] > .lozenge-wrapper': {
138
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
139
+ backgroundColor: '#8FB8F6'
140
+ },
141
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
142
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=yellow] > .lozenge-wrapper': {
143
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
144
+ backgroundColor: '#F9C84E'
145
+ },
146
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
147
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=red] > .lozenge-wrapper': {
148
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
149
+ backgroundColor: '#FD9891'
150
+ },
151
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
152
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=green] > .lozenge-wrapper': {
153
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
154
+ backgroundColor: '#B3DF72'
155
+ }
156
+ });
157
+
158
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
159
+ var vanillaStatusStylesMixin_without_fg_platform_component_visual_refresh = exports.vanillaStatusStylesMixin_without_fg_platform_component_visual_refresh = (0, _react.css)({
160
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
161
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=neutral] .lozenge-wrapper': {
162
+ backgroundColor: "var(--ds-background-neutral, #091E420F)"
163
+ },
164
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
165
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=neutral] .lozenge-text': {
166
+ color: "var(--ds-text-subtle, #44546F)"
167
+ },
168
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
169
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=purple] .lozenge-wrapper': {
170
+ backgroundColor: "var(--ds-background-discovery, #F3F0FF)"
171
+ },
172
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
173
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=purple] .lozenge-text': {
174
+ color: "var(--ds-text-discovery, #5E4DB2)"
175
+ },
176
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
177
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=blue] .lozenge-wrapper': {
178
+ backgroundColor: "var(--ds-background-information, #E9F2FF)"
179
+ },
180
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
181
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=blue] .lozenge-text': {
182
+ color: "var(--ds-text-information, #0055CC)"
183
+ },
184
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
185
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=yellow] .lozenge-wrapper': {
186
+ backgroundColor: "var(--ds-background-warning, #FFF7D6)"
187
+ },
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
189
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=yellow] .lozenge-text': {
190
+ color: "var(--ds-text-warning, #A54800)"
191
+ },
192
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
193
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=red] .lozenge-wrapper': {
194
+ backgroundColor: "var(--ds-background-danger, #FFECEB)"
195
+ },
196
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
197
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=red] .lozenge-text': {
198
+ color: "var(--ds-text-danger, #AE2E24)"
199
+ },
200
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
201
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=green] .lozenge-wrapper': {
202
+ backgroundColor: "var(--ds-background-success, #DCFFF1)"
203
+ },
204
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
205
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="status"] > [data-color=green] .lozenge-text': {
206
+ color: "var(--ds-text-success, #216E4E)"
207
+ }
208
+ });
@@ -4,9 +4,54 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.validateNodes = exports.validNode = void 0;
7
+ var _model = require("@atlaskit/editor-prosemirror/model");
8
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
9
+ // We don't want to use memoize from lodash, because we need to use WeakMap or WeakSet
10
+ // to avoid memory leaks, but lodash allow to change the cache type only globally
11
+ // like `memoize.Cache = WeakMap`, and we don't want to do that.
12
+ // So we use our own cache implementation.
13
+ var cache = new WeakSet();
14
+
15
+ // See https://github.com/ProseMirror/prosemirror-model/blob/20d26c9843d6a69a1d417d937c401537ee0b2342/src/node.ts#L303
16
+ function checkNode(node) {
17
+ if (cache.has(node)) {
18
+ return;
19
+ }
20
+
21
+ // @ts-expect-error - This is internal ProseMirror API, but we okay with it
22
+ node.type.checkContent(node.content);
23
+ // @ts-expect-error - This is internal ProseMirror API, but we okay with it
24
+ node.type.checkAttrs(node.attrs);
25
+ var copy = _model.Mark.none;
26
+ for (var i = 0; i < node.marks.length; i++) {
27
+ var mark = node.marks[i];
28
+ // @ts-expect-error - This is internal ProseMirror API, but we okay with it
29
+ mark.type.checkAttrs(mark.attrs);
30
+ copy = mark.addToSet(copy);
31
+ }
32
+ if (!_model.Mark.sameSet(copy, node.marks)) {
33
+ throw new RangeError("Invalid collection of marks for node ".concat(node.type.name, ": ").concat(node.marks.map(function (m) {
34
+ return m.type.name;
35
+ })));
36
+ }
37
+ node.content.forEach(function (node) {
38
+ return checkNode(node);
39
+ });
40
+
41
+ // The set value should be added in the end of the function,
42
+ // because any previous check can throw an error,
43
+ // and we don't want to add invalid node to the cache.
44
+ cache.add(node);
45
+ }
7
46
  var validNode = exports.validNode = function validNode(node) {
8
47
  try {
9
- node.check(); // this will throw an error if the node is invalid
48
+ if ((0, _experiments.editorExperiment)('platform_editor_memoized_node_check', true, {
49
+ exposure: true
50
+ })) {
51
+ checkNode(node);
52
+ } else {
53
+ node.check();
54
+ }
10
55
  } catch (error) {
11
56
  return false;
12
57
  }
@@ -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 = "207.16.0";
8
+ var version = exports.version = "207.17.1";
@@ -152,6 +152,7 @@ export default class Editor extends React.Component {
152
152
  minHeight: `${minHeight}px`
153
153
  })],
154
154
  "data-testid": "chromeless-editor",
155
+ id: "chromeless-editor",
155
156
  ref: ref => this.containerElement = ref
156
157
  }, jsx(EditorContainer
157
158
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -122,7 +122,7 @@ export const editorContentAreaStyle = ({
122
122
  layoutMaxWidth,
123
123
  fullWidthMode,
124
124
  isEditorToolbarHidden
125
- }) => [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle(), ...(fg('platform_editor_controls_no_toolbar_space') ? [] : [editorExperiment('platform_editor_controls', 'variant1') &&
125
+ }) => [editorContentArea, fg('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle(), ...(fg('platform_editor_controls_no_toolbar_space') ? [] : [editorExperiment('platform_editor_controls', 'variant1') &&
126
126
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
127
127
  contentAreaReducedHeaderSpace, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') &&
128
128
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -132,6 +132,40 @@ const editorContentAreaWithLayoutWith = layoutMaxWidth => css({
132
132
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
133
133
  maxWidth: `${layoutMaxWidth + getTotalPadding()}px`
134
134
  });
135
+ const fullWidthModeBreakoutBlockTableStyle = css({
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-1
137
+ '.fabric-editor--full-width-mode': {
138
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
139
+ '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
140
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
141
+ width: '100% !important'
142
+ },
143
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
144
+ '.fabric-editor-breakout-mark': {
145
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
146
+ marginLeft: 'unset !important',
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
148
+ transform: 'none !important'
149
+ }
150
+ }
151
+ });
152
+ const fullWidthNonChromelessBreakoutBlockTableStyle = css({
153
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-1
154
+ '.fabric-editor--full-width-mode:not(:has(#chromeless-editor))': {
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
156
+ '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
157
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
158
+ width: '100% !important'
159
+ },
160
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
161
+ '.fabric-editor-breakout-mark': {
162
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
163
+ marginLeft: 'unset !important',
164
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
165
+ transform: 'none !important'
166
+ }
167
+ }
168
+ });
135
169
  const editorContentArea = css({
136
170
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
137
171
  lineHeight: '24px',
@@ -171,23 +205,7 @@ const editorContentArea = css({
171
205
  }
172
206
  },
173
207
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
174
- tableFullPageEditorStyles, {
175
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
176
- '.fabric-editor--full-width-mode': {
177
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
178
- '.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
179
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
180
- width: '100% !important'
181
- },
182
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
183
- '.fabric-editor-breakout-mark': {
184
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
185
- marginLeft: 'unset !important',
186
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
187
- transform: 'none !important'
188
- }
189
- }
190
- });
208
+ tableFullPageEditorStyles);
191
209
 
192
210
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
193
211
  export const editorContentGutterStyle = () => {
@@ -19,7 +19,6 @@ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
19
  import { useThemeObserver } from '@atlaskit/tokens';
20
20
  import { extensionStyles } from '../ContentStyles/extension';
21
21
  import { panelStyles } from '../ContentStyles/panel';
22
- import { statusStyles, vanillaStatusStyles } from '../ContentStyles/status';
23
22
  import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
24
23
  import { annotationStyles } from './styles/annotationStyles';
25
24
  import { backgroundColorStyles } from './styles/backgroundColorStyles';
@@ -48,6 +47,7 @@ import { resizerStyles, pragmaticResizerStyles } from './styles/resizerStyles';
48
47
  import { ruleStyles } from './styles/rule';
49
48
  import { shadowStyles } from './styles/shadowStyles';
50
49
  import { linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
50
+ import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh, vanillaStatusStyles, vanillaStatusStylesMixin_fg_platform_component_visual_refresh, vanillaStatusStylesMixin_without_fg_platform_component_visual_refresh } from './styles/statusStyles';
51
51
  import { decisionStyles, tasksAndDecisionsStyles, vanillaDecisionIconWithoutVisualRefresh, vanillaDecisionIconWithVisualRefresh, vanillaDecisionStyles, vanillaTaskItemStyles } from './styles/tasksAndDecisionsStyles';
52
52
  import { telepointerColorAndCommonStyle, telepointerStyle, telepointerStyleWithInitialOnly } from './styles/telepointerStyles';
53
53
  import { textColorStyles } from './styles/textColorStyles';
@@ -282,7 +282,14 @@ fg('platform_editor_typography_ugc') && /* eslint-disable @atlaskit/platform/ens
282
282
 
283
283
  ${statusStyles}
284
284
 
285
- ${editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null}
285
+ ${fg('platform-component-visual-refresh') && statusStylesMixin_fg_platform_component_visual_refresh}
286
+ ${!fg('platform-component-visual-refresh') && statusStylesMixin_without_fg_platform_component_visual_refresh}
287
+
288
+ ${editorExperiment('platform_editor_vanilla_dom', true) && vanillaStatusStyles}
289
+
290
+ ${editorExperiment('platform_editor_vanilla_dom', true) && fg('platform-component-visual-refresh') && vanillaStatusStylesMixin_fg_platform_component_visual_refresh}
291
+
292
+ ${editorExperiment('platform_editor_vanilla_dom', true) && !fg('platform-component-visual-refresh') && vanillaStatusStylesMixin_without_fg_platform_component_visual_refresh}
286
293
 
287
294
  ${annotationStyles}
288
295