@atlaskit/renderer 109.32.3 → 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 +9 -0
- package/dist/cjs/actions/index.js +7 -0
- 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/es2019/actions/index.js +7 -0
- 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/esm/actions/index.js +7 -0
- 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/types/react/nodes/extension.d.ts +1 -0
- package/dist/types-ts4.5/react/nodes/extension.d.ts +1 -0
- package/package.json +156 -160
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.32.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110966](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110966)
|
|
8
|
+
[`31348c335b4b3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/31348c335b4b3) -
|
|
9
|
+
ED-23690 - add inlineNodeTypes property to AnnotationComponentProps
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 109.32.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -280,6 +280,13 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
280
280
|
return _objectSpread({
|
|
281
281
|
step: step,
|
|
282
282
|
doc: this.transformer.encode(doc),
|
|
283
|
+
inlineNodeTypes: (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
284
|
+
actions: this,
|
|
285
|
+
pos: {
|
|
286
|
+
from: from,
|
|
287
|
+
to: to
|
|
288
|
+
}
|
|
289
|
+
}),
|
|
283
290
|
originalSelection: originalSelection,
|
|
284
291
|
numMatches: numMatches,
|
|
285
292
|
matchIndex: matchIndex,
|
|
@@ -11,7 +11,9 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
14
15
|
var wrapperStyles = exports.wrapperStyles = (0, _react.css)({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
17
|
margin: "".concat(_editorSharedStyles.blockNodesVerticalMargin, " 0"),
|
|
16
18
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
17
19
|
marginLeft: '50%',
|
|
@@ -22,7 +24,9 @@ function Breakout(props) {
|
|
|
22
24
|
var width = _ref.width;
|
|
23
25
|
return (0, _react.jsx)("div", {
|
|
24
26
|
css: wrapperStyles,
|
|
25
|
-
"data-mode": props.mode
|
|
27
|
+
"data-mode": props.mode
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
29
|
+
,
|
|
26
30
|
style: {
|
|
27
31
|
width: (0, _utils.calcBreakoutWidth)(props.mode, width)
|
|
28
32
|
}
|
|
@@ -107,6 +107,7 @@ function BlockCard(props) {
|
|
|
107
107
|
css: datasourceContainerStyle,
|
|
108
108
|
"data-testid": "renderer-datasource-table",
|
|
109
109
|
style: {
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
110
111
|
width: isNodeNested ? '100%' : (0, _utils2.calcBreakoutWidth)(layout, width)
|
|
111
112
|
}
|
|
112
113
|
}, (0, _react2.jsx)(_linkDatasource.DatasourceTableView, {
|
|
@@ -25,6 +25,7 @@ var codeBlockButtonsStyle = (0, _react.css)({
|
|
|
25
25
|
right: "var(--ds-space-075, 6px)",
|
|
26
26
|
top: "var(--ds-space-050, 4px)",
|
|
27
27
|
padding: "var(--ds-space-025, 2px)",
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
29
|
button: {
|
|
29
30
|
height: '32px',
|
|
30
31
|
width: '32px',
|
|
@@ -40,9 +41,11 @@ var codeBlockButtonsStyle = (0, _react.css)({
|
|
|
40
41
|
height: '32px',
|
|
41
42
|
width: '32px'
|
|
42
43
|
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
45
|
'&.clicked': {
|
|
44
46
|
backgroundColor: "".concat("var(--ds-background-neutral-bold-pressed, ".concat(_colors.N700, ")")),
|
|
45
47
|
borderRadius: '4px',
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
46
49
|
color: "".concat("var(--ds-icon-inverse, ".concat(_colors.N0, ")"), " !important")
|
|
47
50
|
}
|
|
48
51
|
}
|
|
@@ -14,7 +14,7 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
14
14
|
var _codeBlockButtonContainer = _interopRequireDefault(require("./codeBlockButtonContainer"));
|
|
15
15
|
var _templateObject;
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
18
18
|
var codeBlockStyleOverrides = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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(_colors.N20, ")"), _styles.CodeBlockSharedCssClassName.DS_CODEBLOCK, (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), (0, _editorSharedStyles.overflowShadow)({
|
|
19
19
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
20
20
|
}));
|
|
@@ -17,7 +17,7 @@ var _templateObject, _templateObject2;
|
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
21
21
|
var lightWeightCodeBlockStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tcursor: text;\n\t}\n"])), _styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER);
|
|
22
22
|
var LightWeightCodeBlockCssClassName = exports.LightWeightCodeBlockCssClassName = {
|
|
23
23
|
CONTAINER: 'light-weight-code-block'
|
|
@@ -48,7 +48,9 @@ var LightWeightCodeBlock = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, r
|
|
|
48
48
|
return (0, _react2.jsx)("div", {
|
|
49
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
50
50
|
className: classNames,
|
|
51
|
-
ref: ref
|
|
51
|
+
ref: ref
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
|
+
,
|
|
52
54
|
css: [(0, _styles.codeBlockSharedStyles)(), lightWeightCodeBlockStyles]
|
|
53
55
|
}, (0, _react2.jsx)("div", {
|
|
54
56
|
className: _styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER
|
|
@@ -23,9 +23,11 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
23
23
|
var embedCardWrapperStyles = (0, _react.css)({
|
|
24
24
|
width: '100%',
|
|
25
25
|
height: '100%',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
27
|
'> div': {
|
|
27
28
|
height: '100%'
|
|
28
29
|
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
31
|
'.loader-wrapper': {
|
|
30
32
|
height: '100%'
|
|
31
33
|
},
|
|
@@ -29,6 +29,7 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
29
29
|
,
|
|
30
30
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
31
31
|
style: {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
33
|
width: isTopLevel ? (0, _utils.calcBreakoutWidth)(layout, width) : '100%'
|
|
33
34
|
},
|
|
34
35
|
"data-layout": layout
|
|
@@ -10,7 +10,12 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
14
|
+
var layoutColumnClearMarginTopStyles = (0, _react2.css)(
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
_ui.clearNextSiblingMarginTopStyle,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
_ui.clearNextSiblingBlockMarkMarginTopStyle);
|
|
14
19
|
function LayoutSection(props) {
|
|
15
20
|
return (0, _react2.jsx)("div", {
|
|
16
21
|
"data-layout-column": true,
|
|
@@ -44,7 +44,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
44
44
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45
45
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
46
46
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
47
|
+
// 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
|
|
47
48
|
var linkStyle = exports.linkStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])));
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
48
51
|
var borderStyle = exports.borderStyle = function borderStyle(color, width) {
|
|
49
52
|
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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);
|
|
50
53
|
};
|
|
@@ -61,7 +64,9 @@ var MediaBorder = function MediaBorder(_ref) {
|
|
|
61
64
|
return (0, _react2.jsx)("div", {
|
|
62
65
|
"data-mark-type": "border",
|
|
63
66
|
"data-color": borderColor,
|
|
64
|
-
"data-size": borderWidth
|
|
67
|
+
"data-size": borderWidth
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
69
|
+
,
|
|
65
70
|
css: borderStyle(paletteColorValue, borderWidth)
|
|
66
71
|
}, (0, _react2.jsx)(_ui.MediaBorderGapFiller, {
|
|
67
72
|
borderColor: borderColor
|
|
@@ -7,9 +7,12 @@ exports.uiMediaSingleLayoutStyles = exports.uiMediaSingleBaseStyles = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
10
11
|
var uiMediaSingleBaseStyles = exports.uiMediaSingleBaseStyles = (0, _react.css)({
|
|
11
12
|
transition: 'all 0.1s linear'
|
|
12
13
|
});
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
16
|
var uiMediaSingleLayoutStyles = exports.uiMediaSingleLayoutStyles = (0, _react.css)({
|
|
14
17
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
15
18
|
marginLeft: '50%',
|
|
@@ -51,7 +51,7 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
|
|
|
51
51
|
return actions;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
54
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
55
55
|
var navigationCssExtended = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])), _ui.sharedMultiBodiedExtensionStyles.mbeNavigation);
|
|
56
56
|
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
57
57
|
var children = props.children,
|
|
@@ -89,6 +89,7 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
89
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
90
90
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(centerAlignClass, " ").concat(overflowContainerClass),
|
|
91
91
|
style: {
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
93
|
width: isTopLevel ? (0, _utils.calcBreakoutWidth)(layout, width) : '100%'
|
|
93
94
|
},
|
|
94
95
|
"data-layout": layout
|
|
@@ -30,9 +30,12 @@ var PanelStyled = function PanelStyled(_ref) {
|
|
|
30
30
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
|
|
31
31
|
styles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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"])), _panel.PanelSharedCssClassName.prefix, (0, _panel.panelSharedStylesWithoutPrefix)(), _adfSchema.PanelType.CUSTOM, (0, _editorPalette.hexToEditorBackgroundPaletteColor)(backgroundColor) || backgroundColor, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
|
|
32
32
|
}
|
|
33
|
-
return (
|
|
34
|
-
css
|
|
35
|
-
|
|
33
|
+
return (
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
35
|
+
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
36
|
+
css: styles
|
|
37
|
+
}, props), props.children)
|
|
38
|
+
);
|
|
36
39
|
};
|
|
37
40
|
PanelStyled.displayName = 'PanelStyled';
|
|
38
41
|
var panelIcons = {
|
|
@@ -171,7 +171,7 @@ var Colgroup = exports.Colgroup = function Colgroup(props) {
|
|
|
171
171
|
return null;
|
|
172
172
|
}
|
|
173
173
|
return /*#__PURE__*/_react.default.createElement("colgroup", null, isNumberColumnEnabled && /*#__PURE__*/_react.default.createElement("col", {
|
|
174
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
175
175
|
style: {
|
|
176
176
|
width: _editorSharedStyles.akEditorTableNumberColumnWidth
|
|
177
177
|
},
|
|
@@ -41,12 +41,17 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, r
|
|
|
41
41
|
} else {
|
|
42
42
|
stickyHeaderZIndex = _editorSharedStyles.akEditorStickyHeaderZIndex;
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
46
|
return (0, _react2.css)(typeof top === 'number' && "top: ".concat(top, "px;"), (_css = {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
48
|
width: "".concat(width, "px"),
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
50
|
zIndex: stickyHeaderZIndex
|
|
47
51
|
}, (0, _defineProperty2.default)(_css, "& .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ", & .").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
48
52
|
marginTop: 0,
|
|
49
53
|
marginBottom: 0,
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
50
55
|
tr: {
|
|
51
56
|
background: "var(--ds-surface, white)"
|
|
52
57
|
}
|
|
@@ -56,6 +61,7 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, r
|
|
|
56
61
|
top: '0px',
|
|
57
62
|
height: '100%'
|
|
58
63
|
}), (0, _defineProperty2.default)(_css, "&.fixed-table-div-custom-table-resizing[mode='stick']", {
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
65
|
zIndex: stickyHeaderZIndex
|
|
60
66
|
}), _css));
|
|
61
67
|
};
|
|
@@ -72,7 +78,9 @@ var FixedTableDiv = exports.FixedTableDiv = function FixedTableDiv(props) {
|
|
|
72
78
|
"data-testid": "sticky-table-fixed"
|
|
73
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
74
80
|
,
|
|
75
|
-
className: (0, _table2.isTableResizingEnabled)(rendererAppearance) ? 'fixed-table-div-custom-table-resizing' : ''
|
|
81
|
+
className: (0, _table2.isTableResizingEnabled)(rendererAppearance) ? 'fixed-table-div-custom-table-resizing' : ''
|
|
82
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
83
|
+
,
|
|
76
84
|
css: fixedTableCss
|
|
77
85
|
}), props.children);
|
|
78
86
|
};
|
|
@@ -96,60 +104,63 @@ var StickyTable = exports.StickyTable = function StickyTable(_ref) {
|
|
|
96
104
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
97
105
|
if ((0, _table2.isTableResizingEnabled)(rendererAppearance)) {
|
|
98
106
|
styles = (0, _react2.css)({
|
|
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: 'absolute'
|
|
102
110
|
});
|
|
103
111
|
} else {
|
|
104
112
|
styles = (0, _react2.css)({
|
|
105
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
113
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
106
114
|
left: left && left < 0 ? left : undefined,
|
|
107
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
115
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
116
|
top: mode === 'pin-bottom' ? top : undefined,
|
|
109
117
|
position: 'relative'
|
|
110
118
|
});
|
|
111
119
|
}
|
|
112
120
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
113
|
-
return (
|
|
114
|
-
css
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
121
|
+
return (
|
|
122
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
123
|
+
(0, _react2.jsx)("div", {
|
|
124
|
+
css: styles
|
|
125
|
+
}, (0, _react2.jsx)(FixedTableDiv, {
|
|
126
|
+
top: mode === 'stick' ? top : undefined,
|
|
127
|
+
mode: rowHeight > 300 ? 'none' : mode,
|
|
128
|
+
wrapperWidth: wrapperWidth,
|
|
129
|
+
rendererAppearance: rendererAppearance
|
|
130
|
+
}, (0, _react2.jsx)("div", {
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
132
|
+
className: "".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, " is-sticky ").concat(shadowClassNames || ''),
|
|
133
|
+
"data-layout": layout,
|
|
134
|
+
style: {
|
|
135
|
+
width: tableWidth
|
|
136
|
+
}
|
|
137
|
+
}, (0, _react2.jsx)("div", {
|
|
138
|
+
ref: innerRef
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
140
|
+
,
|
|
141
|
+
className: "".concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER),
|
|
142
|
+
style: {
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
144
|
+
overflow: 'hidden'
|
|
145
|
+
}
|
|
146
|
+
}, (0, _react2.jsx)(_table.Table, {
|
|
147
|
+
columnWidths: columnWidths,
|
|
148
|
+
layout: layout,
|
|
149
|
+
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
150
|
+
renderWidth: renderWidth,
|
|
151
|
+
tableNode: tableNode,
|
|
152
|
+
rendererAppearance: rendererAppearance
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* @see https://product-fabric.atlassian.net/browse/ED-10235
|
|
156
|
+
* We pass prop 'invisible' to our table's children nodes meaning
|
|
157
|
+
* they exist inside of the 'invisible' duplicated table component that
|
|
158
|
+
* enables sticky headers.
|
|
159
|
+
*/
|
|
160
|
+
(0, _injectProps.recursivelyInjectProps)(children, {
|
|
161
|
+
invisible: true
|
|
162
|
+
}))))))
|
|
163
|
+
);
|
|
153
164
|
};
|
|
154
165
|
|
|
155
166
|
/**
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -32,7 +32,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
32
32
|
var titleStyles = (0, _react.css)({
|
|
33
33
|
outline: 'none',
|
|
34
34
|
border: 'none',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
36
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
38
|
lineHeight: _editorSharedStyles.akEditorLineHeight,
|
|
37
39
|
fontWeight: 'normal',
|
|
38
40
|
display: 'flex',
|
|
@@ -30,6 +30,7 @@ var inlineExtensionStyle = (0, _react.css)({
|
|
|
30
30
|
verticalAlign: 'middle',
|
|
31
31
|
// es-lint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
32
32
|
margin: "1px 1px ".concat("var(--ds-space-050, 4px)"),
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
34
|
'& .rich-media-item': {
|
|
34
35
|
maxWidth: '100%'
|
|
35
36
|
}
|
|
@@ -56,7 +56,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
56
56
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
57
57
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
58
58
|
var packageName = "@atlaskit/renderer";
|
|
59
|
-
var packageVersion = "109.32.
|
|
59
|
+
var packageVersion = "109.32.4";
|
|
60
60
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
61
61
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
62
62
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -549,7 +549,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
549
549
|
ref: innerRef,
|
|
550
550
|
onClick: onClick,
|
|
551
551
|
onMouseDown: onMouseDown
|
|
552
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
552
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
553
553
|
,
|
|
554
554
|
css: (0, _style.rendererStyles)({
|
|
555
555
|
appearance: appearance,
|
|
@@ -18,10 +18,12 @@ var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
|
18
18
|
return (0, _react.css)({
|
|
19
19
|
position: 'relative',
|
|
20
20
|
overflowY: 'hidden',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
22
|
maxHeight: "".concat(maxHeight, "px"),
|
|
22
23
|
'&::after': {
|
|
23
24
|
content: "''",
|
|
24
25
|
position: 'absolute',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
27
|
top: "".concat(top, "px"),
|
|
26
28
|
bottom: 0,
|
|
27
29
|
left: 0,
|
|
@@ -21,12 +21,15 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
/** @jsx jsx */
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
24
25
|
var markStyles = function markStyles() {
|
|
25
26
|
return (0, _react2.css)({
|
|
26
27
|
color: 'inherit',
|
|
27
28
|
backgroundColor: 'unset',
|
|
28
29
|
WebkitTapHighlightColor: 'transparent'
|
|
29
|
-
},
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
(0, _styles.AnnotationSharedCSSByState)().focus);
|
|
30
33
|
};
|
|
31
34
|
var AnnotationDraft = exports.AnnotationDraft = function AnnotationDraft(_ref) {
|
|
32
35
|
var draftPosition = _ref.draftPosition,
|
|
@@ -258,6 +258,13 @@ export default class RendererActions {
|
|
|
258
258
|
return {
|
|
259
259
|
step,
|
|
260
260
|
doc: this.transformer.encode(doc),
|
|
261
|
+
inlineNodeTypes: getRendererRangeInlineNodeNames({
|
|
262
|
+
actions: this,
|
|
263
|
+
pos: {
|
|
264
|
+
from,
|
|
265
|
+
to
|
|
266
|
+
}
|
|
267
|
+
}),
|
|
261
268
|
originalSelection,
|
|
262
269
|
numMatches,
|
|
263
270
|
matchIndex,
|
|
@@ -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 const 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: `${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
|
width
|
|
15
17
|
}) => 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
|
}
|
|
@@ -93,6 +93,7 @@ export default function BlockCard(props) {
|
|
|
93
93
|
css: datasourceContainerStyle,
|
|
94
94
|
"data-testid": "renderer-datasource-table",
|
|
95
95
|
style: {
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
96
97
|
width: isNodeNested ? '100%' : calcBreakoutWidth(layout, width)
|
|
97
98
|
}
|
|
98
99
|
}, jsx(DatasourceTableView, {
|
|
@@ -17,6 +17,7 @@ const 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 @@ const 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: `${`var(--ds-background-neutral-bold-pressed, ${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: `${`var(--ds-icon-inverse, ${N0})`} !important`
|
|
39
42
|
}
|
|
40
43
|
}
|
|
@@ -6,7 +6,7 @@ import { fontSize } from '@atlaskit/theme/constants';
|
|
|
6
6
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
7
7
|
import CodeBlockButtonContainer from './codeBlockButtonContainer';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
10
10
|
const codeBlockStyleOverrides = css`
|
|
11
11
|
tab-size: 4;
|
|
12
12
|
background-color: ${`var(--ds-surface-raised, ${N20})`};
|
|
@@ -5,7 +5,7 @@ import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
|
5
5
|
import { codeBlockSharedStyles, CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { useBidiWarnings } from '../../../hooks/use-bidi-warnings';
|
|
7
7
|
import { RendererCssClassName } from '../../../../consts';
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
9
9
|
const lightWeightCodeBlockStyles = css`
|
|
10
10
|
.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER} {
|
|
11
11
|
cursor: text;
|
|
@@ -45,7 +45,9 @@ const LightWeightCodeBlock = /*#__PURE__*/forwardRef(({
|
|
|
45
45
|
return jsx("div", {
|
|
46
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
47
|
className: classNames,
|
|
48
|
-
ref: ref
|
|
48
|
+
ref: ref
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
50
|
+
,
|
|
49
51
|
css: [codeBlockSharedStyles(), lightWeightCodeBlockStyles]
|
|
50
52
|
}, jsx("div", {
|
|
51
53
|
className: CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER
|
|
@@ -14,9 +14,11 @@ import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
14
14
|
const embedCardWrapperStyles = css({
|
|
15
15
|
width: '100%',
|
|
16
16
|
height: '100%',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
18
|
'> div': {
|
|
18
19
|
height: '100%'
|
|
19
20
|
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
22
|
'.loader-wrapper': {
|
|
21
23
|
height: '100%'
|
|
22
24
|
},
|
|
@@ -20,6 +20,7 @@ export const renderExtension = (content, layout, options = {}, removeOverflow) =
|
|
|
20
20
|
,
|
|
21
21
|
className: `${RendererCssClassName.EXTENSION} ${options.shadowClassNames} ${centerAlignClass}`,
|
|
22
22
|
style: {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
24
|
width: isTopLevel ? calcBreakoutWidth(layout, width) : '100%'
|
|
24
25
|
},
|
|
25
26
|
"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
|
+
const 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,
|
|
@@ -20,6 +20,7 @@ import { CommentBadge as CommentBadgeComponent } from '@atlaskit/editor-common/m
|
|
|
20
20
|
import { injectIntl } from 'react-intl-next';
|
|
21
21
|
import { useInlineCommentSubscriberContext, useInlineCommentsFilter } from '../../../ui/annotations/hooks';
|
|
22
22
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
23
|
+
// 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
|
|
23
24
|
export const linkStyle = css`
|
|
24
25
|
position: absolute;
|
|
25
26
|
background: transparent;
|
|
@@ -31,6 +32,8 @@ export const linkStyle = css`
|
|
|
31
32
|
width: 100% !important;
|
|
32
33
|
height: 100% !important;
|
|
33
34
|
`;
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
34
37
|
export const borderStyle = (color, width) => css`
|
|
35
38
|
position: absolute;
|
|
36
39
|
width: 100% !important;
|
|
@@ -52,7 +55,9 @@ const MediaBorder = ({
|
|
|
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
|