@atlaskit/renderer 127.0.0 → 127.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/react/nodes/extension.js +4 -4
- package/dist/cjs/react/nodes/table.js +1 -20
- package/dist/cjs/ui/Expand.js +1 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +17 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/extension.js +4 -4
- package/dist/es2019/react/nodes/table.js +1 -20
- package/dist/es2019/ui/Expand.js +1 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +17 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/extension.js +4 -4
- package/dist/esm/react/nodes/table.js +1 -20
- package/dist/esm/ui/Expand.js +1 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +17 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/docs/0-intro.tsx +11 -3
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 127.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`f444a0d3e2c0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f444a0d3e2c0b) -
|
|
8
|
+
[FFCLEANUP-79468] clean up platform_editor_dec_a11y_fixes feature gate
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 127.1.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`b5e671b3b051c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b5e671b3b051c) -
|
|
19
|
+
[ux] Fix inline node annotation color in Renderer to match text annotation color
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 127.0.0
|
|
4
26
|
|
|
5
27
|
### Major Changes
|
|
@@ -95,7 +95,7 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
95
95
|
"data-testid": "extension--wrapper",
|
|
96
96
|
"data-node-type": "extension"
|
|
97
97
|
}, (0, _react.jsx)("div", {
|
|
98
|
-
tabIndex:
|
|
98
|
+
tabIndex: options.tabIndex
|
|
99
99
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
100
100
|
,
|
|
101
101
|
className: "".concat(_consts.RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
@@ -124,7 +124,7 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
124
124
|
"data-layout": layout,
|
|
125
125
|
"data-local-id": localId
|
|
126
126
|
}, (0, _react.jsx)("div", {
|
|
127
|
-
tabIndex:
|
|
127
|
+
tabIndex: options.tabIndex
|
|
128
128
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
129
129
|
,
|
|
130
130
|
className: "".concat(_consts.RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
@@ -163,7 +163,7 @@ var Extension = function Extension(props) {
|
|
|
163
163
|
isTopLevel: path.length < 1,
|
|
164
164
|
handleRef: handleRef,
|
|
165
165
|
shadowClassNames: shadowClassNames,
|
|
166
|
-
tabIndex:
|
|
166
|
+
tabIndex: props.tabIndex,
|
|
167
167
|
rendererAppearance: props.rendererAppearance
|
|
168
168
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined, isInsideOfInlineExtension);
|
|
169
169
|
}
|
|
@@ -177,7 +177,7 @@ var Extension = function Extension(props) {
|
|
|
177
177
|
isTopLevel: path.length < 1,
|
|
178
178
|
handleRef: handleRef,
|
|
179
179
|
shadowClassNames: shadowClassNames,
|
|
180
|
-
tabIndex:
|
|
180
|
+
tabIndex: props.tabIndex,
|
|
181
181
|
rendererAppearance: props.rendererAppearance
|
|
182
182
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined, isInsideOfInlineExtension);
|
|
183
183
|
});
|
|
@@ -564,7 +564,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
564
564
|
rendererAppearance: rendererAppearance,
|
|
565
565
|
allowTableResizing: allowTableResizing,
|
|
566
566
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
567
|
-
}, [children && children[0]]),
|
|
567
|
+
}, [children && children[0]]), /*#__PURE__*/_react.default.createElement(TableWrapper, {
|
|
568
568
|
wrapperRef: this.wrapperRef,
|
|
569
569
|
onScroll: this.props.stickyHeaders ? this.onWrapperScrolled : undefined,
|
|
570
570
|
stickyHeaders: stickyHeaders,
|
|
@@ -583,25 +583,6 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
583
583
|
allowTableResizing: allowTableResizing,
|
|
584
584
|
isPresentational: isPresentational,
|
|
585
585
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
586
|
-
}, this.grabFirstRowRef(children))) : /*#__PURE__*/_react.default.createElement("div", {
|
|
587
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
588
|
-
className: _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER,
|
|
589
|
-
ref: this.wrapperRef,
|
|
590
|
-
onScroll: this.props.stickyHeaders && this.onWrapperScrolled
|
|
591
|
-
}, /*#__PURE__*/_react.default.createElement(_table.Table, {
|
|
592
|
-
innerRef: this.tableRef,
|
|
593
|
-
columnWidths: columnWidths,
|
|
594
|
-
layout: layout,
|
|
595
|
-
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
596
|
-
renderWidth: renderWidth,
|
|
597
|
-
tableNode: tableNode,
|
|
598
|
-
rendererAppearance: rendererAppearance,
|
|
599
|
-
isInsideOfBlockNode: isInsideOfBlockNode,
|
|
600
|
-
isInsideOfTable: isInsideOfTable,
|
|
601
|
-
isinsideMultiBodiedExtension: isinsideMultiBodiedExtension,
|
|
602
|
-
allowTableResizing: allowTableResizing,
|
|
603
|
-
isPresentational: isPresentational,
|
|
604
|
-
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
605
586
|
}, this.grabFirstRowRef(children))), isStickyScrollbarEnabled(this.props.rendererAppearance) && /*#__PURE__*/_react.default.createElement("div", {
|
|
606
587
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
607
588
|
className: _styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER,
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -296,7 +296,7 @@ function Expand(_ref2) {
|
|
|
296
296
|
}, (0, _react.jsx)(_ui.WidthProvider, null, (0, _react.jsx)("div", {
|
|
297
297
|
css: clearNextSiblingMarginTopStyle
|
|
298
298
|
}), (0, _platformFeatureFlags.fg)('hot-121622_lazy_load_expand_content') ? hasLoadedChildren || loadBodyContent ? (0, _react.jsx)(_react2.Suspense, {
|
|
299
|
-
fallback: (0, _react.jsx)("div", null,
|
|
299
|
+
fallback: (0, _react.jsx)("div", null, intl.formatMessage(_ui.expandMessages.loading))
|
|
300
300
|
}, (0, _react.jsx)(LazyChildren, null, children)) : null : children))));
|
|
301
301
|
}
|
|
302
302
|
var _default2 = exports.default = (0, _reactIntlNext.injectIntl)(Expand);
|
|
@@ -1783,7 +1783,7 @@ var columnLayoutResponsiveRendererStyles = (0, _react.css)({
|
|
|
1783
1783
|
gap: "var(--ds-space-400, 32px)"
|
|
1784
1784
|
})
|
|
1785
1785
|
});
|
|
1786
|
-
var
|
|
1786
|
+
var rendererAnnotationStylesOld = (0, _react.css)({
|
|
1787
1787
|
"& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
|
|
1788
1788
|
background: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
|
|
1789
1789
|
borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")")),
|
|
@@ -1795,6 +1795,21 @@ var rendererAnnotationStyles = (0, _react.css)({
|
|
|
1795
1795
|
paddingLeft: "var(--ds-space-025, 2px)"
|
|
1796
1796
|
}
|
|
1797
1797
|
});
|
|
1798
|
+
var rendererAnnotationStyles = (0, _react.css)({
|
|
1799
|
+
"& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark]": {
|
|
1800
|
+
background: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
|
|
1801
|
+
borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")")),
|
|
1802
|
+
cursor: 'pointer',
|
|
1803
|
+
paddingTop: "var(--ds-space-050, 4px)",
|
|
1804
|
+
paddingRight: "var(--ds-space-025, 2px)",
|
|
1805
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
1806
|
+
paddingLeft: "var(--ds-space-025, 2px)"
|
|
1807
|
+
},
|
|
1808
|
+
"& [data-mark-type='annotation'][data-mark-annotation-state='active'][data-has-focus='true'] [data-annotation-mark]": {
|
|
1809
|
+
background: "var(--ds-background-accent-yellow-subtlest-pressed, #EFDD4E)",
|
|
1810
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")")
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1798
1813
|
var rendererAnnotationStylesCommentHeightFix = (0, _react.css)({
|
|
1799
1814
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
1800
1815
|
'& [data-annotation-draft-mark][data-annotation-inline-node]': {
|
|
@@ -1977,7 +1992,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
1977
1992
|
},
|
|
1978
1993
|
css: [(0, _expValEquals.expValEquals)('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? hideHeadingCopyLinkWrapperStyles : hideHeadingCopyLinkWrapperStylesDuplicateAnchor, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && ((0, _expValEquals.expValEquals)('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererFullWidthStyles : oldRendererFullWidthStyles), (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)) && ((0, _expValEquals.expValEquals)('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, 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, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles,
|
|
1979
1994
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
1980
|
-
textHighlightPaddingStyles, tasksAndDecisionsStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, 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,
|
|
1995
|
+
textHighlightPaddingStyles, tasksAndDecisionsStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && ((0, _expValEquals.expValEquals)('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
1981
1996
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
1982
1997
|
(0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, !(0, _expValEquals.expValEquals)('platform_editor_flex_based_centering', 'isEnabled', true) && extensionCenterAlignLegacyStyles,
|
|
1983
1998
|
// this should be placed after baseOtherStyles
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "
|
|
74
|
+
var packageVersion = "127.1.0";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -76,7 +76,7 @@ export const renderExtension = (content, layout, options = {}, removeOverflow, e
|
|
|
76
76
|
"data-testid": "extension--wrapper",
|
|
77
77
|
"data-node-type": "extension"
|
|
78
78
|
}, jsx("div", {
|
|
79
|
-
tabIndex:
|
|
79
|
+
tabIndex: options.tabIndex
|
|
80
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
81
81
|
,
|
|
82
82
|
className: `${RendererCssClassName.EXTENSION_INNER_WRAPPER} ${overflowContainerClass}`,
|
|
@@ -106,7 +106,7 @@ export const renderExtension = (content, layout, options = {}, removeOverflow, e
|
|
|
106
106
|
"data-layout": layout,
|
|
107
107
|
"data-local-id": localId
|
|
108
108
|
}, jsx("div", {
|
|
109
|
-
tabIndex:
|
|
109
|
+
tabIndex: options.tabIndex
|
|
110
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
111
111
|
,
|
|
112
112
|
className: `${RendererCssClassName.EXTENSION_INNER_WRAPPER} ${overflowContainerClass}`,
|
|
@@ -146,7 +146,7 @@ const Extension = props => {
|
|
|
146
146
|
isTopLevel: path.length < 1,
|
|
147
147
|
handleRef,
|
|
148
148
|
shadowClassNames,
|
|
149
|
-
tabIndex:
|
|
149
|
+
tabIndex: props.tabIndex,
|
|
150
150
|
rendererAppearance: props.rendererAppearance
|
|
151
151
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined, isInsideOfInlineExtension);
|
|
152
152
|
}
|
|
@@ -160,7 +160,7 @@ const Extension = props => {
|
|
|
160
160
|
isTopLevel: path.length < 1,
|
|
161
161
|
handleRef,
|
|
162
162
|
shadowClassNames,
|
|
163
|
-
tabIndex:
|
|
163
|
+
tabIndex: props.tabIndex,
|
|
164
164
|
rendererAppearance: props.rendererAppearance
|
|
165
165
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined, isInsideOfInlineExtension);
|
|
166
166
|
});
|
|
@@ -507,7 +507,7 @@ export class TableContainer extends React.Component {
|
|
|
507
507
|
rendererAppearance: rendererAppearance,
|
|
508
508
|
allowTableResizing: allowTableResizing,
|
|
509
509
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
510
|
-
}, [children && children[0]]),
|
|
510
|
+
}, [children && children[0]]), /*#__PURE__*/React.createElement(TableWrapper, {
|
|
511
511
|
wrapperRef: this.wrapperRef,
|
|
512
512
|
onScroll: this.props.stickyHeaders ? this.onWrapperScrolled : undefined,
|
|
513
513
|
stickyHeaders: stickyHeaders,
|
|
@@ -526,25 +526,6 @@ export class TableContainer extends React.Component {
|
|
|
526
526
|
allowTableResizing: allowTableResizing,
|
|
527
527
|
isPresentational: isPresentational,
|
|
528
528
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
529
|
-
}, this.grabFirstRowRef(children))) : /*#__PURE__*/React.createElement("div", {
|
|
530
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
531
|
-
className: TableSharedCssClassName.TABLE_NODE_WRAPPER,
|
|
532
|
-
ref: this.wrapperRef,
|
|
533
|
-
onScroll: this.props.stickyHeaders && this.onWrapperScrolled
|
|
534
|
-
}, /*#__PURE__*/React.createElement(Table, {
|
|
535
|
-
innerRef: this.tableRef,
|
|
536
|
-
columnWidths: columnWidths,
|
|
537
|
-
layout: layout,
|
|
538
|
-
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
539
|
-
renderWidth: renderWidth,
|
|
540
|
-
tableNode: tableNode,
|
|
541
|
-
rendererAppearance: rendererAppearance,
|
|
542
|
-
isInsideOfBlockNode: isInsideOfBlockNode,
|
|
543
|
-
isInsideOfTable: isInsideOfTable,
|
|
544
|
-
isinsideMultiBodiedExtension: isinsideMultiBodiedExtension,
|
|
545
|
-
allowTableResizing: allowTableResizing,
|
|
546
|
-
isPresentational: isPresentational,
|
|
547
|
-
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
548
529
|
}, this.grabFirstRowRef(children))), isStickyScrollbarEnabled(this.props.rendererAppearance) && /*#__PURE__*/React.createElement("div", {
|
|
549
530
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
550
531
|
className: TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER,
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -276,7 +276,7 @@ function Expand({
|
|
|
276
276
|
}, jsx(WidthProvider, null, jsx("div", {
|
|
277
277
|
css: clearNextSiblingMarginTopStyle
|
|
278
278
|
}), fg('hot-121622_lazy_load_expand_content') ? hasLoadedChildren || loadBodyContent ? jsx(Suspense, {
|
|
279
|
-
fallback: jsx("div", null,
|
|
279
|
+
fallback: jsx("div", null, intl.formatMessage(expandMessages.loading))
|
|
280
280
|
}, jsx(LazyChildren, null, children)) : null : children))));
|
|
281
281
|
}
|
|
282
282
|
export default injectIntl(Expand);
|
|
@@ -2293,7 +2293,7 @@ const columnLayoutResponsiveRendererStyles = css({
|
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
2295
2295
|
});
|
|
2296
|
-
const
|
|
2296
|
+
const rendererAnnotationStylesOld = css({
|
|
2297
2297
|
"& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
|
|
2298
2298
|
background: `var(--ds-background-accent-yellow-subtler, ${Y75})`,
|
|
2299
2299
|
borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid ${`var(--ds-border-accent-yellow, ${Y300})`}`,
|
|
@@ -2305,6 +2305,21 @@ const rendererAnnotationStyles = css({
|
|
|
2305
2305
|
paddingLeft: "var(--ds-space-025, 2px)"
|
|
2306
2306
|
}
|
|
2307
2307
|
});
|
|
2308
|
+
const rendererAnnotationStyles = css({
|
|
2309
|
+
"& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark]": {
|
|
2310
|
+
background: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
|
|
2311
|
+
borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid ${`var(--ds-border-accent-yellow, ${Y300})`}`,
|
|
2312
|
+
cursor: 'pointer',
|
|
2313
|
+
paddingTop: "var(--ds-space-050, 4px)",
|
|
2314
|
+
paddingRight: "var(--ds-space-025, 2px)",
|
|
2315
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
2316
|
+
paddingLeft: "var(--ds-space-025, 2px)"
|
|
2317
|
+
},
|
|
2318
|
+
"& [data-mark-type='annotation'][data-mark-annotation-state='active'][data-has-focus='true'] [data-annotation-mark]": {
|
|
2319
|
+
background: "var(--ds-background-accent-yellow-subtlest-pressed, #EFDD4E)",
|
|
2320
|
+
boxShadow: `var(--ds-shadow-overlay, ${`1px 2px 3px ${N60A}, -1px 2px 3px ${N60A}`})`
|
|
2321
|
+
}
|
|
2322
|
+
});
|
|
2308
2323
|
const rendererAnnotationStylesCommentHeightFix = css({
|
|
2309
2324
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
2310
2325
|
'& [data-annotation-draft-mark][data-annotation-inline-node]': {
|
|
@@ -2520,7 +2535,7 @@ export const RendererStyleContainer = props => {
|
|
|
2520
2535
|
},
|
|
2521
2536
|
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? hideHeadingCopyLinkWrapperStyles : hideHeadingCopyLinkWrapperStylesDuplicateAnchor, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererFullWidthStyles : oldRendererFullWidthStyles), (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)) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, 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, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles,
|
|
2522
2537
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2523
|
-
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
|
|
2538
|
+
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2524
2539
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2525
2540
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, !expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) && extensionCenterAlignLegacyStyles,
|
|
2526
2541
|
// this should be placed after baseOtherStyles
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "
|
|
60
|
+
const packageVersion = "127.1.0";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -87,7 +87,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
87
87
|
"data-testid": "extension--wrapper",
|
|
88
88
|
"data-node-type": "extension"
|
|
89
89
|
}, jsx("div", {
|
|
90
|
-
tabIndex:
|
|
90
|
+
tabIndex: options.tabIndex
|
|
91
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
92
92
|
,
|
|
93
93
|
className: "".concat(RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
@@ -116,7 +116,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
116
116
|
"data-layout": layout,
|
|
117
117
|
"data-local-id": localId
|
|
118
118
|
}, jsx("div", {
|
|
119
|
-
tabIndex:
|
|
119
|
+
tabIndex: options.tabIndex
|
|
120
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
121
121
|
,
|
|
122
122
|
className: "".concat(RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
@@ -155,7 +155,7 @@ var Extension = function Extension(props) {
|
|
|
155
155
|
isTopLevel: path.length < 1,
|
|
156
156
|
handleRef: handleRef,
|
|
157
157
|
shadowClassNames: shadowClassNames,
|
|
158
|
-
tabIndex:
|
|
158
|
+
tabIndex: props.tabIndex,
|
|
159
159
|
rendererAppearance: props.rendererAppearance
|
|
160
160
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined, isInsideOfInlineExtension);
|
|
161
161
|
}
|
|
@@ -169,7 +169,7 @@ var Extension = function Extension(props) {
|
|
|
169
169
|
isTopLevel: path.length < 1,
|
|
170
170
|
handleRef: handleRef,
|
|
171
171
|
shadowClassNames: shadowClassNames,
|
|
172
|
-
tabIndex:
|
|
172
|
+
tabIndex: props.tabIndex,
|
|
173
173
|
rendererAppearance: props.rendererAppearance
|
|
174
174
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined, isInsideOfInlineExtension);
|
|
175
175
|
});
|
|
@@ -557,7 +557,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
557
557
|
rendererAppearance: rendererAppearance,
|
|
558
558
|
allowTableResizing: allowTableResizing,
|
|
559
559
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
560
|
-
}, [children && children[0]]),
|
|
560
|
+
}, [children && children[0]]), /*#__PURE__*/React.createElement(TableWrapper, {
|
|
561
561
|
wrapperRef: this.wrapperRef,
|
|
562
562
|
onScroll: this.props.stickyHeaders ? this.onWrapperScrolled : undefined,
|
|
563
563
|
stickyHeaders: stickyHeaders,
|
|
@@ -576,25 +576,6 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
576
576
|
allowTableResizing: allowTableResizing,
|
|
577
577
|
isPresentational: isPresentational,
|
|
578
578
|
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
579
|
-
}, this.grabFirstRowRef(children))) : /*#__PURE__*/React.createElement("div", {
|
|
580
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
581
|
-
className: TableSharedCssClassName.TABLE_NODE_WRAPPER,
|
|
582
|
-
ref: this.wrapperRef,
|
|
583
|
-
onScroll: this.props.stickyHeaders && this.onWrapperScrolled
|
|
584
|
-
}, /*#__PURE__*/React.createElement(Table, {
|
|
585
|
-
innerRef: this.tableRef,
|
|
586
|
-
columnWidths: columnWidths,
|
|
587
|
-
layout: layout,
|
|
588
|
-
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
589
|
-
renderWidth: renderWidth,
|
|
590
|
-
tableNode: tableNode,
|
|
591
|
-
rendererAppearance: rendererAppearance,
|
|
592
|
-
isInsideOfBlockNode: isInsideOfBlockNode,
|
|
593
|
-
isInsideOfTable: isInsideOfTable,
|
|
594
|
-
isinsideMultiBodiedExtension: isinsideMultiBodiedExtension,
|
|
595
|
-
allowTableResizing: allowTableResizing,
|
|
596
|
-
isPresentational: isPresentational,
|
|
597
|
-
allowFixedColumnWidthOption: allowFixedColumnWidthOption
|
|
598
579
|
}, this.grabFirstRowRef(children))), isStickyScrollbarEnabled(this.props.rendererAppearance) && /*#__PURE__*/React.createElement("div", {
|
|
599
580
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
600
581
|
className: TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER,
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -285,7 +285,7 @@ function Expand(_ref2) {
|
|
|
285
285
|
}, jsx(WidthProvider, null, jsx("div", {
|
|
286
286
|
css: clearNextSiblingMarginTopStyle
|
|
287
287
|
}), fg('hot-121622_lazy_load_expand_content') ? hasLoadedChildren || loadBodyContent ? jsx(Suspense, {
|
|
288
|
-
fallback: jsx("div", null,
|
|
288
|
+
fallback: jsx("div", null, intl.formatMessage(expandMessages.loading))
|
|
289
289
|
}, jsx(LazyChildren, null, children)) : null : children))));
|
|
290
290
|
}
|
|
291
291
|
export default injectIntl(Expand);
|
|
@@ -1776,7 +1776,7 @@ var columnLayoutResponsiveRendererStyles = css({
|
|
|
1776
1776
|
gap: "var(--ds-space-400, 32px)"
|
|
1777
1777
|
})
|
|
1778
1778
|
});
|
|
1779
|
-
var
|
|
1779
|
+
var rendererAnnotationStylesOld = css({
|
|
1780
1780
|
"& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
|
|
1781
1781
|
background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
|
|
1782
1782
|
borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")")),
|
|
@@ -1788,6 +1788,21 @@ var rendererAnnotationStyles = css({
|
|
|
1788
1788
|
paddingLeft: "var(--ds-space-025, 2px)"
|
|
1789
1789
|
}
|
|
1790
1790
|
});
|
|
1791
|
+
var rendererAnnotationStyles = css({
|
|
1792
|
+
"& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark]": {
|
|
1793
|
+
background: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
|
|
1794
|
+
borderBottom: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")")),
|
|
1795
|
+
cursor: 'pointer',
|
|
1796
|
+
paddingTop: "var(--ds-space-050, 4px)",
|
|
1797
|
+
paddingRight: "var(--ds-space-025, 2px)",
|
|
1798
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
1799
|
+
paddingLeft: "var(--ds-space-025, 2px)"
|
|
1800
|
+
},
|
|
1801
|
+
"& [data-mark-type='annotation'][data-mark-annotation-state='active'][data-has-focus='true'] [data-annotation-mark]": {
|
|
1802
|
+
background: "var(--ds-background-accent-yellow-subtlest-pressed, #EFDD4E)",
|
|
1803
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")")
|
|
1804
|
+
}
|
|
1805
|
+
});
|
|
1791
1806
|
var rendererAnnotationStylesCommentHeightFix = css({
|
|
1792
1807
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
1793
1808
|
'& [data-annotation-draft-mark][data-annotation-inline-node]': {
|
|
@@ -1970,7 +1985,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
1970
1985
|
},
|
|
1971
1986
|
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? hideHeadingCopyLinkWrapperStyles : hideHeadingCopyLinkWrapperStylesDuplicateAnchor, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererFullWidthStyles : oldRendererFullWidthStyles), (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)) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, 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, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles,
|
|
1972
1987
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
1973
|
-
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
|
|
1988
|
+
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
1974
1989
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
1975
1990
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, !expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) && extensionCenterAlignLegacyStyles,
|
|
1976
1991
|
// this should be placed after baseOtherStyles
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "
|
|
65
|
+
var packageVersion = "127.1.0";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
package/docs/0-intro.tsx
CHANGED
|
@@ -12,8 +12,11 @@ This component provides a renderer for ADF documents.
|
|
|
12
12
|
Use the component in your React app as follows:
|
|
13
13
|
|
|
14
14
|
${code`
|
|
15
|
+
import { createRoot } from 'react-dom/client';
|
|
15
16
|
import { ReactRenderer } from '@atlaskit/renderer';
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
const root = createRoot(container);
|
|
19
|
+
root.render(<ReactRenderer document={DOCUMENT} />);
|
|
17
20
|
`}
|
|
18
21
|
|
|
19
22
|
## Example
|
|
@@ -102,13 +105,15 @@ You will need to use a transformer to convert your own storage format into the A
|
|
|
102
105
|
We have provided helper utility to simplify this process:
|
|
103
106
|
|
|
104
107
|
${code`
|
|
108
|
+
import { createRoot } from 'react-dom/client';
|
|
105
109
|
import { BitbucketTransformer } from '@atlaskit/editor-bitbucket-transformer';
|
|
106
110
|
import { ReactRenderer, ADFEncoder } from '@atlaskit/renderer';
|
|
107
111
|
|
|
108
112
|
const adfEncoder = new ADFEncoder(schema => new BitbucketTransformer(schema));
|
|
109
113
|
const document = adfEncoder.encode(DOCUMENT);
|
|
110
114
|
|
|
111
|
-
|
|
115
|
+
const root = createRoot(container);
|
|
116
|
+
root.render(<ReactRenderer document={document} />);
|
|
112
117
|
`}
|
|
113
118
|
|
|
114
119
|
## Polyfills
|
|
@@ -124,8 +129,11 @@ The props \`truncated\`, \`maxHeight\` and \`fadeOutHeight\` are all optional. \
|
|
|
124
129
|
and \`fadeOutHeight\` will default to 30px unless defined.
|
|
125
130
|
|
|
126
131
|
${code`
|
|
132
|
+
import { createRoot } from 'react-dom/client';
|
|
127
133
|
import { ReactRenderer } from '@atlaskit/renderer';
|
|
128
|
-
|
|
134
|
+
|
|
135
|
+
const root = createRoot(container);
|
|
136
|
+
root.render(<ReactRenderer document={DOCUMENT} truncated={true} maxHeight={70} fadeOutHeight={30} />);
|
|
129
137
|
`}
|
|
130
138
|
|
|
131
139
|
${(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "127.
|
|
3
|
+
"version": "127.2.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/status": "^3.1.0",
|
|
58
58
|
"@atlaskit/task-decision": "^19.3.0",
|
|
59
59
|
"@atlaskit/theme": "^22.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^34.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^34.4.0",
|
|
61
61
|
"@atlaskit/tokens": "^11.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.14.0",
|
|
63
63
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^111.
|
|
74
|
+
"@atlaskit/editor-common": "^111.30.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.2.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
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.40.0",
|
|
94
94
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
95
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
95
|
+
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
96
96
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
97
97
|
"@atlassian/testing-library": "^0.4.0",
|
|
98
98
|
"@testing-library/react": "^16.3.0",
|
|
@@ -226,9 +226,6 @@
|
|
|
226
226
|
"platform_fix_macro_renders_in_layouts": {
|
|
227
227
|
"type": "boolean"
|
|
228
228
|
},
|
|
229
|
-
"platform_editor_dec_a11y_fixes": {
|
|
230
|
-
"type": "boolean"
|
|
231
|
-
},
|
|
232
229
|
"platform_editor_fix_missing_task_id": {
|
|
233
230
|
"type": "boolean"
|
|
234
231
|
},
|