@atlaskit/renderer 153.2.3 → 153.2.6
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 +21 -0
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +34 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +45 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +34 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 153.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`254eba3581b39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/254eba3581b39) -
|
|
8
|
+
Behind platform_editor_table_heading_cell_alignment, line up H3-H6 headings that start a table
|
|
9
|
+
cell with paragraph text in the same row
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 153.2.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 153.2.4
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 153.2.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1784,6 +1784,39 @@ var tableRendererHeaderStylesForTableCellOnly = (0, _react.css)((0, _definePrope
|
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
1786
|
}));
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Matches an element with no rendered block before it. Injected `<style>`, `<link>` and
|
|
1790
|
+
* `<template>` siblings (SSR) are ignored, as is the heading anchor `span`.
|
|
1791
|
+
*/
|
|
1792
|
+
var NO_PRECEDING_BLOCK = ':not(:not(style, link, template, span) ~ *)';
|
|
1793
|
+
var HEADING_WRAPPER_SELECTOR = ":is(.fabric-editor-block-mark, .renderer-heading-wrapper, .".concat(_consts2.RendererCssClassName.SORTABLE_COLUMN, ")");
|
|
1794
|
+
|
|
1795
|
+
/** A heading that starts a cell, directly or inside up to two wrappers (alignment mark, heading wrapper, sortable header). */
|
|
1796
|
+
var headingStartingCellSelector = function headingStartingCellSelector(heading) {
|
|
1797
|
+
return ["> ".concat(heading).concat(NO_PRECEDING_BLOCK), "> ".concat(HEADING_WRAPPER_SELECTOR).concat(NO_PRECEDING_BLOCK, " > ").concat(heading), "> ".concat(HEADING_WRAPPER_SELECTOR).concat(NO_PRECEDING_BLOCK, " > ").concat(HEADING_WRAPPER_SELECTOR).concat(NO_PRECEDING_BLOCK, " > ").concat(heading)].join(', ');
|
|
1798
|
+
};
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* H3-H6 line boxes are shorter than a body text line (1.714em), so in a top-aligned cell
|
|
1802
|
+
* their text sits higher than paragraph text in the same row. Padding a heading that starts
|
|
1803
|
+
* a cell by half the difference gives its first line a body-sized line box.
|
|
1804
|
+
*/
|
|
1805
|
+
var tableHeadingCellAlignmentStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles2.TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t\t.").concat(_styles2.TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t\t.").concat(_styles2.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
1806
|
+
'> tbody > tr > th, > tbody > tr > td': (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, headingStartingCellSelector('h3'), {
|
|
1807
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1808
|
+
paddingBlock: '0.125em'
|
|
1809
|
+
}), headingStartingCellSelector('h4'), {
|
|
1810
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1811
|
+
paddingBlock: '0.28571em'
|
|
1812
|
+
}), headingStartingCellSelector('h5'), {
|
|
1813
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1814
|
+
paddingBlock: '0.33333em'
|
|
1815
|
+
}), headingStartingCellSelector('h6'), {
|
|
1816
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1817
|
+
paddingBlock: '0.36364em'
|
|
1818
|
+
})
|
|
1819
|
+
}));
|
|
1787
1820
|
var tableRendererNestedPanelStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles2.TableSharedCssClassName.TABLE_CONTAINER, " .ak-editor-panel"), {
|
|
1788
1821
|
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)")
|
|
1789
1822
|
}));
|
|
@@ -2383,7 +2416,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
2383
2416
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2384
2417
|
(0, _fg.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, expandSsrMarginStyles,
|
|
2385
2418
|
// this should be placed after baseOtherStyles
|
|
2386
|
-
(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_important_in_render_ext') ? extensionAsInlineStyle : oldExtensionAsInlineStyle, [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && ((0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_border_overflow_fix') && roundedTableOuterBorderOverlayOverflowFixStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, (0, _fg.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && ((0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, syncBlockStyles, centerWrapperStyles, (0, _fg.fg)('platform_editor_breakout_spacing_in_renderer') && ruleBreakoutStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, hideExtensionStyles],
|
|
2419
|
+
(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_important_in_render_ext') ? extensionAsInlineStyle : oldExtensionAsInlineStyle, [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && ((0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_border_overflow_fix') && roundedTableOuterBorderOverlayOverflowFixStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, (0, _fg.fg)('platform_editor_table_heading_cell_alignment') && tableHeadingCellAlignmentStyles, (0, _fg.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && ((0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, syncBlockStyles, centerWrapperStyles, (0, _fg.fg)('platform_editor_breakout_spacing_in_renderer') && ruleBreakoutStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, hideExtensionStyles],
|
|
2387
2420
|
"data-testid": testId
|
|
2388
2421
|
}, children);
|
|
2389
2422
|
};
|
|
@@ -80,7 +80,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
80
80
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
81
81
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
82
82
|
var packageName = "@atlaskit/renderer";
|
|
83
|
-
var packageVersion = "153.2.
|
|
83
|
+
var packageVersion = "153.2.5";
|
|
84
84
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
85
85
|
containerName: 'ak-renderer-wrapper',
|
|
86
86
|
containerType: 'inline-size'
|
|
@@ -2211,6 +2211,50 @@ const tableRendererHeaderStylesForTableCellOnly = css({
|
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
2213
|
});
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* Matches an element with no rendered block before it. Injected `<style>`, `<link>` and
|
|
2217
|
+
* `<template>` siblings (SSR) are ignored, as is the heading anchor `span`.
|
|
2218
|
+
*/
|
|
2219
|
+
const NO_PRECEDING_BLOCK = ':not(:not(style, link, template, span) ~ *)';
|
|
2220
|
+
const HEADING_WRAPPER_SELECTOR = `:is(.fabric-editor-block-mark, .renderer-heading-wrapper, .${RendererCssClassName.SORTABLE_COLUMN})`;
|
|
2221
|
+
|
|
2222
|
+
/** A heading that starts a cell, directly or inside up to two wrappers (alignment mark, heading wrapper, sortable header). */
|
|
2223
|
+
const headingStartingCellSelector = heading => [`> ${heading}${NO_PRECEDING_BLOCK}`, `> ${HEADING_WRAPPER_SELECTOR}${NO_PRECEDING_BLOCK} > ${heading}`, `> ${HEADING_WRAPPER_SELECTOR}${NO_PRECEDING_BLOCK} > ${HEADING_WRAPPER_SELECTOR}${NO_PRECEDING_BLOCK} > ${heading}`].join(', ');
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* H3-H6 line boxes are shorter than a body text line (1.714em), so in a top-aligned cell
|
|
2227
|
+
* their text sits higher than paragraph text in the same row. Padding a heading that starts
|
|
2228
|
+
* a cell by half the difference gives its first line a body-sized line box.
|
|
2229
|
+
*/
|
|
2230
|
+
const tableHeadingCellAlignmentStyles = css({
|
|
2231
|
+
[`.${TableSharedCssClassName.TABLE_CONTAINER} > table,
|
|
2232
|
+
.${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table,
|
|
2233
|
+
.${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table`]: {
|
|
2234
|
+
'> tbody > tr > th, > tbody > tr > td': {
|
|
2235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
2236
|
+
[headingStartingCellSelector('h3')]: {
|
|
2237
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
2238
|
+
paddingBlock: '0.125em'
|
|
2239
|
+
},
|
|
2240
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
2241
|
+
[headingStartingCellSelector('h4')]: {
|
|
2242
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
2243
|
+
paddingBlock: '0.28571em'
|
|
2244
|
+
},
|
|
2245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
2246
|
+
[headingStartingCellSelector('h5')]: {
|
|
2247
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
2248
|
+
paddingBlock: '0.33333em'
|
|
2249
|
+
},
|
|
2250
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
2251
|
+
[headingStartingCellSelector('h6')]: {
|
|
2252
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
2253
|
+
paddingBlock: '0.36364em'
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
});
|
|
2214
2258
|
const tableRendererNestedPanelStyles = css({
|
|
2215
2259
|
[`.${TableSharedCssClassName.TABLE_CONTAINER} .ak-editor-panel`]: {
|
|
2216
2260
|
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`
|
|
@@ -3012,7 +3056,7 @@ export const RendererStyleContainer = props => {
|
|
|
3012
3056
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
3013
3057
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, expandSsrMarginStyles,
|
|
3014
3058
|
// this should be placed after baseOtherStyles
|
|
3015
|
-
isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? extensionAsInlineStyle : oldExtensionAsInlineStyle, [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_border_overflow_fix') && roundedTableOuterBorderOverlayOverflowFixStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && isExperimentEnabled('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, syncBlockStyles, centerWrapperStyles, fg('platform_editor_breakout_spacing_in_renderer') && ruleBreakoutStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, hideExtensionStyles],
|
|
3059
|
+
isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? extensionAsInlineStyle : oldExtensionAsInlineStyle, [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_border_overflow_fix') && roundedTableOuterBorderOverlayOverflowFixStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_table_heading_cell_alignment') && tableHeadingCellAlignmentStyles, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && isExperimentEnabled('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, syncBlockStyles, centerWrapperStyles, fg('platform_editor_breakout_spacing_in_renderer') && ruleBreakoutStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, hideExtensionStyles],
|
|
3016
3060
|
"data-testid": testId
|
|
3017
3061
|
}, children);
|
|
3018
3062
|
};
|
|
@@ -65,7 +65,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
65
65
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
66
66
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
67
67
|
const packageName = "@atlaskit/renderer";
|
|
68
|
-
const packageVersion = "153.2.
|
|
68
|
+
const packageVersion = "153.2.5";
|
|
69
69
|
const setAsQueryContainerStyles = css({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size'
|
|
@@ -1777,6 +1777,39 @@ var tableRendererHeaderStylesForTableCellOnly = css(_defineProperty({}, ".".conc
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
}));
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Matches an element with no rendered block before it. Injected `<style>`, `<link>` and
|
|
1783
|
+
* `<template>` siblings (SSR) are ignored, as is the heading anchor `span`.
|
|
1784
|
+
*/
|
|
1785
|
+
var NO_PRECEDING_BLOCK = ':not(:not(style, link, template, span) ~ *)';
|
|
1786
|
+
var HEADING_WRAPPER_SELECTOR = ":is(.fabric-editor-block-mark, .renderer-heading-wrapper, .".concat(RendererCssClassName.SORTABLE_COLUMN, ")");
|
|
1787
|
+
|
|
1788
|
+
/** A heading that starts a cell, directly or inside up to two wrappers (alignment mark, heading wrapper, sortable header). */
|
|
1789
|
+
var headingStartingCellSelector = function headingStartingCellSelector(heading) {
|
|
1790
|
+
return ["> ".concat(heading).concat(NO_PRECEDING_BLOCK), "> ".concat(HEADING_WRAPPER_SELECTOR).concat(NO_PRECEDING_BLOCK, " > ").concat(heading), "> ".concat(HEADING_WRAPPER_SELECTOR).concat(NO_PRECEDING_BLOCK, " > ").concat(HEADING_WRAPPER_SELECTOR).concat(NO_PRECEDING_BLOCK, " > ").concat(heading)].join(', ');
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* H3-H6 line boxes are shorter than a body text line (1.714em), so in a top-aligned cell
|
|
1795
|
+
* their text sits higher than paragraph text in the same row. Padding a heading that starts
|
|
1796
|
+
* a cell by half the difference gives its first line a body-sized line box.
|
|
1797
|
+
*/
|
|
1798
|
+
var tableHeadingCellAlignmentStyles = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
1799
|
+
'> tbody > tr > th, > tbody > tr > td': _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, headingStartingCellSelector('h3'), {
|
|
1800
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1801
|
+
paddingBlock: '0.125em'
|
|
1802
|
+
}), headingStartingCellSelector('h4'), {
|
|
1803
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1804
|
+
paddingBlock: '0.28571em'
|
|
1805
|
+
}), headingStartingCellSelector('h5'), {
|
|
1806
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1807
|
+
paddingBlock: '0.33333em'
|
|
1808
|
+
}), headingStartingCellSelector('h6'), {
|
|
1809
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1810
|
+
paddingBlock: '0.36364em'
|
|
1811
|
+
})
|
|
1812
|
+
}));
|
|
1780
1813
|
var tableRendererNestedPanelStyles = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " .ak-editor-panel"), {
|
|
1781
1814
|
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)")
|
|
1782
1815
|
}));
|
|
@@ -2376,7 +2409,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
2376
2409
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2377
2410
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, expandSsrMarginStyles,
|
|
2378
2411
|
// this should be placed after baseOtherStyles
|
|
2379
|
-
isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? extensionAsInlineStyle : oldExtensionAsInlineStyle, [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_border_overflow_fix') && roundedTableOuterBorderOverlayOverflowFixStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && isExperimentEnabled('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, syncBlockStyles, centerWrapperStyles, fg('platform_editor_breakout_spacing_in_renderer') && ruleBreakoutStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, hideExtensionStyles],
|
|
2412
|
+
isExperimentEnabled('platform_editor_remove_important_in_render_ext') ? extensionAsInlineStyle : oldExtensionAsInlineStyle, [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_border_overflow_fix') && roundedTableOuterBorderOverlayOverflowFixStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_table_heading_cell_alignment') && tableHeadingCellAlignmentStyles, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && isExperimentEnabled('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, syncBlockStyles, centerWrapperStyles, fg('platform_editor_breakout_spacing_in_renderer') && ruleBreakoutStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, hideExtensionStyles],
|
|
2380
2413
|
"data-testid": testId
|
|
2381
2414
|
}, children);
|
|
2382
2415
|
};
|
|
@@ -70,7 +70,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
70
70
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
71
71
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
72
72
|
var packageName = "@atlaskit/renderer";
|
|
73
|
-
var packageVersion = "153.2.
|
|
73
|
+
var packageVersion = "153.2.5";
|
|
74
74
|
var setAsQueryContainerStyles = css({
|
|
75
75
|
containerName: 'ak-renderer-wrapper',
|
|
76
76
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "153.2.
|
|
3
|
+
"version": "153.2.6",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"@atlaskit/analytics-namespaced-context": "^8.2.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^12.6.0",
|
|
42
42
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
43
|
-
"@atlaskit/button": "^25.
|
|
43
|
+
"@atlaskit/button": "^25.7.0",
|
|
44
44
|
"@atlaskit/code": "^20.0.0",
|
|
45
45
|
"@atlaskit/css": "^1.1.0",
|
|
46
46
|
"@atlaskit/editor-card-provider": "^8.2.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
48
48
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
49
49
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
50
|
-
"@atlaskit/editor-shared-styles": "^
|
|
50
|
+
"@atlaskit/editor-shared-styles": "^5.0.0",
|
|
51
51
|
"@atlaskit/editor-smart-link-draggable": "^1.2.0",
|
|
52
52
|
"@atlaskit/emoji": "^73.3.0",
|
|
53
|
-
"@atlaskit/feature-gate-js-client": "^
|
|
53
|
+
"@atlaskit/feature-gate-js-client": "^8.0.0",
|
|
54
54
|
"@atlaskit/icon": "^38.0.0",
|
|
55
55
|
"@atlaskit/link": "^5.1.0",
|
|
56
|
-
"@atlaskit/link-datasource": "^7.
|
|
56
|
+
"@atlaskit/link-datasource": "^7.11.0",
|
|
57
57
|
"@atlaskit/link-extractors": "^5.0.0",
|
|
58
58
|
"@atlaskit/linking-common": "^13.0.0",
|
|
59
59
|
"@atlaskit/media-card": "^82.2.0",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
69
69
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
70
70
|
"@atlaskit/react-ufo": "^8.3.0",
|
|
71
|
-
"@atlaskit/smart-card": "^46.
|
|
71
|
+
"@atlaskit/smart-card": "^46.12.0",
|
|
72
72
|
"@atlaskit/status": "^5.15.0",
|
|
73
73
|
"@atlaskit/task-decision": "^21.14.0",
|
|
74
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
75
|
-
"@atlaskit/tokens": "^20.
|
|
74
|
+
"@atlaskit/tmp-editor-statsig": "^250.0.0",
|
|
75
|
+
"@atlaskit/tokens": "^20.9.0",
|
|
76
76
|
"@atlaskit/tooltip": "^24.4.0",
|
|
77
77
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
78
78
|
"@babel/runtime": "^7.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"uuid": "^11.1.1"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@atlaskit/editor-common": "^134.
|
|
89
|
+
"@atlaskit/editor-common": "^134.4.0",
|
|
90
90
|
"@atlaskit/link-provider": "^6.0.0",
|
|
91
91
|
"@atlaskit/media-core": "^39.0.0",
|
|
92
92
|
"react": "^18.2.0 || ^19.2.0",
|