@atlaskit/renderer 137.4.4 → 137.4.5
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 +10 -0
- package/dist/cjs/react/marks/link-compiled.js +1 -1
- package/dist/cjs/react/marks/link-emotion.js +1 -1
- package/dist/cjs/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/cjs/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/cjs/react/nodes/panel-compiled.js +1 -1
- package/dist/cjs/react/nodes/panel-emotion.js +1 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +2 -2
- package/dist/es2019/react/marks/link-compiled.js +1 -1
- package/dist/es2019/react/marks/link-emotion.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/es2019/react/nodes/panel-compiled.js +1 -1
- package/dist/es2019/react/nodes/panel-emotion.js +1 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +2 -2
- package/dist/esm/react/marks/link-compiled.js +1 -1
- package/dist/esm/react/marks/link-emotion.js +1 -1
- package/dist/esm/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/esm/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/esm/react/nodes/panel-compiled.js +1 -1
- package/dist/esm/react/nodes/panel-emotion.js +1 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/esm/ui/Renderer/index.js +2 -2
- package/dist/types/react/marks/link-compiled.d.ts +1 -1
- package/dist/types/react/marks/link-emotion.d.ts +1 -1
- package/dist/types/react/nodes/layoutColumn-compiled.d.ts +1 -1
- package/dist/types/react/nodes/layoutColumn-emotion.d.ts +1 -1
- package/dist/types/react/nodes/panel-compiled.d.ts +1 -1
- package/dist/types/react/nodes/panel-emotion.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 137.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e29faa16e0c66`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e29faa16e0c66) -
|
|
8
|
+
Migrate selected editor experiment reads and tooling from tmp-editor-statsig to
|
|
9
|
+
platform-feature-experiments, including static CSS, floating ToC, insert-menu AI, table overflow
|
|
10
|
+
shadows, and collapsible headings.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 137.4.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
14
14
|
var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
/**
|
|
17
|
-
* Compiled branch of the `
|
|
17
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
18
18
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
19
19
|
*
|
|
20
20
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -13,7 +13,7 @@ var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
|
|
|
13
13
|
* @jsx jsx
|
|
14
14
|
*/
|
|
15
15
|
/**
|
|
16
|
-
* Emotion branch of the `
|
|
16
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
17
17
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
18
18
|
*
|
|
19
19
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* layoutColumn-compiled.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
/**
|
|
3
|
-
* Compiled branch of the `
|
|
3
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
5
5
|
*
|
|
6
6
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -15,7 +15,7 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
15
15
|
* @jsx jsx
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
|
-
* Emotion branch of the `
|
|
18
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
19
19
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
20
20
|
*
|
|
21
21
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -19,7 +19,7 @@ var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
|
19
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
20
|
var _excluded = ["backgroundColor", "children", "className", "hasIcon"];
|
|
21
21
|
/**
|
|
22
|
-
* Compiled branch of the `
|
|
22
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
23
23
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
24
24
|
*
|
|
25
25
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -20,7 +20,7 @@ var _excluded = ["backgroundColor", "hasIcon"];
|
|
|
20
20
|
* @jsx jsx
|
|
21
21
|
*/
|
|
22
22
|
/**
|
|
23
|
-
* Emotion branch of the `
|
|
23
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
24
24
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
25
25
|
*
|
|
26
26
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -2311,7 +2311,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
2311
2311
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2312
2312
|
(0, _fg.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
2313
2313
|
// this should be placed after baseOtherStyles
|
|
2314
|
-
(0, _expValEquals.expValEquals)('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && ((0, _expValEquals.expValEquals)('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), 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_q4_patch_7') && roundedTableLegacyClipPathStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_fit_to_content_patch_2') && tableContentModeExtensionContainmentStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, (0, _fg.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && (0,
|
|
2314
|
+
(0, _expValEquals.expValEquals)('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && ((0, _expValEquals.expValEquals)('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), 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_q4_patch_7') && roundedTableLegacyClipPathStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_fit_to_content_patch_2') && tableContentModeExtensionContainmentStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && 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, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (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))) && responsiveBreakoutWidthFullWidth, (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, contentMode === 'compact' ? scaledDenseUnicodeEmojiStylesNew : scaledUnicodeEmojiStylesNew, syncBlockStyles, centerWrapperStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, (0, _expValEquals.expValEquals)('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2315
2315
|
"data-testid": testId
|
|
2316
2316
|
}, children);
|
|
2317
2317
|
};
|
|
@@ -74,7 +74,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
74
74
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
75
75
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
76
76
|
var packageName = "@atlaskit/renderer";
|
|
77
|
-
var packageVersion = "137.4.
|
|
77
|
+
var packageVersion = "137.4.4";
|
|
78
78
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
79
79
|
containerName: 'ak-renderer-wrapper',
|
|
80
80
|
containerType: 'inline-size'
|
|
@@ -472,7 +472,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
472
472
|
timeZone: props.timeZone
|
|
473
473
|
});
|
|
474
474
|
}, [props.featureFlags, props.isTopLevelRenderer, createRendererContext, props.timeZone]);
|
|
475
|
-
var isCollapsibleHeadingsEnabled = props.allowCollapsibleHeadings === true && ['full-page', 'full-width', 'max'].includes(props.appearance || '') && rendererContext.isTopLevelRenderer && (0,
|
|
475
|
+
var isCollapsibleHeadingsEnabled = props.allowCollapsibleHeadings === true && ['full-page', 'full-width', 'max'].includes(props.appearance || '') && rendererContext.isTopLevelRenderer && (0, _isExperimentEnabled.isExperimentEnabled)('platform_renderer_collapsible_headings');
|
|
476
476
|
(0, _useScrollToBlock.useScrollToBlock)(editorRef, props.document, props.scrollToBlock);
|
|
477
477
|
var allowNestedTables = props.allowNestedTables;
|
|
478
478
|
var stableValidationOverrides = (0, _react.useMemo)(function () {
|
|
@@ -4,7 +4,7 @@ import "./link-compiled.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
/**
|
|
7
|
-
* Compiled branch of the `
|
|
7
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
8
8
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
9
9
|
*
|
|
10
10
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Emotion branch of the `
|
|
7
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
8
8
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
9
9
|
*
|
|
10
10
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* layoutColumn-compiled.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
/**
|
|
3
|
-
* Compiled branch of the `
|
|
3
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
5
5
|
*
|
|
6
6
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Emotion branch of the `
|
|
6
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./panel-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/**
|
|
6
|
-
* Compiled branch of the `
|
|
6
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Emotion branch of the `
|
|
7
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
8
8
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
9
9
|
*
|
|
10
10
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -2944,7 +2944,7 @@ export const RendererStyleContainer = props => {
|
|
|
2944
2944
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2945
2945
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
2946
2946
|
// this should be placed after baseOtherStyles
|
|
2947
|
-
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), 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_q4_patch_7') && roundedTableLegacyClipPathStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_fit_to_content_patch_2') && tableContentModeExtensionContainmentStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn &&
|
|
2947
|
+
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), 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_q4_patch_7') && roundedTableLegacyClipPathStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_fit_to_content_patch_2') && tableContentModeExtensionContainmentStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && 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, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, contentMode === 'compact' ? scaledDenseUnicodeEmojiStylesNew : scaledUnicodeEmojiStylesNew, syncBlockStyles, centerWrapperStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2948
2948
|
"data-testid": testId
|
|
2949
2949
|
}, children);
|
|
2950
2950
|
};
|
|
@@ -60,7 +60,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
60
60
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
61
61
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
62
62
|
const packageName = "@atlaskit/renderer";
|
|
63
|
-
const packageVersion = "137.4.
|
|
63
|
+
const packageVersion = "137.4.4";
|
|
64
64
|
const setAsQueryContainerStyles = css({
|
|
65
65
|
containerName: 'ak-renderer-wrapper',
|
|
66
66
|
containerType: 'inline-size'
|
|
@@ -461,7 +461,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
461
461
|
...createRendererContext(props.featureFlags, props.isTopLevelRenderer),
|
|
462
462
|
timeZone: props.timeZone
|
|
463
463
|
}), [props.featureFlags, props.isTopLevelRenderer, createRendererContext, props.timeZone]);
|
|
464
|
-
const isCollapsibleHeadingsEnabled = props.allowCollapsibleHeadings === true && ['full-page', 'full-width', 'max'].includes(props.appearance || '') && rendererContext.isTopLevelRenderer &&
|
|
464
|
+
const isCollapsibleHeadingsEnabled = props.allowCollapsibleHeadings === true && ['full-page', 'full-width', 'max'].includes(props.appearance || '') && rendererContext.isTopLevelRenderer && isExperimentEnabled('platform_renderer_collapsible_headings');
|
|
465
465
|
useScrollToBlock(editorRef, props.document, props.scrollToBlock);
|
|
466
466
|
const {
|
|
467
467
|
allowNestedTables
|
|
@@ -4,7 +4,7 @@ import "./link-compiled.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
/**
|
|
7
|
-
* Compiled branch of the `
|
|
7
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
8
8
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
9
9
|
*
|
|
10
10
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Emotion branch of the `
|
|
7
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
8
8
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
9
9
|
*
|
|
10
10
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* layoutColumn-compiled.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
/**
|
|
3
|
-
* Compiled branch of the `
|
|
3
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
5
5
|
*
|
|
6
6
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Emotion branch of the `
|
|
7
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
8
8
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
9
9
|
*
|
|
10
10
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -8,7 +8,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
/**
|
|
11
|
-
* Compiled branch of the `
|
|
11
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
12
12
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
13
13
|
*
|
|
14
14
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -6,7 +6,7 @@ var _excluded = ["backgroundColor", "hasIcon"];
|
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* Emotion branch of the `
|
|
9
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
10
10
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
11
11
|
*
|
|
12
12
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -2304,7 +2304,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
2304
2304
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2305
2305
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
2306
2306
|
// this should be placed after baseOtherStyles
|
|
2307
|
-
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), 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_q4_patch_7') && roundedTableLegacyClipPathStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_fit_to_content_patch_2') && tableContentModeExtensionContainmentStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn &&
|
|
2307
|
+
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), 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_q4_patch_7') && roundedTableLegacyClipPathStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_fit_to_content_patch_2') && tableContentModeExtensionContainmentStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && 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, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, contentMode === 'compact' ? scaledDenseUnicodeEmojiStylesNew : scaledUnicodeEmojiStylesNew, syncBlockStyles, centerWrapperStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2308
2308
|
"data-testid": testId
|
|
2309
2309
|
}, children);
|
|
2310
2310
|
};
|
|
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
65
65
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
66
66
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
67
67
|
var packageName = "@atlaskit/renderer";
|
|
68
|
-
var packageVersion = "137.4.
|
|
68
|
+
var packageVersion = "137.4.4";
|
|
69
69
|
var setAsQueryContainerStyles = css({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size'
|
|
@@ -463,7 +463,7 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
463
463
|
timeZone: props.timeZone
|
|
464
464
|
});
|
|
465
465
|
}, [props.featureFlags, props.isTopLevelRenderer, createRendererContext, props.timeZone]);
|
|
466
|
-
var isCollapsibleHeadingsEnabled = props.allowCollapsibleHeadings === true && ['full-page', 'full-width', 'max'].includes(props.appearance || '') && rendererContext.isTopLevelRenderer &&
|
|
466
|
+
var isCollapsibleHeadingsEnabled = props.allowCollapsibleHeadings === true && ['full-page', 'full-width', 'max'].includes(props.appearance || '') && rendererContext.isTopLevelRenderer && isExperimentEnabled('platform_renderer_collapsible_headings');
|
|
467
467
|
useScrollToBlock(editorRef, props.document, props.scrollToBlock);
|
|
468
468
|
var allowNestedTables = props.allowNestedTables;
|
|
469
469
|
var stableValidationOverrides = useMemo(function () {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Compiled branch of the `
|
|
6
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Emotion branch of the `
|
|
6
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `link.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Compiled branch of the `
|
|
6
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Emotion branch of the `
|
|
6
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Compiled branch of the `
|
|
6
|
+
* Compiled branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Emotion branch of the `
|
|
6
|
+
* Emotion branch of the `platform_editor_renderer_static_css` experiment.
|
|
7
7
|
* Used via `componentWithCondition` in `panel.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "137.4.
|
|
3
|
+
"version": "137.4.5",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@atlaskit/media-core": "^38.2.0",
|
|
107
107
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
108
108
|
"@atlaskit/media-test-helpers": "^42.4.0",
|
|
109
|
-
"@atlaskit/mention": "^
|
|
109
|
+
"@atlaskit/mention": "^28.0.0",
|
|
110
110
|
"@atlaskit/modal-dialog": "^16.6.0",
|
|
111
111
|
"@atlaskit/navigation-system": "^10.16.0",
|
|
112
112
|
"@atlaskit/primitives": "^22.5.0",
|