@atlaskit/renderer 124.20.0 → 124.21.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,25 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 124.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`50cf7cca6bb76`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/50cf7cca6bb76) -
8
+ [ux] EDITOR-3896 update sync block border styles
9
+ - Updated dependencies
10
+
11
+ ## 124.21.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`810632761780a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/810632761780a) -
16
+ EDITOR-3937 Cleanup usage of confluence_content_mode_replace_dense_with_compact from the frontend
17
+ as this is now only needed in the Confluence backend
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 124.20.0
4
24
 
5
25
  ### Minor Changes
@@ -5,13 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = BodiedSyncBlock;
8
+ var _syncBlock = require("@atlaskit/editor-common/sync-block");
8
9
  var _react = _interopRequireDefault(require("react"));
9
10
  function BodiedSyncBlock(props) {
10
11
  var children = props.children,
11
12
  localId = props.localId,
12
13
  resourceId = props.resourceId;
13
14
  return /*#__PURE__*/_react.default.createElement("div", {
14
- "data-bodied-sync-block": true,
15
+ "data-bodied-sync-block": true
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
17
+ ,
18
+ className: _syncBlock.BodiedSyncBlockSharedCssClassName.renderer,
15
19
  "data-local-id": localId,
16
20
  "data-resource-id": resourceId
17
21
  }, children);
@@ -226,7 +226,7 @@ function Expand(_ref2) {
226
226
  return setFocused(false);
227
227
  }, []);
228
228
  var isCompactModeSupported = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
229
- var isCompact = rendererContentMode === ((0, _expValEquals.expValEquals)('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense') && isCompactModeSupported;
229
+ var isCompact = rendererContentMode === 'compact' && isCompactModeSupported;
230
230
  return (0, _react.jsx)(Container, {
231
231
  "data-testid": "expand-container-".concat(nodeType, "-").concat(id),
232
232
  "data-node-type": nodeType,
@@ -1624,12 +1624,15 @@ var denseStyles = (0, _react.css)((0, _defineProperty2.default)((0, _definePrope
1624
1624
  marginTop: RENDERER_LIST_DENSE_GAP
1625
1625
  }
1626
1626
  }));
1627
- var syncBlockStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.error), {
1628
- backgroundColor: "var(--ds-background-disabled, #17171708)",
1629
- borderRadius: "var(--ds-radius-small, 3px)"
1627
+ var syncBlockStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.renderer, ", .").concat(_syncBlock.BodiedSyncBlockSharedCssClassName.renderer, ", .").concat(_syncBlock.SyncBlockSharedCssClassName.error, ", .").concat(_syncBlock.SyncBlockSharedCssClassName.loading), {
1628
+ borderRadius: "var(--ds-radius-small, 3px)",
1629
+ marginTop: "var(--ds-space-150, 12px)",
1630
+ paddingTop: "var(--ds-space-075, 6px)",
1631
+ paddingBottom: "var(--ds-space-050, 4px)"
1632
+ }), ".".concat(_syncBlock.SyncBlockSharedCssClassName.error), {
1633
+ backgroundColor: "var(--ds-background-disabled, #17171708)"
1630
1634
  }), ".".concat(_syncBlock.SyncBlockSharedCssClassName.loading), {
1631
- boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)"),
1632
- borderRadius: "var(--ds-radius-small, 3px)"
1635
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
1633
1636
  }));
1634
1637
  var RendererStyleContainer = exports.RendererStyleContainer = function RendererStyleContainer(props) {
1635
1638
  var onClick = props.onClick,
@@ -1669,7 +1672,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
1669
1672
  '--ak-renderer-editor-font-heading-h6': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.heading.h6')),
1670
1673
  '--ak-renderer-editor-font-normal-text': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.body'))
1671
1674
  },
