@atlaskit/renderer 109.29.4 → 109.29.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 +17 -0
- package/dist/cjs/react/marks/alignment.js +3 -1
- package/dist/cjs/react/marks/backgroundColor.js +6 -2
- package/dist/cjs/react/marks/breakout.js +3 -1
- package/dist/cjs/react/marks/code.js +3 -1
- package/dist/cjs/react/marks/indentation.js +1 -0
- package/dist/cjs/react/marks/strike.js +9 -5
- package/dist/cjs/react/marks/textColor.js +6 -2
- package/dist/cjs/react/nodes/blockCard.js +1 -0
- package/dist/cjs/react/nodes/bulletList.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +3 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +13 -10
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -0
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +6 -2
- package/dist/cjs/react/nodes/date.js +12 -7
- package/dist/cjs/react/nodes/doc.js +4 -1
- package/dist/cjs/react/nodes/embedCard.js +1 -0
- package/dist/cjs/react/nodes/extension.js +3 -1
- package/dist/cjs/react/nodes/heading-anchor.js +7 -4
- package/dist/cjs/react/nodes/mediaGroup.js +1 -0
- package/dist/cjs/react/nodes/multiBodiedExtension.js +6 -1
- package/dist/cjs/react/nodes/orderedList.js +1 -0
- package/dist/cjs/react/nodes/panel.js +4 -1
- package/dist/cjs/react/nodes/table/colgroup.js +9 -4
- package/dist/cjs/react/nodes/table/sticky.js +8 -2
- package/dist/cjs/react/nodes/table.js +16 -5
- package/dist/cjs/react/nodes/tableCell.js +6 -1
- package/dist/cjs/react/nodes/tableRow.js +4 -1
- package/dist/cjs/react/nodes/unknownBlock.js +1 -0
- package/dist/cjs/ui/ExtensionRenderer.js +7 -4
- package/dist/cjs/ui/Renderer/index.js +4 -2
- package/dist/cjs/ui/Renderer/style.js +4 -5
- package/dist/es2019/react/marks/alignment.js +3 -1
- package/dist/es2019/react/marks/backgroundColor.js +6 -2
- package/dist/es2019/react/marks/breakout.js +3 -1
- package/dist/es2019/react/marks/code.js +3 -1
- package/dist/es2019/react/marks/indentation.js +1 -0
- package/dist/es2019/react/marks/strike.js +9 -5
- package/dist/es2019/react/marks/textColor.js +6 -2
- package/dist/es2019/react/nodes/blockCard.js +1 -0
- package/dist/es2019/react/nodes/bulletList.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +13 -10
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -0
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +6 -2
- package/dist/es2019/react/nodes/date.js +12 -7
- package/dist/es2019/react/nodes/doc.js +4 -1
- package/dist/es2019/react/nodes/embedCard.js +1 -0
- package/dist/es2019/react/nodes/extension.js +3 -1
- package/dist/es2019/react/nodes/heading-anchor.js +7 -4
- package/dist/es2019/react/nodes/mediaGroup.js +1 -0
- package/dist/es2019/react/nodes/multiBodiedExtension.js +6 -1
- package/dist/es2019/react/nodes/orderedList.js +1 -0
- package/dist/es2019/react/nodes/panel.js +4 -1
- package/dist/es2019/react/nodes/table/colgroup.js +5 -1
- package/dist/es2019/react/nodes/table/sticky.js +8 -2
- package/dist/es2019/react/nodes/table.js +17 -6
- package/dist/es2019/react/nodes/tableCell.js +6 -1
- package/dist/es2019/react/nodes/tableRow.js +4 -1
- package/dist/es2019/react/nodes/unknownBlock.js +1 -0
- package/dist/es2019/ui/ExtensionRenderer.js +7 -4
- package/dist/es2019/ui/Renderer/index.js +4 -2
- package/dist/es2019/ui/Renderer/style.js +6 -7
- package/dist/esm/react/marks/alignment.js +3 -1
- package/dist/esm/react/marks/backgroundColor.js +6 -2
- package/dist/esm/react/marks/breakout.js +3 -1
- package/dist/esm/react/marks/code.js +3 -1
- package/dist/esm/react/marks/indentation.js +1 -0
- package/dist/esm/react/marks/strike.js +9 -5
- package/dist/esm/react/marks/textColor.js +6 -2
- package/dist/esm/react/nodes/blockCard.js +1 -0
- package/dist/esm/react/nodes/bulletList.js +1 -0
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +3 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +13 -10
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -0
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +6 -2
- package/dist/esm/react/nodes/date.js +12 -7
- package/dist/esm/react/nodes/doc.js +4 -1
- package/dist/esm/react/nodes/embedCard.js +1 -0
- package/dist/esm/react/nodes/extension.js +3 -1
- package/dist/esm/react/nodes/heading-anchor.js +7 -4
- package/dist/esm/react/nodes/mediaGroup.js +1 -0
- package/dist/esm/react/nodes/multiBodiedExtension.js +6 -1
- package/dist/esm/react/nodes/orderedList.js +1 -0
- package/dist/esm/react/nodes/panel.js +4 -1
- package/dist/esm/react/nodes/table/colgroup.js +9 -4
- package/dist/esm/react/nodes/table/sticky.js +8 -2
- package/dist/esm/react/nodes/table.js +17 -6
- package/dist/esm/react/nodes/tableCell.js +6 -1
- package/dist/esm/react/nodes/tableRow.js +4 -1
- package/dist/esm/react/nodes/unknownBlock.js +1 -0
- package/dist/esm/ui/ExtensionRenderer.js +7 -4
- package/dist/esm/ui/Renderer/index.js +4 -2
- package/dist/esm/ui/Renderer/style.js +4 -5
- package/dist/types/react/nodes/extension.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/extension.d.ts +2 -1
- package/package.json +8 -5
|
@@ -57,7 +57,10 @@ export default class TableRow extends React.Component {
|
|
|
57
57
|
const childrenArray = React.Children.toArray(children);
|
|
58
58
|
return /*#__PURE__*/React.createElement("tr", {
|
|
59
59
|
ref: innerRef
|
|
60
|
-
}, this.props.isNumberColumnEnabled &&
|
|
60
|
+
}, this.props.isNumberColumnEnabled &&
|
|
61
|
+
/*#__PURE__*/
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
63
|
+
React.createElement("td", {
|
|
61
64
|
className: RendererCssClassName.NUMBER_COLUMN
|
|
62
65
|
}, this.props.index), compose(this.addSortableColumn, this.addColGroupWidth)(childrenArray));
|
|
63
66
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export default function UnknownBlock(props) {
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
3
4
|
return /*#__PURE__*/React.createElement("div", {
|
|
4
5
|
className: "UnknownBlock"
|
|
5
6
|
}, props.children);
|
|
@@ -124,10 +124,13 @@ const InlineNodeRendererWrapper = ({
|
|
|
124
124
|
children
|
|
125
125
|
}) => {
|
|
126
126
|
if (getBooleanFF('platform.editor.inline_extension.extended_lcqdn')) {
|
|
127
|
-
return
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
return (
|
|
128
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
129
|
+
jsx("div", {
|
|
130
|
+
className: "inline-extension-renderer",
|
|
131
|
+
css: inlineExtensionStyle
|
|
132
|
+
}, children)
|
|
133
|
+
);
|
|
131
134
|
}
|
|
132
135
|
return jsx(Fragment, null, children);
|
|
133
136
|
};
|
|
@@ -37,7 +37,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
37
37
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
38
38
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
39
39
|
const packageName = "@atlaskit/renderer";
|
|
40
|
-
const packageVersion = "109.29.
|
|
40
|
+
const packageVersion = "109.29.6";
|
|
41
41
|
export const defaultNodeComponents = nodeToReact;
|
|
42
42
|
export class Renderer extends PureComponent {
|
|
43
43
|
constructor(props) {
|
|
@@ -504,7 +504,9 @@ const RendererWrapper = /*#__PURE__*/React.memo(props => {
|
|
|
504
504
|
return () => observer.disconnect();
|
|
505
505
|
}
|
|
506
506
|
}, [innerRef, addTelepointer]);
|
|
507
|
-
return jsx(WidthProvider
|
|
507
|
+
return jsx(WidthProvider
|
|
508
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
509
|
+
, {
|
|
508
510
|
className: `ak-renderer-wrapper is-${appearance}`,
|
|
509
511
|
"data-appearance": appearance,
|
|
510
512
|
shouldCheckExistingValue: getBooleanFF('platform.editor.inline_extension.extended_lcqdn') && isInsideOfInlineExtension
|
|
@@ -20,11 +20,7 @@ import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
|
|
|
20
20
|
export const FullPagePadding = 32;
|
|
21
21
|
const tableShadowWidth = 32;
|
|
22
22
|
export const TELEPOINTER_ID = 'ai-streaming-telepointer';
|
|
23
|
-
const telepointerStyles =
|
|
24
|
-
const {
|
|
25
|
-
colorMode
|
|
26
|
-
} = getGlobalTheme();
|
|
27
|
-
|
|
23
|
+
const telepointerStyles = colorMode => {
|
|
28
24
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
29
25
|
return css`
|
|
30
26
|
#${TELEPOINTER_ID} {
|
|
@@ -395,6 +391,9 @@ const getShadowOverrides = () => {
|
|
|
395
391
|
`;
|
|
396
392
|
};
|
|
397
393
|
export const rendererStyles = wrapperProps => theme => {
|
|
394
|
+
const {
|
|
395
|
+
colorMode
|
|
396
|
+
} = getGlobalTheme();
|
|
398
397
|
// This is required to be compatible with styled-components prop structure.
|
|
399
398
|
const themeProps = {
|
|
400
399
|
theme
|
|
@@ -473,7 +472,7 @@ export const rendererStyles = wrapperProps => theme => {
|
|
|
473
472
|
color: ${`var(--ds-text-subtlest, ${colors.N200})`};
|
|
474
473
|
}
|
|
475
474
|
|
|
476
|
-
${telepointerStyles()}
|
|
475
|
+
${telepointerStyles(colorMode)}
|
|
477
476
|
${whitespaceSharedStyles};
|
|
478
477
|
${blockquoteSharedStyles};
|
|
479
478
|
${headingsSharedStyles()};
|
|
@@ -486,7 +485,7 @@ export const rendererStyles = wrapperProps => theme => {
|
|
|
486
485
|
${shadowSharedStyle};
|
|
487
486
|
${dateSharedStyle};
|
|
488
487
|
${textColorStyles};
|
|
489
|
-
${backgroundColorStyles};
|
|
488
|
+
${backgroundColorStyles(colorMode)};
|
|
490
489
|
${tasksAndDecisionsStyles};
|
|
491
490
|
${smartCardSharedStyles}
|
|
492
491
|
|
|
@@ -16,7 +16,9 @@ var MarkWrapper = function MarkWrapper(props) {
|
|
|
16
16
|
);
|
|
17
17
|
};
|
|
18
18
|
export default function Alignment(props) {
|
|
19
|
-
return jsx(MarkWrapper
|
|
19
|
+
return jsx(MarkWrapper
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
21
|
+
, {
|
|
20
22
|
className: "fabric-editor-block-mark fabric-editor-alignment",
|
|
21
23
|
"data-align": props.align
|
|
22
24
|
}, props.children);
|
|
@@ -41,8 +41,12 @@ export default function BackgroundColor(props) {
|
|
|
41
41
|
return _defineProperty({}, '--custom-palette-color', paletteColorValue);
|
|
42
42
|
}, [paletteColorValue]);
|
|
43
43
|
return /*#__PURE__*/React.createElement("span", _extends({}, props.dataAttributes, {
|
|
44
|
-
"data-background-custom-color": props.color
|
|
45
|
-
|
|
44
|
+
"data-background-custom-color": props.color
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
46
|
+
,
|
|
47
|
+
className: "fabric-background-color-mark"
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
49
|
+
,
|
|
46
50
|
style: style
|
|
47
51
|
}), props.children);
|
|
48
52
|
}
|
|
@@ -17,7 +17,9 @@ export default function Breakout(props) {
|
|
|
17
17
|
"data-mode": props.mode,
|
|
18
18
|
style: {
|
|
19
19
|
width: calcBreakoutWidth(props.mode, width)
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
22
|
+
,
|
|
21
23
|
className: "fabric-editor-breakout-mark fabric-editor-block-mark"
|
|
22
24
|
}, props.children);
|
|
23
25
|
});
|
|
@@ -8,7 +8,9 @@ export var isCodeMark = function isCodeMark(mark) {
|
|
|
8
8
|
};
|
|
9
9
|
export function CodeWithIntl(props) {
|
|
10
10
|
var codeBidiWarningLabel = props.intl.formatMessage(codeBidiWarningMessages.label);
|
|
11
|
-
return /*#__PURE__*/React.createElement(AkCode
|
|
11
|
+
return /*#__PURE__*/React.createElement(AkCode
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
13
|
+
, _extends({
|
|
12
14
|
className: "code",
|
|
13
15
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
14
16
|
codeBidiWarningTooltipEnabled: props.codeBidiWarningTooltipEnabled
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export default function Indentation(props) {
|
|
3
3
|
return /*#__PURE__*/React.createElement("div", {
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
4
5
|
className: "fabric-editor-block-mark fabric-editor-indentation-mark",
|
|
5
6
|
"data-level": props.level
|
|
6
7
|
}, props.children);
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export default function Strike(props) {
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
4
|
+
return (
|
|
5
|
+
/*#__PURE__*/
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
7
|
+
React.createElement("span", _extends({}, props.dataAttributes, {
|
|
8
|
+
style: {
|
|
9
|
+
textDecoration: 'line-through'
|
|
10
|
+
}
|
|
11
|
+
}), props.children)
|
|
12
|
+
);
|
|
9
13
|
}
|
|
@@ -45,8 +45,12 @@ export default function TextColor(props) {
|
|
|
45
45
|
return _defineProperty({}, '--custom-palette-color', paletteColorValue);
|
|
46
46
|
}, [paletteColorValue]);
|
|
47
47
|
return /*#__PURE__*/React.createElement("span", _extends({}, props.dataAttributes, {
|
|
48
|
-
"data-text-custom-color": props.color
|
|
49
|
-
|
|
48
|
+
"data-text-custom-color": props.color
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
50
|
+
,
|
|
51
|
+
className: "fabric-text-color-mark"
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
53
|
+
,
|
|
50
54
|
style: style
|
|
51
55
|
}), props.children);
|
|
52
56
|
}
|
|
@@ -119,6 +119,7 @@ export default function BlockCard(props) {
|
|
|
119
119
|
return jsx(AnalyticsContext, {
|
|
120
120
|
data: analyticsData
|
|
121
121
|
}, jsx("div", {
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
122
123
|
className: "blockCardView-content-wrap",
|
|
123
124
|
"data-block-card": true,
|
|
124
125
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
@@ -3,6 +3,7 @@ import { bulletListSelector } from '@atlaskit/adf-schema';
|
|
|
3
3
|
import { getListIndentLevel } from '../utils/lists';
|
|
4
4
|
export default function BulletList(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement("ul", {
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
6
7
|
className: bulletListSelector.substr(1),
|
|
7
8
|
"data-indent-level": props.path ? getListIndentLevel(props.path) : 1
|
|
8
9
|
}, props.children);
|
|
@@ -23,7 +23,9 @@ function CodeBlock(props) {
|
|
|
23
23
|
setWrapLongLines = _useState2[1];
|
|
24
24
|
return jsx(CodeBlockContainer, {
|
|
25
25
|
allowCopyToClipboard: allowCopyToClipboard,
|
|
26
|
-
allowWrapCodeBlock: allowWrapCodeBlock
|
|
26
|
+
allowWrapCodeBlock: allowWrapCodeBlock
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
28
|
+
,
|
|
27
29
|
className: className,
|
|
28
30
|
setWrapLongLines: setWrapLongLines,
|
|
29
31
|
text: text,
|
|
@@ -20,15 +20,18 @@ var CodeBlockContainer = function CodeBlockContainer(_ref) {
|
|
|
20
20
|
setWrapLongLines = _ref.setWrapLongLines,
|
|
21
21
|
text = _ref.text,
|
|
22
22
|
wrapLongLines = _ref.wrapLongLines;
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
return (
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
|
+
jsx("div", {
|
|
26
|
+
className: className,
|
|
27
|
+
css: codeBlockStyleOverrides
|
|
28
|
+
}, jsx(CodeBlockButtonContainer, {
|
|
29
|
+
allowCopyToClipboard: allowCopyToClipboard,
|
|
30
|
+
allowWrapCodeBlock: allowWrapCodeBlock,
|
|
31
|
+
setWrapLongLines: setWrapLongLines,
|
|
32
|
+
text: text,
|
|
33
|
+
wrapLongLines: wrapLongLines
|
|
34
|
+
}), children)
|
|
35
|
+
);
|
|
33
36
|
};
|
|
34
37
|
export default CodeBlockContainer;
|
|
@@ -36,7 +36,9 @@ var CopyButton = function CopyButton(_ref) {
|
|
|
36
36
|
}, jsx(Button, {
|
|
37
37
|
appearance: "subtle",
|
|
38
38
|
"aria-haspopup": true,
|
|
39
|
-
"aria-label": tooltip
|
|
39
|
+
"aria-label": tooltip
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
41
|
+
,
|
|
40
42
|
className: className,
|
|
41
43
|
iconBefore: jsx(CopyIcon, {
|
|
42
44
|
label: tooltip
|
|
@@ -36,7 +36,9 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
|
36
36
|
}, jsx(Button, {
|
|
37
37
|
appearance: "subtle",
|
|
38
38
|
"aria-haspopup": true,
|
|
39
|
-
"aria-label": wrapMessage
|
|
39
|
+
"aria-label": wrapMessage
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
41
|
+
,
|
|
40
42
|
className: "wrap-code ".concat(wrapLongLines ? 'clicked' : ''),
|
|
41
43
|
iconBefore: jsx(Icon, {
|
|
42
44
|
glyph: WrapIcon,
|
|
@@ -36,14 +36,17 @@ var LightWeightCodeBlock = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
36
36
|
renderBidiWarnings = _useBidiWarnings.renderBidiWarnings;
|
|
37
37
|
var classNames = [LightWeightCodeBlockCssClassName.CONTAINER, className].join(' ');
|
|
38
38
|
return jsx("div", {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
40
|
className: classNames,
|
|
40
41
|
ref: ref,
|
|
41
42
|
css: [codeBlockSharedStyles(), lightWeightCodeBlockStyles]
|
|
42
43
|
}, jsx("div", {
|
|
43
44
|
className: CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER
|
|
44
45
|
}, jsx("div", {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
45
47
|
className: CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER
|
|
46
48
|
}, jsx("div", {
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
50
|
className: CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER
|
|
48
51
|
}, textRows.map(function (_, index) {
|
|
49
52
|
return jsx("span", {
|
|
@@ -47,7 +47,9 @@ var WindowedCodeBlock = function WindowedCodeBlock(_ref2) {
|
|
|
47
47
|
var memoizedLightWeightCodeBlock = jsx(MemoizedLightWeightCodeBlock, {
|
|
48
48
|
ref: trackingRef,
|
|
49
49
|
text: text,
|
|
50
|
-
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled
|
|
50
|
+
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
52
|
+
,
|
|
51
53
|
className: rootClassName
|
|
52
54
|
});
|
|
53
55
|
var _useState = useState(false),
|
|
@@ -58,7 +60,9 @@ var WindowedCodeBlock = function WindowedCodeBlock(_ref2) {
|
|
|
58
60
|
fallback: memoizedLightWeightCodeBlock
|
|
59
61
|
}, jsx(CodeBlockContainer, {
|
|
60
62
|
allowCopyToClipboard: allowCopyToClipboard,
|
|
61
|
-
allowWrapCodeBlock: allowWrapCodeBlock
|
|
63
|
+
allowWrapCodeBlock: allowWrapCodeBlock
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
65
|
+
,
|
|
62
66
|
className: className,
|
|
63
67
|
setWrapLongLines: setWrapLongLines,
|
|
64
68
|
text: text,
|
|
@@ -28,13 +28,18 @@ var Date = /*#__PURE__*/function (_PureComponent) {
|
|
|
28
28
|
parentIsIncompleteTask = _this$props.parentIsIncompleteTask,
|
|
29
29
|
intl = _this$props.intl;
|
|
30
30
|
var className = !!parentIsIncompleteTask && isPastDate(timestamp) ? 'date-node date-node-highlighted' : 'date-node';
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
31
|
+
return (
|
|
32
|
+
/*#__PURE__*/
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
34
|
+
React.createElement("span", {
|
|
35
|
+
className: DateSharedCssClassName.DATE_WRAPPER
|
|
36
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
38
|
+
className: className,
|
|
39
|
+
"data-node-type": "date",
|
|
40
|
+
"data-timestamp": timestamp
|
|
41
|
+
}, parentIsIncompleteTask ? timestampToTaskContext(timestamp, intl) : timestampToString(timestamp, intl)))
|
|
42
|
+
);
|
|
38
43
|
}
|
|
39
44
|
}]);
|
|
40
45
|
return Date;
|
|
@@ -2,13 +2,16 @@ import React from 'react';
|
|
|
2
2
|
import { RendererCssClassName } from '../../consts';
|
|
3
3
|
import { useSelectAllTrap } from '../utils/use-select-all-trap';
|
|
4
4
|
export default function Doc(props) {
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
5
6
|
return /*#__PURE__*/React.createElement("div", {
|
|
6
7
|
className: RendererCssClassName.DOCUMENT
|
|
7
8
|
}, props.children);
|
|
8
9
|
}
|
|
9
10
|
export function DocWithSelectAllTrap(props) {
|
|
10
11
|
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
-
ref: useSelectAllTrap()
|
|
12
|
+
ref: useSelectAllTrap()
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
14
|
+
,
|
|
12
15
|
className: RendererCssClassName.DOCUMENT
|
|
13
16
|
}, props.children);
|
|
14
17
|
}
|
|
@@ -158,6 +158,7 @@ export default function EmbedCard(props) {
|
|
|
158
158
|
}, jsx("div", {
|
|
159
159
|
css: embedCardWrapperStyles
|
|
160
160
|
}, jsx("div", {
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
161
162
|
className: "embedCardView-content-wrap",
|
|
162
163
|
"data-embed-card": true,
|
|
163
164
|
"data-layout": layout,
|
|
@@ -17,7 +17,9 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
17
17
|
return /*#__PURE__*/React.createElement(WidthConsumer, null, function (_ref2) {
|
|
18
18
|
var width = _ref2.width;
|
|
19
19
|
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
ref: options.handleRef
|
|
20
|
+
ref: options.handleRef
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
22
|
+
,
|
|
21
23
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
22
24
|
style: {
|
|
23
25
|
width: isTopLevel ? calcBreakoutWidth(layout, width) : '100%'
|
|
@@ -25,10 +25,13 @@ export var HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
|
25
25
|
var CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
26
26
|
var children = props.children,
|
|
27
27
|
rest = _objectWithoutProperties(props, _excluded);
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
return (
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
|
+
jsx("span", _extends({}, rest, {
|
|
31
|
+
className: HeadingAnchorWrapperClassName,
|
|
32
|
+
ref: ref
|
|
33
|
+
}), children)
|
|
34
|
+
);
|
|
32
35
|
});
|
|
33
36
|
var copyAnchorButtonStyles = css({
|
|
34
37
|
display: 'inline',
|
|
@@ -72,6 +72,7 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
72
72
|
} else {
|
|
73
73
|
content = this.renderStrip();
|
|
74
74
|
}
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
76
|
return /*#__PURE__*/React.createElement("div", {
|
|
76
77
|
className: "MediaGroup"
|
|
77
78
|
}, content);
|
|
@@ -78,12 +78,14 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
78
78
|
var centerAlignClass = isTopLevel && ['wide', 'full-width'].includes(layout) ? RendererCssClassName.EXTENSION_CENTER_ALIGN : '';
|
|
79
79
|
function renderMbeContent(width) {
|
|
80
80
|
return jsx("div", {
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
81
82
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(centerAlignClass, " ").concat(overflowContainerClass),
|
|
82
83
|
style: {
|
|
83
84
|
width: isTopLevel ? calcBreakoutWidth(layout, width) : '100%'
|
|
84
85
|
},
|
|
85
86
|
"data-layout": layout
|
|
86
87
|
}, jsx("nav", {
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
87
89
|
className: "multiBodiedExtension-navigation",
|
|
88
90
|
css: navigationCssExtended,
|
|
89
91
|
"data-testid": "multiBodiedExtension-navigation"
|
|
@@ -109,11 +111,14 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
109
111
|
isTopLevel: path.length < 1
|
|
110
112
|
});
|
|
111
113
|
})), jsx("article", {
|
|
112
|
-
"data-testid": "multiBodiedExtension--frames"
|
|
114
|
+
"data-testid": "multiBodiedExtension--frames"
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
116
|
+
,
|
|
113
117
|
className: "multiBodiedExtension--frames"
|
|
114
118
|
}, children));
|
|
115
119
|
}
|
|
116
120
|
return jsx("section", {
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
117
122
|
className: "multiBodiedExtension--container"
|
|
118
123
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
119
124
|
,
|
|
@@ -18,6 +18,7 @@ export default function OrderedList(props) {
|
|
|
18
18
|
extraProps.start = resolveOrder(props.order);
|
|
19
19
|
}
|
|
20
20
|
return /*#__PURE__*/React.createElement("ol", _extends({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
21
22
|
className: orderedListSelector.substr(1),
|
|
22
23
|
"data-indent-level": props.path ? getListIndentLevel(props.path) : 1,
|
|
23
24
|
start: props.start
|
|
@@ -69,12 +69,15 @@ var Panel = function Panel(props) {
|
|
|
69
69
|
var icon = getIcon();
|
|
70
70
|
var renderIcon = function renderIcon() {
|
|
71
71
|
if (icon) {
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
72
73
|
return jsx("div", {
|
|
73
74
|
className: PanelSharedCssClassName.icon
|
|
74
75
|
}, icon);
|
|
75
76
|
}
|
|
76
77
|
};
|
|
77
|
-
return jsx(PanelStyled
|
|
78
|
+
return jsx(PanelStyled
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
80
|
+
, {
|
|
78
81
|
className: PanelSharedCssClassName.prefix,
|
|
79
82
|
"data-panel-type": panelType,
|
|
80
83
|
"data-panel-color": panelColor,
|
|
@@ -146,14 +146,19 @@ export var Colgroup = function Colgroup(props) {
|
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
148
|
return /*#__PURE__*/React.createElement("colgroup", null, isNumberColumnEnabled && /*#__PURE__*/React.createElement("col", {
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
149
150
|
style: {
|
|
150
151
|
width: akEditorTableNumberColumnWidth
|
|
151
152
|
},
|
|
152
153
|
"data-test-id": 'num'
|
|
153
154
|
}), colStyles.map(function (style, idx) {
|
|
154
|
-
return
|
|
155
|
-
|
|
156
|
-
style
|
|
157
|
-
|
|
155
|
+
return (
|
|
156
|
+
/*#__PURE__*/
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
158
|
+
React.createElement("col", {
|
|
159
|
+
key: idx,
|
|
160
|
+
style: style
|
|
161
|
+
})
|
|
162
|
+
);
|
|
158
163
|
}));
|
|
159
164
|
};
|
|
@@ -61,7 +61,9 @@ export var FixedTableDiv = function FixedTableDiv(props) {
|
|
|
61
61
|
mode: mode
|
|
62
62
|
};
|
|
63
63
|
return jsx("div", _extends({}, attrs, {
|
|
64
|
-
"data-testid": "sticky-table-fixed"
|
|
64
|
+
"data-testid": "sticky-table-fixed"
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
66
|
+
,
|
|
65
67
|
className: isTableResizingEnabled(rendererAppearance) ? 'fixed-table-div-custom-table-resizing' : '',
|
|
66
68
|
css: fixedTableCss
|
|
67
69
|
}), props.children);
|
|
@@ -108,15 +110,19 @@ export var StickyTable = function StickyTable(_ref) {
|
|
|
108
110
|
wrapperWidth: wrapperWidth,
|
|
109
111
|
rendererAppearance: rendererAppearance
|
|
110
112
|
}, jsx("div", {
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
111
114
|
className: "".concat(TableSharedCssClassName.TABLE_CONTAINER, " is-sticky ").concat(shadowClassNames || ''),
|
|
112
115
|
"data-layout": layout,
|
|
113
116
|
style: {
|
|
114
117
|
width: tableWidth
|
|
115
118
|
}
|
|
116
119
|
}, jsx("div", {
|
|
117
|
-
ref: innerRef
|
|
120
|
+
ref: innerRef
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
122
|
+
,
|
|
118
123
|
className: "".concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER),
|
|
119
124
|
style: {
|
|
125
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
120
126
|
overflow: 'hidden'
|
|
121
127
|
}
|
|
122
128
|
}, jsx(Table, {
|
|
@@ -24,7 +24,7 @@ import { TableHeader } from './tableCell';
|
|
|
24
24
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
25
25
|
import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
|
|
26
26
|
import { Table } from './table/table';
|
|
27
|
-
import { isFullWidthOrFullPageAppearance } from '../utils/appearance';
|
|
27
|
+
import { isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
|
|
28
28
|
export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
29
29
|
return isFullWidthOrFullPageAppearance(appearance);
|
|
30
30
|
};
|
|
@@ -291,7 +291,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
291
291
|
isInsideOfBlockNode = _this$props.isInsideOfBlockNode,
|
|
292
292
|
isinsideMultiBodiedExtension = _this$props.isinsideMultiBodiedExtension;
|
|
293
293
|
var stickyMode = this.state.stickyMode;
|
|
294
|
-
var
|
|
294
|
+
var lineLengthFixedWidth = akEditorDefaultLayoutWidth;
|
|
295
295
|
var left;
|
|
296
296
|
var updatedLayout;
|
|
297
297
|
|
|
@@ -309,8 +309,17 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
var tableWidth = calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode);
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
|
|
313
|
+
// Logic for table alignment in renderer
|
|
314
|
+
var isTableAlignStart = getBooleanFF('platform.editor.table.allow-table-alignment') && isFullWidthOrFullPageAppearance(rendererAppearance) && tableNode && tableNode.attrs && tableNode.attrs.layout === 'align-start';
|
|
315
|
+
var fullWidthLineLength = isRenderWidthValid ? Math.min(akEditorFullWidthLayoutWidth, renderWidth) : akEditorFullWidthLayoutWidth;
|
|
316
|
+
var lineLength = isFullWidthAppearance(rendererAppearance) ? fullWidthLineLength : lineLengthFixedWidth;
|
|
317
|
+
var shouldCalculateLeftForAlignment = isTableAlignStart && (isFullPageAppearance(rendererAppearance) && tableWidth <= lineLengthFixedWidth || isFullWidthAppearance(rendererAppearance));
|
|
318
|
+
if (shouldCalculateLeftForAlignment) {
|
|
319
|
+
left = (tableWidth - lineLength) / 2;
|
|
320
|
+
}
|
|
321
|
+
if (!shouldCalculateLeftForAlignment && canUseLinelength(rendererAppearance) && tableWidth > lineLengthFixedWidth) {
|
|
322
|
+
left = lineLengthFixedWidth / 2 - tableWidth / 2;
|
|
314
323
|
}
|
|
315
324
|
var children = React.Children.toArray(this.props.children);
|
|
316
325
|
|
|
@@ -326,13 +335,14 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
326
335
|
updatedLayout = layout;
|
|
327
336
|
}
|
|
328
337
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
338
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
329
339
|
className: "".concat(TableSharedCssClassName.TABLE_CONTAINER, " ").concat(this.props.shadowClassNames || ''),
|
|
330
340
|
"data-layout": updatedLayout,
|
|
331
341
|
ref: this.props.handleRef,
|
|
332
342
|
style: {
|
|
333
343
|
width: isTableResizingEnabled(rendererAppearance) ? tableWidth : 'inherit',
|
|
334
|
-
|
|
335
|
-
left:
|
|
344
|
+
left: left,
|
|
345
|
+
marginLeft: shouldCalculateLeftForAlignment && left !== undefined ? -left : undefined
|
|
336
346
|
}
|
|
337
347
|
}, stickyHeaders && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
|
|
338
348
|
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
@@ -350,6 +360,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
350
360
|
tableNode: tableNode,
|
|
351
361
|
rendererAppearance: rendererAppearance
|
|
352
362
|
}, [children && children[0]]), /*#__PURE__*/React.createElement("div", {
|
|
363
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
353
364
|
className: TableSharedCssClassName.TABLE_NODE_WRAPPER,
|
|
354
365
|
ref: this.wrapperRef,
|
|
355
366
|
onScroll: this.props.stickyHeaders && this.onWrapperScrolled
|
|
@@ -135,6 +135,7 @@ var getWithCellProps = function getWithCellProps(WrapperComponent) {
|
|
|
135
135
|
// the background color is not taken from the inline style.
|
|
136
136
|
// Instead it is taken from the data-cell-background attribute
|
|
137
137
|
// (added via getDataAttributes below).
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
138
139
|
,
|
|
139
140
|
style: getStyle({
|
|
140
141
|
background: background,
|
|
@@ -143,7 +144,9 @@ var getWithCellProps = function getWithCellProps(WrapperComponent) {
|
|
|
143
144
|
colorMode: colorMode
|
|
144
145
|
}),
|
|
145
146
|
colorname: colorName,
|
|
146
|
-
onClick: onClick
|
|
147
|
+
onClick: onClick
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
149
|
+
,
|
|
147
150
|
className: className
|
|
148
151
|
}, getDataAttributes(colwidth, background), {
|
|
149
152
|
"aria-sort": ariaSort
|
|
@@ -164,11 +167,13 @@ export var withSortableColumn = function withSortableColumn(WrapperComponent) {
|
|
|
164
167
|
return /*#__PURE__*/React.createElement(WrapperComponent, props);
|
|
165
168
|
}
|
|
166
169
|
return /*#__PURE__*/React.createElement(WrapperComponent, _extends({}, props, {
|
|
170
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
167
171
|
className: RendererCssClassName.SORTABLE_COLUMN_WRAPPER,
|
|
168
172
|
ariaSort: getSortOrderLabel(intl, sortOrdered)
|
|
169
173
|
}), /*#__PURE__*/React.createElement("div", {
|
|
170
174
|
className: RendererCssClassName.SORTABLE_COLUMN
|
|
171
175
|
}, children, /*#__PURE__*/React.createElement("figure", {
|
|
176
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
172
177
|
className: "".concat(RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, " ").concat(sortOrderedClassName)
|
|
173
178
|
}, /*#__PURE__*/React.createElement(SortingIcon, {
|
|
174
179
|
isSortingAllowed: !!onSorting,
|