@atlaskit/renderer 118.7.0 → 119.0.0

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,17 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 119.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 118.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 118.7.0
4
16
 
5
17
  ### Minor Changes
@@ -24,7 +24,7 @@ var _table2 = require("@atlaskit/editor-common/table");
24
24
  var _lightWeightCodeBlock = require("../../react/nodes/codeBlock/components/lightWeightCodeBlock");
25
25
  var _ugcTokens = require("@atlaskit/editor-common/ugc-tokens");
26
26
  var _getBaseFontSize = require("./get-base-font-size");
27
- var _css, _css4;
27
+ var _css, _css5;
28
28
  /* eslint-disable @atlaskit/ui-styling-standard/no-important-styles */
29
29
  /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
30
30
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values */
@@ -147,6 +147,13 @@ var responsiveBreakoutWidth = (0, _react.css)((0, _defineProperty2.default)({
147
147
  }, "@media (min-width: ".concat(akEditorBreakpointForSmallDevice, ")"), {
148
148
  '--ak-editor--breakout-wide-layout-width': "".concat(_editorSharedStyles.akEditorCalculatedWideLayoutWidth, "px")
149
149
  }));
150
+ var responsiveBreakoutWidthFullWidth = (0, _react.css)((0, _defineProperty2.default)({
151
+ '--ak-editor--breakout-container-without-gutter-width': '100cqw',
152
+ // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
153
+ '--ak-editor--breakout-wide-layout-width': "".concat(_editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, "px")
154
+ }, "@media (min-width: ".concat(akEditorBreakpointForSmallDevice, ")"), {
155
+ '--ak-editor--breakout-wide-layout-width': "".concat(_editorSharedStyles.akEditorCalculatedWideLayoutWidth, "px")
156
+ }));
150
157
  var hideHeadingCopyLinkWrapperStyles = (0, _react.css)({
151
158
  '& h1, & h2, & h3, & h4, & h5, & h6': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
152
159
  '&:focus-within': {
@@ -484,13 +491,13 @@ var paragraphSharedStyles = (0, _react.css)({
484
491
  letterSpacing: '-0.005em'
485
492
  }
486
493
  });
487
- var listsSharedStyles = (0, _react.css)((_css4 = {
494
+ var listsSharedStyles = (0, _react.css)((_css5 = {
488
495
  /* =============== INDENTATION SPACING ========= */
489
496
  'ul, ol': {
490
497
  boxSizing: 'border-box',
491
498
  paddingLeft: "var(--ed--list--item-counter--padding, ".concat(_styles.listItemCounterPadding, "px)")
492
499
  }
493
- }, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css4, "".concat(_adfSchema.orderedListSelector, ", ").concat(_adfSchema.bulletListSelector), {
500
+ }, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css5, "".concat(_adfSchema.orderedListSelector, ", ").concat(_adfSchema.bulletListSelector), {
494
501
  /*
495
502
  Ensures list item content adheres to the list's margin instead
496
503
  of filling the entire block row. This is important to allow
@@ -522,7 +529,7 @@ var listsSharedStyles = (0, _react.css)((_css4 = {
522
529
  listStyleType: 'lower-alpha'
523
530
  }), 'ol[data-indent-level="3"], ol[data-indent-level="6"]', {
524
531
  listStyleType: 'lower-roman'
525
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css4, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
532
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css5, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
526
533
  listStyleType: 'disc'
527
534
  }), 'ul[data-indent-level="2"], ul[data-indent-level="5"]', {
528
535
  listStyleType: 'circle'
@@ -1421,7 +1428,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
1421
1428
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
1422
1429
  (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') &&
1423
1430
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
1424
- (0, _platformFeatureFlags.fg)('annotations_align_editor_and_renderer_styles') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, (0, _table.isStickyScrollbarEnabled)(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks, (0, _platformFeatureFlags.fg)('platform_editor_tables_numbered_column_correction') ? rendererTableColumnStyles : rendererTableColumnStylesOld, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, _browser.browser.safari && codeBlockInListSafariFixStyles, (0, _platformFeatureFlags.fg)('platform_breakout_cls') ? responsiveBreakoutWidth : null],
1431
+ (0, _platformFeatureFlags.fg)('annotations_align_editor_and_renderer_styles') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, (0, _table.isStickyScrollbarEnabled)(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks, (0, _platformFeatureFlags.fg)('platform_editor_tables_numbered_column_correction') ? rendererTableColumnStyles : rendererTableColumnStylesOld, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, _browser.browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && (0, _platformFeatureFlags.fg)('platform_breakout_cls') ? responsiveBreakoutWidth : null, appearance === 'full-width' && (0, _platformFeatureFlags.fg)('platform_breakout_cls') ? responsiveBreakoutWidthFullWidth : null],
1425
1432
  "data-testid": testId
1426
1433
  }, children)
1427
1434
  );
@@ -39,13 +39,13 @@ function BreakoutSSRInlineScript(_ref) {
39
39
  // eslint-disable-next-line react/no-danger
40
40
  ,
41
41
  dangerouslySetInnerHTML: {
42
- __html: (0, _platformFeatureFlags.fg)('platform-ssr-table-resize') ? createBreakoutInlineScript(id, true) : createBreakoutInlineScript(id)
42
+ __html: (0, _platformFeatureFlags.fg)('platform-ssr-table-resize') || (0, _platformFeatureFlags.fg)('platform_breakout_cls') ? createBreakoutInlineScript(id, true) : createBreakoutInlineScript(id)
43
43
  },
44
44
  "data-testid": "breakout-ssr-inline-script"
45
45
  });
46
46
  }
47
- function createBreakoutInlineScript(id, optionalFlagArg) {
48
- return "\n\t (function(window){\n\t\tif(typeof window !== 'undefined' && window.__RENDERER_BYPASS_BREAKOUT_SSR__) {\n\t\t\treturn;\n\t\t}\n ".concat(breakoutInlineScriptContext, ";\n (").concat(applyBreakoutAfterSSR.toString(), ")(\"").concat(id, "\", breakoutConsts, ").concat(optionalFlagArg !== null && optionalFlagArg !== void 0 ? optionalFlagArg : false, ");\n })(window);\n");
47
+ function createBreakoutInlineScript(id, shouldSkipScript) {
48
+ return "\n\t (function(window){\n\t\tif(typeof window !== 'undefined' && window.__RENDERER_BYPASS_BREAKOUT_SSR__) {\n\t\t\treturn;\n\t\t}\n ".concat(breakoutInlineScriptContext, ";\n (").concat(applyBreakoutAfterSSR.toString(), ")(\"").concat(id, "\", breakoutConsts, ").concat(shouldSkipScript !== null && shouldSkipScript !== void 0 ? shouldSkipScript : false, ");\n })(window);\n");
49
49
  }
50
50
  var breakoutInlineScriptContext = exports.breakoutInlineScriptContext = "\n var breakoutConsts = ".concat(JSON.stringify(_utils.breakoutConsts), ";\n breakoutConsts.mapBreakpointToLayoutMaxWidth = ").concat(_utils.breakoutConsts.mapBreakpointToLayoutMaxWidth.toString(), ";\n breakoutConsts.getBreakpoint = ").concat(_utils.breakoutConsts.getBreakpoint.toString(), ";\n breakoutConsts.calcBreakoutWidth = ").concat(_utils.breakoutConsts.calcBreakoutWidth.toString(), ";\n breakoutConsts.calcBreakoutWithCustomWidth = ").concat(_utils.breakoutConsts.calcBreakoutWithCustomWidth.toString(), ";\n breakoutConsts.calcLineLength = ").concat(_utils.breakoutConsts.calcLineLength.toString(), ";\n breakoutConsts.calcWideWidth = ").concat(_utils.breakoutConsts.calcWideWidth.toString(), ";\n breakoutConsts.FullPagePadding = ").concat(_style.FullPagePadding.toString(), ";\n");
51
51
 
@@ -101,6 +101,9 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
101
101
  if (shouldSkipBreakoutScript && node.classList.contains('pm-table-container')) {
102
102
  return;
103
103
  }
104
+ if (shouldSkipBreakoutScript && node.classList.contains('fabric-editor-breakout-mark')) {
105
+ return;
106
+ }
104
107
 
105
108
  // use breakout script for all other types of nodes
106
109
  if (node.classList.contains('pm-table-container') && mode === 'custom') {
@@ -62,7 +62,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
62
62
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
63
63
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
64
64
  var packageName = "@atlaskit/renderer";
65
- var packageVersion = "118.7.0";
65
+ var packageVersion = "118.7.1";
66
66
  var setAsQueryContainerStyles = (0, _react2.css)({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -207,6 +207,14 @@ const responsiveBreakoutWidth = css({
207
207
  '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidth}px`
208
208
  }
209
209
  });
210
+ const responsiveBreakoutWidthFullWidth = css({
211
+ '--ak-editor--breakout-container-without-gutter-width': '100cqw',
212
+ // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
213
+ '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidthSmallViewport}px`,
214
+ [`@media (min-width: ${akEditorBreakpointForSmallDevice})`]: {
215
+ '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidth}px`
216
+ }
217
+ });
210
218
  const hideHeadingCopyLinkWrapperStyles = css({
211
219
  '& h1, & h2, & h3, & h4, & h5, & h6': {
212
220
  [`.${HeadingAnchorWrapperClassName}`]: {
@@ -1814,7 +1822,7 @@ export const RendererStyleContainer = props => {
1814
1822
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
1815
1823
  fg('editor_inline_comments_on_inline_nodes') &&
1816
1824
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
1817
- fg('annotations_align_editor_and_renderer_styles') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks, fg('platform_editor_tables_numbered_column_correction') ? rendererTableColumnStyles : rendererTableColumnStylesOld, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, fg('platform_breakout_cls') ? responsiveBreakoutWidth : null],
1825
+ fg('annotations_align_editor_and_renderer_styles') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks, fg('platform_editor_tables_numbered_column_correction') ? rendererTableColumnStyles : rendererTableColumnStylesOld, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && fg('platform_breakout_cls') ? responsiveBreakoutWidth : null, appearance === 'full-width' && fg('platform_breakout_cls') ? responsiveBreakoutWidthFullWidth : null],
1818
1826
  "data-testid": testId
1819
1827
  }, children)
1820
1828
  );
@@ -31,19 +31,19 @@ export function BreakoutSSRInlineScript({
31
31
  // eslint-disable-next-line react/no-danger
32
32
  ,
33
33
  dangerouslySetInnerHTML: {
34
- __html: fg('platform-ssr-table-resize') ? createBreakoutInlineScript(id, true) : createBreakoutInlineScript(id)
34
+ __html: fg('platform-ssr-table-resize') || fg('platform_breakout_cls') ? createBreakoutInlineScript(id, true) : createBreakoutInlineScript(id)
35
35
  },
36
36
  "data-testid": "breakout-ssr-inline-script"
37
37
  });
38
38
  }
39
- export function createBreakoutInlineScript(id, optionalFlagArg) {
39
+ export function createBreakoutInlineScript(id, shouldSkipScript) {
40
40
  return `
41
41
  (function(window){
42
42
  if(typeof window !== 'undefined' && window.__RENDERER_BYPASS_BREAKOUT_SSR__) {
43
43
  return;
44
44
  }
45
45
  ${breakoutInlineScriptContext};
46
- (${applyBreakoutAfterSSR.toString()})("${id}", breakoutConsts, ${optionalFlagArg !== null && optionalFlagArg !== void 0 ? optionalFlagArg : false});
46
+ (${applyBreakoutAfterSSR.toString()})("${id}", breakoutConsts, ${shouldSkipScript !== null && shouldSkipScript !== void 0 ? shouldSkipScript : false});
47
47
  })(window);
48
48
  `;
49
49
  }
@@ -110,6 +110,9 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
110
110
  if (shouldSkipBreakoutScript && node.classList.contains('pm-table-container')) {
111
111
  return;
112
112
  }
113
+ if (shouldSkipBreakoutScript && node.classList.contains('fabric-editor-breakout-mark')) {
114
+ return;
115
+ }
113
116
 
114
117
  // use breakout script for all other types of nodes
115
118
  if (node.classList.contains('pm-table-container') && mode === 'custom') {
@@ -48,7 +48,7 @@ import { PortalContext } from './PortalContext';
48
48
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
49
49
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
50
50
  const packageName = "@atlaskit/renderer";
51
- const packageVersion = "118.7.0";
51
+ const packageVersion = "118.7.1";
52
52
  const setAsQueryContainerStyles = css({
53
53
  containerName: 'ak-renderer-wrapper',
54
54
  containerType: 'inline-size'
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- var _css, _css4;
2
+ var _css, _css5;
3
3
  /* eslint-disable @atlaskit/ui-styling-standard/no-important-styles */
4
4
  /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
5
5
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values */
@@ -140,6 +140,13 @@ var responsiveBreakoutWidth = css(_defineProperty({
140
140
  }, "@media (min-width: ".concat(akEditorBreakpointForSmallDevice, ")"), {
141
141
  '--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidth, "px")
142
142
  }));
143
+ var responsiveBreakoutWidthFullWidth = css(_defineProperty({
144
+ '--ak-editor--breakout-container-without-gutter-width': '100cqw',
145
+ // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
146
+ '--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidthSmallViewport, "px")
147
+ }, "@media (min-width: ".concat(akEditorBreakpointForSmallDevice, ")"), {
148
+ '--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidth, "px")
149
+ }));
143
150
  var hideHeadingCopyLinkWrapperStyles = css({
144
151
  '& h1, & h2, & h3, & h4, & h5, & h6': _defineProperty(_defineProperty({}, ".".concat(HeadingAnchorWrapperClassName), {
145
152
  '&:focus-within': {
@@ -477,13 +484,13 @@ var paragraphSharedStyles = css({
477
484
  letterSpacing: '-0.005em'
478
485
  }
479
486
  });
480
- var listsSharedStyles = css((_css4 = {
487
+ var listsSharedStyles = css((_css5 = {
481
488
  /* =============== INDENTATION SPACING ========= */
482
489
  'ul, ol': {
483
490
  boxSizing: 'border-box',
484
491
  paddingLeft: "var(--ed--list--item-counter--padding, ".concat(listItemCounterPadding, "px)")
485
492
  }
486
- }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css4, "".concat(orderedListSelector, ", ").concat(bulletListSelector), {
493
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css5, "".concat(orderedListSelector, ", ").concat(bulletListSelector), {
487
494
  /*
488
495
  Ensures list item content adheres to the list's margin instead
489
496
  of filling the entire block row. This is important to allow
@@ -515,7 +522,7 @@ var listsSharedStyles = css((_css4 = {
515
522
  listStyleType: 'lower-alpha'
516
523
  }), 'ol[data-indent-level="3"], ol[data-indent-level="6"]', {
517
524
  listStyleType: 'lower-roman'
518
- }), _defineProperty(_defineProperty(_defineProperty(_css4, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
525
+ }), _defineProperty(_defineProperty(_defineProperty(_css5, 'ul[data-indent-level="1"], ul[data-indent-level="4"]', {
519
526
  listStyleType: 'disc'
520
527
  }), 'ul[data-indent-level="2"], ul[data-indent-level="5"]', {
521
528
  listStyleType: 'circle'
@@ -1414,7 +1421,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
1414
1421
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
1415
1422
  fg('editor_inline_comments_on_inline_nodes') &&
1416
1423
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
1417
- fg('annotations_align_editor_and_renderer_styles') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks, fg('platform_editor_tables_numbered_column_correction') ? rendererTableColumnStyles : rendererTableColumnStylesOld, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, fg('platform_breakout_cls') ? responsiveBreakoutWidth : null],
1424
+ fg('annotations_align_editor_and_renderer_styles') && rendererAnnotationStylesCommentHeightFix, baseOtherStyles, allowNestedHeaderLinks && alignedHeadingAnchorStyle, mediaSingleSharedStyle, tableSharedStyle, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && allowNestedHeaderLinks && rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks, fg('platform_editor_tables_numbered_column_correction') ? rendererTableColumnStyles : rendererTableColumnStylesOld, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && fg('platform_breakout_cls') ? responsiveBreakoutWidth : null, appearance === 'full-width' && fg('platform_breakout_cls') ? responsiveBreakoutWidthFullWidth : null],
1418
1425
  "data-testid": testId
1419
1426
  }, children)
1420
1427
  );
@@ -30,13 +30,13 @@ export function BreakoutSSRInlineScript(_ref) {
30
30
  // eslint-disable-next-line react/no-danger
31
31
  ,
32
32
  dangerouslySetInnerHTML: {
33
- __html: fg('platform-ssr-table-resize') ? createBreakoutInlineScript(id, true) : createBreakoutInlineScript(id)
33
+ __html: fg('platform-ssr-table-resize') || fg('platform_breakout_cls') ? createBreakoutInlineScript(id, true) : createBreakoutInlineScript(id)
34
34
  },
35
35
  "data-testid": "breakout-ssr-inline-script"
36
36
  });
37
37
  }
38
- export function createBreakoutInlineScript(id, optionalFlagArg) {
39
- return "\n\t (function(window){\n\t\tif(typeof window !== 'undefined' && window.__RENDERER_BYPASS_BREAKOUT_SSR__) {\n\t\t\treturn;\n\t\t}\n ".concat(breakoutInlineScriptContext, ";\n (").concat(applyBreakoutAfterSSR.toString(), ")(\"").concat(id, "\", breakoutConsts, ").concat(optionalFlagArg !== null && optionalFlagArg !== void 0 ? optionalFlagArg : false, ");\n })(window);\n");
38
+ export function createBreakoutInlineScript(id, shouldSkipScript) {
39
+ return "\n\t (function(window){\n\t\tif(typeof window !== 'undefined' && window.__RENDERER_BYPASS_BREAKOUT_SSR__) {\n\t\t\treturn;\n\t\t}\n ".concat(breakoutInlineScriptContext, ";\n (").concat(applyBreakoutAfterSSR.toString(), ")(\"").concat(id, "\", breakoutConsts, ").concat(shouldSkipScript !== null && shouldSkipScript !== void 0 ? shouldSkipScript : false, ");\n })(window);\n");
40
40
  }
41
41
  export var breakoutInlineScriptContext = "\n var breakoutConsts = ".concat(JSON.stringify(breakoutConsts), ";\n breakoutConsts.mapBreakpointToLayoutMaxWidth = ").concat(breakoutConsts.mapBreakpointToLayoutMaxWidth.toString(), ";\n breakoutConsts.getBreakpoint = ").concat(breakoutConsts.getBreakpoint.toString(), ";\n breakoutConsts.calcBreakoutWidth = ").concat(breakoutConsts.calcBreakoutWidth.toString(), ";\n breakoutConsts.calcBreakoutWithCustomWidth = ").concat(breakoutConsts.calcBreakoutWithCustomWidth.toString(), ";\n breakoutConsts.calcLineLength = ").concat(breakoutConsts.calcLineLength.toString(), ";\n breakoutConsts.calcWideWidth = ").concat(breakoutConsts.calcWideWidth.toString(), ";\n breakoutConsts.FullPagePadding = ").concat(FullPagePadding.toString(), ";\n");
42
42
 
@@ -92,6 +92,9 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
92
92
  if (shouldSkipBreakoutScript && node.classList.contains('pm-table-container')) {
93
93
  return;
94
94
  }
95
+ if (shouldSkipBreakoutScript && node.classList.contains('fabric-editor-breakout-mark')) {
96
+ return;
97
+ }
95
98
 
96
99
  // use breakout script for all other types of nodes
97
100
  if (node.classList.contains('pm-table-container') && mode === 'custom') {
@@ -53,7 +53,7 @@ import { PortalContext } from './PortalContext';
53
53
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
54
54
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
55
55
  var packageName = "@atlaskit/renderer";
56
- var packageVersion = "118.7.0";
56
+ var packageVersion = "118.7.1";
57
57
  var setAsQueryContainerStyles = css({
58
58
  containerName: 'ak-renderer-wrapper',
59
59
  containerType: 'inline-size'
@@ -12,6 +12,6 @@ declare global {
12
12
  export declare function BreakoutSSRInlineScript({ noOpSSRInlineScript }: {
13
13
  noOpSSRInlineScript: Boolean;
14
14
  }): React.JSX.Element | null;
15
- export declare function createBreakoutInlineScript(id: number, optionalFlagArg?: boolean): string;
15
+ export declare function createBreakoutInlineScript(id: number, shouldSkipScript?: boolean): string;
16
16
  export declare const breakoutInlineScriptContext: string;
17
17
  export declare const calcLineLength: () => number;
@@ -12,6 +12,6 @@ declare global {
12
12
  export declare function BreakoutSSRInlineScript({ noOpSSRInlineScript }: {
13
13
  noOpSSRInlineScript: Boolean;
14
14
  }): React.JSX.Element | null;
15
- export declare function createBreakoutInlineScript(id: number, optionalFlagArg?: boolean): string;
15
+ export declare function createBreakoutInlineScript(id: number, shouldSkipScript?: boolean): string;
16
16
  export declare const breakoutInlineScriptContext: string;
17
17
  export declare const calcLineLength: () => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "118.7.0",
3
+ "version": "119.0.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-next": "^11.1.0",
32
32
  "@atlaskit/button": "^23.2.0",
33
33
  "@atlaskit/code": "^17.2.0",
34
- "@atlaskit/editor-common": "^106.9.0",
34
+ "@atlaskit/editor-common": "^107.0.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.24.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -39,20 +39,20 @@
39
39
  "@atlaskit/editor-tables": "^2.9.0",
40
40
  "@atlaskit/emoji": "^69.3.0",
41
41
  "@atlaskit/feature-gate-js-client": "^5.3.0",
42
- "@atlaskit/icon": "^26.4.0",
42
+ "@atlaskit/icon": "^27.0.0",
43
43
  "@atlaskit/link": "^3.2.0",
44
44
  "@atlaskit/link-datasource": "^4.11.0",
45
45
  "@atlaskit/media-card": "^79.3.0",
46
- "@atlaskit/media-client": "^33.4.0",
46
+ "@atlaskit/media-client": "^34.0.0",
47
47
  "@atlaskit/media-client-react": "^4.1.0",
48
48
  "@atlaskit/media-common": "^12.2.0",
49
- "@atlaskit/media-filmstrip": "^50.1.0",
49
+ "@atlaskit/media-filmstrip": "^51.0.0",
50
50
  "@atlaskit/media-ui": "^28.3.0",
51
- "@atlaskit/media-viewer": "^52.2.0",
51
+ "@atlaskit/media-viewer": "^52.3.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
54
54
  "@atlaskit/react-ufo": "^3.13.0",
55
- "@atlaskit/smart-card": "^38.9.0",
55
+ "@atlaskit/smart-card": "^38.10.0",
56
56
  "@atlaskit/status": "^3.0.0",
57
57
  "@atlaskit/task-decision": "^19.2.0",
58
58
  "@atlaskit/theme": "^18.0.0",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@atlaskit/link-provider": "^3.3.0",
74
- "@atlaskit/media-core": "^36.1.0",
74
+ "@atlaskit/media-core": "^37.0.0",
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0"
77
77
  },
@@ -84,9 +84,9 @@
84
84
  "@atlaskit/link-provider": "^3.3.0",
85
85
  "@atlaskit/link-test-helpers": "^8.0.0",
86
86
  "@atlaskit/linking-common": "^9.0.0",
87
- "@atlaskit/media-core": "^36.1.0",
87
+ "@atlaskit/media-core": "^37.0.0",
88
88
  "@atlaskit/media-integration-test-helpers": "workspace:^",
89
- "@atlaskit/media-test-helpers": "^36.1.0",
89
+ "@atlaskit/media-test-helpers": "^37.0.0",
90
90
  "@atlaskit/mention": "^24.2.0",
91
91
  "@atlaskit/modal-dialog": "^14.2.0",
92
92
  "@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-d1445f2f74.patch",