1672
- css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, !(0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') && telepointerStyles, (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (contentMode === 'compact' || contentMode === 'dense') && isCompactModeSupported && extensionStyle, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, (0, _expValEquals.expValEquals)('platform_editor_text_highlight_padding', 'isEnabled', true) &&
1675
+ css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, !(0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') && telepointerStyles, (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, contentMode === 'compact' && isCompactModeSupported && extensionStyle, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, (0, _expValEquals.expValEquals)('platform_editor_text_highlight_padding', 'isEnabled', true) &&
1673
1676
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
1674
1677
  textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
1675
1678
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -8,7 +8,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  var getBaseFontSize = exports.getBaseFontSize = function getBaseFontSize(appearance, contentMode) {
10
10
  if ((0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test')) {
11
- if (contentMode === ((0, _expValEquals.expValEquals)('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
11
+ if (contentMode === 'compact') {
12
12
  return _editorSharedStyles.akEditorFullPageDenseFontSize;
13
13
  }
14
14
  }
@@ -69,7 +69,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
69
69
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
70
70
  var TABLE_INFO_TIMEOUT = 10000;
71
71
  var packageName = "@atlaskit/renderer";
72
- var packageVersion = "124.19.0";
72
+ var packageVersion = "0.0.0-development";
73
73
  var setAsQueryContainerStyles = (0, _react2.css)({
74
74
  containerName: 'ak-renderer-wrapper',
75
75
  containerType: 'inline-size'
@@ -1,3 +1,4 @@
1
+ import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
1
2
  import React from 'react';
2
3
  export default function BodiedSyncBlock(props) {
3
4
  const {
@@ -6,7 +7,10 @@ export default function BodiedSyncBlock(props) {
6
7
  resourceId
7
8
  } = props;
8
9
  return /*#__PURE__*/React.createElement("div", {
9
- "data-bodied-sync-block": true,
10
+ "data-bodied-sync-block": true
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
12
+ ,
13
+ className: BodiedSyncBlockSharedCssClassName.renderer,
10
14
  "data-local-id": localId,
11
15
  "data-resource-id": resourceId
12
16
  }, children);
@@ -206,7 +206,7 @@ function Expand({
206
206
  const handleFocus = useCallback(() => setFocused(true), []);
207
207
  const handleBlur = useCallback(() => setFocused(false), []);
208
208
  const isCompactModeSupported = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
209
- const isCompact = rendererContentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense') && isCompactModeSupported;
209
+ const isCompact = rendererContentMode === 'compact' && isCompactModeSupported;
210
210
  return jsx(Container, {
211
211
  "data-testid": `expand-container-${nodeType}-${id}`,
212
212
  "data-node-type": nodeType,
@@ -28,7 +28,7 @@ import { editorUGCToken } from '@atlaskit/editor-common/ugc-tokens';
28
28
  import { getBaseFontSize } from './get-base-font-size';
29
29
  import { EmojiSharedCssClassName, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4 } from '@atlaskit/editor-common/emoji';
30
30
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
31
- import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
31
+ import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
32
32
  const wrappedMediaBreakoutPoint = 410;
33
33
  const TELEPOINTER_ID = 'ai-streaming-telepointer';
34
34
  const tableShadowWidth = 32;
@@ -2048,13 +2048,17 @@ const denseStyles = css({
2048
2048
  }
2049
2049
  });
2050
2050
  const syncBlockStyles = css({
2051
+ [`.${SyncBlockSharedCssClassName.renderer}, .${BodiedSyncBlockSharedCssClassName.renderer}, .${SyncBlockSharedCssClassName.error}, .${SyncBlockSharedCssClassName.loading}`]: {
2052
+ borderRadius: "var(--ds-radius-small, 3px)",
2053
+ marginTop: "var(--ds-space-150, 12px)",
2054
+ paddingTop: "var(--ds-space-075, 6px)",
2055
+ paddingBottom: "var(--ds-space-050, 4px)"
2056
+ },
2051
2057
  [`.${SyncBlockSharedCssClassName.error}`]: {
2052
- backgroundColor: "var(--ds-background-disabled, #17171708)",
2053
- borderRadius: "var(--ds-radius-small, 3px)"
2058
+ backgroundColor: "var(--ds-background-disabled, #17171708)"
2054
2059
  },
2055
2060
  [`.${SyncBlockSharedCssClassName.loading}`]: {
2056
- boxShadow: `0 0 0 1px ${"var(--ds-border, #0B120E24)"}`,
2057
- borderRadius: "var(--ds-radius-small, 3px)"
2061
+ boxShadow: `0 0 0 1px ${"var(--ds-border, #0B120E24)"}`
2058
2062
  }
2059
2063
  });
2060
2064
  export const RendererStyleContainer = props => {
@@ -2097,7 +2101,7 @@ export const RendererStyleContainer = props => {
2097
2101
  '--ak-renderer-editor-font-heading-h6': `${editorUGCToken('editor.font.heading.h6')}`,
2098
2102
  '--ak-renderer-editor-font-normal-text': `${editorUGCToken('editor.font.body')}`
2099
2103
  },
2100
- css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, !fg('platform_editor_ai_generic_prep_for_aifc_2') && telepointerStyles, fg('platform_editor_ai_generic_prep_for_aifc_2') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (contentMode === 'compact' || contentMode === 'dense') && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
2104
+ css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, !fg('platform_editor_ai_generic_prep_for_aifc_2') && telepointerStyles, fg('platform_editor_ai_generic_prep_for_aifc_2') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, contentMode === 'compact' && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
2101
2105
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
2102
2106
  textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
2103
2107
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -2,7 +2,7 @@ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
3
  export const getBaseFontSize = (appearance, contentMode) => {
4
4
  if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
5
- if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
5
+ if (contentMode === 'compact') {
6
6
  return akEditorFullPageDenseFontSize;
7
7
  }
8
8
  }
@@ -55,7 +55,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
55
55
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
56
56
  const TABLE_INFO_TIMEOUT = 10000;
57
57
  const packageName = "@atlaskit/renderer";
58
- const packageVersion = "124.19.0";
58
+ const packageVersion = "0.0.0-development";
59
59
  const setAsQueryContainerStyles = css({
60
60
  containerName: 'ak-renderer-wrapper',
61
61
  containerType: 'inline-size'
@@ -1,10 +1,14 @@
1
+ import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
1
2
  import React from 'react';
2
3
  export default function BodiedSyncBlock(props) {
3
4
  var children = props.children,
4
5
  localId = props.localId,
5
6
  resourceId = props.resourceId;
6
7
  return /*#__PURE__*/React.createElement("div", {
7
- "data-bodied-sync-block": true,
8
+ "data-bodied-sync-block": true
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
10
+ ,
11
+ className: BodiedSyncBlockSharedCssClassName.renderer,
8
12
  "data-local-id": localId,
9
13
  "data-resource-id": resourceId
10
14
  }, children);
@@ -217,7 +217,7 @@ function Expand(_ref2) {
217
217
  return setFocused(false);
218
218
  }, []);
219
219
  var isCompactModeSupported = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
220
- var isCompact = rendererContentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense') && isCompactModeSupported;
220
+ var isCompact = rendererContentMode === 'compact' && isCompactModeSupported;
221
221
  return jsx(Container, {
222
222
  "data-testid": "expand-container-".concat(nodeType, "-").concat(id),
223
223
  "data-node-type": nodeType,
@@ -30,7 +30,7 @@ import { editorUGCToken } from '@atlaskit/editor-common/ugc-tokens';
30
30
  import { getBaseFontSize } from './get-base-font-size';
31
31
  import { EmojiSharedCssClassName, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4 } from '@atlaskit/editor-common/emoji';
32
32
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
33
- import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
33
+ import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
34
34
  var wrappedMediaBreakoutPoint = 410;
35
35
  var TELEPOINTER_ID = 'ai-streaming-telepointer';
36
36
  var tableShadowWidth = 32;
@@ -1617,12 +1617,15 @@ var denseStyles = css(_defineProperty(_defineProperty(_defineProperty({}, ".".co
1617
1617
  marginTop: RENDERER_LIST_DENSE_GAP
1618
1618
  }
1619
1619
  }));
1620
- var syncBlockStyles = css(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.error), {
1621
- backgroundColor: "var(--ds-background-disabled, #17171708)",
1622
- borderRadius: "var(--ds-radius-small, 3px)"
1620
+ var syncBlockStyles = css(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.renderer, ", .").concat(BodiedSyncBlockSharedCssClassName.renderer, ", .").concat(SyncBlockSharedCssClassName.error, ", .").concat(SyncBlockSharedCssClassName.loading), {
1621
+ borderRadius: "var(--ds-radius-small, 3px)",
1622
+ marginTop: "var(--ds-space-150, 12px)",
1623
+ paddingTop: "var(--ds-space-075, 6px)",
1624
+ paddingBottom: "var(--ds-space-050, 4px)"
1625
+ }), ".".concat(SyncBlockSharedCssClassName.error), {
1626
+ backgroundColor: "var(--ds-background-disabled, #17171708)"
1623
1627
  }), ".".concat(SyncBlockSharedCssClassName.loading), {
1624
- boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)"),
1625
- borderRadius: "var(--ds-radius-small, 3px)"
1628
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
1626
1629
  }));
1627
1630
  export var RendererStyleContainer = function RendererStyleContainer(props) {
1628
1631
  var onClick = props.onClick,
@@ -1662,7 +1665,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
1662
1665
  '--ak-renderer-editor-font-heading-h6': "".concat(editorUGCToken('editor.font.heading.h6')),
1663
1666
  '--ak-renderer-editor-font-normal-text': "".concat(editorUGCToken('editor.font.body'))
1664
1667
  },
1665
- css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, !fg('platform_editor_ai_generic_prep_for_aifc_2') && telepointerStyles, fg('platform_editor_ai_generic_prep_for_aifc_2') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (contentMode === 'compact' || contentMode === 'dense') && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
1668
+ css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && rendererMaxWidthStyles, !fg('platform_editor_ai_generic_prep_for_aifc_2') && telepointerStyles, fg('platform_editor_ai_generic_prep_for_aifc_2') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, contentMode === 'compact' && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
1666
1669
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
1667
1670
  textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
1668
1671
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -2,7 +2,7 @@ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
3
  export var getBaseFontSize = function getBaseFontSize(appearance, contentMode) {
4
4
  if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
5
- if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
5
+ if (contentMode === 'compact') {
6
6
  return akEditorFullPageDenseFontSize;
7
7
  }
8
8
  }
@@ -60,7 +60,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
60
60
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
61
61
  var TABLE_INFO_TIMEOUT = 10000;
62
62
  var packageName = "@atlaskit/renderer";
63
- var packageVersion = "124.19.0";
63
+ var packageVersion = "0.0.0-development";
64
64
  var setAsQueryContainerStyles = css({
65
65
  containerName: 'ak-renderer-wrapper',
66
66
  containerType: 'inline-size'
@@ -1,5 +1,5 @@
1
1
  export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'max' | undefined;
2
- export type RendererContentMode = 'standard' | 'dense' | 'compact' | undefined;
2
+ export type RendererContentMode = 'standard' | 'compact' | undefined;
3
3
  /**
4
4
  * DO NOT USE THESE OPTIONS
5
5
  * These StickyHeaderConfig_DO_NOT_USE options are being TEMPORARILY added so Confluence can use Sticky Table Headers
@@ -1,5 +1,5 @@
1
1
  export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'max' | undefined;
2
- export type RendererContentMode = 'standard' | 'dense' | 'compact' | undefined;
2
+ export type RendererContentMode = 'standard' | 'compact' | undefined;
3
3
  /**
4
4
  * DO NOT USE THESE OPTIONS
5
5
  * These StickyHeaderConfig_DO_NOT_USE options are being TEMPORARILY added so Confluence can use Sticky Table Headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "124.20.0",
3
+ "version": "124.21.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -53,12 +53,12 @@
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
55
55
  "@atlaskit/react-ufo": "^4.16.0",
56
- "@atlaskit/smart-card": "^43.15.0",
56
+ "@atlaskit/smart-card": "^43.16.0",
57
57
  "@atlaskit/status": "^3.0.0",
58
58
  "@atlaskit/task-decision": "^19.2.0",
59
59
  "@atlaskit/theme": "^21.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^15.10.0",
61
- "@atlaskit/tokens": "^8.4.0",
60
+ "@atlaskit/tmp-editor-statsig": "^15.12.0",
61
+ "@atlaskit/tokens": "^8.5.0",
62
62
  "@atlaskit/tooltip": "^20.11.0",
63
63
  "@atlaskit/visually-hidden": "^3.0.0",
64
64
  "@babel/runtime": "^7.0.0",
@@ -71,7 +71,7 @@
71
71
  "uuid": "^3.1.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@atlaskit/editor-common": "^110.43.0",
74
+ "@atlaskit/editor-common": "^110.44.0",
75
75
  "@atlaskit/link-provider": "^4.0.0",
76
76
  "@atlaskit/media-core": "^37.0.0",
77
77
  "react": "^18.2.0",
@@ -88,7 +88,7 @@
88
88
  "@atlaskit/media-integration-test-helpers": "workspace:^",
89
89
  "@atlaskit/media-test-helpers": "^39.0.0",
90
90
  "@atlaskit/mention": "^24.4.0",
91
- "@atlaskit/modal-dialog": "^14.8.0",
91
+ "@atlaskit/modal-dialog": "^14.9.0",
92
92
  "@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
93
93
  "@atlaskit/profilecard": "^24.24.0",
94
94
  "@atlaskit/util-data-test": "^18.3.0",