@atlaskit/renderer 109.32.2 → 109.32.4
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 +19 -0
- package/dist/cjs/actions/get-renderer-range-inline-node-names.js +24 -0
- package/dist/cjs/actions/index.js +22 -1
- package/dist/cjs/react/marks/breakout.js +5 -1
- package/dist/cjs/react/nodes/blockCard.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +3 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -2
- package/dist/cjs/react/nodes/embedCard.js +2 -0
- package/dist/cjs/react/nodes/extension.js +1 -0
- package/dist/cjs/react/nodes/layoutColumn.js +6 -1
- package/dist/cjs/react/nodes/media/index.js +6 -1
- package/dist/cjs/react/nodes/mediaSingle/styles.js +3 -0
- package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/cjs/react/nodes/panel.js +6 -3
- package/dist/cjs/react/nodes/table/colgroup.js +1 -1
- package/dist/cjs/react/nodes/table/sticky.js +55 -44
- package/dist/cjs/ui/Expand.js +2 -0
- package/dist/cjs/ui/ExtensionRenderer.js +1 -0
- package/dist/cjs/ui/Renderer/index.js +2 -2
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +2 -0
- package/dist/cjs/ui/annotations/draft/component.js +4 -1
- package/dist/cjs/ui/annotations/selection/mounter.js +25 -5
- package/dist/es2019/actions/get-renderer-range-inline-node-names.js +19 -0
- package/dist/es2019/actions/index.js +22 -1
- package/dist/es2019/react/marks/breakout.js +5 -1
- package/dist/es2019/react/nodes/blockCard.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +3 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -2
- package/dist/es2019/react/nodes/embedCard.js +2 -0
- package/dist/es2019/react/nodes/extension.js +1 -0
- package/dist/es2019/react/nodes/layoutColumn.js +7 -1
- package/dist/es2019/react/nodes/media/index.js +6 -1
- package/dist/es2019/react/nodes/mediaSingle/styles.js +4 -0
- package/dist/es2019/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/es2019/react/nodes/panel.js +6 -3
- package/dist/es2019/react/nodes/table/colgroup.js +1 -1
- package/dist/es2019/react/nodes/table/sticky.js +59 -44
- package/dist/es2019/ui/Expand.js +2 -0
- package/dist/es2019/ui/ExtensionRenderer.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +2 -2
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +2 -0
- package/dist/es2019/ui/annotations/draft/component.js +5 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +25 -5
- package/dist/esm/actions/get-renderer-range-inline-node-names.js +18 -0
- package/dist/esm/actions/index.js +22 -1
- package/dist/esm/react/marks/breakout.js +5 -1
- package/dist/esm/react/nodes/blockCard.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +3 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -2
- package/dist/esm/react/nodes/embedCard.js +2 -0
- package/dist/esm/react/nodes/extension.js +1 -0
- package/dist/esm/react/nodes/layoutColumn.js +7 -1
- package/dist/esm/react/nodes/media/index.js +6 -1
- package/dist/esm/react/nodes/mediaSingle/styles.js +4 -0
- package/dist/esm/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/esm/react/nodes/panel.js +6 -3
- package/dist/esm/react/nodes/table/colgroup.js +1 -1
- package/dist/esm/react/nodes/table/sticky.js +55 -44
- package/dist/esm/ui/Expand.js +2 -0
- package/dist/esm/ui/ExtensionRenderer.js +1 -0
- package/dist/esm/ui/Renderer/index.js +2 -2
- package/dist/esm/ui/Renderer/truncated-wrapper.js +2 -0
- package/dist/esm/ui/annotations/draft/component.js +5 -1
- package/dist/esm/ui/annotations/selection/mounter.js +25 -5
- package/dist/types/actions/get-renderer-range-inline-node-names.d.ts +12 -0
- package/dist/types/actions/index.d.ts +3 -0
- package/dist/types/analytics/events.d.ts +3 -1
- package/dist/types/react/nodes/extension.d.ts +1 -0
- package/dist/types-ts4.5/actions/get-renderer-range-inline-node-names.d.ts +12 -0
- package/dist/types-ts4.5/actions/index.d.ts +3 -0
- package/dist/types-ts4.5/analytics/events.d.ts +3 -1
- package/dist/types-ts4.5/react/nodes/extension.d.ts +1 -0
- package/package.json +156 -160
|
@@ -3,7 +3,9 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
7
|
export var wrapperStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
margin: "".concat(blockNodesVerticalMargin, " 0"),
|
|
8
10
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
9
11
|
marginLeft: '50%',
|
|
@@ -14,7 +16,9 @@ export default function Breakout(props) {
|
|
|
14
16
|
var width = _ref.width;
|
|
15
17
|
return jsx("div", {
|
|
16
18
|
css: wrapperStyles,
|
|
17
|
-
"data-mode": props.mode
|
|
19
|
+
"data-mode": props.mode
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
|
+
,
|
|
18
22
|
style: {
|
|
19
23
|
width: calcBreakoutWidth(props.mode, width)
|
|
20
24
|
}
|
|
@@ -99,6 +99,7 @@ export default function BlockCard(props) {
|
|
|
99
99
|
css: datasourceContainerStyle,
|
|
100
100
|
"data-testid": "renderer-datasource-table",
|
|
101
101
|
style: {
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
102
103
|
width: isNodeNested ? '100%' : calcBreakoutWidth(layout, width)
|
|
103
104
|
}
|
|
104
105
|
}, jsx(DatasourceTableView, {
|
|
@@ -17,6 +17,7 @@ var codeBlockButtonsStyle = css({
|
|
|
17
17
|
right: "var(--ds-space-075, 6px)",
|
|
18
18
|
top: "var(--ds-space-050, 4px)",
|
|
19
19
|
padding: "var(--ds-space-025, 2px)",
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
21
|
button: {
|
|
21
22
|
height: '32px',
|
|
22
23
|
width: '32px',
|
|
@@ -32,9 +33,11 @@ var codeBlockButtonsStyle = css({
|
|
|
32
33
|
height: '32px',
|
|
33
34
|
width: '32px'
|
|
34
35
|
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
37
|
'&.clicked': {
|
|
36
38
|
backgroundColor: "".concat("var(--ds-background-neutral-bold-pressed, ".concat(N700, ")")),
|
|
37
39
|
borderRadius: '4px',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
38
41
|
color: "".concat("var(--ds-icon-inverse, ".concat(N0, ")"), " !important")
|
|
39
42
|
}
|
|
40
43
|
}
|
|
@@ -8,7 +8,7 @@ import { fontSize } from '@atlaskit/theme/constants';
|
|
|
8
8
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import CodeBlockButtonContainer from './codeBlockButtonContainer';
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
12
12
|
var codeBlockStyleOverrides = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\ttab-size: 4;\n\tbackground-color: ", ";\n\n\t&:hover {\n\t\tbutton {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\tbutton {\n\t\topacity: 0;\n\t\ttransition: opacity 0.2s ease 0s;\n\t}\n\n\t", " {\n\t\tfont-size: ", ";\n\t\tline-height: 1.5rem;\n\t\tbackground-image: ", ";\n\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\tbackground-position:\n\t\t\t0 0,\n\t\t\t0 0,\n\t\t\t100% 0,\n\t\t\t100% 0,\n\t\t\t100% 0,\n\t\t\t100% 0,\n\t\t\t0 0,\n\t\t\t0 0;\n\t}\n"])), "var(--ds-surface-raised, ".concat(N20, ")"), CodeBlockSharedCssClassName.DS_CODEBLOCK, relativeFontSizeToBase16(fontSize()), overflowShadow({
|
|
13
13
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
14
14
|
}));
|
|
@@ -7,7 +7,7 @@ import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
|
7
7
|
import { codeBlockSharedStyles, CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
8
8
|
import { useBidiWarnings } from '../../../hooks/use-bidi-warnings';
|
|
9
9
|
import { RendererCssClassName } from '../../../../consts';
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
11
11
|
var lightWeightCodeBlockStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tcursor: text;\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER);
|
|
12
12
|
export var LightWeightCodeBlockCssClassName = {
|
|
13
13
|
CONTAINER: 'light-weight-code-block'
|
|
@@ -38,7 +38,9 @@ var LightWeightCodeBlock = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
38
38
|
return jsx("div", {
|
|
39
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
40
40
|
className: classNames,
|
|
41
|
-
ref: ref
|
|
41
|
+
ref: ref
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
43
|
+
,
|
|
42
44
|
css: [codeBlockSharedStyles(), lightWeightCodeBlockStyles]
|
|
43
45
|
}, jsx("div", {
|
|
44
46
|
className: CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER
|
|
@@ -15,9 +15,11 @@ import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
15
15
|
var embedCardWrapperStyles = css({
|
|
16
16
|
width: '100%',
|
|
17
17
|
height: '100%',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
19
|
'> div': {
|
|
19
20
|
height: '100%'
|
|
20
21
|
},
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
23
|
'.loader-wrapper': {
|
|
22
24
|
height: '100%'
|
|
23
25
|
},
|
|
@@ -22,6 +22,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
22
22
|
,
|
|
23
23
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
24
24
|
style: {
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
26
|
width: isTopLevel ? calcBreakoutWidth(layout, width) : '100%'
|
|
26
27
|
},
|
|
27
28
|
"data-layout": layout
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx, css } from '@emotion/react';
|
|
4
4
|
import { WidthProvider, clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle } from '@atlaskit/editor-common/ui';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
7
|
+
var layoutColumnClearMarginTopStyles = css(
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
+
clearNextSiblingMarginTopStyle,
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
|
+
clearNextSiblingBlockMarkMarginTopStyle);
|
|
6
12
|
export default function LayoutSection(props) {
|
|
7
13
|
return jsx("div", {
|
|
8
14
|
"data-layout-column": true,
|
|
@@ -35,7 +35,10 @@ import { CommentBadge as CommentBadgeComponent } from '@atlaskit/editor-common/m
|
|
|
35
35
|
import { injectIntl } from 'react-intl-next';
|
|
36
36
|
import { useInlineCommentSubscriberContext, useInlineCommentsFilter } from '../../../ui/annotations/hooks';
|
|
37
37
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
38
39
|
export var linkStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tbackground: transparent;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tcursor: pointer;\n\twidth: 100% !important;\n\theight: 100% !important;\n"])));
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
39
42
|
export var borderStyle = function borderStyle(color, width) {
|
|
40
43
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 100% !important;\n\theight: 100% !important;\n\tborder-radius: ", "px;\n\tbox-shadow: 0 0 0 ", "px ", ";\n"])), width, width, color);
|
|
41
44
|
};
|
|
@@ -52,7 +55,9 @@ var MediaBorder = function MediaBorder(_ref) {
|
|
|
52
55
|
return jsx("div", {
|
|
53
56
|
"data-mark-type": "border",
|
|
54
57
|
"data-color": borderColor,
|
|
55
|
-
"data-size": borderWidth
|
|
58
|
+
"data-size": borderWidth
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
60
|
+
,
|
|
56
61
|
css: borderStyle(paletteColorValue, borderWidth)
|
|
57
62
|
}, jsx(MediaBorderGapFiller, {
|
|
58
63
|
borderColor: borderColor
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
5
|
export var uiMediaSingleBaseStyles = css({
|
|
4
6
|
transition: 'all 0.1s linear'
|
|
5
7
|
});
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
10
|
export var uiMediaSingleLayoutStyles = css({
|
|
7
11
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
8
12
|
marginLeft: '50%',
|
|
@@ -43,7 +43,7 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
|
|
|
43
43
|
return actions;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
47
47
|
var navigationCssExtended = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", ";\n\tmargin-left: 0 !important;\n\tmargin-right: 0 !important;\n\t.mbe-add-tab-button,\n\t.mbe-remove-tab {\n\t\tdisplay: none;\n\t}\n"])), sharedMultiBodiedExtensionStyles.mbeNavigation);
|
|
48
48
|
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
49
49
|
var children = props.children,
|
|
@@ -81,6 +81,7 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
81
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
82
|
className: "".concat(RendererCssClassName.EXTENSION, " ").concat(centerAlignClass, " ").concat(overflowContainerClass),
|
|
83
83
|
style: {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
84
85
|
width: isTopLevel ? calcBreakoutWidth(layout, width) : '100%'
|
|
85
86
|
},
|
|
86
87
|
"data-layout": layout
|
|
@@ -23,9 +23,12 @@ var PanelStyled = function PanelStyled(_ref) {
|
|
|
23
23
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
|
|
24
24
|
styles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t&.", " {\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t&[data-panel-type=", "] {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\t", "\n\t\t\t}\n\t\t"])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix(), PanelType.CUSTOM, hexToEditorBackgroundPaletteColor(backgroundColor) || backgroundColor, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
|
|
25
25
|
}
|
|
26
|
-
return
|
|
27
|
-
css
|
|
28
|
-
|
|
26
|
+
return (
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
28
|
+
jsx("div", _extends({
|
|
29
|
+
css: styles
|
|
30
|
+
}, props), props.children)
|
|
31
|
+
);
|
|
29
32
|
};
|
|
30
33
|
PanelStyled.displayName = 'PanelStyled';
|
|
31
34
|
var panelIcons = {
|
|
@@ -164,7 +164,7 @@ export var Colgroup = function Colgroup(props) {
|
|
|
164
164
|
return null;
|
|
165
165
|
}
|
|
166
166
|
return /*#__PURE__*/React.createElement("colgroup", null, isNumberColumnEnabled && /*#__PURE__*/React.createElement("col", {
|
|
167
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
168
168
|
style: {
|
|
169
169
|
width: akEditorTableNumberColumnWidth
|
|
170
170
|
},
|
|
@@ -33,12 +33,17 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, r
|
|
|
33
33
|
} else {
|
|
34
34
|
stickyHeaderZIndex = akEditorStickyHeaderZIndex;
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
38
|
return css(typeof top === 'number' && "top: ".concat(top, "px;"), (_css = {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
40
|
width: "".concat(width, "px"),
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
42
|
zIndex: stickyHeaderZIndex
|
|
39
43
|
}, _defineProperty(_css, "& .".concat(TableSharedCssClassName.TABLE_CONTAINER, ", & .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
40
44
|
marginTop: 0,
|
|
41
45
|
marginBottom: 0,
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
42
47
|
tr: {
|
|
43
48
|
background: "var(--ds-surface, white)"
|
|
44
49
|
}
|
|
@@ -48,6 +53,7 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, r
|
|
|
48
53
|
top: '0px',
|
|
49
54
|
height: '100%'
|
|
50
55
|
}), _defineProperty(_css, "&.fixed-table-div-custom-table-resizing[mode='stick']", {
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
57
|
zIndex: stickyHeaderZIndex
|
|
52
58
|
}), _css));
|
|
53
59
|
};
|
|
@@ -64,7 +70,9 @@ export var FixedTableDiv = function FixedTableDiv(props) {
|
|
|
64
70
|
"data-testid": "sticky-table-fixed"
|
|
65
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
66
72
|
,
|
|
67
|
-
className: isTableResizingEnabled(rendererAppearance) ? 'fixed-table-div-custom-table-resizing' : ''
|
|
73
|
+
className: isTableResizingEnabled(rendererAppearance) ? 'fixed-table-div-custom-table-resizing' : ''
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
75
|
+
,
|
|
68
76
|
css: fixedTableCss
|
|
69
77
|
}), props.children);
|
|
70
78
|
};
|
|
@@ -88,60 +96,63 @@ export var StickyTable = function StickyTable(_ref) {
|
|
|
88
96
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
89
97
|
if (isTableResizingEnabled(rendererAppearance)) {
|
|
90
98
|
styles = css({
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
99
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
92
100
|
top: mode === 'pin-bottom' ? top : undefined,
|
|
93
101
|
position: 'absolute'
|
|
94
102
|
});
|
|
95
103
|
} else {
|
|
96
104
|
styles = css({
|
|
97
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
105
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
98
106
|
left: left && left < 0 ? left : undefined,
|
|
99
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
107
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
100
108
|
top: mode === 'pin-bottom' ? top : undefined,
|
|
101
109
|
position: 'relative'
|
|
102
110
|
});
|
|
103
111
|
}
|
|
104
112
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
105
|
-
return
|
|
106
|
-
css
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
113
|
+
return (
|
|
114
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
115
|
+
jsx("div", {
|
|
116
|
+
css: styles
|
|
117
|
+
}, jsx(FixedTableDiv, {
|
|
118
|
+
top: mode === 'stick' ? top : undefined,
|
|
119
|
+
mode: rowHeight > 300 ? 'none' : mode,
|
|
120
|
+
wrapperWidth: wrapperWidth,
|
|
121
|
+
rendererAppearance: rendererAppearance
|
|
122
|
+
}, jsx("div", {
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
124
|
+
className: "".concat(TableSharedCssClassName.TABLE_CONTAINER, " is-sticky ").concat(shadowClassNames || ''),
|
|
125
|
+
"data-layout": layout,
|
|
126
|
+
style: {
|
|
127
|
+
width: tableWidth
|
|
128
|
+
}
|
|
129
|
+
}, jsx("div", {
|
|
130
|
+
ref: innerRef
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
132
|
+
,
|
|
133
|
+
className: "".concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER),
|
|
134
|
+
style: {
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
136
|
+
overflow: 'hidden'
|
|
137
|
+
}
|
|
138
|
+
}, jsx(Table, {
|
|
139
|
+
columnWidths: columnWidths,
|
|
140
|
+
layout: layout,
|
|
141
|
+
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
142
|
+
renderWidth: renderWidth,
|
|
143
|
+
tableNode: tableNode,
|
|
144
|
+
rendererAppearance: rendererAppearance
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* @see https://product-fabric.atlassian.net/browse/ED-10235
|
|
148
|
+
* We pass prop 'invisible' to our table's children nodes meaning
|
|
149
|
+
* they exist inside of the 'invisible' duplicated table component that
|
|
150
|
+
* enables sticky headers.
|
|
151
|
+
*/
|
|
152
|
+
recursivelyInjectProps(children, {
|
|
153
|
+
invisible: true
|
|
154
|
+
}))))))
|
|
155
|
+
);
|
|
145
156
|
};
|
|
146
157
|
|
|
147
158
|
/**
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -22,7 +22,9 @@ import { ActiveHeaderIdConsumer } from './active-header-id-provider';
|
|
|
22
22
|
var titleStyles = css({
|
|
23
23
|
outline: 'none',
|
|
24
24
|
border: 'none',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
26
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
28
|
lineHeight: akEditorLineHeight,
|
|
27
29
|
fontWeight: 'normal',
|
|
28
30
|
display: 'flex',
|
|
@@ -21,6 +21,7 @@ var inlineExtensionStyle = css({
|
|
|
21
21
|
verticalAlign: 'middle',
|
|
22
22
|
// es-lint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
23
23
|
margin: "1px 1px ".concat("var(--ds-space-050, 4px)"),
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
25
|
'& .rich-media-item': {
|
|
25
26
|
maxWidth: '100%'
|
|
26
27
|
}
|
|
@@ -47,7 +47,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
47
47
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
48
48
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
49
49
|
var packageName = "@atlaskit/renderer";
|
|
50
|
-
var packageVersion = "109.32.
|
|
50
|
+
var packageVersion = "109.32.4";
|
|
51
51
|
export var defaultNodeComponents = nodeToReact;
|
|
52
52
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
53
53
|
_inherits(Renderer, _PureComponent);
|
|
@@ -540,7 +540,7 @@ var RendererWrapper = /*#__PURE__*/React.memo(function (props) {
|
|
|
540
540
|
ref: innerRef,
|
|
541
541
|
onClick: onClick,
|
|
542
542
|
onMouseDown: onMouseDown
|
|
543
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
543
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
544
544
|
,
|
|
545
545
|
css: rendererStyles({
|
|
546
546
|
appearance: appearance,
|
|
@@ -12,10 +12,12 @@ var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
|
12
12
|
return css({
|
|
13
13
|
position: 'relative',
|
|
14
14
|
overflowY: 'hidden',
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
16
|
maxHeight: "".concat(maxHeight, "px"),
|
|
16
17
|
'&::after': {
|
|
17
18
|
content: "''",
|
|
18
19
|
position: 'absolute',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
21
|
top: "".concat(top, "px"),
|
|
20
22
|
bottom: 0,
|
|
21
23
|
left: 0,
|
|
@@ -10,12 +10,16 @@ import { dataAttributes } from './dom';
|
|
|
10
10
|
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
|
|
11
11
|
import { segmentText } from '../../../react/utils/segment-text';
|
|
12
12
|
import { renderTextSegments } from '../../../react/utils/render-text-segments';
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
13
15
|
var markStyles = function markStyles() {
|
|
14
16
|
return css({
|
|
15
17
|
color: 'inherit',
|
|
16
18
|
backgroundColor: 'unset',
|
|
17
19
|
WebkitTapHighlightColor: 'transparent'
|
|
18
|
-
},
|
|
20
|
+
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
AnnotationSharedCSSByState().focus);
|
|
19
23
|
};
|
|
20
24
|
export var AnnotationDraft = function AnnotationDraft(_ref) {
|
|
21
25
|
var draftPosition = _ref.draftPosition,
|
|
@@ -4,6 +4,7 @@ import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
|
4
4
|
import { updateWindowSelectionAroundDraft } from '../draft';
|
|
5
5
|
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import { getRendererRangeInlineNodeNames } from '../../../actions/get-renderer-range-inline-node-names';
|
|
7
8
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
8
9
|
import { ProvidersContext } from '../context';
|
|
9
10
|
export var SelectionInlineCommentMounter = /*#__PURE__*/React.memo(function (props) {
|
|
@@ -48,7 +49,12 @@ export var SelectionInlineCommentMounter = /*#__PURE__*/React.memo(function (pro
|
|
|
48
49
|
action: ACTION.INSERTED,
|
|
49
50
|
actionSubject: ACTION_SUBJECT.ANNOTATION,
|
|
50
51
|
actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
51
|
-
attributes: {
|
|
52
|
+
attributes: {
|
|
53
|
+
inlineNodeNames: getRendererRangeInlineNodeNames({
|
|
54
|
+
pos: positionToAnnotate,
|
|
55
|
+
actions: actions
|
|
56
|
+
})
|
|
57
|
+
},
|
|
52
58
|
eventType: EVENT_TYPE.TRACK
|
|
53
59
|
}).fire(FabricChannel.editor);
|
|
54
60
|
}
|
|
@@ -71,7 +77,12 @@ export var SelectionInlineCommentMounter = /*#__PURE__*/React.memo(function (pro
|
|
|
71
77
|
action: ACTION.CREATE_NOT_ALLOWED,
|
|
72
78
|
actionSubject: ACTION_SUBJECT.ANNOTATION,
|
|
73
79
|
actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
74
|
-
attributes: {
|
|
80
|
+
attributes: {
|
|
81
|
+
inlineNodeNames: getRendererRangeInlineNodeNames({
|
|
82
|
+
pos: documentPosition,
|
|
83
|
+
actions: actions
|
|
84
|
+
})
|
|
85
|
+
},
|
|
75
86
|
eventType: EVENT_TYPE.TRACK
|
|
76
87
|
}).fire(FabricChannel.editor);
|
|
77
88
|
}
|
|
@@ -87,7 +98,11 @@ export var SelectionInlineCommentMounter = /*#__PURE__*/React.memo(function (pro
|
|
|
87
98
|
actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
88
99
|
eventType: EVENT_TYPE.TRACK,
|
|
89
100
|
attributes: {
|
|
90
|
-
overlap: uniqueAnnotationsInRange.length
|
|
101
|
+
overlap: uniqueAnnotationsInRange.length,
|
|
102
|
+
inlineNodeNames: getRendererRangeInlineNodeNames({
|
|
103
|
+
pos: documentPosition,
|
|
104
|
+
actions: actions
|
|
105
|
+
})
|
|
91
106
|
}
|
|
92
107
|
}).fire(FabricChannel.editor);
|
|
93
108
|
}
|
|
@@ -126,12 +141,17 @@ export var SelectionInlineCommentMounter = /*#__PURE__*/React.memo(function (pro
|
|
|
126
141
|
actionSubject: ACTION_SUBJECT.ANNOTATION,
|
|
127
142
|
actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
128
143
|
eventType: EVENT_TYPE.TRACK,
|
|
129
|
-
attributes: {
|
|
144
|
+
attributes: {
|
|
145
|
+
inlineNodeNames: getRendererRangeInlineNodeNames({
|
|
146
|
+
pos: documentPosition,
|
|
147
|
+
actions: actions
|
|
148
|
+
})
|
|
149
|
+
}
|
|
130
150
|
}).fire(FabricChannel.editor);
|
|
131
151
|
}
|
|
132
152
|
removeDraftModeCallback();
|
|
133
153
|
onCloseProps();
|
|
134
|
-
}, [onCloseProps, removeDraftModeCallback, createAnalyticsEvent]);
|
|
154
|
+
}, [actions, documentPosition, onCloseProps, removeDraftModeCallback, createAnalyticsEvent]);
|
|
135
155
|
return /*#__PURE__*/React.createElement(Component, {
|
|
136
156
|
range: range,
|
|
137
157
|
draftRange: draftRange,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type RendererActions from './index';
|
|
2
|
+
export declare function getRendererRangeInlineNodeNames({ actions, pos, }: {
|
|
3
|
+
actions: RendererActions;
|
|
4
|
+
/**
|
|
5
|
+
* documentPosition is caclulated by `actions.getPositionFromRange`
|
|
6
|
+
* where `false` means that the selection is not able to be calculated.
|
|
7
|
+
*/
|
|
8
|
+
pos?: {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
} | false;
|
|
12
|
+
}): string[] | undefined;
|
|
@@ -52,6 +52,9 @@ export default class RendererActions implements RendererActionsOptions, Annotati
|
|
|
52
52
|
annotate(range: Range, annotationId: string, annotationType: 'inlineComment'): AnnotationActionResult;
|
|
53
53
|
isValidAnnotationRange(range: Range | null): boolean;
|
|
54
54
|
isValidAnnotationPosition(pos: Position): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Note: False indicates that the selection not able to be calculated.
|
|
57
|
+
*/
|
|
55
58
|
getPositionFromRange(range: Range | null, isCommentsOnMediaBugFixEnabled?: boolean, isCommentsOnMediaBugVideoComment?: boolean): Position | false;
|
|
56
59
|
getAnnotationMarks(): Mark[];
|
|
57
60
|
getAnnotationsByPosition(range: Range): string[];
|
|
@@ -104,7 +104,9 @@ export type AnnotationDraftAEPAttributes = {
|
|
|
104
104
|
export type AnnotationResolvedAEPAttributes = {
|
|
105
105
|
method?: RESOLVE_METHOD;
|
|
106
106
|
};
|
|
107
|
-
export type AnnotationDeleteAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID,
|
|
107
|
+
export type AnnotationDeleteAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID, {
|
|
108
|
+
inlineNodeNames?: string[];
|
|
109
|
+
}, EVENT_TYPE.TRACK>;
|
|
108
110
|
export declare enum RESOLVE_METHOD {
|
|
109
111
|
COMPONENT = "component",
|
|
110
112
|
CONSUMER = "consumer",
|
|
@@ -68,6 +68,7 @@ declare const _default: {
|
|
|
68
68
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
69
69
|
};
|
|
70
70
|
new (props: Props, context: any): {
|
|
71
|
+
/** We keep rendering the default content */
|
|
71
72
|
overflowContainer?: HTMLElement | null | undefined;
|
|
72
73
|
container?: HTMLElement | undefined;
|
|
73
74
|
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type RendererActions from './index';
|
|
2
|
+
export declare function getRendererRangeInlineNodeNames({ actions, pos, }: {
|
|
3
|
+
actions: RendererActions;
|
|
4
|
+
/**
|
|
5
|
+
* documentPosition is caclulated by `actions.getPositionFromRange`
|
|
6
|
+
* where `false` means that the selection is not able to be calculated.
|
|
7
|
+
*/
|
|
8
|
+
pos?: {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
} | false;
|
|
12
|
+
}): string[] | undefined;
|
|
@@ -52,6 +52,9 @@ export default class RendererActions implements RendererActionsOptions, Annotati
|
|
|
52
52
|
annotate(range: Range, annotationId: string, annotationType: 'inlineComment'): AnnotationActionResult;
|
|
53
53
|
isValidAnnotationRange(range: Range | null): boolean;
|
|
54
54
|
isValidAnnotationPosition(pos: Position): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Note: False indicates that the selection not able to be calculated.
|
|
57
|
+
*/
|
|
55
58
|
getPositionFromRange(range: Range | null, isCommentsOnMediaBugFixEnabled?: boolean, isCommentsOnMediaBugVideoComment?: boolean): Position | false;
|
|
56
59
|
getAnnotationMarks(): Mark[];
|
|
57
60
|
getAnnotationsByPosition(range: Range): string[];
|
|
@@ -104,7 +104,9 @@ export type AnnotationDraftAEPAttributes = {
|
|
|
104
104
|
export type AnnotationResolvedAEPAttributes = {
|
|
105
105
|
method?: RESOLVE_METHOD;
|
|
106
106
|
};
|
|
107
|
-
export type AnnotationDeleteAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID,
|
|
107
|
+
export type AnnotationDeleteAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID, {
|
|
108
|
+
inlineNodeNames?: string[];
|
|
109
|
+
}, EVENT_TYPE.TRACK>;
|
|
108
110
|
export declare enum RESOLVE_METHOD {
|
|
109
111
|
COMPONENT = "component",
|
|
110
112
|
CONSUMER = "consumer",
|
|
@@ -68,6 +68,7 @@ declare const _default: {
|
|
|
68
68
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
69
69
|
};
|
|
70
70
|
new (props: Props, context: any): {
|
|
71
|
+
/** We keep rendering the default content */
|
|
71
72
|
overflowContainer?: HTMLElement | null | undefined;
|
|
72
73
|
container?: HTMLElement | undefined;
|
|
73
74
|
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
|